* Add some margin space around the prev/next links
* Increase prev/next link font size
* Add prev/next text without link when we're on the first/last page
* Add useful placeholder text to the "board" search
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
Static files are configured using a handful of config values. Static
files can be handled remotely or locally for prod or dev environments,
respectively.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
HTTP_ROOT is the server's root directory to serve from, in case your
domain uses something else.
This is also added to the HTML templates.
Also added a news.html template for any sitewide news.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
* chanbans.config handles all configuration now
* python-dotenv dependency is added for basic environment-level
configuration
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
* Add HTTP server base implementation with some basic pages
* Add Jinja2 dependency
* Things are mostly working, except for static resources. Those will
have to come next.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This takes a number of arguments that can help narrow down a search
query. It's not safe against % injection so be careful :^)
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This checks the received JSON against following columns:
* now
* time
* md5
* com
* sub
* board
and will add them to the database if they don't exist.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
SQL keywords are now lowercase, matching the rest of the program.
Previously: INSERT INTO ...
Now: insert into ...
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
Database conversion was not taking the "trip" field into account. Also,
remove debug message that I accidentally had left in there.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
The old database format would keep the post data in a JSON string.
Now, post data is broken out into individual columns for searching more
easily.
Additionally, a convert script has been provided.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
* pull - will download thumbnails and update the database
* serve - (in the future) will run an HTTP frontend server to display
the pulled data
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
All functions were previously in __main__.py but now they've been split
out to separate modules for better reuse.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>