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

3029 commits

Auteur SHA1 Message Date
akuma06
eea581bae9 Removing SearchType and SearchOrder + Move to new date search behaviour (#1395)
* Update search.go

* Update helpers.go

* Update search.jet.html

* Update search.jet.html

* Removing SortOrder and SortType from template's Search struct. Since we already have them in main torrentParam search struct and we don't need to overwrite them.

* Replaced old date search filter behaviour
2017-08-26 11:24:25 +10:00
akuma06
c49fba015c Removing filter on listing.jet.html (#1393)
Filtering here would mean giving random number of results instead of showing constant number. And can mislead people to think that there are no results and also force people to switch pages more often.
For example, if there are 48 hentai results on the 50 results. It will display only 2 results on the page. People would therefore think that there are only two results for the search or would make them changing the page every two (or more) results instead of 50.
Finally this doesn't fix at all the results in the RSS feeds & the API endpoint.

The hentai results should be fixed in the scrapper.
2017-08-25 10:30:09 +10:00
Myrmece
2a6d7dcda8 Updated translation. (#1392) 2017-08-23 09:08:44 +10:00
kilo
bce96c86c7 Update search.jet.html (#1391) 2017-08-23 08:41:29 +10:00
kilo
36b3920ef4 Fix theme toggle not working for logged-in users (#1390)
* Update user theme too in themeToggle.go

* Forgot a "
2017-08-23 08:25:40 +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
af36bb0ea7 Fix wrong behavior when opening refine through JS & replace farFutureString() function by variable (#1387)
* Check if searchbox & category is empty instead of not equal

* Replace farFutureString() by variable

The function was getting executed multiple times which triggered the creation of a new variable and the call of multiple functions multiple times throughout the code, instead it's just executed at the very start of the code

* Fix date showing negative difference (-20 days old)
2017-08-22 11:34:20 +10:00
akuma06
6247646492 How-To Controller (#1386) 2017-08-22 11:02:22 +10:00
kilo
1a0f8e6604 Add failsafe to prevent theme1 & theme2 being dentical at time (#1385)
* Add failsafe for theme toggle

* remove unneeded /
2017-08-22 10:49:43 +10:00
kilo
cd4154cf7f Remove hentai keyword if not sukebei (#1383) 2017-08-21 11:00:19 +10:00
kilo
bda181ee54 Add toggle dark theme for non-JS users (#1381)
* Add themeToggle handler to router.go

* Create themeToggle/router.go & ThemeToggle.go

* Add link to /dark in footer, remove display = none on toggle dark mode

* Remove JS that ordered toggle dark mode link to show as it is now constantly visible

* Rollback to fix errors

* Add some comments

* Create redirectUrl variable & set it's content then use it to redirect user

* Remove useless log

* Remove usage of fmt

* Add redirect get parameter to toggle link

* Add another url for toggleTheme

* wooo

* Update base.jet.html

* Update base.jet.html
2017-08-21 10:48:17 +10:00
akuma06
f3eaa2285b Information on how to use nyaa template system (#1384) 2017-08-21 10:30:47 +10:00
kilo
b31e420397 Add missing <br /> (#1382) 2017-08-20 23:42:06 +02:00
hksy46
58217a5182 Update ru-ru.all.json (#1380)
(almost) full and (almost) correct russian translation
2017-08-20 08:34:06 +10:00
kilo
ed0f320159 Add nyoo.moe & sukebei.nyoo.moe links to FAQ (#1378)
* Add nyoo.moe mirror to FAQ

* oh shit totally forgot about ""
2017-08-20 00:00:27 +10:00
MMP0
46f29f93de Update Japanese translation (#1379)
* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json
2017-08-19 23:46:39 +10:00
kilo
4f00f74859 change position of return (#1374) 2017-08-17 11:35:18 +10:00
kilo
2052f2370c Put right css class and remove tag styling (#1377) 2017-08-17 11:13:18 +10:00
Myrmece
21058924a3 Updated translation. (#1372) 2017-08-15 16:44:04 +10:00
kilo
199d2b3b85 Add "sort by" inputs in refine on low res (#1369)
* Add HTML for sorting by name etc

* Add CSS to hide inputs for sorting in refine

* Set value of SortOrder on true if on true (wew)

* Add SortOrder & SortType variables

* change translation strings

* add translation strings

* forgot a missing { and change ascending value
2017-08-14 15:56:45 +10:00
kilo
d51eb1ba60 Fixed width for text in refine, make smaller header apply at 500px wide devices & under (#1368)
* Fixed width for text in refine

* make smaller header apply at 500px & under

* remove useless line

* hide notification count if no new notification
2017-08-14 15:37:37 +10:00
kilo
d0efb33749 Lower title (h3) margins in refine & some small other stuff (#1367)
* Fix rule that didn't apply and change it's value

* Remove css rule from html

* one pixel higher margin

* smaller category in refine, bigger minimu msize for searchbox

* fix for too big searchbox at some very specific resolution

* lower height level for log-in icon

* add "sign in" text when hovering log-in link
2017-08-12 17:20:47 +10:00
kilo
645a711222 Update main.js (#1366) 2017-08-12 16:52:54 +10:00
kilo
99f93a83be Remove unused stuff (#1365)
* remove no-torrent class

* remove no-torrent from css

* remove no-torrent from preview JS

* remove no-torrent from auto-updating JS
2017-08-12 16:36:44 +10:00
kilo
eeaeb644bf tr-links of lower size if no torrent link & some other stuff (#1362)
* Add "no-torrent" class if no torrent link

* Add no-torrent class that changes width

* add & remove needed !important

* more padding between 860 & 1050px wide

* aids

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* fix display on IE

* Update main.css

* no-torrent class in torrent auto update

* no-torrent class in torrent preview

* fix bug

* fix identical bug

* fix for small header

* small value change
2017-08-09 21:48:26 +10:00
kilo
ff2efb347d Fix toggle theme that created a cookie on the wrong domain & header at lower res (#1361)
* add domain to cookie

* fix header icons at lower res
2017-08-09 21:24:42 +10:00
Golumpa
88bea245f1 update login.jet.html (#1364)
* Add icon-user to nyacon font

* forgot to update font file versions

Some people will still get the old font files without the icon-user added to it

* update login.jet.html
2017-08-08 11:29:39 +02:00
kilo
ab9e3906e2 Fix main.js (#1352)
* Update main.js

* Update main.js

* Update main.js

* Update main.js
2017-08-07 14:51:25 +10:00
Lamppostmanufacturer
e0068456e7 Add Indonesian translation, credits go to @39-chan (#1350)
Thanks @39-chan for helping us out
2017-08-06 00:04:16 -05:00
kilo
03b1dd91d1 Add indonesian flag (#1357)
* Add indonesia class

* Add indonesia class to flag.min

* Need to delete flags.png before uploading new one

* Upload flags.png with indonesia flag

* Fix wrong classname

* Fix wrong class name2

* better indonesian & multiple flags
2017-08-06 01:34:29 +02:00
kilo
df9b07d90e Fix horrible subs description / <code>'s width in description (#1353)
* Update main.css

* styling consistancy

Im still wondering why 10% of it is single lined while the other 90% is proper
2017-08-05 16:24:24 -05:00
kilo
3e22adca7b Update main.css (#1351) 2017-08-04 21:20:29 +02:00
kilo
c2541bed3e Header smaller for lower height screens (#1341)
* Update main.css

* lower H3 bottom margin

* smaller spacing for refine inputs

* Update main.css

* remove useless shit
2017-08-04 21:08:05 +02:00
Lamppostmanufacturer
846e9d2b8a Translation Overhaul #2 (#1345)
* Update it-it.all.json

* Update nl-nl.all.json

* Update pt-br.all.json

* Update pt-pt.all.json

* Update ro-ro.all.json

* Update th-th.all.json
2017-08-04 16:05:59 +02:00
MMP0
00e092372f Update ja-jp.all.json (#1348) 2017-08-04 15:40:30 +02:00
Myrmece
e1cf80169c Updated translation. (#1347) 2017-08-04 15:18:51 +02:00
MMP0
81a8f1c65c Update en-us.all.json (#1343) 2017-08-04 14:50:30 +02:00
kilo
2cca143121 Hide "support pantsu"" if announcement is there (#1340)
* add no-center class if announcement exist

* add no-center class that hides .no-center > center

* Update index_site.jet.html
2017-08-04 10:10:46 +10:00
Golumpa
6ce056adf0 Forgot to change font file version (#1339)
* Add icon-user to nyacon font

* forgot to update font file versions

Some people will still get the old font files without the icon-user added to it
2017-08-04 10:10:15 +10:00
kilo
75a98cf6e7 Show hours & minutes (instead of days & hours) when hovering last scraped date (#1335)
* Update main.js

* Update view.jet.html

* Update main.js
2017-08-03 22:09:06 +02:00
kilo
2dcda75a09 Update main.css (#1336) 2017-08-03 22:07:55 +02:00
kilo
08820ee696 Use of Golumpa's user icon as "sign in" for lower res (#1338)
* allow different width for h-user, turn "sign in" into icon at 1100px

* Update main.css

* html for the icon
2017-08-03 22:07:42 +02:00
Golumpa
1943bd321e Add icon-user to nyacon font (#1337) 2017-08-03 22:07:03 +02:00
ewhal
6ed3d923b5 Merge pull request #1333 from Lamppostmanufacturer/patch-4
Translation Overhaul
2017-08-03 23:10:02 +10:00
PantsuDev
8307b947e1 Add more trackers 2017-08-03 23:08:12 +10:00
ewhal
df8e155a35 Merge pull request #1332 from Kiloutre/patch-7
Fix date difference & display of tag stuff in upload
2017-08-03 23:00:32 +10:00
ewhal
d79277efed Merge pull request #1331 from Lamppostmanufacturer/patch-3
Update de-de.all.json
2017-08-03 22:52:20 +10:00
Lamppostmanufacturer
0d617287ce Update zh-tw.all.json 2017-08-03 14:51:05 +02:00
Lamppostmanufacturer
83644f92ff Update zh-cn.all.json 2017-08-03 14:50:50 +02:00
Lamppostmanufacturer
c448314a84 Update sv-se.all.json 2017-08-03 14:50:34 +02:00