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

80 commits

Auteur SHA1 Message Date
kilo
df82737824 display: none on these inputs that do nothing at the moment but will in the future 2017-09-01 07:17:55 +02:00
kilo
6209dfbfb2 Load query.js in base as theme toggler JS requires it (#1449)
* Have to include query.js in very page because of theme toggler

* Remove query from other files

* remove query

* Remove kebab

* better color
2017-08-30 21:29:52 +10:00
kilo
5a184bfb50 "Alternating Colors" option in settings (#1440)
* Non-bold torrent name when using alternating background colors

* Add alternating colors for g.css

* Add alternating colors for classic.css

* Add alternating colors for tomorreuw

* Update classic.css

* Add alternating colors to settings page

* Add alt-colors class to tbody if enabled

* Add GetAltColorsFromRequest() function to get AltColors cookie value

* Create AltColors variable for usage in listing

* Make settings handle altColors input

* Add AltColors in user struct

* Returned the wrong variable here

* Turn function return value into bool

* Condition checks variable like a bool

* ditto

* better color for g.css

* even better color

* better

* Last change for g.css

* Improvement for tomorrow

* Update classic.css

* add alt-colors class to upload preview

* Add alt-colors to user profile

* more vivid color for g

* Fix typo

* Remove browser outline for refine when clicked on

* remove browser outline

* Fix rules that didn't apply and category icon being way too small on user profile thanks to usage of percentage

* Remove show-xs class for search inputs

* Turn refine button back into position: absolute to pin at very bottom of refine

* Alternating colors for g's trusted, remake & aplus

* Update tomorrow.css

* attempt at fixing travis

* test (will have to rollback that change)

* rollback

* will have to rollback

* will have to rollback

* will have to rollback

* will have to rollback

* add AltColors variable to template test

* rollback

* rollback

* rollback

* rollback
2017-08-30 15:21:45 +10:00
kilo
4e361ccce0 Prettier tags on upload (#1420)
* HTML changes to have tags in one div

* Add form-input class to tags inputs in upload

to have them look like regular inputs

* CSS changes to make tags inline

* Add changes to torrent edit

* Add changes to admin torrent edit

* attempt at fixing travis

* rollback admin edit in an attempt to fix travis

* Fix tags being visually broken in one very specific resolution

* fuck this shit
2017-08-28 11:42:38 +10:00
akuma06
b3e3ec6083 Fix Navigation Admin Panel (#1398)
* Fix Navigation Admin Panel

* Fix broken html on reassign page

* fix user link in comment list

* Fix Unknown bytes

* Fix switch file upload/magnet

* fix modtools background white + width

* fix /mod/ redirection url

* Fix last torrents on modpanel

* empty torrent file input

* Add hidden class to h3
2017-08-26 12:15:28 +10:00
akuma06
2b4731d16c Dbidlinks (#1396)
* Add Anidb, Vndb, Vgmdb links

* Anidb, Vndb, Vgmdb and Dlsite links into tag design
* Add external links to Anidb, Vndb, Vgmdb and dlsite

* Add filter links to tags

* Filter string translation already exists

* Fix display tags

* Update translation changelog

* Do not display tag type when default
2017-08-26 11:42:12 +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
kilo
a7e8ceac11 Update upload.jet.html 2017-08-03 14:47:07 +02:00
kilo
f19d42cd59 Update upload.jet.html 2017-08-02 21:50:10 +02:00
kilo
1f81502ca6 Update upload.jet.html 2017-08-02 21:48:57 +02:00
kilo
c32211a167 JS trigger the display 2017-08-02 21:48:03 +02:00
akuma06
0db143d685 Possibility to add tags from edit panel + upload 2017-08-01 23:38:13 +02:00
akuma06
e68637198f Add ajax tag post + improved the way templating works 2017-08-01 13:54:01 +02:00
PantsuDev
cdabd79c03 Fix more style issues 2017-07-24 15:03:43 +10:00
kilo
54b2813e3c Put rules into their own file list flag list (#1259)
* Remove html rules from upload, load rules file and call the rule function

* Update faq.jet.html

* Create rules.jet.html

* forgot to remove old list

* forgot to do that

* remove <br/>

* Update main.css

* Update g.css

* add jav flag keyword

* Update kilo.js

* add h-games keyword
2017-07-22 14:07:57 +02:00
kilo
116464f43b Show seeder & leecher down to 520px wide at worst instead of 810px (#1257)
* change seeder & leecher width at lower res

* change class for seeder & leecher

* add new class to hide stuff when below 520px wide

* add those classes in upload

* change classes in torrent updating JS

* change class in torrent updating JS for upload
2017-07-22 00:27:10 +02:00
kilo
3604f3d933 Fix css missing ; & wrong class position in html (#1240)
* Update main.css

* fix wrong class
2017-07-19 23:07:39 +10:00
kilo
a5986cc543 Fix padding of torrent list on mobile & torrent preview stuff (#1239)
* Update main.css

* Update main.css

* Update main.css

* Add two example torrents

* only keep previewed torrent when updating with newer ones

* Update upload.jet.html

* wrong class here

* Update main.css

* rollback

* Update upload.jet.html

* Update kilo.js

* Update upload.jet.html
2017-07-19 22:24:04 +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
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
7b28e3323a fix sukebei condition 2017-07-18 15:56:50 +02:00
kilo
b7fa22d3d8 rules not open by default 2017-07-18 15:44:34 +02:00
kilo
7c79f88298 Update upload.jet.html 2017-07-18 15:33:15 +02:00
kilo
6da72d0017 Update upload.jet.html 2017-07-18 15:30:45 +02:00
kilo
5eb56a4ea1 Make previewed real torrent hidden (50% opacity) and remove any link they have to avoid painful missclicks (#1222)
* Update upload.jet.html

* Add files via upload
2017-07-17 21:54:06 +02:00
kilo
e757f83a16 Preliminary addition of rule list 2017-07-17 16:09:14 +02:00
akuma06
81113001df Context list on upload preview (#1220)
* Update kilo.js

* torrent item js as a separate file to prevent redudancy

* Adding context list

* Fix indent
2017-07-17 14:20:18 +02:00
kilo
e3606bf91b Align search icon with refine text, fix display of category in preview on mobile, better padding on .box for mobile (#1218)
* Update main.css

* fix category image of preview torrent that got cropped at lower res

* padding on mobile

* remove css
2017-07-17 13:19:41 +02:00
kilo
acda05449e this will be done in JS 2017-07-16 12:52:58 +02:00
ewhal
c1acbdb2ff Merge branch 'refactor' into patch-5 2017-07-16 20:21:00 +10:00
kilo
3ed5ba0f17 that wasn't up to date with refactor 2017-07-16 10:56:09 +02:00
akuma06
7104847af4 Improved a bit kilo.js 🐤 2017-07-16 00:17:44 +02:00
kilo
de45e8a861 show one torrent above & under the previewed one 2017-07-15 22:39:51 +02:00
kilo
511d074e84 it works merge pls (#1204)
* remove custom_flag.css

* remove ' that had nothing to do here

* replace sukebei variable to boolean

* fix ? operator & variable name

* attempt at fixing visual cues for anonymous torrents

* Update torrents.jet.html

* add missing ,

* useless code if user logged off so moving that

* add it back here and check if logged in

* should work almost properly now

* same here

* flag-other invisible

* Update kilo.js

* Update upload.jet.html

* should work very well now

* same here

* Delete categories.png

* Add files via upload

* Update main.css

* Update kilo.js

* Update upload.jet.html

* Update kilo.js

* Update torrents.jet.html

* proper behavior for trusted people

* different flag form id

* add id

* add language name in an span

* make that span invisible =)

* Update flags.jet.html

* Update upload.jet.html

* Update kilo.js

* whoever read this is a faggot

* Update upload.jet.html
2017-07-15 21:41:57 +02:00
kilo
2a8b4ce9c3 Update upload.jet.html 2017-07-15 16:19:30 +02:00
kilo
6dbff68fca fix Sukebei variable & lang count again 2017-07-15 16:10:38 +02:00
kilo
21aa2df59e fix language count because Go is shit (now in JS) 2017-07-15 16:01:56 +02:00
kilo
8c7050cc6b fix display of torrent preview that didn't trigger 2017-07-15 15:59:30 +02:00
kilo
b2932e41b2 Update upload.jet.html 2017-07-15 14:11:22 +02:00
kilo
d45ddbd3d1 Update upload.jet.html 2017-07-15 12:02:06 +02:00
kilo
438f84f090 make use of above change to have the right category by default if the form isn't empty 2017-07-15 11:53:46 +02:00
kilo
c038687b67 add default torrent name & flag based on form 2017-07-15 11:48:42 +02:00
kilo
7f00e5870b Update upload.jet.html 2017-07-15 09:01:04 +02:00
kilo
aff5a33ab0 Update upload.jet.html 2017-07-15 09:00:26 +02:00
kilo
dad6c3edaf removal of view things to try to get it working 2017-07-15 08:53:47 +02:00
kilo
6b0b006059 Update upload.jet.html 2017-07-15 00:17:20 +02:00
kilo
53eee04c33 Update upload.jet.html 2017-07-14 23:43:45 +02:00
kilo
2eadec4230 Update upload.jet.html 2017-07-14 23:34:56 +02:00
kilo
978b1e8d0a js function to update lang 2017-07-14 23:32:03 +02:00
kilo
b6171f6326 Update upload.jet.html 2017-07-14 22:53:35 +02:00