diff --git a/Gruntfile.js b/Gruntfile.js index aa176c2..238e92e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -136,7 +136,7 @@ module.exports = function (grunt) { } }, useminPrepare: { - html: '<%= yeoman.app %>/index.html', + html: '<%= yeoman.app %>/*.html', options: { dest: '<%= yeoman.dist %>' } @@ -211,6 +211,7 @@ module.exports = function (grunt) { 'fonts/{,*/}*.*', '.htaccess', 'index.txt', + '404.txt', 'images/{,*/}*.{webp,gif}' ] }] diff --git a/bower.json b/bower.json index 901f1b7..37f158e 100644 --- a/bower.json +++ b/bower.json @@ -17,6 +17,9 @@ "bootstrap": "~3.0.0", "modernizr": "~2.6.2", "uri.js": "~1.14.1", - "typed.js": "https://github.com/mattboldt/typed.js.git" + "typed.js": "https://github.com/mattboldt/typed.js.git", + "realistic-typewriter.js": "https://github.com/fardjad/realistic-typewriter.js.git", + "animate.less": "*", + "jquery-waypoints": "https://github.com/imakewebthings/jquery-waypoints.git#~2.0.5" } } diff --git a/transfersh-server/static/404.txt b/transfersh-server/static/404.txt index 8b13789..6e67cf9 100644 --- a/transfersh-server/static/404.txt +++ b/transfersh-server/static/404.txt @@ -1 +1 @@ - +404. Not found diff --git a/transfersh-server/static/favicon.ico b/transfersh-server/static/favicon.ico index 6527905..570a9fa 100644 Binary files a/transfersh-server/static/favicon.ico and b/transfersh-server/static/favicon.ico differ diff --git a/transfersh-server/static/images/reviews/dave.jpg b/transfersh-server/static/images/reviews/dave.jpg new file mode 100644 index 0000000..6408f55 Binary files /dev/null and b/transfersh-server/static/images/reviews/dave.jpg differ diff --git a/transfersh-server/static/images/reviews/jacob.jpg b/transfersh-server/static/images/reviews/jacob.jpg new file mode 100644 index 0000000..fc2e2e5 Binary files /dev/null and b/transfersh-server/static/images/reviews/jacob.jpg differ diff --git a/transfersh-server/static/images/reviews/kareem.jpg b/transfersh-server/static/images/reviews/kareem.jpg new file mode 100644 index 0000000..d97e4a9 Binary files /dev/null and b/transfersh-server/static/images/reviews/kareem.jpg differ diff --git a/transfersh-server/static/images/reviews/lars.jpg b/transfersh-server/static/images/reviews/lars.jpg new file mode 100644 index 0000000..d56cdbd Binary files /dev/null and b/transfersh-server/static/images/reviews/lars.jpg differ diff --git a/transfersh-server/static/images/reviews/pg.jpeg b/transfersh-server/static/images/reviews/pg.jpeg new file mode 100644 index 0000000..df9bcc3 Binary files /dev/null and b/transfersh-server/static/images/reviews/pg.jpeg differ diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html index d8c5c7e..ba192b9 100644 --- a/transfersh-server/static/index.html +++ b/transfersh-server/static/index.html @@ -16,20 +16,29 @@ - + + + -

- Upload and share your files -

+ Easy file sharing from the command line + -
-
-

Easy sharing from the command-line

+
+
+

Share from terminal

-
-

From web

+
+

Share from web

@@ -69,8 +77,9 @@
  • -
    - download all files link zip tar.gz +
    +

    Download your files:

    + zip tar.gz
    @@ -78,43 +87,45 @@
    +
    +
    +
    +
    learn more +
    +
    -
    +
    -
    +
    -

    Made for us with shell

    +

    Made for use with shell

    -
    +
    -

    Share files just with a URL

    +

    Share files with a URL

    -
    +

    Upload up to 5 GB

    -
    +
    -

    Files are stored for 14 days

    +

    Files stored for 14 days

    -
    +

    For free

    -
    -
    +
    -

    Encrypt your files

    -
    -
    @@ -124,8 +135,8 @@

    - Sample use cases -

    + Sample use cases +

    Uploading

    @@ -136,40 +147,101 @@

    Make an alias

    -

    Create an alias, and add it to .bashrc for faster use

    - $ 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 -

    Now you can just use transfer command

    + +

    Create an alias, and add it to .bashrc for faster use

    + $ 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 +

    Now you can just use + transfercommand

    $transfer hello.txt + +
    +
    + + + More examples + +
    +
    +
    +

    Transfer multiple files

    +

    Upload multiple files at once +

    + $ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/ + +

    Combining downloads as zip or tar archive

    + $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz +
    + + $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip + + +
    +
    +

    Encrypt your files before the transfer

    +

    You can encrypt files using gpg. The following command will encrypt the data before it leaves your server using the password you enter and upload it to transfer.sh.

    +

    + $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt +

    Encrypt and upload

    + $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt +
    +
    + +
    +
    +
    + +
    +
    +
    + +
    +
    +
    -
    -

    Transfer multiple files

    -

    Upload multiple files at once -

    - $ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/ -

    Combining downloads as zip or tar archive

    - $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz -
    - $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip + + + +
    + +
    -
    -

    Encrypt your files before the transfer

    -

    You can encrypt files using gpg. The following command will encrypt the data before it leaves your server using the password you enter and upload it to transfer.sh.

    -

    - $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt -

    Encrypt and upload

    - $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt +
    + + +
    +
    + +
    + +
    + + +
    +
    + +
    @@ -177,7 +249,7 @@ alias transfer=transfer
    @@ -219,17 +291,27 @@ alias transfer=transfer Fork me on GitHub + + + diff --git a/transfersh-server/static/scripts/main.js b/transfersh-server/static/scripts/main.js index 1135966..04ec95d 100644 --- a/transfersh-server/static/scripts/main.js +++ b/transfersh-server/static/scripts/main.js @@ -1,5 +1,5 @@ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(hb.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=ob[a]={};return _.each(a.match(nb)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+Math.random()}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ub,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:tb.test(c)?_.parseJSON(c):c}catch(e){}sb.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Kb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)rb.set(a[c],"globalEval",!b||rb.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(rb.hasData(a)&&(f=rb.access(a),g=rb.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sb.hasData(a)&&(h=sb.access(a),i=_.extend({},h),sb.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&yb.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Ob[a];return c||(c=t(a,b),"none"!==c&&c||(Nb=(Nb||_("