Massive graphical overhaul
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<title>PixelDrain ~ API Documentation</title>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/global.css"/>
|
||||
<link rel="stylesheet" href="/res/style/layout.css"/>
|
||||
<link rel="stylesheet" href="/res/style/apidoc.css"/>
|
||||
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'/>
|
||||
|
@@ -5,6 +5,7 @@
|
||||
<title>PixelDrain ~ Error</title>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/global.css"/>
|
||||
<link rel="stylesheet" href="/res/style/layout.css"/>
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css"/>
|
||||
|
@@ -5,8 +5,9 @@
|
||||
<title>{{.Title}}</title>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/global.css"/>
|
||||
<link rel="stylesheet" href="/res/style/viewer.css"/>
|
||||
<link rel="stylesheet" href="/res/style/season.css"/>
|
||||
<link rel="stylesheet" href="/res/style/layout.css"/>
|
||||
<link rel="stylesheet" href="/res/style/listview.css"/>
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'/>
|
||||
<link rel="shortcut icon" href="/res/img/tray32.png"/>
|
||||
@@ -35,45 +36,42 @@
|
||||
|
||||
<body>
|
||||
<div id="listNavigator">
|
||||
<img src="/res/img/arrow-left.png" id="arrow-left" alt="Previous Item" onClick="ListNavigator.previousItem();" />
|
||||
<img src="/res/img/arrow-right.png" id="arrow-right" alt="Next Item" onClick="ListNavigator.nextItem();" />
|
||||
<div id="listNavigatorItems"></div>
|
||||
<div id="arrow-left" alt="Previous Item" onClick="ListNavigator.previousItem();"></div>
|
||||
<div id="arrow-right" alt="Next Item" onClick="ListNavigator.nextItem();"></div>
|
||||
</div>
|
||||
<button id="button-expand-toolbar" onClick="Toolbar.toggle();">Show Toolbar</button>
|
||||
<div id="toolbar">
|
||||
<!-- Ugly workaround to get rid of the scrollbar in non-webkit browsers -->
|
||||
<div>
|
||||
<div>
|
||||
<img id="button-expand-toolbar" src="/res/img/toolbar_show.png" alt="Expand Menu"
|
||||
onClick="Toolbar.toggle();"
|
||||
style="position: fixed; visibility:hidden; left: 0px; cursor: pointer" />
|
||||
|
||||
<button class="toolbar-button" onClick="Toolbar.toggle();">Hide Toolbar</button>
|
||||
<button class="toolbar_button button_full_width" onClick="Toolbar.toggle();">Hide Toolbar</button>
|
||||
|
||||
<!--Views: <span id="views" th:text="${data.views}">0</span>--><br/>
|
||||
|
||||
<button id="btnDownload" class="toolbar-button" onClick="Toolbar.download();">
|
||||
<img src="/res/img/floppy_small.png" alt="Download this file"/>
|
||||
<span>Download</span>
|
||||
</button>
|
||||
|
||||
<button id="btnCopy" class="toolbar-button" onClick="Toolbar.copyUrl();">
|
||||
<img src="/res/img/clipboard_small.png" alt="Copy file URL to clipboard"/>
|
||||
<span>Copy</span>
|
||||
</button>
|
||||
|
||||
<button id="btnShare" onClick="Sharebar.toggle();" class="toolbar-button">
|
||||
<img src="/res/img/share_small.png" alt="Share this file on social media"/>
|
||||
<span>Share</span>
|
||||
</button>
|
||||
|
||||
<form action="/" target="_blank">
|
||||
<button id="btnHome" class="toolbar-button">
|
||||
<form action="/" target="_self">
|
||||
<button id="btnHome" class="toolbar_button button_full_width">
|
||||
<img src="/res/img/pixeldrain_small.png" alt="Back to the Home page"/>
|
||||
<span>Home</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<button id="btnDetails" class="toolbar-button" onClick="DetailsWindow.toggle();">
|
||||
<button id="btnDownload" class="toolbar_button button_full_width" onClick="Toolbar.download();">
|
||||
<img src="/res/img/floppy_small.png" alt="Download this file"/>
|
||||
<span>Download</span>
|
||||
</button>
|
||||
|
||||
<button id="btnCopy" class="toolbar_button button_full_width" onClick="Toolbar.copyUrl();">
|
||||
<img src="/res/img/clipboard_small.png" alt="Copy file URL to clipboard"/>
|
||||
<span>Copy</span>
|
||||
</button>
|
||||
|
||||
<button id="btnShare" class="toolbar_button button_full_width" onClick="Sharebar.toggle();">
|
||||
<img src="/res/img/share_small.png" alt="Share this file on social media"/>
|
||||
<span>Share</span>
|
||||
</button>
|
||||
|
||||
<button id="btnDetails" class="toolbar_button button_full_width" onClick="DetailsWindow.toggle();">
|
||||
<img src="/res/img/info_small.png" alt="Help"/>
|
||||
<span>Details</span>
|
||||
</button>
|
||||
@@ -91,39 +89,36 @@
|
||||
</div>
|
||||
|
||||
<div id="sharebar" class="sidebar">
|
||||
<img src="/res/img/arrows-collapse.png" alt="Slide Menu"
|
||||
onClick="Sharebar.toggle();" class="button-collapse"/>
|
||||
|
||||
Share on:<br/>
|
||||
<button class="sharebar-button" onclick="window.open('https://www.reddit.com/submit?url=' + window.location.href);">
|
||||
<button class="sharebar-button button_full_width" onclick="window.open('https://www.reddit.com/submit?url=' + window.location.href);">
|
||||
<img src="/res/img/social_reddit.png" alt="Share on Reddit" style="width:40px; height: 40px;"/>
|
||||
<br/>Reddit
|
||||
</button>
|
||||
<button class="sharebar-button" onClick="window.open('https://voat.co/submit?linkpost=true&url=' + window.location.href);">
|
||||
<button class="sharebar-button button_full_width" onClick="window.open('https://voat.co/submit?linkpost=true&url=' + window.location.href);">
|
||||
<img src="/res/img/social_voat.png" alt="Share on Voat" style="width:40px; height: 40px;"/>
|
||||
<br/>Voat
|
||||
</button>
|
||||
<button class="sharebar-button" onClick="window.open('http://www.facebook.com/sharer.php?u=' + window.location.href);">
|
||||
<button class="sharebar-button button_full_width" onClick="window.open('http://www.facebook.com/sharer.php?u=' + window.location.href);">
|
||||
<img src="/res/img/social_facebook.png" alt="Share on Facebook" style="width:40px; height: 40px;"/>
|
||||
<br/>Facebook
|
||||
</button>
|
||||
<button class="sharebar-button" onClick="window.open('https://twitter.com/share?text=Check%20out%20this%20file%20on%20%23Pixeldrain&url=' + window.location.href);">
|
||||
<button class="sharebar-button button_full_width" onClick="window.open('https://twitter.com/share?text=Check%20out%20this%20file%20on%20%23Pixeldrain&url=' + window.location.href);">
|
||||
<img src="/res/img/social_twitter.png" alt="Share on Twitter" style="width:40px; height: 40px;"/>
|
||||
<br/>Twitter
|
||||
</button>
|
||||
<button class="sharebar-button" onClick="window.open('https://plus.google.com/share?url=' + window.location.href);">
|
||||
<button class="sharebar-button button_full_width" onClick="window.open('https://plus.google.com/share?url=' + window.location.href);">
|
||||
<img src="/res/img/social_googleplus.png" alt="Share on Google Plus" style="width:40px; height: 40px;"/>
|
||||
<br/>Google+
|
||||
</button>
|
||||
<button class="sharebar-button" onClick="window.open('http://www.tumblr.com/share/link?url=' + window.location.href);">
|
||||
<button class="sharebar-button button_full_width" onClick="window.open('http://www.tumblr.com/share/link?url=' + window.location.href);">
|
||||
<img src="/res/img/social_tumblr.png" alt="Share on Tumblr" style="width:40px; height: 40px;"/>
|
||||
<br/>Tumblr
|
||||
</button>
|
||||
<button class="sharebar-button" onClick="window.open('http://www.stumbleupon.com/submit?url=' + window.location.href);">
|
||||
<button class="sharebar-button button_full_width" onClick="window.open('http://www.stumbleupon.com/submit?url=' + window.location.href);">
|
||||
<img src="/res/img/social_stumbleupon.png" alt="Share on StumbleUpon" style="width:40px; height: 40px;"/>
|
||||
<br/>StumbleUpon
|
||||
</button>
|
||||
<button class="sharebar-button" onClick="window.open('mailto:please@set.address?subject=File%20on%20PixelDrain&body=You%20can%20view%20it%20here%20' + window.location.href);">
|
||||
<button class="sharebar-button button_full_width" onClick="window.open('mailto:please@set.address?subject=File%20on%20PixelDrain&body=You%20can%20view%20it%20here%20' + window.location.href);">
|
||||
<img src="/res/img/social_email.png" alt="Share on E-Mail" style="width:40px; height: 40px;"/>
|
||||
<br/>E-Mail
|
||||
</button>
|
||||
@@ -144,7 +139,7 @@
|
||||
Loading...
|
||||
</div>
|
||||
|
||||
<script src="/res/script/jquery-2.1.4.min.js"></script>
|
||||
<script src="/res/script/jquery.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="/res/script/Keyboard.js"></script>
|
||||
<script src="/res/script/Toolbar.js"></script>
|
||||
|
@@ -32,7 +32,6 @@
|
||||
"file_name": "screenshot.png",
|
||||
"date_upload": 1485894987, // Timestamp
|
||||
"date_last_view": 1485894987, // Timestamp
|
||||
"days_valid": 60, // Days of inactivity until it gets deleted
|
||||
"file_size": 5694837, // Bytes
|
||||
"views" 1234, // Amount of unique file views
|
||||
"mime_type" "image/png",
|
||||
|
@@ -32,41 +32,39 @@
|
||||
</p>
|
||||
<pre>HTTP 200: OK
|
||||
{
|
||||
{
|
||||
"success": true,
|
||||
"id": "L8bhwx",
|
||||
"title": "Rust in Peace",
|
||||
"date_created": 1513033315,
|
||||
"files": [
|
||||
{
|
||||
"detail_href": "/file/_SqVWi/info",
|
||||
"id": "_SqVWi",
|
||||
"file_name": "01 Holy Wars... The Punishment Due.mp3",
|
||||
"description": "",
|
||||
"date_created": 1513033304,
|
||||
"date_last_view": 1513033304,
|
||||
"list_description": ""
|
||||
},
|
||||
{
|
||||
"detail_href": "/file/RKwgZb/info",
|
||||
"id": "RKwgZb",
|
||||
"file_name": "02 Hangar 18.mp3",
|
||||
"description": "",
|
||||
"date_created": 1513033304,
|
||||
"date_last_view": 1513033304,
|
||||
"list_description": ""
|
||||
},
|
||||
{
|
||||
"detail_href": "/file/DRaL_e/info",
|
||||
"id": "DRaL_e",
|
||||
"file_name": "03 Take No Prisoners.mp3",
|
||||
"description": "",
|
||||
"date_created": 1513033304,
|
||||
"date_last_view": 1513033304,
|
||||
"list_description": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
"success": true,
|
||||
"id": "L8bhwx",
|
||||
"title": "Rust in Peace",
|
||||
"date_created": 1513033315,
|
||||
"files": [
|
||||
{
|
||||
"detail_href": "/file/_SqVWi/info",
|
||||
"id": "_SqVWi",
|
||||
"file_name": "01 Holy Wars... The Punishment Due.mp3",
|
||||
"description": "",
|
||||
"date_created": 1513033304,
|
||||
"date_last_view": 1513033304,
|
||||
"list_description": ""
|
||||
},
|
||||
{
|
||||
"detail_href": "/file/RKwgZb/info",
|
||||
"id": "RKwgZb",
|
||||
"file_name": "02 Hangar 18.mp3",
|
||||
"description": "",
|
||||
"date_created": 1513033304,
|
||||
"date_last_view": 1513033304,
|
||||
"list_description": ""
|
||||
},
|
||||
{
|
||||
"detail_href": "/file/DRaL_e/info",
|
||||
"id": "DRaL_e",
|
||||
"file_name": "03 Take No Prisoners.mp3",
|
||||
"description": "",
|
||||
"date_created": 1513033304,
|
||||
"date_last_view": 1513033304,
|
||||
"list_description": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
</pre>
|
||||
<pre>HTTP 404: Not Found
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{{define "footer"}}
|
||||
<br/>
|
||||
<div class="highlight bg-dark border-top border-bottom">
|
||||
<div class="highlight_dark border-top border-bottom">
|
||||
Pixeldrain is a product by <a href="//fornaxian.com" target="_blank">Fornaxian Technologies</a>.
|
||||
</div>
|
||||
{{end}}
|
@@ -1,5 +1,5 @@
|
||||
{{define "menu"}}
|
||||
<div class="highlight bg-light border-top border-bottom menu">
|
||||
<div class="highlight_light border-top border-bottom menu">
|
||||
<a href="/">Home</a> ~
|
||||
<a href="/history">My Files</a> ~
|
||||
<a href="/api">API Documentation</a>
|
||||
|
@@ -5,8 +5,8 @@
|
||||
<title>Upload History ~ PixelDrain</title>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/global.css"/>
|
||||
<link rel="stylesheet" href="/res/style/layout.css"/>
|
||||
<link rel="stylesheet" href="/res/style/season.css"/>
|
||||
<link rel="stylesheet" href="/res/style/history.css"/>
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
{{template "bgpattern"}}
|
||||
|
||||
<script src="res/script/jquery-2.1.4.min.js"></script>
|
||||
<script src="res/script/jquery.js"></script>
|
||||
<script src="res/script/jquery-cookie.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"/>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
|
@@ -5,6 +5,7 @@
|
||||
<title>PixelDrain ~ Free file sharing service</title>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/global.css"/>
|
||||
<link rel="stylesheet" href="/res/style/home.css"/>
|
||||
<link rel="stylesheet" href="/res/style/layout.css"/>
|
||||
<link rel="stylesheet" href="/res/style/history.css"/>
|
||||
@@ -36,10 +37,10 @@
|
||||
<img id="header-image" src="/res/img/header_blackchancery.png" alt="Header image"/>
|
||||
<div id="body" class="body">
|
||||
{{template "menu"}}
|
||||
<div class="highlight bg-middle border-bottom">
|
||||
<div class="highlight_middle border-bottom">
|
||||
<input id="fileInputField" type="file" name="file" multiple='multiple'/>
|
||||
<button id="selectFileButton" class="big-button">Upload Files</button>
|
||||
<button id="textButton" class="big-button" onClick="window.location.href = '/t/'">Upload Text</button><br/>
|
||||
<button id="selectFileButton" class="big_button button_highlight">Upload Files</button>
|
||||
<button id="textButton" class="big_button button_highlight" onClick="window.location.href = '/t/'">Upload Text</button><br/>
|
||||
|
||||
<div id="progress-bar" class="progress-bar">
|
||||
<span class="progress-text"></span>
|
||||
@@ -50,8 +51,8 @@
|
||||
|
||||
<div id="uploads-completed"></div>
|
||||
</div>
|
||||
<div class="highlight bg-dark border-bottom">
|
||||
<a id="btnCreateList" href="#">Create list with uploaded files</a>
|
||||
<div class="highlight_dark border-bottom">
|
||||
<button id="btnCreateList">Create list with uploaded files</button>
|
||||
</div>
|
||||
|
||||
<h1>Pixeldrain Public Beta<img src="/res/img/sia.png" style="height: 40px;"/></h1>
|
||||
@@ -75,8 +76,8 @@
|
||||
The upload restrictions that the main site has haven't been
|
||||
implemented in this version yet, so you can upload as much as
|
||||
you want. The server only has 256 GiB of space available, if it
|
||||
runs out before the Sia integration is stable I won't hesitate
|
||||
to wipe the database and start over.
|
||||
starts running out os space files will be purged from the local
|
||||
filesystem and served from Sia on the next request.
|
||||
</p>
|
||||
<h2>Legality</h2>
|
||||
<p>
|
||||
@@ -130,7 +131,6 @@
|
||||
These will be added soon enough.
|
||||
</p>
|
||||
<ul>
|
||||
<li>File lists</li>
|
||||
<li>Zip explorer</li>
|
||||
<li>Text file viewer (yes, you can upload text but not view it yet)</li>
|
||||
<li>Some video formats (mime type detection is not complete)</li>
|
||||
|
@@ -6,6 +6,7 @@
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/res/style/viewer.css"/>
|
||||
<link rel="stylesheet" href="/res/style/layout.css"/>
|
||||
<link rel="stylesheet" href="/res/style/season.css"/>
|
||||
<link rel="stylesheet" href="/res/style/paste.css"/>
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'/>
|
||||
@@ -29,21 +30,18 @@
|
||||
|
||||
<body>
|
||||
<div id="filepreview">
|
||||
<textarea id="textarea"
|
||||
class="textarea"
|
||||
placeholder="Your text here..."
|
||||
autofocus="autofocus"></textarea>
|
||||
<textarea id="textarea" class="textarea" placeholder="Your text here..." autofocus="autofocus"></textarea>
|
||||
</div>
|
||||
<div id="toolbar">
|
||||
<!-- Ugly workaround to get rid of the scrollbar in non-webkit browsers -->
|
||||
<div>
|
||||
<div>
|
||||
<button class="toolbar-button" onClick="uploadText();">
|
||||
<button class="toolbar_button button_full_width" onClick="uploadText();">
|
||||
<img src="/res/img/upload_small.png" alt="Start Upload"/>
|
||||
<span>Upload</span>
|
||||
</button>
|
||||
<form action="/">
|
||||
<button class="toolbar-button">
|
||||
<button class="toolbar_button button_full_width">
|
||||
<img src="/res/img/pixeldrain_small.png" alt="Visit the home page" style="width:22px; height: 22px;"/>
|
||||
<span>Home</span>
|
||||
</button>
|
||||
|
Reference in New Issue
Block a user