2020-08-12 11:11:51 +03:00
|
|
|
<form class="well" method="post" action="/paste/create" @submit.prevent="encryptAndSendPaste()">
|
2020-08-12 10:26:17 +03:00
|
|
|
<div class="d-flex justify-content-between">
|
2020-08-12 12:15:01 +03:00
|
|
|
|
2020-08-12 10:26:17 +03:00
|
|
|
<div>
|
2020-08-12 11:11:51 +03:00
|
|
|
<div class="file-upload" v-if="support.fileUpload">
|
2020-08-14 19:20:31 +03:00
|
|
|
<label type="button" class="btn btn-primary upload-file"
|
2020-08-14 11:26:04 +03:00
|
|
|
:disabled="isUploading">{% isUploading ? 'Uploading...': 'Upload file' %}
|
|
|
|
<input type="file" class="hide-upload" id="file-upload" @change="handleUpload($event.target.files)">
|
|
|
|
</label>
|
2012-05-06 21:24:46 +04:00
|
|
|
</div>
|
2020-08-12 12:15:01 +03:00
|
|
|
</div>
|
2012-04-29 19:36:26 +04:00
|
|
|
|
2020-08-12 10:26:17 +03:00
|
|
|
<div class="form-group select-date paste-option">
|
2020-08-12 12:15:01 +03:00
|
|
|
<div class="input-group">
|
|
|
|
<select id="expiration" name="expiration" class="custom-select" v-model="newPaste.expiration">
|
2020-08-12 10:26:17 +03:00
|
|
|
<option value="burn_after_reading">Burn after reading</option>
|
2020-08-12 17:10:37 +03:00
|
|
|
<option selected value="1_day">Expire in 1 day</option>
|
|
|
|
<option value="1_month">Expire in 1 month</option>
|
|
|
|
<option value="never">Never expire</option>
|
2020-08-12 10:26:17 +03:00
|
|
|
</select>
|
2020-08-12 12:15:01 +03:00
|
|
|
<div class="input-group-append">
|
2020-08-12 10:26:17 +03:00
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-08-13 16:25:19 +03:00
|
|
|
<div class="pre-wrapper">
|
2020-08-14 18:10:35 +03:00
|
|
|
|
2020-08-12 12:15:01 +03:00
|
|
|
<div class="progress" v-show="isLoading">
|
|
|
|
<div class="progress-bar progress-bar-striped" role="progressbar"></div>
|
2020-08-11 12:55:29 +03:00
|
|
|
</div>
|
2020-08-14 18:10:35 +03:00
|
|
|
|
2020-08-12 12:15:01 +03:00
|
|
|
<textarea rows="10" style="width:100%;" class="form-control" id="content" name="content" autofocus
|
2020-08-12 15:14:13 +03:00
|
|
|
@keydown.ctrl.enter="encryptAndSendPaste()"></textarea>
|
2020-08-14 18:10:35 +03:00
|
|
|
|
|
|
|
<div class="paste-options">
|
2020-08-15 11:02:57 +03:00
|
|
|
<h6>Optional fields (those are <em>not</em> encrypted):</h6>
|
2020-08-14 18:10:35 +03:00
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
<span class="input-group-text">Title</span>
|
|
|
|
</div>
|
|
|
|
<input type="text" class="form-control paste-excerpt" name="paste-excerpt"
|
2020-08-15 11:02:57 +03:00
|
|
|
placeholder="Anything you type here will be visible by anyone, including search engines."
|
2020-08-14 19:20:31 +03:00
|
|
|
v-model="newPaste.title" maxlength="60">
|
2020-08-14 17:41:45 +03:00
|
|
|
</div>
|
2020-08-14 19:20:31 +03:00
|
|
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
<div class="input-group-prepend">
|
2020-08-15 12:53:32 +03:00
|
|
|
<span class="input-group-text tip" id="basic-addon1">Tip <svg xmlns="http://www.w3.org/2000/svg" width="18"
|
2020-08-15 11:02:57 +03:00
|
|
|
height="18" viewBox="0 0 24 24">
|
|
|
|
<path
|
|
|
|
d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm0 18v-1.511h-.5v1.511h-1v-1.511h-2.484l.25-1.489h.539c.442 0 .695-.425.695-.854v-4.444c0-.416-.242-.702-.683-.702h-.817v-1.5h2.5v-1.5h1v1.5h.5v-1.5h1v1.526c2.158.073 3.012.891 3.257 1.812.29 1.09-.429 2.005-1.046 2.228.75.192 1.789.746 1.789 2.026 0 1.742-1.344 2.908-4 2.908v1.5h-1zm-.5-5.503v2.503c1.984 0 3.344-.188 3.344-1.258 0-1.148-1.469-1.245-3.344-1.245zm0-.997c1.105 0 2.789-.078 2.789-1.25 0-1-1.039-1.25-2.789-1.25v2.5z"
|
2020-08-15 12:53:32 +03:00
|
|
|
fill="#eee" /></svg></span>
|
2020-08-14 19:20:31 +03:00
|
|
|
</div>
|
|
|
|
<input type="text" class="form-control paste-btc-tip-address" name="paste-btc-tip-address"
|
|
|
|
placeholder="Put a BTC address to ask for a tip. Leave it empty to let us use our."
|
|
|
|
v-model="newPaste.btcTipAddress" maxlength="50">
|
2020-08-14 18:10:35 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-08-12 10:26:17 +03:00
|
|
|
</div>
|
|
|
|
|
2020-08-12 12:15:01 +03:00
|
|
|
<div class="form-group select-date paste-option down" v-if="displayBottomToolBar">
|
|
|
|
<div class="input-group">
|
|
|
|
<select id="expiration" name="expiration" class="custom-select" v-model="newPaste.expiration">
|
|
|
|
<option value="burn_after_reading">Burn after reading</option>
|
2020-08-12 17:10:37 +03:00
|
|
|
<option selected value="1_day">Expire in 1 day</option>
|
|
|
|
<option value="1_month">Expire in 1 month</option>
|
|
|
|
<option value="never">Never expire</option>
|
2020-08-12 12:15:01 +03:00
|
|
|
</select>
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
2020-08-12 11:11:51 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-12 12:15:01 +03:00
|
|
|
</div>
|
2020-08-11 12:55:29 +03:00
|
|
|
|
2012-04-24 22:15:38 +04:00
|
|
|
</form>
|
2012-04-24 14:22:59 +04:00
|
|
|
|
2012-04-28 21:55:00 +04:00
|
|
|
|
2015-05-10 20:19:02 +03:00
|
|
|
% rebase("base", settings=settings, pastes_count=pastes_count)
|