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

39 Révisions

Auteur SHA1 Message Date
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
kilo 418dc81e19 Fix unintended behavior for theme toggler when logged in, fix missing styling for a button & background of markdown for classic theme (#1747)
* missing background color, 

fix missing background color on markdown editor on torrent view page
fix missing classic styling on "Upload to Nyaa/Sukebei" button

* Fix theme toggler that didn't behave as intended

Fix theme toggler that didn't behave as intended when the user was logged in and his theme cookie had a different value than his user theme setting

* Classic theme default on nyaa.pt
2017-12-21 22:40:23 +10:00
kilo 0a765b5589 Things (#1740)
* Add new followers directly to user.Followers

* Update user.go

* Remove useless condition

* Query an update of user followers if at 0 when looking at his profile

* Fix comment not appearing until you refreshed the torrent page

* call ViewHandler so that comments visually update properly

* Remove now useless imports

* Add "uploader" userstatus in comment

* GetLikings() & GetFollowers() now return count too

* Don't update follower count here

* Update follower count directly here

* show liking count

* Update user.go

* Update profile.jet.html

* Update torrentParam.go

* Fix locked torrents that were shown even when they should not

* Update torrentParam_test.go

* remove inline styling

* Update main.css

* Update upload.jet.html

* Update main.css

* Update tomorrow.css

* Update classic.css

* Update classic_colors.css

* Update index_site.jet.html

* Make announcements support markdown

* Add markdown form to announcement creation

* fix "report" text position

* Add exclude search option to exclude words

* Make sure the "NameLike" value is the search query because we edit it during a search

* Show search content in page title for /feed too

* rollback

* Add "Search" variable that shows exactly what is being searched

* Use "Search.Search" variable here instead of NameLike because NameLike is edited

* Update torrentParam_test.go

* Update torrentParam.go

* remove redundant spaces from NameLike

* Update torrentParam.go

* Update torrentParam.go

* Update torrentParam.go

* Update torrentParam.go

* turn date input into type date

* bigger date inputs

* add support for YYYY-MM-DD dates

* rollback this change

* rollback

* Update search.jet.html

* Update helpers.go

* Update template_functions.go

* Update torrentParam.go

* only uploader & staff can comment on locked torrents

* Add "Upload to Nyaa/Sukebei" button for mods

* Update torrentlist.jet.html

* Update view.jet.html

* Update view.jet.html

* fix wrong page title for notifications page
2017-11-20 11:13:00 +10:00
MMP0 03d9d4e680 Add Markdown editor to view page (#1736)
* Update view.jet.html

* Styling to make the markdown textarea smaller by default

* Fix markdown editor in fullscreen

* Different positionsand sizes are needed in classic theme

* Add class to <td> containing description textarea, needed in order to apply a CSS rule onto it
2017-11-11 19:00:32 +01:00
kilo fdbf06e610 Increase max torrent per page, fix HTML errors, other fixes (#1723)
* Increase max torrent per page

* Increase max torrent per page

* fix html error by changing an ID into a class

* change css selector from id to class

* Update oldNav.jet.html

* Update classic.css

* Update captcha.jet.html

* Fix order of torrents in admin panel index

* Update settings.jet.html

* make lang postform have same name as cookie
2017-11-09 11:53:38 +10:00
kilo 213780f0eb
Small fixes (#1715)
* Update main.css

* saving settings now clear old cookies of current domain

* Update main.js

* Update classic.css

* Update settings.go

* Update main.css

* Update commentlist.jet.html

* Update generate.go

* Update default_config.yml

* Update structs.go

* Update default_config.yml

* Update find.go

* Update find.go

* Update stats.go

* Update interaction.go
2017-11-08 09:32:06 +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
kilo 7f61eeb02b
Update classic.css 2017-11-01 04:29:55 +01:00
kilo ce0c812741
Update classic.css 2017-10-31 08:10:53 +01:00
kilo 5f30e0c031
Update classic.css 2017-10-31 08:09:52 +01:00
kilo bc7fb76e71
Update classic.css 2017-10-31 07:40:05 +01:00
kilo daacc546be
Update classic.css 2017-10-31 05:59:38 +01:00
kilo 32ddba50ab
Update classic.css 2017-10-31 05:49:24 +01:00
kilo d20fe56594
Update classic.css 2017-10-31 05:47:02 +01:00
kilo 3ae6e7df7e
Update classic.css 2017-10-31 05:45:05 +01:00
kilo 9792e4eee3
Update classic.css 2017-10-31 05:43:16 +01:00
kilo 44f76fc837
Update classic.css 2017-10-31 05:33:46 +01:00
kilo 8d2be6ca5b
Update classic.css 2017-10-31 05:15:48 +01:00
kilo 48d624fb47
Update classic.css 2017-10-31 04:49:36 +01:00
kilo 38aebaf827
Update classic.css 2017-10-31 04:38:04 +01:00
kilo 1318b855ba
Update classic.css 2017-10-31 04:30:04 +01:00
kilo 783e4fdf64
Update classic.css 2017-10-31 04:23:50 +01:00
kilo 30c6993df2
Update classic.css 2017-10-31 04:21:44 +01:00
kilo a4b9b34f9b
Update classic.css 2017-10-31 04:12:00 +01:00
kilo de6751b1f5
Update classic.css 2017-10-31 04:11:06 +01:00
kilo ee5a9488df
Update classic.css 2017-10-31 03:55:20 +01:00
kilo ec7c086350
Update classic.css 2017-10-31 03:47:44 +01:00
kilo 3cd90a7d08
Update classic.css 2017-10-31 03:41:43 +01:00
kilo 7a9e78b192
Update classic.css 2017-10-31 03:35:08 +01:00
kilo 0270ae9a92
Update classic.css 2017-10-29 06:14:39 +01:00
kilo 70effc65f7
Update classic.css 2017-10-29 01:26:48 +02:00
kilo 530fd0555a
Sukebei colors for classic theme, subscribe link on torrent pages (#1696)
* Add files via upload

* change url of files

* Delete topbar.png

* Delete dl-link.png

* Add files via upload

* sukebei colors for classic theme

* stylisation for follow link on torrents

* Update main.css

* Update tomorrow.css

* Update follow.go

* Update profile.jet.html

* Update user.go

* Update view.jet.html

* Update view.go

* Update view.jet.html

* Update view.jet.html

* Update tomorrow.css
2017-10-28 21:50:32 +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
kilo 40b90f1739 Update index_site.jet.html (#1681)
* Update index_site.jet.html

* Update classic.css
2017-10-18 19:38:21 +10:00
kilo ebfcf90d99 Update classic.css (#1670)
* Update classic.css

* coveralls test

* add additional user search route
2017-10-16 03:08:21 +02:00
kilo 1ec2a77974 fix wrong translation string being used on user edit page for mods & improve stats.go (#1665)
* fix wrong translation string being used on user edit page for mods

* fix css rule that did not apply

* fix error in stats.go

* stats.go scrapes default trackers if torrent has no tracker

* remove useless thing

* change behavior of right arrow in page list (now goes to latest page)

* fix { too much

* Update view.jet.html

* Update view.jet.html

* pin user search input & link at the bottom of user page

* HTML to go along
2017-10-15 13:18:57 +02:00
kilo ba058ec3e1 Prevent session cookie from existing on .pantsu.cat & other things (#1658)
* Update user.go

* Update main.css

* add comment

* fix JS function that did not  behave as intended

* Update classic.css

* Update classic.css

* Update search.jet.html

* Update en-us.all.json

* Update site.jet.html

* Update router.go

* Update search.go

* Update helpers.go

* Update search.go
2017-10-14 11:16:34 +10:00
kilo 88904bade9 Medium changes (#1642)
* lower top margin for comment usernames & avatar

* Update classic.css

* temporary workaround to hide quadrupled comments

* Update view.jet.html

* Add "search from user" input below user rss link, change styling of follow button to fit other links

* all into the same div

* Remove padding of usersearch input in panel, remove useless css rule

* min-width for user buttons, max-width for the input

* Don't show "search from this user" if it's your profile

* remove max-width when responsive userprofile kicks in

* remove useless css rule

* Update view.jet.html

* le fix

* optimize stats.go a bit and add comments

* Update stats.go

* Update template_functions_test.go

* Update template_functions.go

* Remove hardcoded theme list, generate dynamically

* ditto

* Add possibility of forcing a theme for everyone

* in the .yml config file

* Make it ignore both user settings and cookies

* add forced theme in default theme config struct

* Update publicSettings.go

* fix missing , & travis

* Update template_functions_test.go

* Update main.css

* fix travis

* Update template_functions_test.go

* travis
2017-10-07 01:39:38 +02:00
kilo 5496d6e19d Lower amount of torrents shown in user profile from 20 to 15, user not found page (#1631)
* Lower amount of torrents shown in user profile

* Additional routes for user search

* Handler for user not found page

* User not found error page, with input to search username

* Move theme css in their own folder

* Delete g.css

* Delete classic.css

* Delete classic_colors.css

* Delete tomorrow.css

* Delete bg-body.png

* Delete bg-header-tile.png

* Delete s_bg-header-tile.png

* Change path used by stylesheet in html head

* Change theme path used by JS theme changers

* Update user_not_found.jet.html

* Update CHANGELOG.md

* Update en-us.all.json

* fix ad scrolling

* remove useless stuff

* fix travis & json file

* fix travis again

* remove duplicate

* Update CHANGELOG.md

* Writing an username instead of an userid in userprofile URL will no longer return the Anonymous profile

* redirect to username search instead of rendering a template without checking if username exists
2017-10-04 15:46:06 +02:00
Renamed from public/css/classic.css (Browse further)