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

58 commits

Auteur SHA1 Message Date
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
cdabd79c03 Fix more style issues 2017-07-24 15:03:43 +10:00
PantsuDev
d9142a73c3 Fix most go lint warnings 2017-07-23 15:50:18 +10:00
akuma06
caa6d41d06 Forgot to delete log test 2017-07-22 02:42:52 +02:00
akuma06
b797b7aacf Fix categories on sukebei 2017-07-22 02:41:28 +02:00
akuma06
a69b0b4ead Fix issue with torrent magnet 2017-07-22 01:55:23 +02:00
akuma06
c09d35f480 Fixing some issues 2017-07-21 02:13:41 +02:00
akuma06
4714c5c0f5 Improviong dynamic load of configs by putting only one variable one 2017-07-21 01:36:25 +02:00
akuma06
c5b3702fcd Fix #1251
Removed the old search parameter on /api.
Fixed issue with navigatation.
Fixed issue with notifications.
Fixed issue with fake anonymous upload on search with userID.
Fixed issue with number of upload on user page.
Moved api to version 1.1.0 with search displaying same as /api
2017-07-20 20:21:57 +02:00
akuma06
6e63555a33 Forgot to commit those files 2017-07-19 21:40:44 +02:00
akuma06
ad2e80e3a7 Some fixes and add test on template functions 2017-07-19 21:33:07 +02:00
akuma06
e98ce1d318 Fix #1199 by converting a model to a map of interface 2017-07-17 21:32:55 +02:00
akuma06
ee95510242 Template refactor (#1212)
* Template rafactor

Now templates go files are in /templates in a templates package. Controllers only have controller files

* Fix template test. Forgot I moved ReassignForm
2017-07-16 17:20:35 +02:00
akuma06
c10c1e86ae Fix for hideUser 2017-07-15 01:44:09 +02:00
akuma06
7092e4fc36 Fixing win32.go 2017-07-14 23:53:12 +02:00
akuma06
64d9bfcded Fix for #1176 The query builder was querying with sub_category=0 when sub was not supplied 2017-07-14 19:08:02 +02:00
akuma06
6bbb2e9801 Preload User on find. Should fix the edit not showing up for anonymous.
Fix issue with hidden checkbox and remake one on chrome.
Refactor flag list on edit/upload form. Now a helper function in flags helper.
2017-07-14 17:53:37 +02:00
akuma06
80e681fad4 Fix for deleted torrents search with ES. 2017-07-14 16:14:38 +02:00
akuma06
07dcd96bc0 Replacing flag code function 2017-07-13 18:34:19 +02:00
akuma06
32315bc7bb Fixing form registration tests 2017-07-13 18:10:38 +02:00
akuma06
8122015a2e Fixing registration + Added a log on request errors 2017-07-13 18:05:53 +02:00
akuma06
5da9fe607c Merge branch 'dev' into refactor 2017-07-13 14:23:28 +02:00
akuma06
bd71ca6d41 Fix Hant css flag 2017-07-13 13:33:37 +02:00
akuma06
cd3c728b64 Added some tests + fix for es lang
Fix #1164
2017-07-13 00:20:43 +02:00
akuma06
fbb578b800 Fixing issues with language name translation 2017-07-12 12:04:20 +10:00
akuma06
e1d6e7df20 Changing to the new behaviour of package languages 2017-07-12 12:04:20 +10:00
akuma06
b58f9c55b5 Refactor Language Packages 2017-07-12 12:04:20 +10:00
akuma06
713ab02450 Added configor as a new library (#1126)
* Added configor as a new library

Now config is a singleton. You only need to do config.Get() instead of doing config.Conf.

* Forgot godep save 🐤

* Fix accidental removal of }
2017-07-10 22:11:05 +10:00
akuma06
eb0f7b6cfa Removing debug log 2017-07-08 18:07:07 +02:00
akuma06
5d6962f3a5 Added search refine back end 2017-07-07 14:08:16 +02:00
akuma06
fce83bcdb9 Added search for languages back end 2017-07-07 14:06:51 +02:00
akuma06
15c4f788be Forgot Sort field in cache 2017-07-07 00:18:11 +02:00
akuma06
bee64decb7 Fixing cache + fixing /search/search bug 2017-07-06 23:54:21 +02:00
akuma06
e64a6c599c Fixed test for structs
Seems like init function of other packages are not executed in tests
2017-07-06 22:38:40 +02:00
akuma06
03ded2e027 Changing catSelect Behavior
Return now Categories object instead of map[string]string.
Remove some debug log
2017-07-06 22:19:44 +02:00
akuma06
4d0c3a18c8 Fixing test for categories 2017-07-06 21:59:43 +02:00
akuma06
e54a2e59e2 Fixed alphabetical order for languages and categories
Also improved the name of exported functions for categories
2017-07-06 21:53:13 +02:00
akuma06
f00e066b49 Improved caching to make it always pointer 2017-07-05 19:50:44 +02:00
akuma06
a4ac7ede9a Added cache for ES request 2017-07-05 19:41:16 +02:00
akuma06
7a12d0807c Caching of torrent listing and torrent view 2017-07-05 17:06:24 +02:00
akuma06
2c0293470a Added unique identifier + pprof
Unique identifier for torrent params with p.Identifier()

Added pprof support
2017-07-05 14:29:31 +02:00
akuma06
c8272b180b Changed search functions name
Removing the search part of it since it is already the package name
2017-07-05 13:33:12 +02:00
akuma06
487060c1a4 Forgot the login form test modification 2017-07-04 03:10:46 +02:00
akuma06
fb6bcc68d7 Fixed torrentRequest function 2017-07-04 03:05:00 +02:00
akuma06
d74d337c25 Adding redirecto when login 2017-07-04 02:48:20 +02:00
akuma06
d4c245e256 Fixing torrent edit for user&admin 2017-07-04 02:40:54 +02:00
akuma06
330ab06597 Adding upload of multi lang full support 2017-07-04 02:07:25 +02:00
akuma06
d16871d91a Fix rss magnet link 2017-07-03 02:37:36 +02:00
akuma06
b2e00dce1f Removing debug message 2017-07-03 02:19:37 +02:00
akuma06
1ca1f364a0 Fixing log in 2017-07-03 02:03:57 +02:00