Browse Source

added sandbox

tags/v1.0.0
Remco 8 years ago
parent
commit
fe4ef83b5c
12 changed files with 52 additions and 74 deletions
  1. +3
    -2
      transfersh-server/codec.go
  2. +5
    -0
      transfersh-server/static/download.audio.html
  3. +5
    -0
      transfersh-server/static/download.html
  4. +5
    -0
      transfersh-server/static/download.image.html
  5. +5
    -0
      transfersh-server/static/download.markdown.html
  6. +5
    -9
      transfersh-server/static/download.sandbox.html
  7. +5
    -0
      transfersh-server/static/download.video.html
  8. +5
    -0
      transfersh-server/static/includes/footer.html
  9. +7
    -27
      transfersh-server/static/index.html
  10. +0
    -9
      transfersh-web/download.sandbox.html
  11. +5
    -0
      transfersh-web/includes/footer.html
  12. +2
    -27
      transfersh-web/index.html

+ 3
- 2
transfersh-server/codec.go View File

@@ -1,7 +1,8 @@
/*
https://github.com/fs111/kurz.go/blob/master/src/codec.go

Copyright (c) 2011 André Kelpe
Originally written and Copyright (c) 2011 André Kelpe
Modifications Copyright (c) 2015 John Ko

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
@@ -30,7 +31,7 @@ import (

const (
// characters used for short-urls
SYMBOLS = "0123456789abcdefghijklmnopqrsuvwxyzABCDEFGHIJKLMNOPQRSTUVXYZ"
SYMBOLS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

// someone set us up the bomb !!
BASE = int64(len(SYMBOLS))


+ 5
- 0
transfersh-server/static/download.audio.html View File

@@ -85,6 +85,11 @@

<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>


+ 5
- 0
transfersh-server/static/download.html View File

@@ -70,6 +70,11 @@
<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>


+ 5
- 0
transfersh-server/static/download.image.html View File

@@ -82,6 +82,11 @@

<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>


+ 5
- 0
transfersh-server/static/download.markdown.html View File

@@ -81,6 +81,11 @@

<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>


+ 5
- 9
transfersh-server/static/download.sandbox.html View File

@@ -65,15 +65,6 @@
<a href="{{.Url}}" class="btn-cta btn"> download</i> </a> <br/><br/>


<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">
<iframe src="{{ .Url }}" id="md-preview" sandbox></iframe>
</div>
</div>
</div>
<br/>

</section>
@@ -81,6 +72,11 @@

<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>


+ 5
- 0
transfersh-server/static/download.video.html View File

@@ -85,6 +85,11 @@

<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>


+ 5
- 0
transfersh-server/static/includes/footer.html View File

@@ -1,5 +1,10 @@
<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>


+ 7
- 27
transfersh-server/static/index.html View File

@@ -218,7 +218,7 @@
<br>$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
<br>
<br>
<span class="code-title"># Encrypt and upload</span>
<span class="code-title"># Download and decrypt</span>
<br>$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
</code>
</div>
@@ -421,31 +421,6 @@
<a href="#" data-uv-trigger class="btn-cta">contact us</a>
</div>
</section>

<section id="thank-you">
<div class="wrapper">
<h2 class="page-title">
Special thanks to </h2>
<br>
<div class="row">
<div class="col-md-4 col-md-offset-2 col-xs-12">
<a class="btn-cta" href="https://twitter.com/remco_verhoef"><i class="icon-twitter"></i> Remco Verhoef</a>

</div>
<div class="col-md-4 col-xs-12">
<a class="btn-cta" href="http://twitter.com/uvisgrinfelds"><i class="icon-twitter"></i> Uvis Grinfelds</a>
</div>
</div>

<h3>Want to be here? Support us!</h3>
<div class="donate">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>
</div>
</section>

<section id="tor">
<div class="wrapper">
<a href="https://www.torproject.org"><img src="images/tor.svg" alt="">
@@ -458,6 +433,11 @@

<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>
@@ -496,4 +476,4 @@

</body>

</html>
</html>

+ 0
- 9
transfersh-web/download.sandbox.html View File

@@ -18,15 +18,6 @@ include "includes/head.html"

include "includes/download-top.html"

<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">
<iframe src="{{ .Url }}" id="md-preview" sandbox></iframe>
</div>
</div>
</div>
<br/>

</section>


+ 5
- 0
transfersh-web/includes/footer.html View File

@@ -1,5 +1,10 @@
<footer>
<div class="wrapper">
<div style="">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>

<br/>
<br/>


+ 2
- 27
transfersh-web/index.html View File

@@ -192,7 +192,7 @@ include "includes/head.html"
<br>$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
<br>
<br>
<span class="code-title"># Encrypt and upload</span>
<span class="code-title"># Download and decrypt</span>
<br>$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
</code>
</div>
@@ -395,31 +395,6 @@ include "includes/head.html"
<a href="#" data-uv-trigger class="btn-cta">contact us</a>
</div>
</section>

<section id="thank-you">
<div class="wrapper">
<h2 class="page-title">
Special thanks to </h2>
<br>
<div class="row">
<div class="col-md-4 col-md-offset-2 col-xs-12">
<a class="btn-cta" href="https://twitter.com/remco_verhoef"><i class="icon-twitter"></i> Remco Verhoef</a>

</div>
<div class="col-md-4 col-xs-12">
<a class="btn-cta" href="http://twitter.com/uvisgrinfelds"><i class="icon-twitter"></i> Uvis Grinfelds</a>
</div>
</div>

<h3>Want to be here? Support us!</h3>
<div class="donate">
<a href="bitcoin:164ybRMLbg1dhhWWiUkXtiNr7jUhMKdJqH" label="Bitcoin+Donation" style="word-wrap: break-word;">
<img border="0" src=" /images/bitcoin.png" style="margin: 0 auto;;">
</a>
</div>
</div>
</section>

<section id="tor">
<div class="wrapper">
<a href="https://www.torproject.org"><img src="images/tor.svg" alt="">
@@ -436,4 +411,4 @@ include "includes/head.html"

</body>

</html>
</html>

Loading…
Cancel
Save