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

598 commits

Auteur SHA1 Message Date
ted423
b0fc3ff5e3 translating zh-cn & make some fix (#1770)
* 中文繁体翻译更新

* 中文简体900行以内条目数跟英文保持一致

我快死了...

* translation user_unbanned fix

* translation id remove "language_not_mandatory"

* translation remove id old

* translation id delay change to duration

* translition delete repeat id ”upload_to_other"

* translating zh-cn

* translating zh-cn

* translate zh-cn done

* translate zh-tw done
2019-06-16 10:33:31 +00:00
MMP0
9b7af2d504 Update translation (#1755)
* Update upload.jet.html

"Upload to" → "Upload to %s"

* "Upload to" → "Upload to %s"

* "Uploader vers" → "Uploader vers %s"

* Update CHANGELOG.md

* Update ja-jp.all.json
2018-01-11 15:27:24 +01:00
Myrmece
1eecbfecd0 Updated translation. (#1752) 2018-01-08 20:16:31 +01:00
kilo
d5c2c6b676 Upload to nyaa.si, anidex & TokyoTosho [done] (#1633)
* Update upload.go

* Update helpers.go

* Update template_test.go

* Update upload_multiple.jet.html

* change variable names

* wrong copypaste

* change variable name

* ditto

* Fix travis

* Update main.css

* Update upload.go

* Update upload.jet.html

* Update main.css

* Update upload.go

* More compact form

* CSS changes to go along

* Update main.css

* Update upload.jet.html

* Slightly lower bottom margin

* Update upload_multiple.jet.html

* tomorrow color adjustements

* small css adjustements

* Update upload.go

* Update default_config.yml

* Update default_config.yml

* Update structs.go

* Update user.go

* Update structs.go

* Update upload.go

* Update default_config.yml

* Update upload_multiple.jet.html

* Update upload.go

* Update upload.jet.html

* Update template_test.go

* this one is optional for anidex

* Update default_config.yml

* Possible improvement
As mentionned in my comment, it seems that having a checkbox already checked and disabled for logged in user + having the input text for apikey is a bit tedious.
Moreover, asking to check and fill the input text to upload in anidex when you are not logged is doing things twice. If you don't want to upload to anidex, don't fill the input.

So this commit push a new behaviour:
* If you are logged in and you have filled your anidex/nyaasi api key : the form should only show the checkbox asking if you want to upload to nyaasi.
* If you're not logged in or you don't have filled your api key in your profile settings: you only show the input text for the api key and not the checkbox. If someone wants to upload to nyaasi/anidex, he will just need to fill the input.

* This adds back the support of anonymous upload when logged in or not.
This works simply by checking if the user wants to upload as anon (when he checks the checkbox "upload as anonymous") or by checking the emptyness of apikey.
+ reverts the condition statements since it was needed to have apikey empty

* Forgot to save this file

* This commit adds the go routines for each upload service (anidex, nyaasi, tosho).
New controller and url to check the upload status (/upload/status/:id).
If you add ?json at the end, it outputs a json format of the multi upload status.
To prevent memory overload, we only keep in memory the multiupload status for 5 minutes.
Moved multipleform struct from templates to upload utils.

* fix form display on classic theme

* This commit adds:
* Javascript refreshing of the upload status
* Localization of the pages
* Fixed some bugs

This works, only need to get torrent file now.

* Added a new function to get the Path to the torrent file.

* Added a function to check that a torrent file exists and if not generate it on multiupload

* Enabled file upload through http post request to anidex

* Fixed bugs

* Modified the behaviour to generate torrent preivously. It is a synchrone function now. So we need to make it asynchronous in download.go

Now torrents file are always generated at upload time in a background processus with the correct trackers (needed ones + the ones provided by the user).
I made the anidex tracker as a needed one to allow multiupload even if the user hasn't included in his torrent file/magnet url.

* Moving deadtrackers list to default config
Support torrent file creation when upload without scraping
* Fix possible bug where no one is seeding a torrent yet (first time upload)
Add primary tracker in torrent file

* Fixing issue with boolean pointer for private torrent

* fixing index out of range for announcelist filtering
Fixing anidex tracker not found

* Fixing lang id error

* Anidex upload works

* Fix for multiupload with magnet

* This adds TokyoTosho support. Since TokyoTosho API only support upload by URL (and not torrent file upload). We need to make the download url available without ddos protection.

Also TokyoTosho doesn't need a category select. Since it does have limited option, we can automatically convert our categories to the tokyotosho one.

* Removing the folder tosho and put categories.go directly in upload package.
Added category conversion for nyaasi too.
Added tests on category conversion.

* This should add nyaasi support.
Is not tested though.

* Updated defaut config with new nyaa.si behaviour?

* Forgot to commit this file
2018-01-03 18:21:07 +10:00
MMP0
d4114640df Update ja-jp.all.json (#1742) 2017-11-18 18:19:21 +01:00
Andrei Stepanov
1baa0e4576 Update ru-ru.all.json (#1739) 2017-11-14 18:49:46 +01:00
kilo
5dcd30676f
Janitor (#1728)
* Fix "torrent is being generated" message showing up even when the torrent couldn't be generated

* Add janitor user status

* Remove usage of deprecated HasAdmin() function

* Give Janitors access to mod panel

* Stop using deprecated HasAdmin() function

* Stop using deprecated HasAdmin() function

* Update edit.go

* Update profile.go

* Rollback bad changes, remove redundant email check and stop using deprecated function

* Show every userstatus (member, janitor, banned, mod) in comments

* Return empty status if anonymous

* Show no userstatus for anonymous profile

* Show moderation link to janitors too

* Stop using deprecated HasAdmin() function

* Stop using deprecated HasAdmin() function

* Stop using deprecated HasAdmin() function

* Add Janitor to userstatus select in user edit

* "Janitor" translation string

* didnt mean to commit this change

* rollback wrongfully comitted changes

* rollback commit

* Update CHANGELOG.md

* Fix wrong id for translation

* remove deprecated HasAdmin() function again

* change name of variable used in comment loop for clarity purposes

* visual cue for locked torrents in torrent listing for admins

* add visual cues for hidden torrents in admin torrent listing

* Dont show delete buttons for janitors

* janitor cannot delete torrents

* show block/unblock button in torrent list for janitors instead of delete button

* fix function that didnt get executed

* add ban buttons on userlist & visual cue for banned users

* Fix "user successfully deleted" message showing even if user wasnt deleted

* Add "ban" button, no "delete" button for jantiors

* add "unban" and "ban" translation strings

* add "unban" and "ban" translation strings

* different <form> for ban button

* Update index.jet.html

* add userprofile ban route

* add toggleBan() function, janitors dont need captcha either

* fix panic error when deleting an anonymous comment

* add user_banned_by and user_unbanned_by

* add user_banned_by and user_unbanned_by

* Make ToggleBan() return whether or not the user is now banned

* Add handler for /ban route

* change log filter

* hide locked torrents from regular users

* hide locked torrents from regular users

* hide locked torrent from api search for regular users

* change function to CurrentOrJanitor

* change function to currentorjanitor

* change function to currentorjanitor

* add CurrentOrJanitor function

* fix extra (

* fix extra ) and wrong variable name

* Fix wrong value for janitor user status

* Fix user edit that did not work because of "unique constraint user.emails" error

* only immediately visually update user if user has been updated successfully

* use FindAllForAdminsOrderBy in order to preload users

* create FindAllForAdminsOrderBy that preloads users

* Show username instead of ID in Uploader column in admin panel

* Fix userprofile buttons overflowing at some specific resolutions

* Mods can set users as janitors

* Show ban/unban buttons on userprofile for janitors

* Identical styling for usermenu links and buttons

* dont show ban buttons on other staff

* add ban message through get parameter

* make toggleBan() trigger user update

* Add "user_banned" and "user_unbanned"

* add "user_banned" and "user_unbanned"

* Visual cue for banned user

* banned users can still log in

* visual cue for banned user in  badgemenu

* locked status if banned user on upload

* banned users cannot comment

* Put "banned" text between ()

* add GetCategoryName() to template_test

* add GetCategoryName() that returns full category name from full category string

* Show search content in page title if it exists, or search category if it exists, otherwise shows "Home"

* error message when user uploads an torrent & is banned

* add torrent_uploaded_locked

* add torrent_uploaded_locked

* fix delete definitely button that never appeared

* Show delete definitely button on admin panel index

* admins can undelete a torrent by editing it's status

* Trigger ViewHandler() directly instead of redirecting

* Render the template directly instead of triggering torrent view handler

* bigger usermenu buttons once responsive design kicks in

* make btn-* class non-bold

* Responsive notification page

* visual cue for locked torrents in torrent listing

* Update search.go

* Update search.go

* Update api.go

* Update helpers.go

* Update template.go

* Update torrentParam.go

* remove "hidden" class

* Update search.go

* fix an html error

* Add files via upload

* Update admin.jet.html

* Update index.go

* Update index.go

* Update router.go

* Update torrentParam_test.go

* Update torrentParam_test.go

* fix extra "

* fix bad copypaste

* Update CHANGELOG.md

* Update guidelines.jet.html

* Update CHANGELOG.md

* add Guidelines and Moderation Guidelines

* fix missing commas

* Update torrentlist.jet.html

* Update find.go

* Update stats.go

* Update view.jet.html

* Update index.jet.html
2017-11-14 09:39:39 +01:00
Eduard Ereza Martínez
ca2f5d3c42 Update Catalan translation (#1738) 2017-11-13 16:59:25 +01:00
MMP0
04896f3ec4 Update Japanese translation (#1735)
* Update ja-jp.all.json

* Update ja-jp.all.json
2017-11-11 17:31:22 +01:00
Myrmece
4ddba9f2f6 Updated translation. (#1734) 2017-11-11 12:16:09 +01:00
Myrmece
909d1b8d83 Updated translation. (#1732) 2017-11-09 20:53:28 +01:00
MMP0
8d34d77c91 Update ja-jp.all.json (#1729) 2017-11-09 16:49:48 +01:00
MMP0
285bca23cb Update ja-jp.all.json (#1720) 2017-11-08 09:21:31 +01:00
Myrmece
98af64a4e2 Updated translation. (#1714) 2017-11-05 17:34:55 +01:00
kilo
e8dfeaea4a
Fix report creation from report template for anonymous users & small css adjustement (#1712)
* Fix report creation from report template for anonymous users

* small adjustement for styling of usernames in comment

* lower margin-top for comment content

* Update en-us.all.json

* Update CHANGELOG.md

* fix torrent link button's styling getting messed up from
2017-11-05 07:43:53 +01:00
Myrmece
357012932b Updated translation. (#1710) 2017-11-04 07:13:08 +01:00
kilo
594b0885b7
Remove unused translation string (#1708)
* Update CHANGELOG.md

* remove unused "old" translation string
2017-11-04 06:50:31 +01:00
kilo
8ec3c2a743
Add possibility of reporting without JS, add report reason for NSFW content, Add possibility of getting a torrent by Hash in refine (#1709)
* Add possibility of reporting without JS

* Add report message input and new report reason to /report/:id page

* add new report reason here too

* Update en-us.all.json

* Update CHANGELOG.md

* only show if not sukebei

* ditto

* fix label for value

* ditto

* fix overly big report message column

* Update main.css

* Update search.jet.html

* Add possibility of getting a torrent by Hash in refine

* Update search.go

* Update search.go

* fix template_test

* ditto

* fix Sprintf wrongly using a Token

* rollback that

* Update callback.go

* remove line that creates error

* fix travis
2017-11-04 06:42:36 +01:00
Juan José Salvador Piedra
27f378d4a1 Spanish translation (100% finished) (#1707)
* Spanish translation WIP

49% done

* Spanish translation (finished)

99% translated, see #1704 for details

* Spanish translation (finished)

See #1704 for more details

* Minor fixes

style corrections

* JSON Validation

JSON is valid!

* Fixed translation strings

* Removed unused strings and fix strings
2017-11-04 03:41:12 +01:00
Myrmece
1809f7437c Updated translation. (#1703) 2017-11-02 15:30:32 +01:00
kilo
c4d6872836 Re-add translation string that got wrongly removed (#1702) 2017-11-02 11:18:05 +01:00
kilo
af63263c53
Update en-us.all.json 2017-11-02 04:25:21 +01:00
kilo
e90b28c2f9
Update CHANGELOG.md 2017-11-02 04:24:47 +01:00
kilo
5e21cffc78
Update CHANGELOG.md 2017-11-02 04:05:33 +01:00
kilo
5451e0870f
Update en-us.all.json 2017-11-02 04:03:33 +01:00
kilo
346f3e7506
Update en-us.all.json 2017-10-31 06:25:14 +01:00
kilo
7194b3db4f
Update CHANGELOG.md 2017-10-31 06:24:53 +01:00
kilo
e286385632
Update CHANGELOG.md 2017-10-31 04:48:02 +01:00
kilo
6767f679de
Update en-us.all.json 2017-10-31 04:47:56 +01:00
kilo
b541fc1124
Update CHANGELOG.md 2017-10-31 03:24:59 +01:00
kilo
417deef07f
Update en-us.all.json 2017-10-31 03:24:34 +01:00
kilo
19bb04f97f
Update CHANGELOG.md 2017-10-31 01:33:58 +01:00
kilo
8e121e2756
Update en-us.all.json 2017-10-31 01:33:44 +01:00
kilo
6491490db7
Update en-us.all.json 2017-10-29 19:30:49 +01:00
kilo
31af6c430e
Update CHANGELOG.md 2017-10-29 19:30:29 +01:00
kilo
90c6e8726c
fix travis 2017-10-29 05:14:10 +01:00
kilo
1f617a78e4
Update CHANGELOG.md 2017-10-29 04:56:23 +01:00
kilo
87f2ec8a9b
Update en-us.all.json 2017-10-29 04:56:14 +01:00
kilo
ffaadb03c5
Update en-us.all.json 2017-10-29 04:54:31 +01:00
kilo
418b2c5d9e
Update CHANGELOG.md 2017-10-29 04:54:10 +01:00
kilo
f28ba2f7ac
Update CHANGELOG.md 2017-10-28 23:32:44 +02:00
kilo
d67905415a
Update en-us.all.json 2017-10-28 23:32:35 +02:00
kilo
016b4adfc6
add translation strings 2017-10-28 22:49:42 +02:00
kilo
28ffbf4534
Update CHANGELOG.md 2017-10-28 22:49:24 +02:00
kilo
dd94402f04
Fixes & improvements (#1684)
* Update main.css

* Update torrent_item.jet.html

* Update main.js

* Update torrent_item.jet.html

* Update main.js

* Update main.js

* Update main.js

* Update main.js

* Update main.js

* Update template_functions_test.go

* Update template_functions_test.go

* Update user.go

* Update profile.jet.html

* Update view.jet.html

* Update template_functions.go

* Update en-us.all.json

* Add files via upload

* Update CHANGELOG.md

* Update main.css

* Update template_functions.go

* Add files via upload

* Update en-us.all.json

* Update template_functions_test.go

* Update view.jet.html

* Update main.css

* Update ja-jp.all.json

* Update main.css

* Update edit.jet.html

* Update main.css

* Update tomorrow.css

* Update ja-jp.all.json

* Update main.css

* Update view.jet.html

* Update comment.go

* Update create.go

* Update classic.css

* Make GetOldNavFromRequest return true by default

* Update view.jet.html

* Force torrent date in UTC+0 timezone during display

* ditto

* Update ja-jp.all.json

* Update oldNav.jet.html

* Update structs.go

* Update default_config.yml

* Update torrent.go

* Update stats.go

* Update stats.go

* Update user.go

* Update template_functions.go

* Update template_functions_test.go

* Update torrent.go

* Update comment.go

* Update view.jet.html

* Update main.css

* Update user.go

* Update template_functions.go

* Update profile.jet.html

* Update main.js
2017-10-28 18:28:59 +02:00
Myrmece
a4e785ac89 Updated translation. (#1694) 2017-10-28 17:24:26 +02:00
MMP0
901c933632 Improve date formatting (#1693)
* Update main.js

* Update base.jet.html

* Update CHANGELOG.md

* Update en-us.all.json

* Update ja-jp.all.json

* Update main.js
2017-10-28 17:01:56 +02:00
Bas
1f5d07a85c Some translations (#1692) 2017-10-25 23:07:06 +10:00
MMP0
3d8b45513e Update ja-jp.all.json (#1690) 2017-10-25 13:35:58 +02:00
MMP0
0f2e249b09 Update Japanese translation (#1688)
* Update ja-jp.all.json

* Update ja-jp.all.json
2017-10-21 16:33:47 +02:00