diff --git a/.gitignore b/.gitignore index 15ce9b5..96cc0e7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ bower_components/ node_modules/ transfersh-server/run.sh +transfersh-server/static \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 238e92e..944237e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -129,7 +129,7 @@ module.exports = function (grunt) { src: [ '<%= yeoman.dist %>/scripts/{,*/}*.js', '<%= yeoman.dist %>/styles/{,*/}*.css', - '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp}', + '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}', '<%= yeoman.dist %>/fonts/{,*/}*.*' ] } @@ -158,16 +158,7 @@ module.exports = function (grunt) { }] } }, - svgmin: { - dist: { - files: [{ - expand: true, - cwd: '<%= yeoman.app %>/images', - src: '{,*/}*.svg', - dest: '<%= yeoman.dist %>/images' - }] - } - }, + cssmin: { dist: { files: { @@ -212,7 +203,7 @@ module.exports = function (grunt) { '.htaccess', 'index.txt', '404.txt', - 'images/{,*/}*.{webp,gif}' + 'images/{,*/}*.{webp,gif,svg}' ] }] }, @@ -236,7 +227,6 @@ module.exports = function (grunt) { dist: [ 'less', 'imagemin', - 'svgmin', 'htmlmin' ] } diff --git a/transfersh-server/static/images/terminal.svg b/transfersh-server/static/images/terminal.svg index b52f413..9d3cf8f 100644 --- a/transfersh-server/static/images/terminal.svg +++ b/transfersh-server/static/images/terminal.svg @@ -1 +1,189 @@ - \ No newline at end of file + + + + diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html index ba192b9..9fd58f1 100644 --- a/transfersh-server/static/index.html +++ b/transfersh-server/static/index.html @@ -16,8 +16,8 @@ - - + + @@ -43,7 +43,7 @@
+ # Upload using cURL
+
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt
+
+
+ # Create an alias
+
$ transfer hello.txt
+
##################################################### 100.0% https://transfer.sh/eibhM/hello.txt
+
ch
+ Drag your files here to upload or click to browse
- +
+
+ # Upload from web
+
Drag your files here, or click to browse.
+
- $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
- $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
+
+ # Upload is easy using cURL
+
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt
+
+
+ # Download the file
+
$ transfer hello.txt
+
#################################################### 100.0% https://transfer.sh/eibhM/hello.txt
+ # Upload multiple files
+
$ transfer hello.txt
+
https://transfer.sh/eibhM/hello.txt
+
+
+
+ $ transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } alias transfer=transfer
- $transfer hello.txt
-
-
+
+ # Upload is easy using cURL
+
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt
+
+
+ # Download the file
+
tmpfile = $( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
+
+
+ # Now you can just use transfer command
+
$ transfer hello.txt
+
+
+
+
+
+ # Upload is easy using cURL
+
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt
+
+
+ # Download the file
+
$ transfer hello.txt
+
#################################################### 100.0% https://transfer.sh/eibhM/hello.txt
+ # Upload multiple files
+
$ transfer hello.txt
+
https://transfer.sh/eibhM/hello.txt
+
+
+
+
+ # Upload is easy using cURL
+
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt
+
+
+ # Download the file
+
tmpfile = $( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
+
+
+ # Now you can just use transfer command
+
$ transfer hello.txt
+
+
+
+
+
-
- transfer.sh is my latest fav service! Try simple command-line and web file sharing! https://t.co/FSrsb1JKJd
Thanks @dutchcoders !
— Lars Arvestad (@arvestad)
+
+ @dutchcoders Thanks for transfer.sh. Just used it for a production purpose for a customer. So great, so easy, so https. :)
+
+ — Dave Sims (@FloifyDave)
@dutchcoders love transfer.sh! any change we can *pay* for a self-hosted version?
— Kareem Kouddous (@kareemk)
-
-
+
http://t.co/JomAmqWYEB by @dutchcoders is pure awesomeness! any chance of source on github? :-)
— PJ Spagnolatti (@drakpz)
-
Love transfer.sh! Will be using it from now on! Thanks for the amazing service we can use from the CLI @dutchcoders
— Jacob Lindgren (@jacoblindgren11)
-
-
- @dutchcoders Thanks for transfer.sh. Just used it for a production purpose for a customer. So great, so easy, so https. :)
-
- — Dave Sims (@FloifyDave)
+
+ transfer.sh is my latest fav service! Try simple command-line and web file sharing! https://t.co/FSrsb1JKJd
Thanks @dutchcoders !
— Lars Arvestad (@arvestad)
-