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

2028 commits

Auteur SHA1 Message Date
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
akuma06
9e0424ec5e Add Build version
Main version can be set in config/default_config.yml
Build version need to be set by build command: go build -ldflags "-X
main.buildversion=$(date -u +.%Y%m%d.%H%M%S)"
Or by using package.sh
Or by using the godep command: godep go build -ldflags "-X
main.buildversion=$(date -u +.%Y%m%d.%H%M%S)"
2017-05-31 12:20:06 +02:00
akuma06
9b89556a17 Merge pull request #859 from Myrmece/patch-2
Updated translation.
2017-05-31 10:50:28 +02:00
akuma06
e116b30b40 Better handle of test files
After some thoughts, it is better to use the config from config files
than default ones
2017-05-31 10:49:01 +02:00
Myrmece
b314098065 Updated translation. 2017-05-31 10:30:02 +02:00
Marcel Haazen
7a89b46c4a Some SEO and SMO works (#794)
* Update index.html

Small format change to RSS link
Addes SMO
Remove Cartel tag

* Update index.html

Added Social Icon

* Update index.html

* maybe the right one???
2017-05-30 21:48:35 -05:00
tomleb
45da57fd0d Playbook to install latest nyaa straight from github (#843)
* Playbook to install latest nyaa straight from github

* Backup old nyaa dir before pulling latest
2017-05-30 21:48:20 -05:00
tomleb
360b35a08f Add reindexing every 5 minutes, and a bunch of other things (#852)
* Fix error messages with ES results

* Add lsof for debugging

* Add torrents table variable to index sukebei

* Use elasticsearch alias for hotswapping index

* Increase max open files, increase ES heap size

* Add reindex script and reindex triggers

We use a table to store the actions happened to the torrents table.
When the torrents table is INSERTED/UPDATED/DELETED, the trigger kicks
in and an entry is made to the reindex_torrents table.

The reindex_nyaapantsu.py script is then used to query the
reindex_torrents table and apply the correct reindex action to
elasticsearch. The entries are then removed for reindex_torrents table.

* Reindex every 5 minutes as cronjob
2017-05-30 21:22:12 -05:00
akuma06
5376b9e271 New config files (#854)
* New config files

As decided, config files are parsed at runtime.
I decided to go for YAML config files because there can be comments in
it.
There are 2 files:
* config/default_config.yml <= which shouldn't be edited unless we add a
config parameter
* config/config.yml <= which is the user-defined config. This file
shouldn't be commited

Changed every call to config.XXX to config.Conf.XXX (look to the new
stucture of config in config/types.go)

Of course, putting config parameters in config.yml overrides config in
config_default.yml. You don't have to put everything in it, just add
what you want to override.

* Fixing test

Replacing conf.New by config.Conf

* Fixing call to config.Conf to config.Config{} in test files

* Might have fixed testing with this

Printf instead of Fatalf

* Renaming config.yml in example file

* Forbid commiting config.yml

* Should be now fixed

* Do not need this file anymore
2017-05-30 21:21:57 -05: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
tomleb
0d70ed3038 Dump database in format usable by pg_restore 2017-05-30 21:20:22 -05:00
sfan5
3b6b81aa8d Fixing other peoples shit again & translation (#853)
* Fix login when running on localhost

* Translatable edit/delete buttons on view page

* Bold completed count on view page

* Don't create global variables in report button js

* Update german translation

* Update trackers (#803)

Remove baka-sub.cf as it's always broken
Add IPv6 version of leechers-paradise
2017-05-31 08:36:00 +10:00
Mitki
aeb8039250 Mascot button loses its translation when clicked (#855) 2017-05-31 00:02:40 +02:00
akuma06
d70a521696 Merge remote-tracking branch 'refs/remotes/origin/dev' into xhr-torrent-refresh 2017-05-30 23:10:12 +02:00
akuma06
2aa8bb12bf Merge pull request #849 from Myrmece/patch-1
Updated translation.
2017-05-30 17:04:51 +02:00