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

426 commits

Auteur SHA1 Message Date
Myrmece
c437cab287 Updated translation. (#1238) 2017-07-19 17:54:07 +10:00
kilo
e92527748c add two keywords & a sukebei rule (#1231)
* add two keywords

* move keywords_flags vartiable outside of function

no point in creating it every single time

* Update en-us.all.json

* add sukebei rule

* Update main.css

* Update upload.jet.html

* Update upload.jet.html

* Update main.css

* Update main.css

* Update en-us.all.json

* whoopsies

* add keywords for categories

* fix display on firefox & older browsers
2017-07-18 20:51:38 +02:00
Myrmece
43874b462c Updated translation. (#1233) 2017-07-18 20:50:15 +02:00
ewhal
cc15ff8288 Merge pull request #1223 from Kiloutre/patch-11
Preliminary addition of rule list in upload
2017-07-19 00:15:02 +10:00
kilo
20bb4104ba missing } 2017-07-18 15:39:06 +02:00
kilo
ae215964d9 Update en-us.all.json 2017-07-18 15:32:28 +02:00
kilo
460c285da1 Update en-us.all.json 2017-07-18 15:31:22 +02:00
Myrmece
7c75a85b39 Updated translation. (#1228) 2017-07-18 02:03:48 +02:00
ewhal
c1acbdb2ff Merge branch 'refactor' into patch-5 2017-07-16 20:21:00 +10:00
kilo
9c1ab7cb9e fix typo in FAQ 2017-07-16 11:31:10 +02:00
kilo
42657584ff Translation that was missing for torrent_colors 2017-07-16 10:47:38 +02:00
PantsuDev
7ba2887021 Update faq and add link to apidocs 2017-07-16 13:55:18 +10:00
kilo
0ddfddb68a Update en-us.all.json 2017-07-14 22:12:00 +10:00
akuma06
dc6fda3333 Merge pull request #1167 from Kiloutre/patch-8
Better looking refine & fix JS generating torrents with unclickeable categories
2017-07-13 14:57:11 +02:00
akuma06
5da9fe607c Merge branch 'dev' into refactor 2017-07-13 14:23:28 +02:00
kilo
093495ffeb Update en-us.all.json 2017-07-13 12:58:26 +02:00
kilo
8ac976fdfd Update en-us.all.json 2017-07-13 00:40:05 +10:00
kilo
2943fdf6e1 Add small "language is not mandatory" message (#1129)
* add class in css

* html change

* Update en-us.all.json

* Update fr-fr.all.json
2017-07-09 12:19:59 +10:00
akuma06
c3b3542bad Changed Mark as Hidden
Strings need to be retranslated
2017-07-04 02:57:47 +02:00
akuma06
e2f3507069 Some html fixes 2017-07-04 01:15:43 +02:00
akuma06
47e1fd2169 Removed errors, changing old functions to new ones 2017-07-02 23:53:23 +02:00
akuma06
205daea027 Finally services are nearly empty 👍
Moved api services. All validations are now in validator util and all upload functions are in upload util
2017-07-01 23:09:35 +02:00
akuma06
946f02d0fc Use of validator pkg now
Use of validator pkg replacing modelHelper.

ValidateForm adds translated errors in messages context. To know if we have errors, we have to call messages.HasErrors() after the validation check.

New translation strings for some field check. I didn't add every tag as an error since it seems we won't use them (isbn, ...). This would overload the translation files that are already big.
2017-07-01 01:25:11 +02:00
akuma06
2646bc2db8 This is a prelimenary work
Showing how we can remove services, preventing cyclic imports and lessing the number of imports.
Now db is in models. Db and models are highly tightened, according to go standards, you should put them in the same package.
In models, there are folders separating the different methods used to modify the models. For example, if you want to create a user, you have to use /models (for the user struct) and /models/user (for creating a user.
However, if you want to delete a torrent, you just have to import /models and do torrent.Delete(definitely bool).

By the way packages in models are the plural name of a model. For example, you have torrent.go for a torrent model and its package torrents for db stuff related functions (Find, Create, Some helpers)
2017-06-29 00:44:07 +02:00
Myrmece
39e4b6df36 Updated translation. (#1082) 2017-06-28 21:44:37 +10:00
akuma06
5991a21818 First batch of changes for the refactor (#1078)
* First batch of changes for the refactor

Added the support of gin in routes and other services/utils
Begining implementation of JetHTML

* Remove os folder

* Move scrapers to own repo

* Second batch of changes

All .jet.html are the working templates.
You can now test this PR, the index Page and upload works. If you want to complete the other html templates, you're welcome

* Move captcha to util

* Move uploadService to utils

* Use govalidator instead of regex

* Third batch of changes

All the front end should as previously.
I also fixed some minor things unrelated to the refactor (mostly style issues on static pages)
Now errors can be accessed by importing the "errors" helpers and using the `yield errors(name="xxx")` command in templates.
Same for infos.
Templates are now more hierarchized with a base template "base.jet.html" which is extended depending on the context in "index_site" or "index_admin" layouts. Those layouts are extended than in every pages.
Other helpers are captcha to render a captcha `yield captcha(captchaid="xxx")`
And also csrf, with the command `yield csrf_field()`
To translate, you don't have anymore to do `call $.T "xxx"`, you just have to do `T("xxx")`.

Pages for the website part are in folders in the folder "templates/site". Pages for the admin part are in "templates/admin". Layouts are separated in "templates/layouts". Helpers and menu are in "templates/layouts/helpers" and "templates/layouts/menu". Error pages should be put in "templates/errors"

* Added test on templates

When adding a new template, you have to tell to template_test.go, the context of the new template (if it doesn't use the common context)

* Panel admin works

Now the templating part should work. The PR can now be fully tested.

I think we should push the templating PR  and do the routes/controllers/removal of services in another branch. So we know that this one is functional

* Updated dependencies

* Fixed test for modelhelper

* Fix testing for commentlist

* Fix travis :')

* Just renamed router and removed network

* Applying same SEO fix

* Update form_validator.go

* Added back regexp package
2017-06-28 21:42:38 +10:00
Nutjob
7e38aab841 Update Italian Translation(WIP) (#1064)
* Update Italian Translation (WIP)

Still not complete.

* Update it-it.all.json

* Update it-it.all.json
2017-06-26 10:09:55 +10:00
MMP0
006dc1c034 Update Japanese translation (#1070)
* Update ja-jp.all.json

* Update ja-jp.all.json
2017-06-25 21:20:02 +10:00
akuma06
ddafb142b6 Update nl-nl.all.json 2017-06-25 01:48:21 +02:00
akuma06
5dd580e746 Update nl-nl.all.json 2017-06-25 01:43:57 +02:00
Anonymous-senpai
60b2765c61 Update nl-nl.all.json 2017-06-25 01:19:30 +02:00
MMP0
e1edc62643 Update ja-jp.all.json (#1055) 2017-06-23 16:02:29 +10:00
MMP0
5e6cdc1e05 Update ja-jp.all.json 2017-06-21 20:16:52 +09:00
Myrmece
5f99762dbc Updated translation. (#1048) 2017-06-21 20:51:51 +10:00
akuma06
ce13ce1bfb Precised that email are optional 2017-06-21 11:50:55 +02:00
Myrmece
a8669c5294 Updated translation. (#1035) 2017-06-21 09:21:48 +10:00
MMP0
1a865c14ef Update Japanese translation (#1032)
* Update ja-jp.all.json

* Update ja-jp.all.json
2017-06-20 16:32:52 +10:00
Myrmece
83b67404b7 Updated translation. (#1031) 2017-06-20 16:32:46 +10:00
kipukun
4d3340a32e Yay refine looks better (#1028)
* Yay refine looks better

* Added Translation
2017-06-20 12:07:03 +10:00
Mitki
e9edcc5c54 Updated PT-BR ~ (#1027) 2017-06-20 10:06:12 +10:00
akuma06
2e53fa2603 Added tests on some package + simplified a little modelHelper (#1026)
Test on:
* Categories
* Util
* modelHelper

Added hum_name on PasswordConfirm
Removed Zlib <= No code is using it anymore
modelHelper now show translated errors
New Translation strings
2017-06-20 10:06:07 +10:00
akuma06
036cd9f5ce Update README.md 2017-06-16 19:47:51 +02:00
akuma06
0698dab5f2 Update README.md 2017-06-16 19:46:43 +02:00
MMP0
2e1c3cce85 Update Japanese translation (#1014) 2017-06-16 17:41:59 +02:00
Myrmece
e8c0fcb597 Updated translation. (#1012) 2017-06-16 15:45:35 +10:00
MMP0
d98d2c7b37 Update ja-jp.all.json (#1010) 2017-06-16 12:58:03 +10:00
kipukun
95173a0f33 Frontend v9000 (#1008)
* Should fix old uploader name in torrent view

* Fix "save changes" in modtools

* Modtool more colorful

* Fix search bar placement in modpanel

* Make colors more consistent; less would be super helpful tbqach fam

* Display the old username if it's there

* Fix some admin index html

* Add custom icons and remove png code from all CSS

* Move a good amount of cosmetic code from main to classic

* Fix some weird bug with point-events; add some global icon formatting; fix mascot fucking up

* Spruce up admin panel with icons on smaller viewports, along with adding trash icon

* 404 redesign ;^)

* Mufuyu mascot on all themes; says something slightly lewd

* Fix weird user menu bug where shit would overflow
2017-06-16 08:57:52 +10:00
Myrmece
4200e23160 Updated translation. 2017-06-15 19:02:12 +02:00
MMP0
c299acc235 Update ja-jp.all.json (#1003) 2017-06-15 18:08:54 +10:00
akuma06
93364dac77 activity log for users (#1002)
List Torrent delete log
Torrent edit log
Comment delete log
And every other logged activities
Can be filtered out by a filter tag ("edit" or "delete" supported)
Pages navigation

Can be accessed by /activities

Added some translation string
Fixed hidden username on api request
Fixed comments username on modpanel
New Activity model
New Activity handler
New Activity Service
Fixed some updating issue for ES when moderating torrents

Be aware deleting torrents and comments return the model now!
2017-06-15 12:44:46 +10:00