diff --git a/requirements.txt b/requirements.txt index 68e618a..524bed4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ sigtools==2.0.2 bottle==0.12.18 Beaker==1.11.0 Paste==3.4.3 +appdirs==1.4.4 diff --git a/zerobin/default_settings.py b/zerobin/default_settings.py index afefa84..f4e00bf 100644 --- a/zerobin/default_settings.py +++ b/zerobin/default_settings.py @@ -1,24 +1,20 @@ # Get error messages and auto reload. # 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" 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. -# Any link with "mailto:" will be escaped to limit spam, but displayed -# correctly to the user using JS. +# MENU = ( - ("Create paste", "/"), # internal link. First link will be highlited - ("Github", "https://github.com/Tygs/0bin"), # external link - ("Faq", "/faq/"), # faq - ("Contact", "mailto:your@email.com"), # email + ("Create paste", "/"), # First link will be highlighted + ("Github", "https://github.com/Tygs/0bin"), + ("Faq", "/faq/"), # You probably want to keep this + # 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 :) ) @@ -26,6 +22,11 @@ MENU = ( # slow down the user's browser 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) # 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 diff --git a/zerobin/static/css/style.css b/zerobin/static/css/style.css index 96d9811..57a8bf2 100644 --- a/zerobin/static/css/style.css +++ b/zerobin/static/css/style.css @@ -46,7 +46,6 @@ /* body & other stuff */ - .blk-space { height: 20px; display: block; @@ -98,6 +97,10 @@ blockquote { /* Footer */ +/* See: +https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ +*/ + #app { display: flex; min-height: 100vh; @@ -293,12 +296,6 @@ form textarea { clear: both; } -.previous-pastes canvas { - display: block; - float: left; - margin-right: 5px; -} - html.local-storage .no-local-storage { display: none; } @@ -421,7 +418,6 @@ nav ul li a:hover { } .submenu ul { - display: none; position: absolute; margin: 6px 0 0px 9px; width: fill-available;