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

103 commits

Auteur SHA1 Message Date
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
akuma06 ce90f6fbce Improved a bit the placement of the function. Now FlagCode is in Templates js renderer (same place as the golang counterpart) 2017-07-21 01:47:36 +02:00
akuma06 5f0864f36a fixing zh-Hant flag 2017-07-21 01:38:33 +02:00
akuma06 b28fe5cf3c Moving kilo to new api 1.1.0 2017-07-20 22:00:42 +02: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
akuma06 cdd25c1712 Adding some comments 2017-07-18 21:55:40 +02:00
akuma06 18e433980f Fix kilo.js 2017-07-18 21:46:00 +02: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
kilo 4d24f3adea Fix missing ] 2017-07-18 13:03:53 +02:00
kilo 2e81abb3bc Automatically add flag based on keyword (#1219)
* add VOSTFR

* Update kilo.js

* debounce

* add [eng] keyword

* add [jp] keyword

* add [jpn] keyword

* add ' eng ' and '[english]'
2017-07-17 22:05:49 +02:00
kilo 68780a6652 better background color for mod tools, torrents don't move around when you show the checkboxes 🐤, fix auto-updating JS for mods (#1224)
* preliminary CSS work

* only apply button rule to #show_actions

* forgot the JS

* fix auto-updating for mods

* woops wrong file

* there
2017-07-17 22:05:24 +02:00
akuma06 e9b6f3c3c7 Fixing translation in modtools
I don't understand this though #1201 . Deletes work fine here
2017-07-17 15:10:08 +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 0a6ce25b30 nice commit while im editing files ;-; 2017-07-16 17:36:17 +02:00
kilo bab885d7a2 add new nyanpassu in js 2017-07-16 17:35:18 +02:00
kilo c3b2b0fbe9 update torrent lang once load is done (didn't work in Chrome before) 2017-07-16 14:41:24 +02:00
kilo e1d030c500 Update kilo.js 2017-07-16 12:51:00 +02:00
PantsuDev 913028f529 Comply with JS styling recommendations 2017-07-16 14:43:09 +10:00
akuma06 7104847af4 Improved a bit kilo.js 🐤 2017-07-16 00:17:44 +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 4fd5111193 Update kilo.js 2017-07-15 16:16:43 +02:00
ewhal 5b23521496 Merge pull request #1198 from Kiloutre/patch-13
up to date flag.min.css & removal of unwanted margin & small other stuff
2017-07-15 23:34:33 +10:00
kilo d43adf7624 Update kilo.js 2017-07-15 14:11:05 +02:00
kilo 5eb291d50b scroll to top of the page when opening refine 2017-07-15 13:08:23 +02:00
kilo 6e6adb538d Update kilo.js 2017-07-15 12:02:08 +02:00
kilo cbc0ec9110 sukebei category fix 2017-07-15 00:16:35 +02:00
kilo efca37616e sukebei category support 2017-07-15 00:15:37 +02:00
kilo 0dcb9e3c5d change value to .checked 2017-07-14 23:24:12 +02:00
kilo d166f29a74 Update kilo.js 2017-07-14 22:25:35 +02:00
kilo 7415843336 Update kilo.js 2017-07-14 22:21:12 +02:00
kilo aaf795b7d6 Update kilo.js 2017-07-14 22:05:25 +02:00
kilo 11cf6354f1 add remake JS 2017-07-14 22:04:01 +02:00
kilo 3efaad9e58 Update kilo.js 2017-07-14 21:59:05 +02:00
kilo 7382f175b9 JS script, missing flag stuff 2017-07-14 21:34:25 +02:00
kilo 678bb62bb3 Update main.js 2017-07-14 21:04:33 +10:00
kilo e92e306bdc Make category in refine update based on category in header 2017-07-14 21:04:33 +10:00
akuma06 5be870e21b Add commit from kipukun on simplemde 2017-07-13 13:57:19 +02:00
akuma06 e1d6e7df20 Changing to the new behaviour of package languages 2017-07-12 12:04:20 +10:00
akuma06 f8de340265 Added search refine on every pages + fixed kilo.js 2017-07-10 15:24:52 +02:00
kilo 328edbe9a0 no idea if that works, i think it doesn't 2017-07-10 22:11:35 +10:00
kilo d1a5a74f54 Update main.js 2017-07-10 22:11:35 +10:00
kilo 06442da77f Fix wrong JS variable name & some css stuff (#1151)
* Update main.js

* remove workaround that doesn't work

* Update torrents.jet.html

* Update search_handler.go

* Update search.jet.html

* Update main.js

* Update main.js

* Update search_handler.go

* Update main.js
2017-07-10 17:33:26 +10:00
kilo acf0ae0fad Make refine button submit form if refine dropdown doesn't exist (#1149)
* Update site.jet.html

* Update main.js

* remove onload

* Update main.js
2017-07-10 15:36:24 +10:00
kilo f5a86525d0 Header & refine dropdown changes (#1130)
* add button in header & remove two options from header search

* dont show refine button on small screens

* remove the div in there

* to put it there and add display: none when needed

* add refine class for future js code

* add function in code to toggle refine

* more html changes

* spacing changes

* add limit & show trusted and all that stuff to refine

* add margin

* obligatory css changes

* forgot {{ }} for a variable name

* add function on onclick refine button

* wrong file

* put onclick & translation on button
2017-07-10 13:57:59 +10:00
akuma06 59a9aa6ad9 Fixing Translations.js + kilo.js 🐤 2017-07-07 02:25:36 +02:00
kipukun ;_ 121101fe1c Frontend small (#1040)
* Header isn't as WIDE on resolutions past 1920

* Turn down the fucking volume because it scares the shit out of me everytime

* Make clear the mascot is clickable

* Make torrent buttons not fuckhuge

* Just show N/A on no website

* search.html: Fix minor typo in refine box
2017-06-21 11:28:47 +10:00
kipukun 95173a0f33 Frontend v9000 (#1008)
* Should fix old uploader name in torrent view

* Fix "save changes" in modtools

* Modtool more colorful

* Fix search bar placement in modpanel

* Make colors more consistent; less would be super helpful tbqach fam

* Display the old username if it's there

* Fix some admin index html

* Add custom icons and remove png code from all CSS

* Move a good amount of cosmetic code from main to classic

* Fix some weird bug with point-events; add some global icon formatting; fix mascot fucking up

* Spruce up admin panel with icons on smaller viewports, along with adding trash icon

* 404 redesign ;^)

* Mufuyu mascot on all themes; says something slightly lewd

* Fix weird user menu bug where shit would overflow
2017-06-16 08:57:52 +10:00
Ramon Dantas d8e17478f8 Country flags (language) for torrents. (#970)
* Add flags for torrents

Add a new field, .Language, to the Torrent model, and a new package,
torrentLanguages, which maps languages to flags. Added also a flag icon pack
from googlei18n/region-flags, with (mostly) public domain flags from Wikipedia.

* Optimize flags

* Use FlagSprites CSS instead of .png files

* Only use flags for languages we support

* Add test for CSS flags

Ensure that we have all the flags for the languages we support.

* Add AdditionalLanguages field to config

This allows us to support additional languages for new uploaded torrents,
even if we have no translation for it.

* Minor CSS fix

* Add "other" and "multiple" torrent languages

Also removed the TorrentLanguage struct, as it wasn't much useful.

* Fix test

* Add colspan=2 to category when language is empty

Also hide the language column if empty.

* Add lang field to search.

Hopefully it works with Elasticsearch as well, but I haven't tested
(lol Java)

* Add language field to ES index and settings

* Add language column to JS template

* Add keyword type to language ES field

* Remove 'raw' from keyword

* Set "simple" analyzer on language

* Document .Language field on Torrent model
2017-06-12 09:14:26 +10:00
PantsuDev 77295492f3
Add libre-js support 2017-06-04 15:43:41 +10:00
MMP0 87117d08de Update humanFileSize function 2017-06-02 13:46:59 -05:00