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

69 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
kipukun
9bc3d3c907 Fix table head color and minor alignments 2017-05-26 12:31:14 -04: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
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
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
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
99f2092028 Revert "Revert "New User Edit Panel"" 2017-05-23 04:05:33 +02:00
alucard0134
ed5152a4a0 Revert "New User Edit Panel" 2017-05-22 19:10:06 -05:00
akuma06
c8c3dc1980 New User Edit Panel
User can edit torrents
* delete torrents
+ New translation string for mod panel and user edit torrent panel
+ Improvement of messages util with implementation of T (no need to get
Tfunc now, messages util do that for you)
+ Use of @ElegantMonkey GetCategories to generate select of categories
in search and forms
2017-05-23 01:26:09 +02:00
ElegantMonkey
aa14a0535b Renamed CategoryID to CategoryName 2017-05-22 15:18:29 -03:00
ElegantMonkey
331143e094 Verify torrent category on upload
Added a new package, "categories", with the valid categories for each
Nyaa and Sukebei. On upload, check if the category is present on
the valid ones. Also changed the template function Category_Nyaa and
Category_Sukebei to reflect this.
2017-05-22 13:25:04 -03:00
akuma06
42e5ecaa24 Merge pull request #668 from MMP0/patch-26
Fix navbar bugs
2017-05-21 14:29:30 +02:00
akuma06
1bd773f537 New filesize function
Take filesize and languages.TemplateTfunc as args and output a string
To use in templates
2017-05-21 14:03:03 +02:00
MMP0
da69cc55a6 Update home.html 2017-05-21 20:55:20 +09:00
akuma06
6c8e5abdbe Update home.html 2017-05-21 13:33:17 +02:00
akuma06
8e5b6f3378 Merge branch 'dev' into patch5 2017-05-21 13:32:09 +02:00
Ramon Dantas
1968d2ae54 Move translation func to template variables (#652)
* Add T field to template variables

* Remove languages.SetTranslationFromRequest

* Add Tfunc on handlers

* Remove T and Ts from template_functions

* Update templates

Change the templates to use the local Tfunc, instead of the global one.
Also changed the signature of the fields on template_variables.go, so that
they return a template.HTML to avoid escaping problems.

* Remove unnecessary variable
2017-05-21 08:38:28 +10:00
GooNyaa
47ea6ae4cb Show unknown file size based on current language (fixes #650) 2017-05-20 18:32:41 +03:00
sfan5
a3fa6df938 Remove bugs (#643)
* Fix S/L/D columns wasting huge amounts of space

Partially reverts 0c9cdfa8bf.

* Move last scrape below seed-bar

Also fixes the very misleading indentation

* Show category name on view page too

* Fix fucked up login page (fixes #640)

* Fix empty page on login w/o pass (fixes #634)

* Fix incorrectly colored error text in day mode

* Better readable footer in night mode

* Prepare having old uploader names on sukebei and various fixes for sukebei

* Different HTML title for sukebei
2017-05-20 20:45:27 +10:00
kipukun
f377fadf8c Make mascot disappear on sub 1500 pixels (#636) 2017-05-20 13:12:37 +10:00
Eliot Whalan
5270fff72a
Move nyaapansu.mp3 to a pomf clone 2017-05-20 12:10:26 +10:00
moose65468
a2e4fab550 Add tooltips to category images (#627)
* Added tooltips to category images

* removed line 213
2017-05-20 09:08:54 +10:00
kipukun
13375411ad Make comments extra column + search bar doesn't freak out anymore (#621)
* Make comments extra column

* Fixed #595 w00t

* Cleanups and fixes (#623)

* Keep naming consistent

* Remove execute bit from files

* Default to DefaultLanguage (without passing it to the func)

* Remove commented code

* Use Content-Type to get language json

* Lines of 400 characters is dumb

* Update new repo in README

* Remove useless script since we fallback to a defaultlang

* Fix fallback language panic

* Fix uninitialized MaxPerPage when not in querystr

The issue was that the req.MaxPerPage was not set (default to 0) when
the query string didn't include "max". This makes the server query the
whole db since the resulting limit is 0.

* Fix creating empty torrents (only worked once)

* Lines of 400 characters is still dumb

* Update ja-jp.all.json (#622)

* Update README.md

* Make comments extra column

* Fixed #595 w00t

* Comment out comments for now
2017-05-19 15:36:32 +10:00
kipukun
2d5bf3c7b9 Center pagination on top 2017-05-18 15:50:10 -04:00
akuma06
66b94eb360 Merge pull request #606 from MMP0/patch-20
Fix line breaks
2017-05-18 03:52:18 +02:00
MMP0
ed640fc265 Fix line breaks 2017-05-18 10:44:01 +09:00
kipukun
b1824092ff Moved mascot to the left, made her clickable with sound 2017-05-17 21:37:10 -04:00
akuma06
4d5c15ab3f Merge pull request #584 from ElegantMonkey/minor-fixes
Changes to seed/leech display
2017-05-17 22:37:31 +02:00
ElegantMonkey
ccda45a452 Show Unknown seed/leech count on LastScrape == NULL, show scrape time
Instead of showing 0/0/0 when the torrent hasn't been scraped (which
may be misleading), show "Unknown", and also show when the torrent was
last scraped on the view torrent page.
2017-05-17 13:06:21 -03:00
sfan5
aa17bd55be Fix layout differences between day/night mode (fixes #493) 2017-05-17 16:47:30 +02:00
yiiT
6356ae6ef4 Fix Links column alignment (#573) 2017-05-17 20:26:37 +10:00
akuma06
9cdfc00762 Number of comments
Issue #553
2017-05-17 00:05:16 +02:00
Eliot Whalan
cf4e482046 Get sukebei working 2017-05-15 19:08:17 +10:00
SpamNeko
0c9cdfa8bf Sorting arrows on table headers (#504)
* Sorting arrows on table headers

* Better arrows and seperate S/L/D columns
2017-05-14 19:01:04 -05:00
lc-guy
645c91659b Fix searching for seeders/leechers/downloads 2017-05-14 14:18:51 +01:00
SpamNeko
dc32f041e1 Add sorting to table headers, delet advanced search 2017-05-13 18:14:51 +01:00
Eliot Whalan
e120e9da43 Add torrent stats to homepage 2017-05-11 11:56:00 +10:00
sfan5
a4b1a057b6 Unbreak dates (@kipukun broke them) 2017-05-10 12:47:51 +02:00
ripdog
fff87e87d4 Hopefully working dark mode mascot swap 2017-05-10 21:26:27 +12:00
Chris MacLeod
c9b72206a5 Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* Checkpoint: it builds

The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.

* Style changes and old code removal in router

Router needs a lot of work done to its (lack of) error handling.

* Dead code removal and style changes

Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.

* Finish dead code removal and style changes

Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.

* Fix accidental find-and-replace

* Style, error checking, saftey, bug fix changes

* Redo error checking erased during merge

* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
kipukun
94d299067b fucking did it holy shit 2017-05-09 20:12:54 -04:00
kipukun
6eb80f1073 change number on pagination to 5 2017-05-09 18:13:40 -04:00
kipukun
36e10ce093 columns hidden on phones 2017-05-09 18:13:39 -04:00
sfan5
3b65df9cdd Prepare for storage of uploaded .torrent files 2017-05-09 16:42:12 +02:00
ElegantMonkey
108558dfdf Fix conflicts 2017-05-08 18:16:21 -03:00
sfan5
b9baaabfa2 Revert "No results found message"
This reverts commit 02ce28c748.
2017-05-08 22:50:23 +02:00
ElegantMonkey
0cfa2bff21 Extract strings from 404 page and FAQ 2017-05-08 16:12:58 -03:00
ElegantMonkey
42e0320064 Merge remote-tracking branch 'upstream/master' into extract-strings-for-translation 2017-05-08 15:14:28 -03:00
ElegantMonkey
b896d8d326 Fix indentation 2017-05-08 15:02:13 -03:00