add debian building. add asset compile and embedding. other fixes.
This commit is contained in:
56
assets/ui/create.html
Normal file
56
assets/ui/create.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<div class=row ng-show='result != undefined'>
|
||||
<div class=col-xs-12>
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<a class="btn btn-default" ng-click='reload()' type="button">New</a>
|
||||
</span>
|
||||
<input type=text readonly class=form-control select-on-click value="{{$base_url}}/#/{{result.id}}!{{result.key}}">
|
||||
<span class="input-group-btn">
|
||||
<a class='btn btn-default' ng-href='/#/{{result.id}}!{{result.key}}'>Open</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<pre class=col-xs-12> # Command Line: curl -s {{$base_url}}/api/get/{{result.id}} | sed "1,/^\$/d" | openssl aes-256-cbc -d -a -k {{result.key}} <span ng-if='o.zip == true'>| gzip -dc</span>
|
||||
|
||||
{{result.text}}</pre>
|
||||
</div>
|
||||
|
||||
<div ng-hide='result != undefined'>
|
||||
<form name=paste ng-submit='Encrypt(o)'>
|
||||
|
||||
<div class="form form-inline">
|
||||
<ol class='breadcrumb'>
|
||||
<li>
|
||||
<label>Syntax</label>
|
||||
<select class='form-control input-sm' ng-model=o.lang ng-options='i.key as i.val for i in HighliteLang | orderBy:"+val"' ng-init='o.lang = "text"'></select>
|
||||
</li>
|
||||
<li>
|
||||
<label>Expires</label>
|
||||
<select class='form-control input-sm' ng-model=o.exp ng-options='i.key as i.val for i in ExpireTimes | orderBy:"+key"' ng-init='o.exp = 604800'></select>
|
||||
</li>
|
||||
<li>
|
||||
<label><input type=checkbox ng-model='o.burn' /> Burn on Read</label>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<textarea style='font-family: hack,"Anonymous Pro",consolita,monospace' required class='form-control' rows=20 ng-model="o.text"></textarea>
|
||||
<pre>Additional Entropy: {{entropy}} bytes / Content size: {{o.text|blength|default:0}} bytes</pre>
|
||||
|
||||
<button type=submit class='btn btn-default btn-lg btn-block' ng-disabled="o.text == undefined || o.text.length == 0">Encrypt</button>
|
||||
</form>
|
||||
|
||||
<p>Create pastes from the command line! <a href=./paste.sh>paste.sh</a>
|
||||
|
||||
<pre>
|
||||
$ echo /etc/passwd | ./paste.sh
|
||||
|
||||
env options:
|
||||
PASTE_URL - Set the url base for paste operations (default: HTTPS://paste.dn42.us)
|
||||
PASTE_GZIP - 0 = No Compression, 1 = Use gzip compression (default: 0)
|
||||
PASTE_BURN - 0 = No Burn on Read, 1 = Burn on read (default: 0)
|
||||
PASTE_DATE - Value to be used when setting expire date. (default: next-week)
|
||||
</pre>
|
||||
</p>
|
||||
</div>
|
||||
21
assets/ui/view.html
Normal file
21
assets/ui/view.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<div class=row>
|
||||
<div class=col-xs-12>
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<a class="btn btn-default" ng-href='/#/' type="button">New</a>
|
||||
</span>
|
||||
<input type=text readonly class=form-control select-on-click value="{{$base_url}}/#/{{id}}!{{key}}">
|
||||
<span class="input-group-btn">
|
||||
<a class='btn btn-default' ng-click='copy(store.tx)'>Copy</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div ng-if="store.err == undefined">
|
||||
<div class='well well-sm'>
|
||||
<b>Lang:</b> {{store.lang}}, <b>Expires:</b> <span ng-if='store.exp != "burn_on_read"'>{{store.exp*1000|date}}</span><span ng-if='store.exp == "burn_on_read"'>Burn on Read</span>
|
||||
</div>
|
||||
<div hljs language="{{store.lang}}" source="store.tx"></div>
|
||||
<pre class=col-xs-12> # Command Line: curl -s {{$base_url}}/api/get/{{id}} | sed "1,/^\$/d" | openssl aes-256-cbc -d -a -k {{key}} <span ng-if='store.zip != undefined'>| gzip -dc</span>
|
||||
</div>
|
||||
<div ng-if="store.err != undefined"><h3>Error: {{store.err}}</h3></div>
|
||||
Reference in New Issue
Block a user