1
0
Fork 0
mirror of https://github.com/ProjectSynthoria/SynthoriaArchive.git synced 2025-03-12 15:26:56 +02:00
SynthoriaArchive/nyaa
Nicolas F 291f859a4f Use Flask-Assets to minify self-hosted JS files (#468)
* Use Flask-Assets to minify self-hosted JS files

By having Flask-Assets minify the two JS files we ship, namely
main.js and bootstrap-select.js, we can shave off 28406 bytes.

The minified files are generated on startup. If one wishes to
manually clean them up or build them, they can use the
"flask assets" management command, e.g. "flask assets clean".

* Workaround to fix tests

State carries over in tests, which is the dumbest shit ever. Fix it
by clearing the bundles before setting them.
2018-04-04 16:02:05 +02:00
..
static Add some rel attributes to links inside markdown (#461) 2018-03-25 16:30:07 -07:00
templates Use Flask-Assets to minify self-hosted JS files (#468) 2018-04-04 16:02:05 +02:00
views Commit editing time 2018-04-02 13:18:39 -07:00
__init__.py Use Flask-Assets to minify self-hosted JS files (#468) 2018-04-04 16:02:05 +02:00
api_handler.py Move bencoded info dicts from mysql torrent_info table to info_dict directory. DB change! 2018-02-02 20:39:02 +01:00
backend.py Implement comment locking (#439) 2018-03-25 17:03:49 -07:00
bencode.py bencode: fix nontermination on empty or malformed input 2017-07-24 20:53:48 -06:00
email.py [Config change] Password reset by email (#381) 2017-10-08 04:34:40 +03:00
extensions.py Refactor into an app factory [2 of 2] (#322) 2017-08-01 21:02:08 +03:00
forms.py Implement comment locking (#439) 2018-03-25 17:03:49 -07:00
models.py Implement comment locking (#439) 2018-03-25 17:03:49 -07:00
search.py fix mysql error and bad colors in css 2017-09-19 01:32:45 +02:00
template_utils.py Fix keyError from pop (#407) 2017-11-06 23:52:25 +02:00
torrents.py Fix flat PR (#446) 2018-02-04 13:56:29 +01:00
utils.py Redo nuke functionality (#459) 2018-03-25 16:24:44 -07:00