1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Small fix on settings style and requirements

This commit is contained in:
ksamuel 2020-08-13 15:54:50 +02:00
parent ba14ae969e
commit 8f7ed5cddc
3 changed files with 19 additions and 21 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;
@ -293,12 +296,6 @@ form textarea {
clear: both; clear: both;
} }
.previous-pastes canvas {
display: block;
float: left;
margin-right: 5px;
}
html.local-storage .no-local-storage { html.local-storage .no-local-storage {
display: none; display: none;
} }
@ -421,7 +418,6 @@ nav ul li a:hover {
} }
.submenu ul { .submenu ul {
display: none;
position: absolute; position: absolute;
margin: 6px 0 0px 9px; margin: 6px 0 0px 9px;
width: fill-available; width: fill-available;