* 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
* 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
* 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
* 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
* 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
* Remove html rules from upload, load rules file and call the rule function
* Update faq.jet.html
* Create rules.jet.html
* forgot to remove old list
* forgot to do that
* remove <br/>
* Update main.css
* Update g.css
* add jav flag keyword
* Update kilo.js
* add h-games keyword
* change seeder & leecher width at lower res
* change class for seeder & leecher
* add new class to hide stuff when below 520px wide
* add those classes in upload
* change classes in torrent updating JS
* change class in torrent updating JS for upload
* removal of space
* margin-right addition
* Update flags.jet.html
* margin into padding
* add "highlighted" class for possible future use
* bigger rules-drop, fix wrong display, remove useless line
* add alt for category img & alt with every language for flag
* literally no point of an alt on a div
* flag alt
* add two keywords
* move keywords_flags vartiable outside of function
no point in creating it every single time
* Update en-us.all.json
* add sukebei rule
* Update main.css
* Update upload.jet.html
* Update upload.jet.html
* Update main.css
* Update main.css
* Update en-us.all.json
* whoopsies
* add keywords for categories
* fix display on firefox & older browsers
* up to date torrent_item_upload
* remove admin stuff
* add color, outline & hover color for links in descriptions
* Update main.css
* apply to description links
* Update g.css
* same
* remove underline for tomorrow
* remove custom_flag.css
* remove ' that had nothing to do here
* replace sukebei variable to boolean
* fix ? operator & variable name
* attempt at fixing visual cues for anonymous torrents
* Update torrents.jet.html
* add missing ,
* useless code if user logged off so moving that
* add it back here and check if logged in
* should work almost properly now
* same here
* flag-other invisible
* Update kilo.js
* Update upload.jet.html
* should work very well now
* same here
* Delete categories.png
* Add files via upload
* Update main.css
* Update kilo.js
* Update upload.jet.html
* Update kilo.js
* Update torrents.jet.html
* proper behavior for trusted people
* different flag form id
* add id
* add language name in an span
* make that span invisible =)
* Update flags.jet.html
* Update upload.jet.html
* Update kilo.js
* whoever read this is a faggot
* Update upload.jet.html
* add button in header & remove two options from header search
* dont show refine button on small screens
* remove the div in there
* to put it there and add display: none when needed
* add refine class for future js code
* add function in code to toggle refine
* more html changes
* spacing changes
* add limit & show trusted and all that stuff to refine
* add margin
* obligatory css changes
* forgot {{ }} for a variable name
* add function on onclick refine button
* wrong file
* put onclick & translation on button
* First batch of changes for the refactor
Added the support of gin in routes and other services/utils
Begining implementation of JetHTML
* Remove os folder
* Move scrapers to own repo
* Second batch of changes
All .jet.html are the working templates.
You can now test this PR, the index Page and upload works. If you want to complete the other html templates, you're welcome
* Move captcha to util
* Move uploadService to utils
* Use govalidator instead of regex
* Third batch of changes
All the front end should as previously.
I also fixed some minor things unrelated to the refactor (mostly style issues on static pages)
Now errors can be accessed by importing the "errors" helpers and using the `yield errors(name="xxx")` command in templates.
Same for infos.
Templates are now more hierarchized with a base template "base.jet.html" which is extended depending on the context in "index_site" or "index_admin" layouts. Those layouts are extended than in every pages.
Other helpers are captcha to render a captcha `yield captcha(captchaid="xxx")`
And also csrf, with the command `yield csrf_field()`
To translate, you don't have anymore to do `call $.T "xxx"`, you just have to do `T("xxx")`.
Pages for the website part are in folders in the folder "templates/site". Pages for the admin part are in "templates/admin". Layouts are separated in "templates/layouts". Helpers and menu are in "templates/layouts/helpers" and "templates/layouts/menu". Error pages should be put in "templates/errors"
* Added test on templates
When adding a new template, you have to tell to template_test.go, the context of the new template (if it doesn't use the common context)
* Panel admin works
Now the templating part should work. The PR can now be fully tested.
I think we should push the templating PR and do the routes/controllers/removal of services in another branch. So we know that this one is functional
* Updated dependencies
* Fixed test for modelhelper
* Fix testing for commentlist
* Fix travis :')
* Just renamed router and removed network
* Applying same SEO fix
* Update form_validator.go
* Added back regexp package
* Prettier flag position
* flag overlap category icon
* HTML changes
* fix css that didn't apply properly & colspan not always being there
* Update main.css
* Update home.html
* Update home.html
* Update main.css
* Update main.css
* Header isn't as WIDE on resolutions past 1920
* Turn down the fucking volume because it scares the shit out of me everytime
* Make clear the mascot is clickable
* Make torrent buttons not fuckhuge
* Just show N/A on no website
* search.html: Fix minor typo in refine box
* Should fix old uploader name in torrent view
* Fix "save changes" in modtools
* Modtool more colorful
* Fix search bar placement in modpanel
* Fix for widescreen
* Fix buttons in modpanel and some troncated text
* Update torrent.go
* Update admin_index.html
* Some last fix
Re added icon on download&magnet links
* Make view page not shitty
* View page <td> now ellipses on overflow
* Make flags not look shitty
* Updated mufuyu sound
* Updated multiple flag
* Updated other flag (thanks anon)
* Should fix old uploader name in torrent view
* Fix "save changes" in modtools
* Modtool more colorful
* Fix search bar placement in modpanel
* Make colors more consistent; less would be super helpful tbqach fam
* Display the old username if it's there
* Fix some admin index html
* Add custom icons and remove png code from all CSS
* Move a good amount of cosmetic code from main to classic
* Fix some weird bug with point-events; add some global icon formatting; fix mascot fucking up
* Spruce up admin panel with icons on smaller viewports, along with adding trash icon
* 404 redesign ;^)
* Mufuyu mascot on all themes; says something slightly lewd
* Fix weird user menu bug where shit would overflow
* Megacheck friendly
applied megacheck and fixed some unwanted behaviour (markdown)
* Forgot this file
* Captcha Audio
Should make #993 happen
* Fix style issue in comments
* Added margin auto and width on input
* Moved width on captcha div instead
* fixing width issue with audio tag
* Captcha final style fix
* Add flags for torrents
Add a new field, .Language, to the Torrent model, and a new package,
torrentLanguages, which maps languages to flags. Added also a flag icon pack
from googlei18n/region-flags, with (mostly) public domain flags from Wikipedia.
* Optimize flags
* Use FlagSprites CSS instead of .png files
* Only use flags for languages we support
* Add test for CSS flags
Ensure that we have all the flags for the languages we support.
* Add AdditionalLanguages field to config
This allows us to support additional languages for new uploaded torrents,
even if we have no translation for it.
* Minor CSS fix
* Add "other" and "multiple" torrent languages
Also removed the TorrentLanguage struct, as it wasn't much useful.
* Fix test
* Add colspan=2 to category when language is empty
Also hide the language column if empty.
* Add lang field to search.
Hopefully it works with Elasticsearch as well, but I haven't tested
(lol Java)
* Add language field to ES index and settings
* Add language column to JS template
* Add keyword type to language ES field
* Remove 'raw' from keyword
* Set "simple" analyzer on language
* Document .Language field on Torrent model