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

2092 commits

Auteur SHA1 Message Date
gjwufq3x
bb301e4671 mobile icon fixes (#894)
* mobile icons now match /g/ theme

* replace mobile fun icon with one you can actually see
2017-06-03 16:30:34 +10:00
John Smith
ad566d672c
Comments 2017-06-03 13:57:00 +10:00
John Smith
de176ee1f2
Inline 2017-06-03 13:57:00 +10:00
John Smith
21977ff406
Clarity 2017-06-03 13:57:00 +10:00
Atvaark
99ad76f76f Add web address config (#888)
* This allows changing the nyaa, sukebei and status URL via config.
  Previously only the nyaa address was configurable
* This helps testing changes locally without having to set up
  a TLS terminating proxy
* Also refactored uses of hardcoded URLs in the html templates
  The html templates will now also use the configured urls
2017-06-03 11:45:24 +10:00
kipukun
1365f18398 Make forms look a little better (#885) 2017-06-02 22:35:42 +02:00
kilo
22b0f9f01e Make usernames stick to avatar in navbar (#886)
Usernames were hovering in between the search bar & avatar because of a fixed width:91px; (done because of character limit), so i instead replaced it to a max-width so that short usernames wouldn't just float in there
2017-06-02 22:34:38 +02:00
kilo
5f9b780b97 Put notification count in () (#884)
It was an ugly "Notifications 0" before, now it will be "Notifications (0)"
2017-06-02 22:05:41 +02:00
MMP0
87117d08de Update humanFileSize function 2017-06-02 13:46:59 -05:00
akuma06
a77e341585 Added an edit button 2017-06-02 20:24:44 +02:00
akuma06
1974692480 Forgot the selectAll.js 2017-06-02 20:22:15 +02:00
akuma06
0223fe1014 Added Moderation Panel in page title 2017-06-02 20:12:17 +02:00
akuma06
bd7fe52273 New ModPanel Theme (#883)
* New ModPanel Theme

* Implemented the new @kipukun theme in ModPanel
* Added new translation string
* Fixed the toolbar in /mod/torrents

* Little fix on torrents report

* Remove double navigation

* Added a tag h1 for pages and new translation strings~

* fix warn message
2017-06-02 20:10:36 +02:00
akuma06
3afde2e3c1 Merge pull request #881 from NyaaPantsu/new-search-date-filter
Field Date Filter
2017-06-02 16:33:13 +02:00
akuma06
61a0ab0bc3 Added also a maxage field
Now you can provide ?maxage=nb_days to get the torrents from the last
nb_days days
2017-06-02 16:25:45 +02:00
akuma06
f41f2c3a25 Field Date Filter
* Search can be filtered out with ?fromDate=2017-05-01 and
?toDate=2017-05-12
2017-06-02 16:10:31 +02:00
akuma06
b3f2b7bc8c Merge pull request #880 from NyaaPantsu/mass-edit-api-international
Added translations support to mass edit api + improvements
2017-06-02 15:43:21 +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
68a9453c68 Merge branch 'dev' of https://github.com/NyaaPantsu/nyaa into dev 2017-06-02 12:44:43 +02:00
akuma06
7dc9004e7d New Config for sukebei
Just launch with : `./nyaa -conf config/sukebei.yml`
2017-06-02 12:44:38 +02:00
akuma06
1e073abb88 Merge pull request #879 from Myrmece/patch-3
Updated translation.
2017-06-02 12:18:44 +02:00
Myrmece
7e0714aa33 Updated translation. 2017-06-02 11:45:48 +02:00
Steindór
d1ff3866ea Default theme change (#875)
* changed session cookie expiry

* made /g/ the default theme
2017-06-02 13:36:15 +10: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
kipukun
c4511f7238 Style error texts on form inputs, everywhere (#877) 2017-06-02 12:50:56 +10:00
tomleb
1d7c3a9ca7 Merge pull request #876 from kipukun/frontend-chiisai
ちいさい changes
2017-06-01 21:22:07 -04:00
kipukun
38cf9ab994 Fix up settings page a bit 2017-06-01 20:16:56 -04:00
sfan5
b96de6ce4b Minor code cleanup for commit b6989f77d0 2017-06-01 23:17:36 +02:00
akuma06
b6989f77d0 Fix for RFC dates in comments 2017-06-01 21:47:59 +02:00
Atvaark
8cab61802c Add session cookie config (#874)
This allows changing the cookie domain, maxage and the hash/encryption
keys via the config file.

If no key is provided a new one is generated on each reboot.
But if both keys are provided the session cookies are now valid even
after a server reboot.
2017-06-01 23:10:00 +10:00
Eliot Whalan
95548878e6
Use Config.Version for asset versioning and async js 2017-06-01 16:32:38 +10:00
Eliot Whalan
6cadcbdc6f
fix up minor template bug 2017-06-01 16:32:38 +10:00
tomleb
4341b0586a Merge pull request #873 from tomleb/fix_name_sort
Use raw entry for sorting by text
2017-05-31 22:05:50 -04:00
tomleb
e3e3bb020e Use raw entry for sorting by text 2017-05-31 22:04:49 -04:00
tomleb
7ecae17679 Merge pull request #872 from tomleb/some_fix
Fix single letter search and wrong column name
2017-05-31 21:32:33 -04:00
tomleb
212027c6a6 Use minimum 1 ngram (ie: for Gantz O) 2017-05-31 21:20:58 -04:00
tomleb
418254af3f Fix wrong column name in torrents_action 2017-05-31 21:20:04 -04:00
tomleb
ba683c3bcb Improve search and fix '*' in search box (#871)
* Improve ES search

The new performance is very good.
Some examples on my 1.5gb vm:
INFO[0153] Query 'shingeki' took 6 milliseconds.
INFO[0125] Query 'アニメ' took 17 milliseconds.
INFO[0102] Query 'shingeki -kyojin horrible ' took 12 milliseconds

Looking at the criteria we wanted here:
https://pad.riseup.net/p/i8DrilHDWRvf, it meets:

1. Fast: sub-100ms for a typical query, sub-50ms is good and sub-20ms is
optimal
2. Prefix match: "horrible" finds horriblesubs
3. Substring match? "アニメ" finds "TVアニメ"
4. Position-independent terms ("shingeki kyojin" finds the same as
"kyojin shingeki")
5. Works with short term lengths correctly and fast (no in "kyoukai no
kanata", 04 in "horrible shingeki 04" etc)
7. (nice to have) search negation: shingeki kyojin -horriblesubs

* Use match_all query instead of *, fix *
2017-06-01 08:38:29 +10:00
Steindór
00a885af28 changed session cookie expiry (#870) 2017-06-01 08:38:05 +10:00
Steindór
4f11748da1 Header fixes (#863)
* Put the mascot into the cookie as well, major js cleanup

* Update en-us.all.json

* removed redundant translation

* made the dropdown menu look and function better

* fixed responsiveness issue

* made this look better with the /g/ theme
2017-06-01 08:37:27 +10:00
akuma06
08c342e4e7 Added a check on LastID function 2017-05-31 21:07:56 +02:00
akuma06
70e97a6cce Update README.md 2017-05-31 18:15:28 +02:00
akuma06
f6e7d2035f Update README.md 2017-05-31 18:07:58 +02:00
sisimouto
723c0ca87b Update th-th.all.json (#862) 2017-05-31 23:58:58 +10:00
akuma06
face67892b Merge pull request #861 from NyaaPantsu/xhr-torrent-refresh
Xhr torrent refresh
2017-05-31 12:40:10 +02: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
akuma06
e52ee35cac Merge remote-tracking branch 'refs/remotes/origin/dev' into xhr-torrent-refresh 2017-05-31 12:36:32 +02:00
akuma06
db126ed2e4 Merge pull request #860 from NyaaPantsu/build-version
Add Build version
2017-05-31 12:30:52 +02:00
akuma06
3a4feafd91 Forgot an equal sign for travis 2017-05-31 12:26:39 +02:00