remove typescript
This commit is contained in:
10
res/template/fragments/html_templates.html
Normal file
10
res/template/fragments/html_templates.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{define "tpl_file_button"}}
|
||||
<template id="tpl_file_button">
|
||||
<a class="file_button" target="_blank">
|
||||
<img src="/api/file/xWwGvj9f/thumbnail?width=80&height=80" alt="24000.jpg" />
|
||||
<span style="color: var(--highlight_color);">24000.jpg</span>
|
||||
<br/>
|
||||
2020-01-20 10:06:56
|
||||
</a>
|
||||
</template>
|
||||
{{end}}
|
@@ -3,9 +3,6 @@
|
||||
<head>
|
||||
{{template "meta_tags" "Upload History"}}
|
||||
{{template "user_style" .}}
|
||||
<script src="res/script/jquery.js"></script>
|
||||
<script src="res/script/jquery-cookie.js"></script>
|
||||
<script>var apiEndpoint = '{{.APIEndpoint}}';</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id='body' class="body">
|
||||
@@ -18,10 +15,14 @@
|
||||
</p>
|
||||
<br/>
|
||||
|
||||
<div id="uploadedFiles" class="highlight_dark"></div>
|
||||
<div id="uploaded_files" class="highlight_dark"></div>
|
||||
</div></div>
|
||||
{{template "page_bottom" .}}
|
||||
<script>{{template `history.js`}}</script>
|
||||
<script>
|
||||
let apiEndpoint = '{{.APIEndpoint}}';
|
||||
{{template `util.js`}}
|
||||
{{template `history.js`}}
|
||||
</script>
|
||||
{{template "analytics"}}
|
||||
</body>
|
||||
</html>{{end}}
|
||||
|
@@ -56,8 +56,8 @@
|
||||
manager
|
||||
</div></div>
|
||||
<input id="file_input_field" type="file" name="file" multiple="multiple"/>
|
||||
<button id="select_file_button" class="big_button button_highlight">Upload Files</button>
|
||||
<button id="text_button" class="big_button button_highlight" onClick="window.location.href = '/t/'">Upload Text</button>
|
||||
<button id="upload_file_button" class="big_button button_highlight"><u>U</u>pload Files</button>
|
||||
<button id="upload_text_button" class="big_button button_highlight">Upload <u>T</u>ext</button>
|
||||
<br/>
|
||||
<p>
|
||||
By uploading files to pixeldrain you accept that a cookie will
|
||||
@@ -76,30 +76,30 @@
|
||||
</div>
|
||||
<div id="instruction_3_after" style="display: none">
|
||||
<div id="navigator_share_button" style="display: inline-block">
|
||||
<button class="social_button" onclick="shareButton()">
|
||||
<button id="btn_social_share" class="social_button">
|
||||
{{template `share.svg` .}}<br/>Share
|
||||
</button>
|
||||
</div>
|
||||
<button id="btn_copy_link" class="social_button" style="display: inline-block" onclick="copyLink()">
|
||||
<button id="btn_copy_link" class="social_button" style="display: inline-block">
|
||||
{{template `copy.svg` .}}<br/><span><u>C</u>opy link</span>
|
||||
</button>
|
||||
<button id="btn_open_link" class="social_button" style="display: inline-block" onclick="openLink()">
|
||||
<button id="btn_open_link" class="social_button" style="display: inline-block">
|
||||
{{template `open_in_new.svg` .}}<br/><span>Open link</span>
|
||||
</button>
|
||||
<div id="social_buttons" style="display: inline-block">
|
||||
<button class="social_button" onclick="window.open('mailto:please@set.address?subject=File%20on%20pixeldrain&body=' + getShareLink());">
|
||||
<button id="btn_social_email" class="social_button">
|
||||
{{template `email.svg` .}}<br/>E-Mail
|
||||
</button>
|
||||
<button class="social_button" onclick="window.open('https://twitter.com/share?url=' + getShareLink());">
|
||||
<button id="btn_social_twitter" class="social_button">
|
||||
{{template `twitter.svg` .}}<br/>Twitter
|
||||
</button>
|
||||
<button class="social_button" onclick="window.open('http://www.facebook.com/sharer.php?u=' + getShareLink());">
|
||||
<button id="btn_social_facebook" class="social_button">
|
||||
{{template `facebook.svg` .}}<br/>Facebook
|
||||
</button>
|
||||
<button class="social_button" onclick="window.open('https://www.reddit.com/submit?url=' + getShareLink());">
|
||||
<button id="btn_social_reddit" class="social_button">
|
||||
{{template `reddit.svg` .}}<br/>Reddit
|
||||
</button>
|
||||
<button class="social_button" onclick="window.open('http://www.tumblr.com/share/link?url=' + getShareLink());">
|
||||
<button id="btc_social_tumblr" class="social_button">
|
||||
{{template `tumblr.svg` .}}<br/>Tumblr
|
||||
</button>
|
||||
</div>
|
||||
@@ -149,10 +149,10 @@
|
||||
{{template "page_bottom"}}
|
||||
|
||||
<script>
|
||||
var apiEndpoint = '{{.APIEndpoint}}';
|
||||
var API_URL = "/api";
|
||||
{{template "home.js"}}
|
||||
{{template "home_plain.js"}}
|
||||
let apiEndpoint = '{{.APIEndpoint}}';
|
||||
{{template "util.js"}}
|
||||
{{template "UploadManager.js"}}
|
||||
{{template "homepage.js"}}
|
||||
</script>
|
||||
|
||||
{{template "analytics"}}
|
||||
|
@@ -25,8 +25,8 @@
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
/* border: none !important; */
|
||||
background: var(--layer_1_color);
|
||||
color: var(--text_color);
|
||||
}
|
||||
|
||||
.toolbar_button{
|
||||
@@ -60,8 +60,12 @@
|
||||
<textarea id="textarea" class="textarea" placeholder="Your text here..." autofocus="autofocus"></textarea>
|
||||
</div>
|
||||
|
||||
<script src="/res/script/jquery.js"></script>
|
||||
<script>{{template "textupload.js"}}</script>
|
||||
<script>
|
||||
let apiEndpoint = '{{.APIEndpoint}}';
|
||||
{{template "UploadManager.js"}}
|
||||
{{template "util.js"}}
|
||||
{{template "textupload.js"}}
|
||||
</script>
|
||||
|
||||
{{template "analytics"}}
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user