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

92 commits

Auteur SHA1 Message Date
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
akuma06 1974692480 Forgot the selectAll.js 2017-06-02 20:22:15 +02:00
akuma06 e9002ee638 Added translations support to mass edit api + improvements
* new translation strings
* new Translations object which can be used to translate string in js
* fix a the disappearance of checkboxes on new item loaded by ajax
2017-06-02 15:42:53 +02:00
akuma06 e62ebb05ba Mass edit mod api JS (done) (#868)
* Mass Edit MOD api JS (WIP)

In continuity with the mass edit mod api, this is the javascript use of
it.
##What does it do?
* Delete of multiple torrents on index/search
* Category change of multiple torrents
* Change of owner of multiple torrents
* Lock & delete of multiple torrents

##How?
* New toolbar only visible for mods
* Checkboxes added only for mods
* Selection and click on the button in toolbar
* Nothing is submitted, you have to review the changes in a modal window
listing them.
* Then the ajax queries are initialized one at a time with a progression
bar
* You can always at any moment delete entries from the queuing list

* Improved progress bar

* Deleting part almost done

Improved modal design
All dom interactions should be done
Prepared Query for only one callback
Improved Modal to keep a link to the active modal

* Finished =D

Added some translation string

* Forgot the refreshing of the page

Just an option that can be disabled by making refreshTimeout to 0
2017-06-02 12:51:44 +10:00
akuma06 b546e6b1d3 Forgot parameters to Get() 2017-05-31 12:39:38 +02:00
akuma06 133947df0a Updating xhr request
* Querying when request has failed
* Added a maximum consecutive query parameter to limit query when server
has shutdown
* By default I've put it to -1 (no maximum), it can be modified
* Stopping with an error when too many failed query
* Removing log message in torrents.js
2017-05-31 12:36:39 +02:00
Steindór ffbbacb84a Maskot to cookie (#857)
* Put the mascot into the cookie as well, major js cleanup

* Update en-us.all.json

* removed redundant translation
2017-05-30 21:21:35 -05:00
Mitki aeb8039250 Mascot button loses its translation when clicked (#855) 2017-05-31 00:02:40 +02:00
akuma06 ae1628e921 Some js fixes and improvements
Better handling of Torrents.StopRefresh()
Keep the order of torrents
Encode html entities from torrent name (prevent execution of unwanted
html tags)
2017-05-30 15:19:45 +02:00
akuma06 b0cf17c77c Renamed the search argument FromID instead of TorrentID 2017-05-30 14:12:42 +02:00
akuma06 29056496d0 Removed console.log + added auto-update 2017-05-30 00:30:36 +02:00
akuma06 402fce9f02 Api Last Torrent + xhr automatic refresh
* Added a fiel torrentID in search param
* Search can be limited to torrentID > id provided
* Templates creation through simple JS object
* XHR management through simple JS object
* Torrents object that interface with Templates and Query to get new
torrent uploaded according to the search context
2017-05-30 00:28:21 +02:00