Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

19 commits

Auteur SHA1 Message Date
PantsuDev
70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
Atvaark
cd844aec45 Replace 'en-us' literals with the default language
This consolidates the places where a default language has to be set.

- Removed import of the 'userService' package into the 'languages' util
  package
  This was required to prevent a cyclic import between the two packages.
- Added a 'UserRetriever' interface to read the language setting of users
  inside the 'languages' package
2017-05-14 22:10:07 +02:00
Jeff Becker
0e8a3cde3b Merge branch 'cache-interface' into merge-cache-interface 2017-05-11 09:24:20 -04:00
Jeff Becker
059ea7d2a8 abstract out cache 2017-05-11 09:01:53 -04:00
Eliot Whalan
c1cafb9d9a Remove broken caching stuff 2017-05-11 22:22:49 +10:00
bakape
7af373b849 cache: Integrate with home handler and add size flag 2017-05-10 13:06:32 +03:00
Chris MacLeod
c9b72206a5 Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* Checkpoint: it builds

The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.

* Style changes and old code removal in router

Router needs a lot of work done to its (lack of) error handling.

* Dead code removal and style changes

Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.

* Finish dead code removal and style changes

Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.

* Fix accidental find-and-replace

* Style, error checking, saftey, bug fix changes

* Redo error checking erased during merge

* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
bakape
a0ae1f7e6a Refactor search
Optimise, error handling and avoid some exploits
2017-05-09 14:31:58 +03:00
bakape
d0d44a4849 Death to reallocations! 2017-05-09 02:56:57 +03:00
ElegantMonkey
9e10102c2d Add translation code to handlers 2017-05-08 16:16:26 -03:00
akuma06
9bc75c86f3 Added logged badge + new User variable in each template variables 2017-05-08 01:46:30 +02:00
Jeff Becker
b599bb1ef2 fix up templates, get reading for Reload template on SIGHUP 2017-05-07 07:51:33 -04:00
tomleb
a6b3ffc0f1 Merge branch 'master' of https://github.com/ewhal/nyaa into deployment 2017-05-06 19:35:59 -04:00
bakape
8e15b211df Revert quicktemplate search template 2017-05-07 02:20:13 +03:00
tomleb
dcccb7ee1b Remove categories and subcategories queries
This commit removes usage of Categories queries in order to support
postgres. The Categories in postgres is an enum instead of a table and
we don't need to use the table in sqlite because the value are hardcoded
in the html and are unlikely to ever change.

This commit breaks the thumbnails in the index. Other functionality
needs to be tested before merging.
2017-05-06 19:02:02 -04:00
sfan5
b7a62c2f20 Stop using categories & status DB tables
Also fixes the incorrect JSON keys in API responses
2017-05-07 00:04:12 +02:00
bakape
a16caa0556 Port _search.html to quicktemplate 2017-05-07 00:21:16 +03:00
bakape
2cb605a027 Don't reparse templates on every fucking request 2017-05-06 20:03:21 +03:00
akuma06
9739610311 Separated Routes and handler from Main
Everything is in the router folder in different file
2017-05-05 16:39:15 +02:00