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

1813 commits

Auteur SHA1 Message Date
kipukun fe6fe17d33 Fix table head color and minor alignments 2017-05-26 11:35:55 -04:00
kipukun 668c8c44fb Remove alternating torrent row's background 2017-05-26 11:31:52 -04:00
kipukun cf1fce5275 fix the fucking icons christ almighty 2017-05-26 11:29:36 -04:00
akuma06 71d757bf4c Showing markdown import js and css only on upload page 2017-05-26 16:12:52 +02:00
MMP0 3bb7b94dd4 Reimplement Markdown editor (#760)
* Update index.html

* Update upload.html

* Update main.css

* Update tomorrow.css

* Update tomorrow.css

Remove !important

* Update tomorrow.css

Revert
2017-05-26 16:02:19 +02:00
akuma06 566e0b7f21 Just added some comments 2017-05-26 15:57:25 +02:00
akuma06 06ddecd977 Fixing navigation not clickable
* Just commented out point-events: none; in #content
* Can someone explain and fix it if necessary?
2017-05-26 15:44:46 +02:00
tomleb a66e65b561 Merge pull request #762 from tomleb/elasticsearch
Fix deployment issue we had for dev
2017-05-26 09:03:20 -04:00
tomleb 456eac68ec Fix wrong ram amount for pgpool 2017-05-26 08:56:50 -04:00
tomleb 90356b22bc Install firewalld before starting it
Firewalld was installed on vagrant centos by default but not on server.
2017-05-26 08:56:49 -04:00
tomleb 9c81c85325 Index seeders,leechers and completed into es 2017-05-26 08:56:49 -04:00
akuma06 80ab45d81e New profile user menu (#761)
* Fixing user profile page

* Modified css rule word-break to break-word
* Modified torrents table in user page to look like home listing
* Made the button reset api look like a button according to actual
design
* Modified user menu to have the same spacing accross templates
* User menu is in another template file loaded dynamically

* Fixing the access to userprofile variable

* Menu needs to access the user profile with $.UserProfile
* User Notification template variable removed, instead using user
profile variable

* Reverting back theme flickering fix
2017-05-26 14:33:55 +02:00
MMP0 488f2ca476 Fix theme bugs + Reimplement "nyanpassu" and "explosion" (#757)
* Update index.html

* Update main.css

* Update main.js

* Update index.html

* Update index.html

* Update main.css

* Update index.html

* Update main.css

* Update main.css

* Update main.css
2017-05-26 13:13:06 +02:00
akuma06 a41f938cec Add Godep support (#758)
As we have seen, dependencies version can prevent the build. We should
user lock versions on dependencies that we know work:
* Packages are vendored
* Add Godep support
* Added addtional install step in readme
* Fix travis build error
2017-05-26 13:07:22 +02:00
akuma06 6481e90a0c Golint friendly next (#756)
* Gofmt friendly

Keeping Go source code in line with what they preconize

* Golint Friendly Next

So I have made some variables unexported
Added comments in every function that I know what it does
Removed some deprecated stuff that I was sure of
Added a comment on possible deprecated methods "Is it deprecated?"
Changed some variable/method name according to golint recommendations

* Update filelist.go
2017-05-26 12:12:52 +02:00
Ramon Dantas 8fbdeed9f5 CSS-only tree view. (#753)
* Make tree-view work with CSS only

Changed the file list tree-view to use recursive templating instead of
an external function, and improved it so that it works with only CSS.
Striped lines won't work though.

* Remove inline-block from folder label

It breaks with the text-overflow: ellipsis.

* Rename makeFolderData to makeTreeViewData
2017-05-26 11:53:18 +10:00
tomleb f22d11b35d Elasticsearch integration (WIP) (#730)
* Update mapping to be similar to TorrentJSON

* Implement ES search for TorrentParam

* Add seeders/leechers/completed to es index

* Fix filter, use analyzer

* Use ES for the search route

* Add upload_id filtering with ES

* Create/update ES index on torrent upload/update

* Delete from ES index on Delete

* Use ES everywhere, fallback to postgres query

Use Elasticsearch to search the index whenever a call to searchByQuery
is made. Big cleanup needed, but _it werks_.

* Only fetch ids from ES, nothing else

* Use ColumnUpdate instead of Save

* Add FIXME/info to search

* Template needs []TorrentJSON not []Torrent
2017-05-26 09:48:14 +10:00
akuma06 c3211c6a14 Gofmt friendly (#752)
Keeping Go source code in line with what they preconize
2017-05-26 07:35:37 +10:00
tomleb 2da1c88c64 Fix rendering of svg background-image in firefox (#749)
* Fix firefox issue with (#) in svg images

* Remove fontawesome eye icon

* Remove (((official)) to something more professional
2017-05-26 07:34:32 +10:00
kipukun 3e2466dd47 Fix user input being too wide on certain forms (#748) 2017-05-26 07:33:10 +10:00
akuma06 2773fe200d Golint friendly (#747)
* Making the code Golint friendly

* No exported variables when not needed
* Same for functions
* Simplifying Templates variables with a form basic template variable
and a modelList basic template variable

* Adapted templates to new template variables

* use of .Models instead of model list
* use of .Form instead of modelform

* Small fix

* Small fix 2

Forgot $.Form

* Reverting templateDir as a var
2017-05-25 21:54:58 +02:00
akuma06 0b8a39c506 Fix error on user profile edit
* Missing ">" in a close tag
* Changing route name for apireset doing a conflict route on badgemenu
2017-05-25 18:54:34 +02:00
sisimouto 96ac416c15 trans: Update for th-th (#745)
* Update th-th.all.json

* Update th-th.all.json
2017-05-25 18:04:49 +02:00
Yueou be46e791f6 Update zh-cn (#744)
* Update zh-cn

* Update zh-cn
2017-05-25 18:00:25 +02:00
MMP0 60dafbda04 Small changes (#743)
* Update upload.html

* Update _captcha.html

* Update view.html

* Update main.css

* Update home.html

* Update main.css

* Update main.css

* Update view.html

* Update main.css

* Update main.css
2017-05-25 22:29:39 +10:00
Myrmece 03bb953bc0 Updated translation. (#742) 2017-05-25 20:31:28 +10:00
MMP0 e8dd3a96c4 Add "Change language" link (#741)
* Add "Change language" link

* Update change_language.html

* Update index.html

* Update index.html

* Update index.html
2017-05-25 20:31:16 +10:00
MMP0 ef5279018e Add "fun (nyaa)" link (#740) 2017-05-25 17:36:55 +10:00
x9zb b46fdce5d9 Fix search box on Firefox and make carets actually work on chrome (#739)
* Add carets to select

* Fix search box on Firefox

Also fixed the carets on Chrome.
2017-05-25 17:36:46 +10:00
x9zb 5b7f3efd71 Add carets to select (#737) 2017-05-25 15:49:00 +10:00
MMP0 fac5196299 Change icons (#735)
* Change icons

* Update main.css
2017-05-25 15:48:46 +10:00
Yueou 6a6dcf9b9b Update zh-cn (#734) 2017-05-25 12:52:11 +10:00
ewhal e1cd06bf35 Update README.md 2017-05-25 12:21:52 +10:00
MMP0 531037bdf1 Update Japanese translations + Small changes (#733)
* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json

* Add nav translations

* Update main.css

* Update ja-jp.all.json

* Update view.html

* Update view.html

* Update view.html

* Update main.css

* Update main.css
2017-05-25 12:18:59 +10:00
Eliot Whalan bc3f1aa577
start work on api reset stuff 2017-05-25 12:18:31 +10:00
Eliot Whalan 5f89f9feb2
Merge branch 'dev' of https://github.com/NyaaPantsu/nyaa into dev 2017-05-25 10:42:55 +10:00
Eliot Whalan bb7554b79a
add searching via the api 2017-05-25 10:42:35 +10:00
kipukun 424633631c More frontend shit (#731)
* 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

* 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.

* 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

* Fix moveto to status

moveto deprecated in api

* Tested and works!

Changes:
* Updates only the colomns of torrent table
* Moved categories config in config/torrents.go

* Make sort arrows look a lot nicer

* Add search icon into search input

* Work on navbar, fix it on mobile view

* Hide mascot on mobile views

* Make torrent view work on mobile + minor improvements

* Add status and various things to view

* ACTUALLY FINISH VIEW PAGE

* Forgot this file in last commit

* wow user profile was easy

* Work on profile page

* remove language option

* SEO improvement

* forgot the fucking bracket

* make description more weeb

* add irony

* add better irony

* Update README.md

* Make sort arrows look a lot nicer

* Add search icon into search input

* Work on navbar, fix it on mobile view

* Hide mascot on mobile views

* Make torrent view work on mobile + minor improvements

* Add status and various things to view

* ACTUALLY FINISH VIEW PAGE

* wow user profile was easy

* Work on profile page

* remove language option

* SEO improvement

* forgot the fucking bracket

* make description more weeb

* add irony

* add better irony
2017-05-25 02:20:30 +02:00
akuma06 6edc68fe22 Deleted torrents mod done (#732)
* 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

* 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.

* 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

* Fix moveto to status

moveto deprecated in api

* Tested and works!

Changes:
* Updates only the colomns of torrent table
* Moved categories config in config/torrents.go

* Forgot this file in last commit

* Less useless queries

The use of Save makes it that users are created and updates also all the
associatiated models. Better to just update the colomns needed (less
useless queries)

* Some Updates

* Added a new status of 5 for locking torrents
* Modifying the list torrents view for using it in deleted torrents view
* Added function to get deleted torrents
* Torrents (and reports) can be definitely deleted
* Some new translation string

* Fixing

* fix 2

* Added upload check for locked torrents

If a user owns a torrent, has deleted it and try to repload it. As long
as it has not been locked, he can.

* Fixing wrong condition in isdeleted

* Finished

* Info messages on success when deletes or lock
* Fixed double deleted_at is Null
* Added Link to view of deleted torrents
* Added new translation string
2017-05-25 02:19:05 +02: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