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

15 commits

Auteur SHA1 Message Date
sfan5
f1aa52e618 Cleanup usage of now removed HideAdvancedSearch 2017-05-14 13:05:18 +02: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
14f24e3be9 Add translation code to handlers, fix wrong key in .json translations 2017-05-08 17:51:59 -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
6b1196f12c Merge branch 'master' of https://github.com/ewhal/nyaa
Conflicts:
	main.go
Resolved conflicts with new merge
2017-05-05 22:30:56 +02: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