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

1775 commits

Auteur SHA1 Message Date
Eliot Whalan
bb7554b79a
add searching via the api 2017-05-25 10:42:35 +10:00
akuma06
7398ce2f1f Merge pull request #719 from NyaaPantsu/torrent-mass-mod-edit
Torrent Mass Edit Api done
2017-05-25 02:15:25 +02:00
ewhal
cd185932e8 Update README.md 2017-05-25 09:37:55 +10:00
akuma06
97e2b9fcfe Forgot this file in last commit 2017-05-24 23:20:22 +02:00
akuma06
584fd9a852 Merge pull request #729 from ElegantMonkey/treeview-fix
Fix tree view show/hide logic
2017-05-24 22:54:04 +02:00
akuma06
041473bfac Tested and works!
Changes:
* Updates only the colomns of torrent table
* Moved categories config in config/torrents.go
2017-05-24 22:15:38 +02:00
akuma06
1cccaf99e0 Fix moveto to status
moveto deprecated in api
2017-05-24 21:43:07 +02:00
akuma06
93eb4d7ae1 Make some changes
* Reports can now be cleared for the torrents selected without having to
delete them
* Users with no admin rights can't delete reports
2017-05-24 21:16:15 +02:00
akuma06
cf844f0d43 Merge branch 'dev' into torrent-mass-mod-edit 2017-05-24 20:29:52 +02:00
akuma06
1ffea3f39f Finished Mass mod Api
As per suggestion of @yiiTT in #720, I added:
* Changing torrents category
* Deletion of reports with deletion of a torrent
* Changing owner of multiple torrents

Commit also add some new translation strings.
2017-05-24 20:23:54 +02:00
ElegantMonkey
15a3903e9c Fix icons on Tomorrow 2017-05-24 14:56:31 -03:00
ElegantMonkey
54c03c7ed7 Move more things to CSS
Might make things easier when dealing with mobile view and such.
2017-05-24 14:34:52 -03:00
ElegantMonkey
c747c0a711 Fix filelist folder show/hide logic
It only toggled the "hidden" attributes of the childs, however if
you closed a subfolder, then closed the parent folder, all childs of the
parent would be toggled, leaving the subfolder that we closed open.

