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

510 commits

Auteur SHA1 Message Date
kilo
bda181ee54 Add toggle dark theme for non-JS users (#1381)
* Add themeToggle handler to router.go

* Create themeToggle/router.go & ThemeToggle.go

* Add link to /dark in footer, remove display = none on toggle dark mode

* Remove JS that ordered toggle dark mode link to show as it is now constantly visible

* Rollback to fix errors

* Add some comments

* Create redirectUrl variable & set it's content then use it to redirect user

* Remove useless log

* Remove usage of fmt

* Add redirect get parameter to toggle link

* Add another url for toggleTheme

* wooo

* Update base.jet.html

* Update base.jet.html
2017-08-21 10:48:17 +10:00
kilo
4f00f74859 change position of return (#1374) 2017-08-17 11:35:18 +10:00
kilo
199d2b3b85 Add "sort by" inputs in refine on low res (#1369)
* Add HTML for sorting by name etc

* Add CSS to hide inputs for sorting in refine

* Set value of SortOrder on true if on true (wew)

* Add SortOrder & SortType variables

* change translation strings

* add translation strings

* forgot a missing { and change ascending value
2017-08-14 15:56:45 +10:00
kilo
d51eb1ba60 Fixed width for text in refine, make smaller header apply at 500px wide devices & under (#1368)
* Fixed width for text in refine

* make smaller header apply at 500px & under

* remove useless line

* hide notification count if no new notification
2017-08-14 15:37:37 +10:00
kilo
d0efb33749 Lower title (h3) margins in refine & some small other stuff (#1367)
* Fix rule that didn't apply and change it's value

* Remove css rule from html

* one pixel higher margin

* smaller category in refine, bigger minimu msize for searchbox

* fix for too big searchbox at some very specific resolution

* lower height level for log-in icon

* add "sign in" text when hovering log-in link
2017-08-12 17:20:47 +10:00
kilo
645a711222 Update main.js (#1366) 2017-08-12 16:52:54 +10:00
kilo
99f93a83be Remove unused stuff (#1365)
* remove no-torrent class

* remove no-torrent from css

* remove no-torrent from preview JS

* remove no-torrent from auto-updating JS
2017-08-12 16:36:44 +10:00
kilo
eeaeb644bf tr-links of lower size if no torrent link & some other stuff (#1362)
* Add "no-torrent" class if no torrent link

* Add no-torrent class that changes width

* add & remove needed !important

* more padding between 860 & 1050px wide

* aids

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* fix display on IE

* Update main.css

* no-torrent class in torrent auto update

* no-torrent class in torrent preview

* fix bug

* fix identical bug

* fix for small header

* small value change
2017-08-09 21:48:26 +10:00
kilo
ff2efb347d Fix toggle theme that created a cookie on the wrong domain & header at lower res (#1361)
* add domain to cookie

* fix header icons at lower res
2017-08-09 21:24:42 +10:00
Golumpa
88bea245f1 update login.jet.html (#1364)
* Add icon-user to nyacon font

* forgot to update font file versions

Some people will still get the old font files without the icon-user added to it

* update login.jet.html
2017-08-08 11:29:39 +02:00
kilo
ab9e3906e2 Fix main.js (#1352)
* Update main.js

* Update main.js

* Update main.js

* Update main.js
2017-08-07 14:51:25 +10:00
kilo
03b1dd91d1 Add indonesian flag (#1357)
* Add indonesia class

* Add indonesia class to flag.min

* Need to delete flags.png before uploading new one

* Upload flags.png with indonesia flag

* Fix wrong classname

* Fix wrong class name2

* better indonesian & multiple flags
2017-08-06 01:34:29 +02:00
kilo
df9b07d90e Fix horrible subs description / <code>'s width in description (#1353)
* Update main.css

* styling consistancy

Im still wondering why 10% of it is single lined while the other 90% is proper
2017-08-05 16:24:24 -05:00
kilo
3e22adca7b Update main.css (#1351) 2017-08-04 21:20:29 +02:00
kilo
c2541bed3e Header smaller for lower height screens (#1341)
* Update main.css

* lower H3 bottom margin

* smaller spacing for refine inputs

* Update main.css

* remove useless shit
2017-08-04 21:08:05 +02:00
kilo
2cca143121 Hide "support pantsu"" if announcement is there (#1340)
* add no-center class if announcement exist

* add no-center class that hides .no-center > center

* Update index_site.jet.html
2017-08-04 10:10:46 +10:00
Golumpa
6ce056adf0 Forgot to change font file version (#1339)
* Add icon-user to nyacon font

* forgot to update font file versions

Some people will still get the old font files without the icon-user added to it
2017-08-04 10:10:15 +10:00
kilo
75a98cf6e7 Show hours & minutes (instead of days & hours) when hovering last scraped date (#1335)
* Update main.js

* Update view.jet.html

* Update main.js
2017-08-03 22:09:06 +02:00
kilo
2dcda75a09 Update main.css (#1336) 2017-08-03 22:07:55 +02:00
kilo
08820ee696 Use of Golumpa's user icon as "sign in" for lower res (#1338)
* allow different width for h-user, turn "sign in" into icon at 1100px

* Update main.css

* html for the icon
2017-08-03 22:07:42 +02:00
Golumpa
1943bd321e Add icon-user to nyacon font (#1337) 2017-08-03 22:07:03 +02:00
kilo
7207573cb1 Update main.js 2017-08-03 14:41:43 +02:00
ewhal
8044336cf1 Merge pull request #1328 from Kiloutre/patch-11
More responsive category icon & <th> padding
2017-08-03 22:27:44 +10:00
kilo
99ec5306be Update main.css 2017-08-03 12:12:56 +02:00
akuma06
818a100bfc Merge branch 'dev' into patch-7 2017-08-02 22:15:06 +02:00
kilo
a6d0e945fa Update main.css (#1323) 2017-08-02 20:58:37 +02:00
kilo
4d1524e6a9 Remove href of dark mode toggle (#1317)
* cursor: pointer

* remove href

* add domain

* Update main.css

* Update main.css

* Update main.css

* Update search.jet.html

* Update tomorrow.css

* Update main.js

* Update base.jet.html

* less margin-bottom on torrent name for mobiles
2017-08-02 19:34:53 +02:00
kilo
c5fd68aa76 Remove browser outline for refine button & more blue (#1321)
* remove browser outline

* blue color & white text for g.css
2017-08-02 19:32:55 +02:00
kilo
caed944f4f Use the available space of refine for language (& future anidex stuff) if enough space (#1314)
* CSS stuff

* HTML stuff

* Update main.css

* Update main.css

* pin refine button to bottom

* changes needed to pin refien button

* Update main.css

* Update search.jet.html

* Update main.css

* Update search.jet.html

* Update main.css

* pin refine button and language list to the right

* better spacing

* Update main.css
2017-08-02 22:01:43 +10:00
kilo
78623ce71a Fix spacing of a link in footer, comments added, enhancements of toggle dark theme JS (#1307)
* Update main.js

* Update main.js

* add theme2

* Update main.js
2017-08-02 22:01:02 +10:00
ewhal
34a6961c0e Merge pull request #1304 from NyaaPantsu/tags
Initial Tag System [done]
2017-08-02 21:59:26 +10:00
akuma06
0db143d685 Possibility to add tags from edit panel + upload 2017-08-01 23:38:13 +02:00
akuma06
ba476185d3 fix form variable not defined error 2017-08-01 14:21:05 +02:00
akuma06
6ba6117b8d Merge branch 'tags' of https://github.com/NyaaPantsu/nyaa into tags 2017-08-01 13:56:04 +02:00
akuma06
e68637198f Add ajax tag post + improved the way templating works 2017-08-01 13:54:01 +02:00
kilo
7508bc24f1 Hiding pending tag for anon (#1306)
* Update main.css

* Update tomorrow.css

* Update torrent.go

* Update tag.go

* Update torrent.go

* Update view.jet.html

* adding the S

* fix color for sukebei

* better padding for download buttons
2017-08-01 13:45:06 +02:00
kilo
5e95b57958 Make file list indent work across all browsers & some other css stuff (#1303)
* Update treeview.jet.html

* Update treeview.jet.html

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update torrents.jet.html

* Update main.css

* Update main.css

* Update main.css

* Update search.jet.html

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update tomorrow.css

* Update main.css

* Update main.css

* Update main.js

* Update main.js

* Update main.js

* Update main.css

* Update main.css

* Update main.js

* Update base.jet.html

* Update main.js
2017-08-01 00:57:31 +02:00
akuma06
1697542143 CSS Rule: Anon can't vote 2017-07-31 18:33:27 +02:00
akuma06
6aa6e9d95f Added check on userID > 0 + links are more stylish 2017-07-31 18:29:43 +02:00
akuma06
a38f79eaf5 Merge branch 'dev' into tags 2017-07-31 17:15:32 +02:00
akuma06
7bd3b176c0 add css tags 2017-07-31 17:13:48 +02:00
kilo
39d5f405a7 Minimum width for the whole website, much better look for header under tight screens (#1301)
* Css changes

* Better outline for refine button in g.css

* remove hide-xs class from category in header

* Forgot a ;

* User menu alignement on low width

* same as above

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Padding enhancement for "Sign in" link and avatar

* Update main.css
2017-07-31 13:13:57 +02:00
kilo
207d72910c different behavior for refine JS (#1299) 2017-07-30 12:52:16 +10:00
kilo
99ef901dc2 Fix CSS line that did not apply (#1298)
* fix missing ; and change of color

* different color for /g/ refine button
2017-07-30 12:52:01 +10:00
kilo
5f91ecf0b4 Update main.js (#1296) 2017-07-28 14:30:07 +02:00
kilo
e70795ba2f Background-color for refine button, better category borders for tomorrow, some other css stuff (#1292)
* Update g.css

* Update classic.css

* Update tomorrow.css

* Update g.css

* Update g.css

* Update tomorrow.css

* some <summary> improvements

* make it wider

* better border color for torrent preview tomorrow

* better border for classic

* fixing that god damn padding once for all

* bigger search icon

* Update tomorrow.css
2017-07-28 13:47:50 +10:00
kilo
4fda9d0ba5 forgot to copy paste some code (#1290)
* Update main.js

* Update main.js

* Update main.js

* Update main.js

* Update main.js

* remove dumb shit
2017-07-28 13:47:26 +10:00
akuma06
03ea72595d OAuth API [done] (#1275)
* Initial Commit for OAuth API

This builds and run and return the right error.
Need to test it and then adding all users as possible client

* Added mising dependency

* just compile already...

* Fixing template test

* Imrpovements

Moved db stuff in models
Added some tests
Added form in modpanel to add/update a client
Added controllers for add/update of client

* Added Forms + speed improvements

Controller oauth client listing + html
Controller oauth client delete + messages
Messages on comment delete
New ES config that disable ES if set to false. Improve load speed on local development
Fix a load config bug
Fix index admin & translation string sign_out broken by @ewhal

* Sanitize empty strig in form array + css

Multiple empty array of strings are sanitized for the oauth client create form
Added some css for the form display

* Upload and Create form works

* Fix splitting response types

* Removing required on secret when updating

* fix travis error

* Fix travis template test

* Update dependency

* Moved to jinzhu instead of azhao

* randomizen secret on creation

* Final touch on oath api

improved display name
fix grant form csrf
fix login csrf on oauth

* Fix gorm test

* fix template test

* Fixing deleted dependency issue

* Make travis faster

* Fix typo

* Fix csrf for api calls

* This shouldn't be exempt

* Removing hard coded hash

@ewhal Don't forget to replace the hash in tokens.go with another one

* Added an example on how to use OAuth middleware

* Renamed fosite utils to oauth2 utils
2017-07-28 13:46:40 +10:00
kilo
d5888079f8 Date difference when hovering a torrent date (#1287)
* Update en-us.all.json

* Update main.js

* Update base.jet.html

* Update main.js

* Update main.js
2017-07-26 18:59:48 +10:00
akuma06
09d7adb0e3 excluding csrf_token from erase cookie 2017-07-26 09:20:11 +02:00