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

14 commits

Auteur SHA1 Message Date
Chris MacLeod
14378fbf39 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
801339cdcf Refactor search
Optimise, error handling and avoid some exploits
2017-05-09 14:31:58 +03:00
bakape
ce1c4c89ac Death to reallocations! 2017-05-09 02:56:57 +03:00
ElegantMonkey
6fce62f7d3 Add translation code to handlers, fix wrong key in .json translations 2017-05-08 17:51:59 -03:00
akuma06
0db01fb824 Added logged badge + new User variable in each template variables 2017-05-08 01:46:30 +02:00
Jeff Becker
b6111fb9d9 fix up templates, get reading for Reload template on SIGHUP 2017-05-07 07:51:33 -04:00
tomleb
393450ff96 Merge branch 'master' of https://github.com/ewhal/nyaa into deployment 2017-05-06 19:35:59 -04:00
bakape
e82e97b961 Revert quicktemplate search template 2017-05-07 02:20:13 +03:00
tomleb
cb2702630c 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
a1ad96d6ed Stop using categories & status DB tables
Also fixes the incorrect JSON keys in API responses
2017-05-07 00:04:12 +02:00
bakape
f5bdb369c8 Port _search.html to quicktemplate 2017-05-07 00:21:16 +03:00
bakape
005785f4f8 Don't reparse templates on every fucking request 2017-05-06 20:03:21 +03:00
akuma06
7209666fb8 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
d75cb9f863 Separated Routes and handler from Main
Everything is in the router folder in different file
2017-05-05 16:39:15 +02:00