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

1999 commits

Auteur SHA1 Message Date
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
akuma06
a7c95a937b Merge pull request #848 from MMP0/patch-12
Update Japanese translations
2017-05-30 17:04:38 +02:00
akuma06
efe00f1f61 Merge pull request #842 from NyaaPantsu/xhr-torrent-refresh
Xhr torrent refresh
2017-05-30 17:04:25 +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
Myrmece
2247dc0475 Updated translation. 2017-05-30 14:44:45 +02:00
MMP0
c49eaf325b Update ja-jp.all.json 2017-05-30 21:29:19 +09:00
MMP0
806c4525a2 Update ja-jp.all.json 2017-05-30 21:26:46 +09:00
akuma06
b5476c7d66 Merge remote-tracking branch 'refs/remotes/origin/dev' into xhr-torrent-refresh 2017-05-30 14:19:13 +02:00
akuma06
13a6c9bc25 Merge pull request #846 from mitki/translation
Footer translation
2017-05-30 14:18:55 +02:00
akuma06
e3c8e6a3b1 Merge pull request #845 from steindornatorinn/cookie-fix2
This should fix the cookie domain issues
2017-05-30 14:16:51 +02:00
akuma06
b0cf17c77c Renamed the search argument FromID instead of TorrentID 2017-05-30 14:12:42 +02:00
akuma06
5f89baaddb Merge pull request #844 from tomleb/remake_filter
Use old nyaa behavior for FilterRemakes
2017-05-30 14:01:52 +02:00
mitki
94ecaea291 [TL] Updated pt-br 2017-05-29 21:53:31 -03:00
mitki
16b84dbe6a [TL] Updated en-us 2017-05-29 21:53:14 -03:00
mitki
ef2b7f2894 translation support 2017-05-29 21:52:49 -03:00
Steindór
bf500d9c16 Update cookie_helper.go 2017-05-30 00:50:23 +00:00
Steindór
037506e464 Merge branch 'dev' into cookie-fix2 2017-05-30 00:46:59 +00:00
bragason
2e2e5608d4 This should fix the cookie domain issues 2017-05-30 00:42:36 +00:00
tomleb
6b90f21207 Use old nyaa behavior for FilterRemakes 2017-05-29 20:15:49 -04:00
Mitki
765077864a Update pt-br.all.json (#841)
* Update pt-br.all.json

* Update pt-br.all.json
2017-05-30 09:17:26 +10:00
akuma06
479de0eaf6 Merge pull request #840 from NyaaPantsu/csrf-secure
Csrf secure Exclusion
2017-05-30 01:17:08 +02:00
kipukun
6b5db0f14d Added mod delete and edit buttons to view (#838) 2017-05-30 09:15:50 +10: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
akuma06
55867720cb Forgot that they also login through the login form
So no CSRF protection for login :/
2017-05-30 00:22:23 +02:00
akuma06
db58c2bf02 Merge branch 'csrf-secure' of https://github.com/NyaaPantsu/nyaa into csrf-secure 2017-05-30 00:18:47 +02:00
akuma06
ad7439283c CSRF Exclusion
As per suggestion of @yiiTT, CSRF is limited on users login,
registration, profile edit, comments post, torrent edit.
Uploads are not yet CSRF protected because api upload can't be used for
that
2017-05-30 00:18:43 +02:00
akuma06
517b59b02f Merge pull request #837 from NyaaPantsu/csrf-secure
CSRF Support + better key for context
2017-05-29 22:15:07 +02:00
akuma06
d5ad9618ac Update view_torrent_handler.go 2017-05-29 17:44:11 +02:00
akuma06
bd59f3afd1 Forgot to move Token config
Tokens config are now in config/tokens.go
2017-05-29 17:39:13 +02:00