1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00
This commit is contained in:
papee
2020-08-13 16:23:38 +02:00
4 changed files with 20 additions and 16 deletions

View File

@ -4,3 +4,4 @@ sigtools==2.0.2
bottle==0.12.18 bottle==0.12.18
Beaker==1.11.0 Beaker==1.11.0
Paste==3.4.3 Paste==3.4.3
appdirs==1.4.4

View File

@ -1,24 +1,20 @@
# Get error messages and auto reload. # Get error messages and auto reload.
# Don't set this to True in production # Don't set this to True in production
DEBUG = False DEBUG = True
# Port and host the embedded python server should be using # Port and host for the embedded python server
HOST = "127.0.0.1" HOST = "127.0.0.1"
PORT = "3255" PORT = "3255"
# Display a tiny counter for pastes created.
DISPLAY_COUNTER = True
# Refresh counter interval.
REFRESH_COUNTER = 60 # in seconds
# Names/links to insert in the footer. # Names/links to insert in the footer.
# Any link with "mailto:" will be escaped to limit spam, but displayed #
# correctly to the user using JS.
MENU = ( MENU = (
("Create paste", "/"), # internal link. First link will be highlited ("Create paste", "/"), # First link will be highlighted
("Github", "https://github.com/Tygs/0bin"), # external link ("Github", "https://github.com/Tygs/0bin"),
("Faq", "/faq/"), # faq ("Faq", "/faq/"), # You probably want to keep this
("Contact", "mailto:your@email.com"), # email # Any link with "mailto:" will be escaped to limit spam, but displayed
# correctly to the user using JS.
("Contact", "mailto:your@email.com"),
("Zerobin Pastebin", "https://www.0bin.net/"), # Thanks the authors :) ("Zerobin Pastebin", "https://www.0bin.net/"), # Thanks the authors :)
) )
@ -26,6 +22,11 @@ MENU = (
# slow down the user's browser # slow down the user's browser
MAX_SIZE = 1024 * 500 MAX_SIZE = 1024 * 500
# Display a tiny counter for pastes created.
DISPLAY_COUNTER = True
# Refresh counter interval.
REFRESH_COUNTER = 60 # in seconds
# Length of the paste-id string in the url, int from 4 to 27 (length of sha1 digest) # Length of the paste-id string in the url, int from 4 to 27 (length of sha1 digest)
# total number of unique pastes can be calculated as 2^(6*PASTE_ID_LENGTH) # total number of unique pastes can be calculated as 2^(6*PASTE_ID_LENGTH)
# for PASTE_ID_LENGTH=8, for example, it's 2^(6*8) = 281 474 976 710 656 # for PASTE_ID_LENGTH=8, for example, it's 2^(6*8) = 281 474 976 710 656

View File

@ -46,7 +46,6 @@
/* body & other stuff */ /* body & other stuff */
.blk-space { .blk-space {
height: 20px; height: 20px;
display: block; display: block;
@ -98,6 +97,10 @@ blockquote {
/* Footer */ /* Footer */
/* See:
https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
*/
#app { #app {
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;

View File

@ -11,7 +11,6 @@
<link rel="icon" href="/static/img/favicon.ico" /> <link rel="icon" href="/static/img/favicon.ico" />
%if not settings.DEBUG: %if not settings.DEBUG:
<link href="/static/css/style.min.css?{{ VERSION }}" rel="stylesheet" /> <link href="/static/css/style.min.css?{{ VERSION }}" rel="stylesheet" />
%else: %else:
@ -57,7 +56,7 @@
<p>Please enable JavaScript for this website or use a JavaScript-capable web browser.</p> <p>Please enable JavaScript for this website or use a JavaScript-capable web browser.</p>
</noscript> </noscript>
<div class="container-md" id="wrap-content"> <div class="container-md reader-mode" id="wrap-content">
<p :class="'alert alert-' + msg.type" v-for="msg in messages"> <p :class="'alert alert-' + msg.type" v-for="msg in messages">
<a class="close" data-dismiss="alert" href="#" @click="$event.target.parentNode.remove()">×</a> <a class="close" data-dismiss="alert" href="#" @click="$event.target.parentNode.remove()">×</a>