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

75 commits

Auteur SHA1 Message Date
Myrmece da005b6635 Updated translation. (#1431) 2017-08-29 00:37:44 +10:00
Myrmece 3cbfffc19c Updated translation. (#1413) 2017-08-28 08:44:04 +10:00
Myrmece 323d090203 Updated translation. (#1401) 2017-08-26 23:42:37 +10:00
Myrmece 2a6d7dcda8 Updated translation. (#1392) 2017-08-23 09:08:44 +10:00
akuma06 c6168be8b1 Tag Search + Tests + Search slight refactor [DONE] (#1342)
* Tag Search + Tests + Search slight refactor

First commit improving search. Different struct have their own file with their tests. This way of separating struct by files is inspired by the go packages I've seen so far.

Added new behaviour as discussed in #1334

* fix fallback to ES

* Added some comments to explain PG fallback + log err moved

* Refactored search

Nearly fully covered
WhereParams struct has disappeared for Query struct instead
In DB model, we use an interface implementing Query struct methods

* 1rst Refactor of Tags (WTF already?!)

Prepare Tags for the refactored system. Now there will be descriptive tags for a particular release (ecchi, BDSM, ....) and typed tags.
Typed tags are tags relevant to all torrents and can be limited to some input value. For example, video quality is a typed tag limited to some values (hd, full hd, sd, ...). In the same way, anidbid is also a typed tag but doesn't have default values.

Furthermore, the location storage of tags have changed, now accepted descriptive tags are stored in the torrents table in the column "tags" and they are separated by commas.
In the opposite, accepted typed tags can have have their own column in the torrents table. For example, anidbid, vndbid will populate the column DbID when accepted. On the other hand, videoquality will populate the same way as descriptive tags.

This behaviour depends on the callbackOnType function in tag/helpers.go

* fix for modtools :')

* Added anidb, vndb, dlsite & vmdb id fields in torrent model.
Tags don't have an accepted field anymore.
Accepted Tags are in torrent.AcceptedTags and non-accepted ones in torrrent.Tags.

New Helper + New Changelog for translation string.

* New upload/edit form for torrent tags.
Now the inputs are dynamically generated by the helper tag_form.
No more modal window in those form, only inputs.
Support of tags in API
New translation string for the  link to the modal on torrent view.
More comments in the functions for tags

* Improving how config for tags work. Adding a test on them with understandable messages.
Config for tags have now a Field attribute which is linked to the Torrent model. For example anidbid tag type has now a AnidbID field in config which is the name of the field in torrent model (AnidbID). Every new tag type need to have a field attribute with its counterpart in torrent Model.
Fixing some errors

* Fix compile error + Tests Errors

* Improve performance by caching the list of tags with an index
Adding/removing tags works/tested
New translation strings

TODO: test/fix adding tag on upload/edit

* Mini fix to display video quality
+ tags works/tested on modo edit

* Fix editing tags on modpanel

* Edit tags works

* Add translation string

* Add search backend for tags.
?tags=xxx,eee,ddd
?anidb=21
?vndb=23
?vgmdb=24
?vq=full_hd

* Fix Ajax tag Removal&Add

* Added form for descriptive tags

* Forgot to add the link between database and form for descriptive tags.

* Adding the increase/decrease pantsu for descriptive tags

* Fix #1370

* When you actually forgot to commit files after having forgotten commits
2017-08-22 11:48:10 +10:00
Myrmece 21058924a3 Updated translation. (#1372) 2017-08-15 16:44:04 +10:00
Myrmece e1cf80169c Updated translation. (#1347) 2017-08-04 15:18:51 +02:00
Myrmece 57708f7185 Updated translation. 2017-08-03 13:49:18 +02:00
akuma06 1dbfe1b3b4 Added moderation part + tests 2017-08-03 03:38:07 +02:00
Myrmece 518f59d089 Updated translation. (#1322) 2017-08-02 19:35:16 +02:00
Myrmece 526e148dd0 Updated translation. (#1297) 2017-07-30 12:51:49 +10:00
Myrmece 5823f3d44b Updated translation. (#1288) 2017-07-28 13:46:54 +10:00
PantsuDev d9142a73c3 Fix most go lint warnings 2017-07-23 15:50:18 +10:00
Myrmece c437cab287 Updated translation. (#1238) 2017-07-19 17:54:07 +10:00
Myrmece 43874b462c Updated translation. (#1233) 2017-07-18 20:50:15 +02:00
Myrmece 7c75a85b39 Updated translation. (#1228) 2017-07-18 02:03:48 +02:00
akuma06 5da9fe607c Merge branch 'dev' into refactor 2017-07-13 14:23:28 +02: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
Myrmece 39e4b6df36 Updated translation. (#1082) 2017-06-28 21:44:37 +10:00
Myrmece 5f99762dbc Updated translation. (#1048) 2017-06-21 20:51:51 +10:00
Myrmece a8669c5294 Updated translation. (#1035) 2017-06-21 09:21:48 +10:00
Myrmece 83b67404b7 Updated translation. (#1031) 2017-06-20 16:32:46 +10:00
Myrmece e8c0fcb597 Updated translation. (#1012) 2017-06-16 15:45:35 +10:00
Myrmece 4200e23160 Updated translation. 2017-06-15 19:02:12 +02:00
Myrmece aefeb7e5f9 Updated translation. 2017-06-14 18:12:01 +02:00
Myrmece 138b731181 Updated translation. (#989) 2017-06-13 20:59:13 +10:00
Myrmece 7ee5e913b1 Updated translation. (#985) 2017-06-13 08:27:45 +10:00
Myrmece fadc38175b Updated translation. (#975) 2017-06-10 21:09:14 +10:00
Myrmece fe9135a178 Updated translation. 2017-06-07 19:11:31 +02:00
akuma06 390c5f7620 Merge pull request #954 from NyaaPantsu/html-tag-fixes
Html tag fixes
2017-06-06 23:24:56 +02:00
akuma06 791fe75ed8 HTML tag fixes #904
* Replaced strong by b
* Added a span lang jap on renchon
2017-06-06 22:46:05 +02:00
MMP0 93947bba79 Update fr-fr.all.json 2017-06-06 23:49:43 +09:00
Myrmece 7bb452a477 Deleted obsolete and duplicated translation ids, some other fixes. (#944)
* Update fr-fr.all.json

* Update view.html

* Update ca-es.json

* Update de-de.all.json

* Update ca-es.json

* Update de-de.all.json

* Update en-us.all.json

* Update es-es.all.json

* Update hu-hu.all.json

* Update is-is.all.json

* Update it-it.all.json

* Update ja-jp.all.json

* Update ko-kr.all.json

* Update nb-no.all.json

* Update nl-nl.all.json

* Update pt-br.all.json

* Update pt-pt.all.json

* Update ro-ro.all.json

* Update ru-ru.all.json

* Update sv-se.all.json

* Update th-th.all.json

* Update zh-cn.all.json

* Update zh-tw.all.json

* Update es-es.all.json

* Update ja-jp.all.json
2017-06-06 12:46:44 +10:00
akuma06 2e9812b995 Replaced Terms and conditions (#939)
Replaced by a modal
Edited translation string with the new link
2017-06-06 11:19:29 +10:00
Myrmece 09ca01139c Updated translation. 2017-06-06 01:02:55 +02:00
Myrmece d5807c28a1 Updated translation. (#932) 2017-06-06 00:07:10 +02:00
akuma06 23210b0250 Report modal fix (#935)
* fix uploaderid when torrent is hidden

Added a new function template to generate a link for uploaders name
In the view we have the actual uploaderID and uploaderName now

* fix template.HTML to string conversion

* Add a modal for reporting

Replace the popup
Use of Modal.js
Include Captcha

* forgot a div end tag

* Moved modal at the end

* Updated translation missing %s

* Added an information message

New translation string

* Forgot %s

* wrong id check
2017-06-06 00:06:52 +02:00
PantsuDev 3402e97c50
Revert "Changed renchon with explanation kanji (#905)"
This reverts commit 2f64a322a8.
2017-06-04 12:39:24 +10:00
akuma06 2f64a322a8 Changed renchon with explanation kanji (#905) 2017-06-04 12:29:26 +10:00
Myrmece 6c0735607f Updated translation. (#900) 2017-06-04 09:21:02 +10:00
Myrmece 7e0714aa33 Updated translation. 2017-06-02 11:45:48 +02:00
Myrmece b314098065 Updated translation. 2017-05-31 10:30:02 +02:00
Myrmece 2247dc0475 Updated translation. 2017-05-30 14:44:45 +02:00
Myrmece 507bcb1cfa Updated translation. 2017-05-29 14:32:21 +02:00
Myrmece 25982e1f9c Update fr-fr.all.json 2017-05-28 14:01:02 +02:00
Myrmece 78255d1b96 Updated translation. (#784) 2017-05-27 22:12:19 +10:00
Myrmece a58d0abd26 Updated translation. 2017-05-26 23:41:54 +02:00
Myrmece 03bb953bc0 Updated translation. (#742) 2017-05-25 20:31:28 +10:00
Myrmece ace73bf9c8 Updated translation. (#726) 2017-05-24 21:28:15 +10:00
Myrmece bb6b47d913 Updated translation. (#680) 2017-05-22 23:39:36 +10:00