Now the state is stored on the data-filelist-open attribute, and the
hidden state is set based on it.
2017-05-24 12:27:51 -03:00
ewhal
96403f8879 Update README.md 2017-05-25 00:24:11 +10:00
Steindór
5d14f544c1 Added a link to db and IRC channels to readme (#713)
* Update README.md

Added a link to the db dump and IRC channels.

* Minor fix

* Update README.md

* disabling email links

* Killed github autolinking

* Update README.md

* Removed database link
2017-05-25 00:14:39 +10:00
Steindór
da760d4131 Added a counter below the search result nav (#728)
* added pagination

* cleanup

* indentation fix

* fix
2017-05-25 00:14:24 +10:00
Ramon Dantas
86447b853c Add tree-view file list (Done) (#724)
* Add tree-view file list

* Add TotalSize field to folders

* Remove bootstrap/jquery related code

* Add icons to filelist, some CSS formatting

Moved a few styles from the format string for the tree view, to CSS
(where possible). Make icons look consistent under all themes.

* Make filelist hideable again, show it when JS is disabled
2017-05-25 00:13:56 +10:00
Myrmece
ace73bf9c8 Updated translation. (#726) 2017-05-24 21:28:15 +10:00
Eliot Whalan
3527f01cc5
Rerun gofmt it again with -s 2017-05-24 17:15:07 +10:00
Eliot Whalan
b4b1b1c26a
go fmt all the code 2017-05-24 17:11:13 +10:00
kipukun
58631c6bd4 Optimized the site (#725)
* Try to optimize site

* lmao woops

* fucking woops again
2017-05-24 16:57:48 +10:00
kipukun
e9825a2683 Frontend rewrite (DONE) (#723)
* Remove Bootstrap and Jquery, and create basic nav

* More improvements to navbar, as well as work on _badgemenu

* Complete navbar HTML, obviously it still looks horrendous

* Change layout on torrent table, using grids.

* Remove Bootstrap and Jquery, and create basic nav

* More improvements to navbar, as well as work on _badgemenu

* Complete navbar HTML, obviously it still looks horrendous

* Change layout on torrent table, using grids.

* HOLY FUCK INDEX IS /DONE/

* DO UPLOAD PAGE, DELETE OLD SHITTY CSS

* Complete login page

* Remove Bootstrap and Jquery, and create basic nav

* More improvements to navbar, as well as work on _badgemenu

* Complete navbar HTML, obviously it still looks horrendous

* Change layout on torrent table, using grids.

* Remove Bootstrap and Jquery, and create basic nav

* More improvements to navbar, as well as work on _badgemenu

* Complete navbar HTML, obviously it still looks horrendous

* HOLY FUCK INDEX IS /DONE/

* DO UPLOAD PAGE, DELETE OLD SHITTY CSS

* Complete login page

* Begin work on profile page

* fucking git, man

* Damn, that looks sexy

* Complete login and register pages, include very minimal grid system, and delete all of view template

* Do view page!

* Finish view even more

* Fix dates and filesizes in torrent table

* Improve comment/captcha input

* Actually add magnet and torrent buttons

* Add open-iconic instead of fontawesome

* Improve user side-panel

* Rename Category_* to CategoryName

* Beginning to finish up

* Implement themes and add basic mobile support to front page

* Fix some slight color errors

* Fix captcha on dark

* magnet and torrent links on view
2017-05-24 14:20:51 +10:00
akuma06
d2617c9c5d Torrent Mass Edit Api (WIP)
* Torrents can be deleted in mass from frontend with api post request
* Torrents status can be edited from frontend with api post request
-- Look to function doc for more info on how to use it

It is a WIP so it might not work =D
2017-05-24 01:03:03 +02:00
yiiT
55c0962bb7 Update README.md
Completed tools for users
2017-05-23 18:01:51 -05:00
yiiT
edfe09d936 Merge pull request #715 from NyaaPantsu/akuma06-patch-1
Added Go Report Card on readme
2017-05-23 17:55:24 -05:00
akuma06
d35c495d59 Removing debug fmt 2017-05-24 00:23:50 +02:00
akuma06
891e385939 Merge pull request #718 from NyaaPantsu/no-more-div-in-db
Fixing insert of unneeded html tags in db
2017-05-24 00:17:04 +02:00
akuma06
21ac12c852 Some updates
* Added support of UGC without div tag for torrents
* Added support of basic html tags for comments (a, img, b, em, u)

Fixed:
* Bug with r *request becoming a nul pointer when loading from contextin
messages.go
2017-05-24 00:08:02 +02:00
akuma06
23e7d33bb6 Fixing insert of unneeded html tags in db
Added a Sanitize function in util
* Possibility to add model in it
* Already a preset default model

Comments shouldn't be allowed html, too difficult to check every comment
for broken html
Torrents are still allowed html tags but I don't think it should since
we use markdown.
2017-05-23 22:09:20 +02:00
akuma06
14e3d61deb Added Go Report Card on readme 2017-05-23 20:49:37 +02:00
akuma06
07623e85ed Merge pull request #698 from NyaaPantsu/revert-692-revert-690-user-torrent-edit
Allow users to edit & delete their torrents
2017-05-23 19:43:09 +02:00
MMP0
96c21c47d5 Fix few small bugs in navbar (#703) 2017-05-23 19:22:59 +02:00
ipatrol
8e7377dcb3 Create model (#702)
Convert to SQL with Parse::Dia::SQL on CPAN.
2017-05-23 18:47:20 +10:00
MMP0
ff26f2a6fb Update ja-jp.all.json (#700) 2017-05-23 13:18:32 +10:00
nopjmp
6cfaca1289 Add err check from GetTorrentById return in ApiViewHandler (#696)
This should give a better response to API users for when something is not found.
2017-05-23 13:18:25 +10:00
nopjmp
af2850518c Implement HEAD for views (#695)
* Implement HEAD for /view/{id}

Implement HEAD for the torrent view route by calling GetRawTorrentById.
Run gofmt on the file while we are here.

* Implement HEAD for /api/view/{id}

Implement HEAD in the same way as /view/{id}
Also run gofmt on the api_handler.go
2017-05-23 13:18:19 +10:00
akuma06
00e0a935a8 Update again 2017-05-23 04:17:40 +02:00
akuma06
b75fc9ce53 update 2017-05-23 04:12:02 +02:00
akuma06
99f2092028 Revert "Revert "New User Edit Panel"" 2017-05-23 04:05:33 +02:00
Ramon Dantas
38f331a32e Make metainfo_fetcher fetch metadata only for new torrents (#694)
Added a flag on the config, that, when set, will only fetch data starting
from torrents with ID > config.LastOldTorrentID. Also updated the query
to use the config's files table, instead of hard-coding it.
2017-05-23 11:19:28 +10:00
Eliot Whalan
2e7392f46e
Fix compile error 2017-05-23 11:19:05 +10:00
Eliot Whalan
b26d788ab9
Generate api tokens on user creation 2017-05-23 11:16:57 +10:00
Eliot Whalan
cd573698b1
Merge branch 'dev' of github.com:NyaaPantsu/nyaa into dev 2017-05-23 11:07:00 +10:00
Eliot Whalan
5a8ae4665d
Remove unused package 2017-05-23 11:06:43 +10:00
alucard0134
1c5ff84614 Merge pull request #692 from NyaaPantsu/revert-690-user-torrent-edit
Revert "New User Edit Panel"
2017-05-22 19:10:21 -05:00
alucard0134
ed5152a4a0 Revert "New User Edit Panel" 2017-05-22 19:10:06 -05:00
Eliot Whalan
8cdf768902
Merge branch 'dev' of github.com:NyaaPantsu/nyaa into dev 2017-05-23 10:07:21 +10:00
Eliot Whalan
991ed4178e
Don't convert hashes to base16 2017-05-23 10:06:55 +10:00
alucard0134
66fe20bab8 Update backup.sh 2017-05-22 19:05:50 -05:00
akuma06
70127702e9 Merge pull request #686 from steindornatorinn/dev
Model diagram (Ready for merge)
2017-05-23 01:54:32 +02:00