mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-27 06:30:19 +01:00
added grunt-includes, and seprated html files
This commit is contained in:
parent
c210db80d5
commit
0c2c4631fe
19 changed files with 1964 additions and 226 deletions
30
Gruntfile.js
30
Gruntfile.js
|
@ -28,6 +28,10 @@ module.exports = function (grunt) {
|
|||
gruntfile: {
|
||||
files: ['Gruntfile.js']
|
||||
},
|
||||
includes: {
|
||||
files: ['<%= yeoman.app %>/*.html', '.tmp/*.html'],
|
||||
tasks: ['includes:server']
|
||||
},
|
||||
livereload: {
|
||||
options: {
|
||||
livereload: '<%= connect.options.livereload %>'
|
||||
|
@ -37,7 +41,8 @@ module.exports = function (grunt) {
|
|||
'{.tmp,<%= yeoman.app %>}/styles/{,*/}*.css',
|
||||
'{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js',
|
||||
'<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
|
||||
]
|
||||
],
|
||||
tasks: ['includes:server']
|
||||
}
|
||||
},
|
||||
connect: {
|
||||
|
@ -112,6 +117,27 @@ module.exports = function (grunt) {
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
includes: {
|
||||
build: {
|
||||
cwd: '<%= yeoman.app %>',
|
||||
src: ['*.html', 'includes/*.html'],
|
||||
dest: '<%= yeoman.dist %>',
|
||||
options: {
|
||||
flatten: true,
|
||||
banner: ''
|
||||
}
|
||||
},
|
||||
server: {
|
||||
cwd: '<%= yeoman.app %>',
|
||||
src: ['*.html', 'includes/*.html'],
|
||||
dest: '.tmp/',
|
||||
options: {
|
||||
flatten: true,
|
||||
banner: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
// not used since Uglify task does concat,
|
||||
// but still available if needed
|
||||
/*concat: {
|
||||
|
@ -240,6 +266,7 @@ module.exports = function (grunt) {
|
|||
grunt.task.run([
|
||||
'clean:server',
|
||||
'less',
|
||||
'includes:server',
|
||||
'copy:server',
|
||||
'connect:livereload',
|
||||
'watch'
|
||||
|
@ -263,6 +290,7 @@ module.exports = function (grunt) {
|
|||
'copy:server',
|
||||
'useminPrepare',
|
||||
'concurrent',
|
||||
'includes:build',
|
||||
'cssmin',
|
||||
'concat',
|
||||
'uglify',
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
"grunt-contrib-less": "~0.11.4",
|
||||
"grunt-contrib-uglify": "~0.6.0",
|
||||
"grunt-contrib-watch": "~0.6.1",
|
||||
"grunt-include-replace": "^2.0.0",
|
||||
"grunt-includes": "^0.4.5",
|
||||
"grunt-rev": "~0.1.0",
|
||||
"grunt-svgmin": "1.0.0",
|
||||
"grunt-usemin": "~2.4.0",
|
||||
|
|
|
@ -1,7 +1,124 @@
|
|||
<html>
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!-->
|
||||
<html class="no-js">
|
||||
<!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>transfer.sh - Easy and fast file sharing from the command-line.</title>
|
||||
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
|
||||
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||
<script src="scripts/vendor/modernizr.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
(function(i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function() {
|
||||
(i[r].q = i[r].q || []).push(arguments)
|
||||
}, i[r].l = 1 * new Date();
|
||||
a = s.createElement(o),
|
||||
m = s.getElementsByTagName(o)[0];
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<div id="navigation">
|
||||
<div class="wrapper">
|
||||
<a href="#home">
|
||||
<h1>transfer.sh</h1></a>
|
||||
<ul class="hidden-xs">
|
||||
<li><a href="#home">home</a>
|
||||
</li>
|
||||
<li><a href="#samples">sample use cases</a>
|
||||
</li>
|
||||
<li><a href="#contact">contact us</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section id="home">
|
||||
<div class="wrapper">
|
||||
<h2>
|
||||
{{.Filename}}</h2>
|
||||
<a href="{{.Url}}"></a>
|
||||
<div class="row animated fadeInDown">
|
||||
<div id="from-terminal" class=" box col-md-8 col-md-offset-2 col-xs-12">
|
||||
<div class="terminal-top">
|
||||
|
||||
</div>
|
||||
<div id="terminal" class="terminal">
|
||||
<div class="preview-wrapper">
|
||||
<div id="md-preview"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<a href="{{.Url}}" class="btn-cta btn-home"> download</i> </a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var uv = document.createElement('script');
|
||||
uv.type = 'text/javascript';
|
||||
uv.async = true;
|
||||
uv.src = '//widget.uservoice.com/5rkATbLIm8ClJQeOirOhFg.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(uv, s)
|
||||
})()
|
||||
</script>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<script>
|
||||
(function(b, o, i, l, e, r) {
|
||||
b.GoogleAnalyticsObject = l;
|
||||
b[l] || (b[l] =
|
||||
function() {
|
||||
(b[l].q = b[l].q || []).push(arguments)
|
||||
});
|
||||
b[l].l = +new Date;
|
||||
e = o.createElement(i);
|
||||
r = o.getElementsByTagName(i)[0];
|
||||
e.src = '//www.google-analytics.com/analytics.js';
|
||||
r.parentNode.insertBefore(e, r)
|
||||
}(window, document, 'script', 'ga'));
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
var text = "# Markdown *works*"
|
||||
var converter = new Showdown.converter();
|
||||
var html = converter.makeHtml(text);
|
||||
$('#md-preview').append(html);
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
{{.ContentType}}
|
||||
{{.ContentLength}}
|
||||
{{.Filename}}
|
||||
<a href="{{.Url}}">Download</a>
|
||||
</html>
|
121
transfersh-server/static/download.md.html
Normal file
121
transfersh-server/static/download.md.html
Normal file
|
@ -0,0 +1,121 @@
|
|||
<!doctype html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!-->
|
||||
<html class="no-js">
|
||||
<!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{{.Filename}} - transfer.sh</title>
|
||||
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
|
||||
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||
<script src="scripts/vendor/modernizr.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
(function(i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function() {
|
||||
(i[r].q = i[r].q || []).push(arguments)
|
||||
}, i[r].l = 1 * new Date();
|
||||
a = s.createElement(o),
|
||||
m = s.getElementsByTagName(o)[0];
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<div id="navigation">
|
||||
<div class="wrapper">
|
||||
<h1>transfer.sh</h1>
|
||||
<ul class="hidden-xs">
|
||||
<li><a href="#samples">sample use cases</a>
|
||||
</li>
|
||||
<li><a href="#contact">contact us</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section id="home">
|
||||
<div class="wrapper">
|
||||
<h2>
|
||||
{{.Filename}}</h2>
|
||||
<a href="{{.Url}}"></a>
|
||||
<div class="row animated fadeInDown">
|
||||
<div id="from-terminal" class=" box col-md-8 col-md-offset-2 col-xs-12">
|
||||
<div class="terminal-top">
|
||||
|
||||
</div>
|
||||
<div id="terminal" class="terminal">
|
||||
<div id="md-preview"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<a href="{{.Url}}" class="btn-cta btn-home"> download</i> </a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var uv = document.createElement('script');
|
||||
uv.type = 'text/javascript';
|
||||
uv.async = true;
|
||||
uv.src = '//widget.uservoice.com/5rkATbLIm8ClJQeOirOhFg.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(uv, s)
|
||||
})()
|
||||
</script>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<script>
|
||||
(function(b, o, i, l, e, r) {
|
||||
b.GoogleAnalyticsObject = l;
|
||||
b[l] || (b[l] =
|
||||
function() {
|
||||
(b[l].q = b[l].q || []).push(arguments)
|
||||
});
|
||||
b[l].l = +new Date;
|
||||
e = o.createElement(i);
|
||||
r = o.getElementsByTagName(i)[0];
|
||||
e.src = '//www.google-analytics.com/analytics.js';
|
||||
r.parentNode.insertBefore(e, r)
|
||||
}(window, document, 'script', 'ga'));
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
var text = "# Markdown *works*.";
|
||||
|
||||
var converter = new Showdown.converter();
|
||||
var html = converter.makeHtml(text);
|
||||
$('#md-preview').append(html);
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
7
transfersh-server/static/includes/footer.html
Normal file
7
transfersh-server/static/includes/footer.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<footer>
|
||||
<div class="wrapper">
|
||||
<img src="images/Logo-orange.png" alt="Founded in Holland">
|
||||
<p>Made with <i class="icon-heart"></i> by <a href="http://dutchcoders.io/" title="Dutch Coders">Dutch Coders</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
12
transfersh-server/static/includes/head.html
Normal file
12
transfersh-server/static/includes/head.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>transfer.sh - Easy and fast file sharing from the command-line.</title>
|
||||
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||
<link href='//fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||
<script src="scripts/vendor/modernizr.js"></script>
|
||||
</head>
|
2
transfersh-server/static/includes/js.html
Normal file
2
transfersh-server/static/includes/js.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<script src="scripts/main.js"></script>
|
||||
|
|
@ -11,16 +11,15 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>transfer.sh - Easy and fast file sharing from the command-line.</title>
|
||||
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300" rel="stylesheet" type="text/css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400" rel="stylesheet" type="text/css">
|
||||
<link href="http://fonts.googleapis.com/css?family=Droid+Sans+Mono" rel="stylesheet" type="text/css">
|
||||
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||
<link href='//fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||
<script src="scripts/vendor/modernizr.js"></script>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<script>
|
||||
|
@ -51,12 +50,14 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<section id="home">
|
||||
<div class="wrapper">
|
||||
<h2>
|
||||
Easy file sharing from the command line</h2>
|
||||
<div class="row animated fadeInDown">
|
||||
<div id="from-terminal" class="box col-md-8 col-md-offset-2 col-xs-12">
|
||||
<div id="from-terminal" class=" box col-md-8 col-md-offset-2 col-xs-12">
|
||||
<div class="terminal-top">
|
||||
|
||||
</div>
|
||||
|
@ -77,17 +78,17 @@
|
|||
<span class="code-title"># Upload from web</span>
|
||||
<br>Drag your files here, or <a class="browse" href="#"> click to browse.</a>
|
||||
</code>
|
||||
<input type="file" multiple="multiple" style="display: none">
|
||||
<ul class="queue">
|
||||
<input type="file" multiple="multiple" style='display: none;' />
|
||||
<ul class='queue'>
|
||||
<li>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="all-files">
|
||||
<div class='all-files'>
|
||||
<br>
|
||||
<div>
|
||||
<span class="code-title"># Download all your files</span>
|
||||
<br>
|
||||
<br>
|
||||
<br/>
|
||||
<br/>
|
||||
<a class="download-zip btn-cta" href="#">zip</a> <a class="download-tar btn-cta" href="#">tar.gz</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -95,16 +96,16 @@
|
|||
</div>
|
||||
|
||||
<div>
|
||||
<a href="#features" class="btn-cta btn-home">learn more </a>
|
||||
<a href="#features" class="btn-cta btn-home">learn more</i> </a>
|
||||
</div>
|
||||
</div>
|
||||
</div></section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section id="features">
|
||||
<div class="wrapper container">
|
||||
<div class="row animated fadeInDown">
|
||||
<div class="row animated fadeInDown ">
|
||||
<div class="col-md-3 col-xs-6">
|
||||
<i class="icon-terminal"></i>
|
||||
<h3>Made for use with shell</h3>
|
||||
|
@ -122,7 +123,7 @@
|
|||
<h3>Files stored for 14 days</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row animated fadeInDown">
|
||||
<div class="row animated fadeInDown">
|
||||
<div class="col-md-offset-3 col-md-3 col-xs-6">
|
||||
<i class="icon-tag"></i>
|
||||
<h3>For free</h3>
|
||||
|
@ -143,7 +144,7 @@
|
|||
Sample use cases
|
||||
</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-6 ">
|
||||
<h3>How to upload</h3>
|
||||
<div class="terminal-top">
|
||||
|
||||
|
@ -159,20 +160,20 @@
|
|||
</code>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-6 ">
|
||||
<h3>Create an alias and add it to .bashrc or .zshrc</h3>
|
||||
<div class="terminal-top">
|
||||
</div>
|
||||
<div class="terminal">
|
||||
<code>
|
||||
<span class="code-title"># Add this to .bashrc or its equivalent</span>
|
||||
<br>transfer() {
|
||||
<br/>transfer() {
|
||||
<br># write to output to tmpfile because of progress bar
|
||||
<br>tmpfile=$( mktemp -t transferXXX ); curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
|
||||
<br>
|
||||
<br>alias transfer=transfer
|
||||
<br>
|
||||
<br>
|
||||
<br/>
|
||||
<br/>alias transfer=transfer
|
||||
<br/>
|
||||
<br/>
|
||||
<span class="code-title"># Now you can use transfer command</span>
|
||||
<br>$ transfer hello.txt
|
||||
</code>
|
||||
|
@ -183,9 +184,9 @@
|
|||
|
||||
<a class="btn-cta" data-target="#coll" data-toggle="collapse">More examples</a>
|
||||
|
||||
<div class="collapse" id="coll">
|
||||
<div class="collapse " id="coll">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-6 ">
|
||||
<h3>Upload multiple files at once</h3>
|
||||
<div class="terminal-top">
|
||||
</div>
|
||||
|
@ -196,13 +197,13 @@
|
|||
<br>
|
||||
<span class="code-title"># Combining downloads as zip or tar archive</span>
|
||||
<br>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
|
||||
<br>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip
|
||||
<br/>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip
|
||||
</code>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-6 ">
|
||||
<h3>Encrypt your files before the transfer</h3>
|
||||
<div class="terminal-top">
|
||||
</div>
|
||||
|
@ -243,7 +244,7 @@
|
|||
<div class="terminal">
|
||||
<code>
|
||||
<span class="code-title"># Backup, encrypt and transfer</span>
|
||||
<br>$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt </code>
|
||||
<br/>$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt </code>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -255,7 +256,7 @@
|
|||
<div class="terminal">
|
||||
<code>
|
||||
<span class="code-title"># Transfer and send email with link (uses alias)</span>
|
||||
<br>$ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com
|
||||
<br/>$ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com
|
||||
</code>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -323,18 +324,18 @@
|
|||
<h2>Share the love</h2>
|
||||
<ul class="share-buttons">
|
||||
<li>
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Ftransfer.sh&t=" target="_blank" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false"> <i class="icon-facebook"></i>
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Ftransfer.sh&t=" target="_blank" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;"> <i class="icon-facebook"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://twitter.com/intent/tweet?source=http%3A%2F%2Ftransfer.sh&text=:%20http%3A%2F%2Ftransfer.sh" target="_blank" title="Tweet" onclick="window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent(document.title) + ':%20' + encodeURIComponent(document.URL)); return false"> <i class="icon-twitter"></i>
|
||||
</a></li>
|
||||
<a href="https://twitter.com/intent/tweet?source=http%3A%2F%2Ftransfer.sh&text=:%20http%3A%2F%2Ftransfer.sh" target="_blank" title="Tweet" onclick="window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent(document.title) + ':%20' + encodeURIComponent(document.URL)); return false;"> <i class="icon-twitter"></i>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://plus.google.com/share?url=http%3A%2F%2Ftransfer.sh" target="_blank" title="Share on Google+" onclick="window.open('https://plus.google.com/share?url=' + encodeURIComponent(document.URL)); return false"> <i class="icon-gplus"></i>
|
||||
<a href="https://plus.google.com/share?url=http%3A%2F%2Ftransfer.sh" target="_blank" title="Share on Google+" onclick="window.open('https://plus.google.com/share?url=' + encodeURIComponent(document.URL)); return false;"> <i class="icon-gplus"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Ftransfer.sh&title=&summary=&source=http%3A%2F%2Ftransfer.sh" target="_blank" title="Share on LinkedIn" onclick="window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false"> <i class="icon-linkedin"></i>
|
||||
<a href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Ftransfer.sh&title=&summary=&source=http%3A%2F%2Ftransfer.sh" target="_blank" title="Share on LinkedIn" onclick="window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;"> <i class="icon-linkedin"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -351,16 +352,19 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="wrapper">
|
||||
<img src="images/Logo-orange.png" alt="Founded in Holland">
|
||||
<p>Made with <i class="icon-heart"></i> by <a href="http://dutchcoders.io/" title="Dutch Coders">Dutch Coders</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<footer>
|
||||
<div class="wrapper">
|
||||
<img src="images/Logo-orange.png" alt="Founded in Holland">
|
||||
<p>Made with <i class="icon-heart"></i> by <a href="http://dutchcoders.io/" title="Dutch Coders">Dutch Coders</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
|
||||
<a href="https://github.com/dutchcoders/transfer.sh/">
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
|
||||
</a>
|
||||
|
||||
<script>
|
||||
|
@ -395,7 +399,10 @@
|
|||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -6,71 +6,47 @@
|
|||
<html class="no-js">
|
||||
<!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>transfer.sh - Easy and fast file sharing from the command-line.</title>
|
||||
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
|
||||
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||
<!-- build:js scripts/vendor/modernizr.js -->
|
||||
<script src="bower_components/modernizr/modernizr.js"></script>
|
||||
<!-- endbuild -->
|
||||
</head>
|
||||
include "includes/head.html"
|
||||
|
||||
<body>
|
||||
<script>
|
||||
(function(i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function() {
|
||||
(i[r].q = i[r].q || []).push(arguments)
|
||||
}, i[r].l = 1 * new Date();
|
||||
a = s.createElement(o),
|
||||
(function (i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function () {
|
||||
(i[r].q = i[r].q || []).push(arguments)
|
||||
}, i[r].l = 1 * new Date();
|
||||
a = s.createElement(o),
|
||||
m = s.getElementsByTagName(o)[0];
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<div id="navigation">
|
||||
<div class="wrapper">
|
||||
<a href="#home">
|
||||
<h1>transfer.sh</h1></a>
|
||||
<ul class="hidden-xs">
|
||||
<li><a href="#home">home</a>
|
||||
</li>
|
||||
<li><a href="#samples">sample use cases</a>
|
||||
</li>
|
||||
<li><a href="#contact">contact us</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
include "includes/navigation.html"
|
||||
|
||||
|
||||
|
||||
<section id="home">
|
||||
<div class="wrapper">
|
||||
<h2>
|
||||
{{.Filename}}</h2>
|
||||
<a href="{{.Url}}"></a>
|
||||
<!--
|
||||
<div class="row animated fadeInDown">
|
||||
<div id="from-terminal" class=" box col-md-8 col-md-offset-2 col-xs-12">
|
||||
<div class="terminal-top">
|
||||
|
||||
</div>
|
||||
<div id="terminal" class="terminal">
|
||||
<div class="preview-wrapper">
|
||||
<div id="md-preview"></div>
|
||||
</div>
|
||||
<div class="preview-wrapper">
|
||||
<div id="md-preview"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
-->
|
||||
|
||||
<div>
|
||||
<a href="{{.Url}}" class="btn-cta btn-home"> download</i> </a>
|
||||
|
@ -79,56 +55,14 @@
|
|||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var uv = document.createElement('script');
|
||||
uv.type = 'text/javascript';
|
||||
uv.async = true;
|
||||
uv.src = '//widget.uservoice.com/5rkATbLIm8ClJQeOirOhFg.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(uv, s)
|
||||
})()
|
||||
</script>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
include "includes/footer.html"
|
||||
include "includes/js.html"
|
||||
|
||||
<script>
|
||||
(function(b, o, i, l, e, r) {
|
||||
b.GoogleAnalyticsObject = l;
|
||||
b[l] || (b[l] =
|
||||
function() {
|
||||
(b[l].q = b[l].q || []).push(arguments)
|
||||
});
|
||||
b[l].l = +new Date;
|
||||
e = o.createElement(i);
|
||||
r = o.getElementsByTagName(i)[0];
|
||||
e.src = '//www.google-analytics.com/analytics.js';
|
||||
r.parentNode.insertBefore(e, r)
|
||||
}(window, document, 'script', 'ga'));
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<!-- build:js scripts/main.js -->
|
||||
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||
<script src="bower_components/highlightjs/highlight.pack.js"></script>
|
||||
<!-- </*script*/ src="bower_components/typed.js/js/typed.js"></script> -->
|
||||
<script src="bower_components/uri.js/src/URI.min.js"></script>
|
||||
<script src="bower_components/bootstrap/js/transition.js"></script>
|
||||
<script src="bower_components/bootstrap/js/collapse.js"></script>
|
||||
<script src="scripts/showdown.js"></script>
|
||||
<script src="scripts/main.js"></script>
|
||||
<!-- endbuild -->
|
||||
|
||||
<script>
|
||||
|
||||
var text = "# Markdown *works*"
|
||||
var converter = new Showdown.converter();
|
||||
var html = converter.makeHtml(text);
|
||||
$('#md-preview').append(html);
|
||||
|
||||
var text = "# Markdown *works*"
|
||||
var converter = new Showdown.converter();
|
||||
var html = converter.makeHtml(text);
|
||||
$('#md-preview').append(html);
|
||||
</script>
|
||||
|
||||
|
||||
|
|
47
transfersh-web/includes/footer.html
Normal file
47
transfersh-web/includes/footer.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<footer>
|
||||
<div class="wrapper">
|
||||
<img src="images/Logo-orange.png" alt="Founded in Holland">
|
||||
<p>Made with <i class="icon-heart"></i> by <a href="http://dutchcoders.io/" title="Dutch Coders">Dutch Coders</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<a href="https://github.com/dutchcoders/transfer.sh/">
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
|
||||
</a>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var uv = document.createElement('script');
|
||||
uv.type = 'text/javascript';
|
||||
uv.async = true;
|
||||
uv.src = '//widget.uservoice.com/5rkATbLIm8ClJQeOirOhFg.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(uv, s)
|
||||
})()
|
||||
</script>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<script>
|
||||
(function(b, o, i, l, e, r) {
|
||||
b.GoogleAnalyticsObject = l;
|
||||
b[l] || (b[l] =
|
||||
function() {
|
||||
(b[l].q = b[l].q || []).push(arguments)
|
||||
});
|
||||
b[l].l = +new Date;
|
||||
e = o.createElement(i);
|
||||
r = o.getElementsByTagName(i)[0];
|
||||
e.src = '//www.google-analytics.com/analytics.js';
|
||||
r.parentNode.insertBefore(e, r)
|
||||
}(window, document, 'script', 'ga'));
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
|
||||
|
14
transfersh-web/includes/head.html
Normal file
14
transfersh-web/includes/head.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>transfer.sh - Easy and fast file sharing from the command-line.</title>
|
||||
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||
<link href='//fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||
<!-- build:js scripts/vendor/modernizr.js -->
|
||||
<script src="bower_components/modernizr/modernizr.js"></script>
|
||||
<!-- endbuild -->
|
||||
</head>
|
8
transfersh-web/includes/js.html
Normal file
8
transfersh-web/includes/js.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!-- build:js scripts/main.js -->
|
||||
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||
<script src="bower_components/uri.js/src/URI.min.js"></script>
|
||||
<script src="bower_components/bootstrap/js/transition.js"></script>
|
||||
<script src="bower_components/bootstrap/js/collapse.js"></script>
|
||||
<script src="scripts/main.js"></script>
|
||||
<!-- endbuild -->
|
||||
|
15
transfersh-web/includes/navigation.html
Normal file
15
transfersh-web/includes/navigation.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<div id="navigation">
|
||||
<div class="wrapper">
|
||||
<a href="/">
|
||||
<h1>transfer.sh</h1>
|
||||
</a>
|
||||
<ul class="hidden-xs">
|
||||
<li><a href="/">home</a>
|
||||
</li>
|
||||
<li><a href="/#samples">sample use cases</a>
|
||||
</li>
|
||||
<li><a href="/#contact">contact us</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
|
@ -6,20 +6,8 @@
|
|||
<html class="no-js">
|
||||
<!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>transfer.sh - Easy and fast file sharing from the command-line.</title>
|
||||
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||
<link href='//fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||
<!-- build:js scripts/vendor/modernizr.js -->
|
||||
<script src="bower_components/modernizr/modernizr.js"></script>
|
||||
<!-- endbuild -->
|
||||
</head>
|
||||
include "includes/head.html"
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
|
@ -39,17 +27,7 @@
|
|||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<div id="navigation">
|
||||
<div class="wrapper">
|
||||
<h1>transfer.sh</h1>
|
||||
<ul class="hidden-xs">
|
||||
<li><a href="#samples">sample use cases</a>
|
||||
</li>
|
||||
<li><a href="#contact">contact us</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
include "includes/navigation.html"
|
||||
|
||||
<section id="home">
|
||||
<div class="wrapper">
|
||||
|
@ -351,57 +329,13 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="wrapper">
|
||||
<img src="images/Logo-orange.png" alt="Founded in Holland">
|
||||
<p>Made with <i class="icon-heart"></i> by <a href="http://dutchcoders.io/" title="Dutch Coders">Dutch Coders</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<a href="https://github.com/dutchcoders/transfer.sh/">
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
|
||||
</a>
|
||||
include "includes/footer.html"
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var uv = document.createElement('script');
|
||||
uv.type = 'text/javascript';
|
||||
uv.async = true;
|
||||
uv.src = '//widget.uservoice.com/5rkATbLIm8ClJQeOirOhFg.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(uv, s)
|
||||
})()
|
||||
</script>
|
||||
include "includes/js.html"
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<script>
|
||||
(function(b, o, i, l, e, r) {
|
||||
b.GoogleAnalyticsObject = l;
|
||||
b[l] || (b[l] =
|
||||
function() {
|
||||
(b[l].q = b[l].q || []).push(arguments)
|
||||
});
|
||||
b[l].l = +new Date;
|
||||
e = o.createElement(i);
|
||||
r = o.getElementsByTagName(i)[0];
|
||||
e.src = '//www.google-analytics.com/analytics.js';
|
||||
r.parentNode.insertBefore(e, r)
|
||||
}(window, document, 'script', 'ga'));
|
||||
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<!-- build:js scripts/main.js -->
|
||||
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||
<script src="bower_components/uri.js/src/URI.min.js"></script>
|
||||
<script src="bower_components/bootstrap/js/transition.js"></script>
|
||||
<script src="bower_components/bootstrap/js/collapse.js"></script>
|
||||
<script src="scripts/main.js"></script>
|
||||
<!-- endbuild -->
|
||||
|
||||
</body>
|
||||
|
||||
|
|
1490
transfersh-web/scripts/typewriter-bundle.js
Normal file
1490
transfersh-web/scripts/typewriter-bundle.js
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue