mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2025-01-12 20:00:17 +01:00
added promt for quiting while uploading
This commit is contained in:
parent
451e3dde24
commit
d4252e2b20
16 changed files with 521 additions and 195 deletions
|
@ -287,15 +287,17 @@ module.exports = function (grunt) {
|
|||
|
||||
grunt.registerTask('build', [
|
||||
'clean:dist',
|
||||
|
||||
'copy:server',
|
||||
'useminPrepare',
|
||||
'concurrent',
|
||||
'includes:build',
|
||||
'cssmin',
|
||||
'concat',
|
||||
'includes:build',
|
||||
'uglify',
|
||||
'copy',
|
||||
'usemin'
|
||||
'usemin',
|
||||
|
||||
]);
|
||||
|
||||
grunt.registerTask('default', [
|
||||
|
|
134
transfersh-server/static/download.code.html
Normal file
134
transfersh-server/static/download.code.html
Normal file
|
@ -0,0 +1,134 @@
|
|||
<!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 id="download">
|
||||
<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="code"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a href="#" id="copy-link-btn" class="btn-cta btn">copy link</a>
|
||||
<a href="{{.Url}}" class="btn-cta btn"> download</i> </a>
|
||||
<div id="copy-link-wrapper" class="copy-link-wrapper">
|
||||
<p>Press Ctrl / CMD + C to copy link to your clipboard.</p>
|
||||
<input readonly="readonly" type="text" value="{{.Url}}" />
|
||||
</div>
|
||||
<div id="overlay" class="overlay"></div>
|
||||
</div>
|
||||
<script src="scripts/clipboard.js"></script>
|
||||
|
||||
</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>
|
|
@ -14,14 +14,12 @@
|
|||
<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>
|
||||
<body id="download">
|
||||
<script>
|
||||
(function(i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
|
@ -38,85 +36,59 @@
|
|||
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 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>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<section id="home">
|
||||
<div class="wrapper">
|
||||
<br/>
|
||||
<h2>
|
||||
{{.Filename}}</h2>
|
||||
<div>
|
||||
<a href="#" id="copy-link-btn" class="btn-cta btn">copy link</a>
|
||||
<a href="{{.Url}}" class="btn-cta btn"> download</i> </a>
|
||||
<div id="copy-link-wrapper" class="copy-link-wrapper">
|
||||
<p>Press Ctrl / CMD + C to copy link to your clipboard.</p>
|
||||
<input readonly="readonly" type="text" value="{{.Url}}" />
|
||||
</div>
|
||||
<div id="overlay" class="overlay"></div>
|
||||
</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>
|
||||
</section>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
|
|
@ -1,7 +1,110 @@
|
|||
<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='//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 id="download">
|
||||
<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="/">
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<section id="home">
|
||||
<div class="wrapper">
|
||||
<br/>
|
||||
<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 preview-image">
|
||||
<img src="http://placehold.it/400x400" alt="">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
<div>
|
||||
<a href="#" id="copy-link-btn" class="btn-cta btn">copy link</a>
|
||||
<a href="{{.Url}}" class="btn-cta btn"> download</i> </a>
|
||||
<div id="copy-link-wrapper" class="copy-link-wrapper">
|
||||
<p>Press Ctrl / CMD + C to copy link to your clipboard.</p>
|
||||
<input readonly="readonly" type="text" value="{{.Url}}" />
|
||||
</div>
|
||||
<div id="overlay" class="overlay"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
{{.ContentType}}
|
||||
{{.ContentLength}}
|
||||
{{.Filename}}
|
||||
<a href="{{.Url}}">Download</a>
|
||||
</html>
|
||||
|
|
|
@ -9,19 +9,17 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{{.Filename}} - transfer.sh</title>
|
||||
<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'>
|
||||
<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>
|
||||
<body id="download">
|
||||
<script>
|
||||
(function(i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
|
@ -38,39 +36,51 @@
|
|||
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 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>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
<br/>
|
||||
<div>
|
||||
<a href="#" id="copy-link-btn" class="btn-cta btn">copy link</a>
|
||||
<a href="{{.Url}}" class="btn-cta btn"> download</i> </a>
|
||||
<div id="copy-link-wrapper" class="copy-link-wrapper">
|
||||
<p>Press Ctrl / CMD + C to copy link to your clipboard.</p>
|
||||
<input readonly="readonly" type="text" value="{{.Url}}" />
|
||||
</div>
|
||||
<div id="overlay" class="overlay"></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>
|
||||
</section>
|
||||
|
||||
|
||||
<div>
|
||||
<a href="{{.Url}}" class="btn-cta btn-home"> download</i> </a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var uv = document.createElement('script');
|
||||
|
@ -85,7 +95,6 @@
|
|||
<!--[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;
|
||||
|
@ -103,8 +112,10 @@
|
|||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var text = "# Markdown *works*.";
|
||||
|
|
|
@ -45,14 +45,14 @@
|
|||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(-93.957497,-365.26607)"
|
||||
transform="matrix(1,0,0,0.94456233,-93.957497,-345.57658)"
|
||||
id="layer1">
|
||||
<path
|
||||
d="m 85.371201,355.16455 789.901059,0 0,49.98291 -789.901059,0 z"
|
||||
d="m 93.957497,365.85895 750.000003,0 0,31.76074 -750.000003,0 z"
|
||||
id="rect4487"
|
||||
style="fill:#85b5bb;fill-opacity:1;stroke:none" />
|
||||
<g
|
||||
transform="matrix(1.4512649,0,0,-1.4512649,-114.5591,1453.446)"
|
||||
transform="matrix(1.4512649,0,0,-1.4512649,-114.5591,1454.9192)"
|
||||
id="g24"
|
||||
style="fill:#ff7050">
|
||||
<g
|
||||
|
@ -78,7 +78,7 @@
|
|||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(1.4512649,0,0,-1.4512649,-114.5591,1453.507)"
|
||||
transform="matrix(1.4512649,0,0,-1.4512649,-114.5591,1454.9802)"
|
||||
id="g40"
|
||||
style="fill:#ffed5d">
|
||||
<g
|
||||
|
@ -104,7 +104,7 @@
|
|||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(1.4512649,0,0,-1.4512649,-115.0147,1453.4765)"
|
||||
transform="matrix(1.4512649,0,0,-1.4512649,-115.0147,1454.9497)"
|
||||
id="g56"
|
||||
style="fill:#93de7f">
|
||||
<g
|
||||
|
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
6
transfersh-server/static/images/tor.svg
Normal file
6
transfersh-server/static/images/tor.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 22 KiB |
10
transfersh-server/static/includes/download-btn.html
Normal file
10
transfersh-server/static/includes/download-btn.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<div>
|
||||
<a href="#" id="copy-link-btn" class="btn-cta btn">copy link</a>
|
||||
<a href="{{.Url}}" class="btn-cta btn"> download</i> </a>
|
||||
<div id="copy-link-wrapper" class="copy-link-wrapper">
|
||||
<p>Press Ctrl / CMD + C to copy link to your clipboard.</p>
|
||||
<input readonly="readonly" type="text" value="{{.Url}}" />
|
||||
</div>
|
||||
<div id="overlay" class="overlay"></div>
|
||||
</div>
|
||||
<script src="scripts/clipboard.js"></script>
|
|
@ -4,4 +4,44 @@
|
|||
<p>Made with <i class="icon-heart"></i> by <a href="http://dutchcoders.io/" title="Dutch Coders">Dutch Coders</a>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
</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>
|
||||
|
||||
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
<script src="scripts/main.js"></script>
|
||||
|
||||
|
15
transfersh-server/static/includes/navigation.html
Normal file
15
transfersh-server/static/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>
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<script>
|
||||
(function(i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
|
@ -38,19 +38,21 @@
|
|||
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 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>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<section id="home">
|
||||
<div class="wrapper">
|
||||
|
@ -167,8 +169,8 @@
|
|||
<div class="terminal">
|
||||
<code>
|
||||
<span class="code-title"># Add this to .bashrc or its equivalent</span>
|
||||
<br/>transfer() {
|
||||
<br># write to output to tmpfile because of progress bar
|
||||
<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
|
||||
|
@ -230,7 +232,8 @@
|
|||
<span class="code-title"># Scan for malware or viruses using Clamav</span>
|
||||
<br>$ wget http://www.eicar.org/download/eicar.com
|
||||
<br>$ curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan
|
||||
<br><br>
|
||||
<br>
|
||||
<br>
|
||||
<span class="code-title"># Upload malware to VirusTotal, get a permalink in return</span>
|
||||
<br>$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
|
||||
<br>
|
||||
|
@ -244,7 +247,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>
|
||||
|
@ -275,6 +278,17 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<section id="share">
|
||||
<div class="wrapper">
|
||||
<h2>Follow on GitHub</h2>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<iframe src="http://ghbtns.com/github-btn.html?user=dutchcoders&repo=transfer.sh&type=follow&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="300" height="50"></iframe>
|
||||
<iframe src="http://ghbtns.com/github-btn.html?user=dutchcoders&repo=transfer.sh&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="200" height="50"></iframe>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="reviews">
|
||||
<div class="wrapper">
|
||||
<div class="row">
|
||||
|
@ -319,6 +333,8 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section id="share">
|
||||
<div class="wrapper">
|
||||
<h2>Share the love</h2>
|
||||
|
@ -352,58 +368,70 @@
|
|||
</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>
|
||||
|
||||
|
||||
<section id="tor">
|
||||
<div class="wrapper">
|
||||
<a href="https://torproject.com"><img src="images/tor.svg" alt=""></a><br/>
|
||||
<a href="https://jxm5d6emw5rknovg.onion/">https://jxm5d6emw5rknovg.onion/</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<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]-->
|
||||
<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(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>
|
||||
(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>
|
||||
|
||||
|
||||
<script src="scripts/main.js"></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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -346,8 +346,7 @@ include "includes/head.html"
|
|||
|
||||
<section id="tor">
|
||||
<div class="wrapper">
|
||||
|
||||
<a href="https://torproject.com"><img src="images/tor.svg" alt=""> </a><br/>
|
||||
<a href="https://torproject.com"><img src="images/tor.svg" alt=""></a><br/>
|
||||
<a href="https://jxm5d6emw5rknovg.onion/">https://jxm5d6emw5rknovg.onion/</a>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -34,6 +34,11 @@ $(document).ready(function() {
|
|||
$('.upload-progress', $(li)).show();
|
||||
$('.upload-progress .bar', $(li)).css('width', pc + "%");
|
||||
$('.upload-progress span ').empty().append(pc + "%");
|
||||
|
||||
|
||||
$(window).bind('beforeunload', function(){
|
||||
return 'File are still uploading';
|
||||
});
|
||||
}, false);
|
||||
|
||||
xhr.onreadystatechange = function(e) {
|
||||
|
@ -163,4 +168,5 @@ $(document).ready(function() {
|
|||
}, false);
|
||||
})();
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue