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

1839 commits

Auteur SHA1 Message Date
tomleb
d6c50f5640 TorrentJSON.ID is uint now, fix weird page sorting (#769)
* TorrentJSON.ID is uint now, fix weird page sorting

The bug was that ES would sort by ID in a weird manner because the id
was a string. The id is now a uint.

* Resolved the conflict for future merging
2017-05-27 11:54:41 +10:00
akuma06
113f81b9cc Merge pull request #771 from Myrmece/patch-8
Updated translation.
2017-05-27 00:48:25 +02:00
akuma06
0f66ec9340 Trackers in Torrents + Missing comments + Function renaming (#768)
* Missing comments and Function renaming

* Added some missing comments
* Renamed functions to get user followers/following
* GetFollowers to get followers
* GetLikings to get who the user is following

* Renaming + Add support of previous trackers

* Renaming user.Likings in user.Followers
* Renaming user.Liked in user.Likings
* Add a new string field Trackers in torrent model
* Trackers from torrent file are now populated to the databse
* Needed trackers are added to the torrent trackers if not provided or
if trackers is empty in DB (backward compatibility)

* New check and url encoding

* No more regex for verifying tracker url
* Encodes tracker url for "&" & "?" character possibly existing in
tracker url and breaking magnet link

* Improvements

* Trackers are now encoded in torrent.ParseTrackers
* Faster check by using the for loop of checktrackers
* No more boolean, we need to check len of array returned
* torrent.Trackers can be directly used in url as they are encoded like
: tr=tracker1&tr=tracker2&tr=...
2017-05-27 00:45:18 +02:00
Myrmece
a58d0abd26 Updated translation. 2017-05-26 23:41:54 +02:00
tomleb
075b51e43c Merge pull request #767 from tomleb/never_down_again
Activate the never_go_down again switch (fix slowdown issue)
2017-05-26 16:20:44 -04:00
tomleb
d165c431d3 Fix build failure with sqlite test 2017-05-26 16:15:00 -04:00
tomleb
4d87ba3b3e Decrease idle time on pgpool 2017-05-26 16:15:00 -04:00
tomleb
ea2d7a7165 Activate the never-go-down-ever-again switch
Don't retain idle connections because they block everybody else.
Increase maximum number of connections to the db.
2017-05-26 16:15:00 -04:00
tomleb
05e8106997 Merge pull request #765 from kipukun/frontend-bugs
Frontend polish
2017-05-26 16:08:04 -04:00
kipukun
74c6e0d6b3 slightly tweak profile edit page 2017-05-26 16:02:32 -04:00
kipukun
568bc3e801 basic search on mobile 2017-05-26 15:57:53 -04:00
kipukun
35d01112f8 Remove alt rows on other themes as well 2017-05-26 15:17:09 -04:00
kipukun
8eabd52c34 make pagination in front of mascot 2017-05-26 12:40:07 -04:00
kipukun
bc6cfaf48f actually fix mascot 2017-05-26 12:37:27 -04:00
kipukun
b9356e3f72 Merge branch 'frontend-bugs' of https://github.com/kipukun/nyaa into frontend-bugs 2017-05-26 12:31:23 -04:00
kipukun
aaa2dce4d3 mascot works yay 2017-05-26 12:31:14 -04:00
kipukun
3a6aa1f71a fix view template more aaaaaaaa 2017-05-26 12:31:14 -04:00
kipukun
a72c4cc437 Fix view page overflowing, also img in description scales 2017-05-26 12:31:14 -04:00
kipukun
9bc3d3c907 Fix table head color and minor alignments 2017-05-26 12:31:14 -04:00
kipukun
533b90cd7a Remove alternating torrent row's background 2017-05-26 12:31:14 -04:00
kipukun
e953283bcf fix the fucking icons christ almighty 2017-05-26 12:31:14 -04:00
kipukun
1f867601b8 mascot works yay 2017-05-26 12:30:09 -04:00
kipukun
21bf6ec11c fix view template more aaaaaaaa 2017-05-26 12:16:45 -04:00
kipukun
0d996c065d Fix view page overflowing, also img in description scales 2017-05-26 11:56:40 -04:00
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
Steindór
5ae6a4282b Minor css fixes (#763)
* 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

* fixed a FF only bug with the carets

* added a static size to pagination
2017-05-26 17:04:17 +02:00
akuma06
21a06f7a0d Fix bug where we can't go back to default when changing pages after theme changed
Just a for loop on load to select the right option
2017-05-26 17:02:19 +02: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