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

12 commits

Auteur SHA1 Message Date
Miiiiaaooooo
ed4990d313 Ads csp (#1509)
* Ads csp

* remove useless thing
2017-09-06 11:18:37 +10:00
Eliot Whalan
dbb1d0e9c6 actually fix apidocs this time 2017-09-03 21:53:01 +10:00
Eliot Whalan
a64d342386 fix apidocs 2017-09-03 21:39:25 +10:00
akuma06
50a6e844db Fix adding tag form (nojs) + miscalleneous (#1468)
* Fix search Status
Should fix #1428 ?s=2 and others. Reason: the sql query wasn't correct when filtering (status >= ? = ?)

* Fix adding tag form (nojs) + miscalleneous
* Fix #1423 by checking http method before finding the tags.
* Form is now like other tags form
* New Middleware LoggedInMiddleware to protect routes to logged user only
* Display of Non-Accepted tags in torrent view improved by translating tagtype values

* Update tag.jet.html
2017-09-03 10:30:30 +10:00
kilo
7c3b30035c Fix Markdown icons & fonts (#1442) 2017-08-29 21:00:51 +10:00
ewhal
991b4635d0 fix base64 encoded imgs (#1407) 2017-08-27 13:53:06 +10:00
kilo
46d974b6c6 fix inline CSS not working (#1404)
* fix inline CSS not working

* fix inline JS not executing
2017-08-27 00:05:15 +10:00
akuma06
9f2f978660 Added Content-Security-Policy (#1400)
As per suggested in #1104 , I added a middleware that adds the http header.
2017-08-26 12:41:27 +10:00
akuma06
6e5be0f7f1 Tags no-js works + less sql in Development mode + debug tool 2017-07-31 03:15:37 +02:00
akuma06
03ea72595d OAuth API [done] (#1275)
* Initial Commit for OAuth API

This builds and run and return the right error.
Need to test it and then adding all users as possible client

* Added mising dependency

* just compile already...

* Fixing template test

* Imrpovements

Moved db stuff in models
Added some tests
Added form in modpanel to add/update a client
Added controllers for add/update of client

* Added Forms + speed improvements

Controller oauth client listing + html
Controller oauth client delete + messages
Messages on comment delete
New ES config that disable ES if set to false. Improve load speed on local development
Fix a load config bug
Fix index admin & translation string sign_out broken by @ewhal

* Sanitize empty strig in form array + css

Multiple empty array of strings are sanitized for the oauth client create form
Added some css for the form display

* Upload and Create form works

* Fix splitting response types

* Removing required on secret when updating

* fix travis error

* Fix travis template test

* Update dependency

* Moved to jinzhu instead of azhao

* randomizen secret on creation

* Final touch on oath api

improved display name
fix grant form csrf
fix login csrf on oauth

* Fix gorm test

* fix template test

* Fixing deleted dependency issue

* Make travis faster

* Fix typo

* Fix csrf for api calls

* This shouldn't be exempt

* Removing hard coded hash

@ewhal Don't forget to replace the hash in tokens.go with another one

* Added an example on how to use OAuth middleware

* Renamed fosite utils to oauth2 utils
2017-07-28 13:46:40 +10:00
PantsuDev
d9142a73c3 Fix most go lint warnings 2017-07-23 15:50:18 +10:00
akuma06
2c8344faf9 Controllers are now separated
They are in different folders and all loaded in controllers/router.go.
This means that you only have to create a folder with a router.go file and import this folder in main router.go to add a handler.
2017-07-16 17:14:21 +02:00
Renommé depuis controllers/middlewares.go (Continuer la navigation)