diff --git a/.gitignore b/.gitignore index 9021ead..4ecebc5 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ assets/ templates/ lists/ vendor/ +*~ +filespread.ini +*.sum \ No newline at end of file diff --git a/README.md b/README.md index 5359431..6a2dede 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ npm install composer install ``` -Make sure you have gulp installed on your system and run +Make sure you have gulp and the Dart SDK installed on your system and run ``` gulp sass @@ -24,6 +24,10 @@ gulp sass gulp coffee ``` +``` +gulp dart +``` + Create the folders `templates`, `assets` and `lists` and make sure that the server can write in these folders. Finally remove the example files. @@ -34,4 +38,9 @@ Filespread is licensed under the MIT license. # Contributing -Please refer to the [Contributing Guidlines](https://mmk2410.org/contribute/) +1. Fork it +2. Create a feature branch with a meaningful name (`git checkout -b my-new-feature`) +3. Add yourself to the CONTRIBUTORS file +4. Commit your changes (`git commit -am 'Add some feature'`) +5. Push to your branch (`git push origin my-new-feature`) +6. Create a new pull request diff --git a/filespread.ini b/filespread.ini index 8f74fab..f1cac2c 100644 --- a/filespread.ini +++ b/filespread.ini @@ -10,3 +10,6 @@ timezone = "UTC" email = "example@example.com" ; name which is given as a sender name name = "John" +; reply address +; if not set, the values above will be used +reply = "" \ No newline at end of file diff --git a/gulpfile.coffee b/gulpfile.coffee index de480a1..3ae8d4d 100755 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -4,6 +4,7 @@ gulp = require 'gulp' coffee = require 'gulp-coffee' sass = require 'gulp-sass' +dart = require 'gulp-dart' gulp.task 'coffee', -> gulp.src './res/js/*.coffee' @@ -15,6 +16,15 @@ gulp.task 'sass', -> .pipe sass() .pipe gulp.dest './res/css/' +gulp.task 'dart', -> + gulp.src './res/dart/*.dart' + .pipe dart { + "dest": "./res/dart/", + "minify": "true", + } + .pipe gulp.dest './res/dart/' + gulp.task 'default', -> gulp.watch './res/js/*.coffee', ['coffee'] gulp.watch './res/css/*.sass', ['sass'] + gulp.watch './res/dart/*.dart', ['dart'] diff --git a/index.html b/index.html index 3150783..39cfabd 100755 --- a/index.html +++ b/index.html @@ -68,6 +68,7 @@
Change the text of the email if you want.
Title:
Text:
+Send without file
Filename:
@@ -171,5 +172,6 @@ +