Commit Graph

15 Commits

Author SHA1 Message Date
Stanislav Nikitin 0cca0f453f Database dialects, proper database shutdown, pagination in configuration.
Added possibility to use different database (storage) backends. Currently
supported: flatfiles and mysql. Fixes #2.

Added database shutdown call. This call will properly shutdown database
connections (in case of RDBMS) or flush pastes index cache on disk (in
case of flatfiles).

De-hardcoded pagination count. Fixes #12.
2018-05-27 12:25:01 +05:00
Stanislav Nikitin 342a4d1d7c Templates and templater, added footer with application data. Fixes #8 and #7. 2018-05-26 13:50:13 +05:00
Stanislav Nikitin d7e9865c91 Proper check for paste's password input. Fixes #4 and should also fix #5. 2018-05-26 12:09:53 +05:00
Stanislav Nikitin 94a0a435b6 Passworded pastes are here. 2018-05-18 22:28:04 +05:00
Stanislav Nikitin 8ecf597283 Pastes expiration. 2018-05-17 22:41:21 +05:00
Stanislav Nikitin ec2e885438 README update about current functionality and public pastes saving fix. 2018-05-02 11:29:29 +05:00
Stanislav Nikitin a8c8f6de36 Fix for private pastes can be obtained in RAW mode without TS. 2018-05-01 23:08:12 +05:00
Stanislav Nikitin c926a58276 Private pastes, systemd unit file, design updates.
It is now possible to create private pastes, just check approriate
checkbox.

Added systemd unit file. Don't forget to fix it for your needs!

Updated design for pastes viewing, now paste information shows in
table. Improves mobile experience at least :).
2018-05-01 22:56:45 +05:00
Stanislav Nikitin 64c2d62a49 Design works and viewing raw paste data. 2018-05-01 18:43:06 +05:00
Stanislav Nikitin 850fbb55ab Captcha and design works.
Added captcha generation. As we're working without JS - there is no
possibility to reload image, only if user will reload whole web page.

Some design works - set monospace font for paste textarea (will
use system-defined default monospace font) and lowered font size
in paste views.
2018-05-01 17:45:36 +05:00
Stanislav Nikitin 398aea2697 Syntax highlight and README update. 2018-05-01 14:41:36 +05:00
Stanislav Nikitin 48d43ca097 Pagination, readable error messages to user, syntax highlighting started.
Pagination now works. Temporary hardcoded 10 pastes per page, will be put
in configuration later. Maybe.

From now user will receive readable error message if error occured.

Started to work on syntax highlighting, tried to make lexers detection
work but apparently to no avail.
2018-05-01 02:37:51 +05:00
Stanislav Nikitin 79c7d39759 Moved SQL queries from model to separate queries file. 2018-04-30 23:07:07 +05:00
Stanislav Nikitin c557abbdb8 License header everywhere. We're on MIT. 2018-04-30 22:37:36 +05:00
Stanislav Nikitin 242fb3d361 DDD (Domain Design) partially implemented, added comments everywhere. 2018-04-30 22:31:48 +05:00