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
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
akuma06
d286832090
Merge pull request #834 from Kiloutre/patch-2
...
Apply max-width/height to all description images
2017-05-29 17:28:12 +02:00
akuma06
3ec367a759
CSRF Support + better key for context
...
* Added new dep: gorilla/csrf
* CSRF field in forms
* CSRF variable in commontemplatevariables
* New key for messages and user context
Please change EnableSecureCSRF to false when testing locally and don't
merge config/env.go with the changes
2017-05-29 17:07:18 +02:00
kilo
9392c99f0f
Apply max-width/height to all description images
...
Max-width & max-height only applied to images inside another element in the torrent description. It's fine because description images seem to always be in a \<p\>\<p/\>, but what if they weren't?
The max-width & max-height now apply to all images in the torrent description (.torrent-info-box img) instead of one in another element (.torrent-info-box > * > img), that way no image may ever go outside the bounds! Not on it's own at least.
2017-05-29 16:00:01 +02:00
John Smith
61141a1fcf
Exhaustive whitespace trimming
2017-05-29 23:43:27 +10:00
akuma06
c570557477
Added Theme field in user settings
2017-05-29 15:15:04 +02:00
akuma06
a7d621f048
Merge pull request #820 from Duckbitts/dev
...
Fixing the mascot
2017-05-29 15:00:28 +02:00
akuma06
080720391f
Fixing notification variable
2017-05-29 15:00:08 +02:00
akuma06
33707e965c
Merge branch 'dev' into dev
2017-05-29 14:57:55 +02:00
akuma06
a167ab1cc6
Merge pull request #832 from Myrmece/patch-2
...
Updated translation.
2017-05-29 14:56:08 +02:00
Myrmece
507bcb1cfa
Updated translation.
2017-05-29 14:32:21 +02:00
Duckbitts
89a19d909f
Update main.css
2017-05-29 15:11:00 +03:00
Duckbitts
81a16b1a39
Update index.html
2017-05-29 15:10:20 +03:00
akuma06
6bf2e38204
Forgot torrent report list
...
More fix for #830
2017-05-29 13:52:01 +02:00
akuma06
cef60c476a
fix for torrent report
...
should fix #830
2017-05-29 13:49:03 +02:00
Eliot Whalan
5983d442fa
Merge branch 'dev' of https://github.com/NyaaPantsu/nyaa into dev
2017-05-29 21:25:52 +10:00
Eliot Whalan
8cf57ad791
set max comment size
2017-05-29 21:25:36 +10:00
akuma06
6c55c02675
Merge pull request #829 from NyaaPantsu/fix-hidden-option
...
Anon users should not be able to see it
2017-05-29 13:24:37 +02:00
akuma06
ae38aee9f5
Merge pull request #828 from MMP0/patch-11
...
Update translations in public settings
2017-05-29 13:24:24 +02:00
akuma06
41f7f678cc
Anon users should not be able to see it
...
Instead of checking that user exist, checking that user id > 0
2017-05-29 13:23:47 +02:00
MMP0
21c5acd43d
Update ja-jp.all.json
2017-05-29 20:21:12 +09:00
MMP0
f01bb77926
Update ja-jp.all.json
2017-05-29 20:19:51 +09:00
akuma06
30e96931d1
Just added also the mark_as_hidden option
...
Took the opportunity that you were editing them to add it ;)
2017-05-29 13:18:17 +02:00
MMP0
c6b2f65270
Update ja-jp.all.json
2017-05-29 20:16:37 +09:00
akuma06
79a6ee3747
Merge pull request #827 from NyaaPantsu/k
...
Keeping Mascot hidden
2017-05-29 13:15:57 +02:00
MMP0
85c8d72369
Update en-us.all.json
2017-05-29 20:15:57 +09:00
MMP0
da896a65a7
Update public_settings.html
2017-05-29 20:13:27 +09:00
akuma06
14a7303f25
Merge pull request #826 from NyaaPantsu/fix-filelist-style
...
Fix filelist style
2017-05-29 13:12:54 +02:00
akuma06
dd03550c66
Keeping Mascot hidden
...
Should fix #808
* Mascot hide is kept while navigating with a localstorage value
2017-05-29 13:12:05 +02:00
akuma06
98c60f39a2
Fix for long comments ( #825 )
...
Just added word-break, padding-right and a justified text for comments.
2017-05-29 20:50:16 +10:00
akuma06
f5f240f2d6
A litle fix when there is no file found in torrents
2017-05-29 12:49:26 +02:00
akuma06
4d7453dfb9
Fix for long comments
...
Just added word-break, padding-right and a justified text for comments.
2017-05-29 12:39:07 +02:00
John Smith
d2edca62de
network/graceful.go made redundant
...
The call to http.Server.Shutdown in main.go that happens on os.Interrupt
closes listeners. Remove racey code and format network/network.go.
Running Listener.Accept in a loop is not necessary as the stdlib expects
SA_RESTART to be set for signal handlers.
2017-05-29 19:19:36 +10:00
Eliot Whalan
7cb69b5234
Merge branch 'dev' of https://github.com/NyaaPantsu/nyaa into dev
2017-05-29 16:29:53 +10:00
John Smith
0bdd915f9a
Let net/http gracefully close
...
http.Server.Shutdown gracefully closes listeners/clients, we do not have to
do it ourselves. Making util/signals accept func() instead of io.Closer
allowed for the removal of network/closer.go and util/signals/closers.go.
2017-05-29 16:29:34 +10:00
John Smith
0159579611
Copy Programmatically
2017-05-29 16:29:22 +10:00
kipukun
70bf313353
sukebei but it isn't tested WOO ( #807 )
...
* sukebei but it isn't tested WOO
* actually make it work lmao
2017-05-29 16:23:46 +10:00
akuma06
bdae58cc6a
Merge pull request #823 from NyaaPantsu/email-regex-improvement
...
Should work now for emails
2017-05-29 01:54:26 +02:00
Eliot Whalan
5bcda5c9a1
Revert "Add playbook to download /build latest nyaa, fix k-on elasticsearch issue ( #821 )"
...
This reverts commit da1e323825
.
2017-05-29 08:24:04 +10:00
akuma06
fb6ad2d860
Should work now for emails
...
It should valid every RFC valid emails.
A regex from a comment somewhere on a website, don't remember where but
I kept it (no licence on it, shared freely)
2017-05-29 00:22:42 +02:00
tomleb
da1e323825
Add playbook to download /build latest nyaa, fix k-on elasticsearch issue ( #821 )
...
* Install nyaa from latest github commit
* Add install playbook, fix k-on search
2017-05-29 07:54:24 +10:00
kilo
b5b08d097b
Removal of \</img\> ( #816 )
...
Removal of \</img\> because it does not exist
Addition of / at the end of <img> because of consistency
2017-05-29 07:53:16 +10:00
kilo
ad8150ccbc
HTML up to specs 2 ( #805 )
...
</img> doesn't exist so i removed it yet again
added a / at the end of <img> because <br /> has it and consistency seems important
2017-05-29 07:51:22 +10:00
Atvaark
b31e77be2e
Fix infohash decoding ( #813 )
...
Calculate the info hash of the uploaded torrent file
instead of the re-encoded torrent file.
The re-encoded torrent files only contain a subset
of the original info values and thus have a different hash.
2017-05-29 07:47:47 +10:00
akuma06
49e4b800b0
Merge pull request #814 from Kiloutre/patch-7
...
Add max image width & height in torrent description
2017-05-28 22:55:46 +02:00
akuma06
01f4f15d6e
Merge pull request #806 from Kiloutre/patch-4
...
removal of value in <select>
2017-05-28 22:25:41 +02:00