Commit Graph

294 Commits

Author SHA1 Message Date
nyaadev 375dcf15ef Switch to CDN for bootstrap-select and font-awesome css
Remove superfluous static files
2017-05-19 15:23:26 +02:00
A nyaa developer 35f6c8b202 Merge pull request #134 from CounterPillow/cdnfix
Use cdnjs with SRI and HTTPS for all CDN JS files
2017-05-19 15:08:23 +02:00
TheAMM e554f9ae97 Fix category name on icon titletext, fixes #131
Also reformats the cat_id if-logic
2017-05-19 15:24:09 +03:00
Nicolas F c31f3d251b Use cdnjs with SRI and HTTPS for all CDN JS files
SRI means that there's a lesser risk for XSS, and CDNJS itself
recommends always requesting them over HTTPS in their "About" page.

This closes #133
2017-05-19 08:43:49 +02:00
Mart 02fa705330 Merge pull request #107 from UnKnoWn-Consortium/patch-2
Make profile page more profile
2017-05-19 00:20:41 -04:00
UnKnoWn 63d01e430f Adjusting margin 2017-05-18 23:17:49 +08:00
UnKnoWn 4bc3abe317 Left aligning the user info 2017-05-18 23:15:17 +08:00
aldacron ddd4d8e44c Fixed MOTD spacing and changed to core js assets to cdns 2017-05-18 00:38:33 -07:00
aldacron 67758e1eef updated example again 2017-05-18 00:27:27 -07:00
UnKnoWn 0677b121d6 Update profile.html 2017-05-18 04:45:37 +08:00
UnKnoWn a1e90c96d9 Update profile.html 2017-05-18 04:33:53 +08:00
UnKnoWn 9a4583b87d Update profile.html 2017-05-18 04:33:40 +08:00
UnKnoWn efff63c5c0 A more structured look for profile 2017-05-18 04:31:42 +08:00
Kfir Hadas e8885df2b4 Drag&Drog in upload 2017-05-17 20:14:26 +03:00
Nazo 40d7540058 Handle softbreaks properly with commonmark, fixes #100 2017-05-17 18:54:17 +03:00
martstern 931b2b0b83 added user class display and editing 2017-05-17 06:02:15 -04:00
aldacron 08217cee2f changed filter bar for clarity 2017-05-17 01:43:04 -07:00
aldacron cee5d815d4 fixed line break 2017-05-17 01:33:54 -07:00
aldacron d0f9481b62 Merge branch 'master' of https://github.com/nyaadevs/nyaa 2017-05-17 01:29:50 -07:00
aldacron e98b7702d8 updated motd for clarity 2017-05-17 01:29:18 -07:00
TheAMM 8d66d6c82d Include search terms in page title
Fixes #25
2017-05-17 11:27:54 +03:00
aldacron 291789445c memes 2017-05-17 01:06:18 -07:00
aldacron 2590dfcc95 updated motd 2017-05-17 00:59:57 -07:00
aldacron acc5da09b0 updated MOTD for new search awareness 2017-05-17 00:53:26 -07:00
aldacron 8ffcbca4d5 improved profile page user flow. clears data on success and shows current email. also, flashes success message if successful 2017-05-17 00:53:07 -07:00
Johnny Ding c61bba8f30 Merge pull request #80 from nathancyam/mobile_search
Issue #35: Mobile search improvements
2017-05-17 00:13:25 -07:00
Johnny Ding 03d658fcef Merge pull request #91 from Open-Anime-Database-Consortium/master
User profile page UI and logic change
2017-05-16 23:58:27 -07:00
UnKnoWn 90c1314b59 Fixing default tab 2017-05-17 14:56:22 +08:00
Johnny Ding 0093b2bf4f Merge pull request #76 from sharkykh/fix-file-list
Fix padding for single file in torrent file list
2017-05-16 23:53:43 -07:00
Johnny Ding c5e76b17b6 Merge pull request #93 from sharkykh/tracker-link-style
Put tracker URL in <kbd>
2017-05-16 23:52:33 -07:00
UnKnoWn cfb3fafd64 Merge remote-tracking branch 'refs/remotes/nyaadevs/master' 2017-05-17 14:51:47 +08:00
Johnny Ding de5a15b9a0 Merge pull request #88 from nyaadevs/commonmark
Switch marked to commonmark
2017-05-16 23:51:23 -07:00
Kfir Hadas d27dd7eb51 Put tracker URL in <kbd>
Looks nicer
2017-05-17 09:23:52 +03:00
UnKnoWn f044170acb Update profile.html 2017-05-17 05:35:01 +08:00
UnKnoWn 1ac211276e Added tabs to make profile more organized 2017-05-17 05:19:00 +08:00
Johnny Ding e530e28bbd Merge pull request #77 from nyaadevs/pinned-tab
Add Safari pinned-tab icon
2017-05-16 13:06:12 -07:00
Nazo 6f61970559 Switch marked to commonmark 2017-05-16 21:29:22 +03:00
UnKnoWn eedc6c170d Added tabs to make profile more organized 2017-05-17 02:00:01 +08:00
Ricardo Ribeiro d8ef29755e Remove trailing spacebar on search_results 2017-05-16 15:08:47 +01:00
Ricardo Ribeiro 1f0f8cbeae Add full torrent name to link "title"
Now on ElasticSearch results as well
2017-05-16 14:49:15 +01:00
aldacron 99b59e57f5 revert motd, need to fix es 2017-05-16 04:27:36 -07:00
aldacron 1924a2fa85 Updated MOTD for ES enabling 2017-05-16 04:12:55 -07:00
Nathan Yam d3a4809cb9 Fix text content length 2017-05-16 20:29:37 +10:00
Nathan Yam 36416a3597 Fix search bar presentation
Need to fix filters and categories though. Looks
terrible.
2017-05-16 19:53:38 +10:00
Kfir Hadas c691087730 Use formatted file size
since that what was used by Nyaa.
2017-05-16 12:34:58 +03:00
sharkykh 837ecde795 Wrap description in a CDATA tag 2017-05-16 12:34:58 +03:00
sharkykh e2eb3fb33c Category (main+sub) 2017-05-16 12:33:44 +03:00
sharkykh d4621a23a7 Add bare torrent hash
lambda is probably not the best way to go,
suggestions for improvement are welcome!
2017-05-16 12:31:35 +03:00
sharkykh 3b87337c71 RSS: Add elements & refactor
description, size, seeders, leechers, downloads
2017-05-16 12:30:49 +03:00
nyaadev0 a87c192435 Add Safari pinned-tab icon 2017-05-16 04:11:02 -05:00
Kfir Hadas 261490daa7 Fix padding for single file in torrent file list 2017-05-16 11:53:13 +03:00
aldacron 00c768c722 merged elasticsearch, let's hope this doesn't break shit 2017-05-16 01:28:55 -07:00
aldacron 1d0177480e updated time display 2017-05-16 01:04:08 -07:00
aldacron 2005174358 finished up rss, changed rss behavior to include pre-defined trackers only, also cleaned up debug statements 2017-05-16 00:46:25 -07:00
martstern a19666b495 shrink and put user_class menu and button on same line 2017-05-16 03:13:22 -04:00
aldacron 899aa01473 hooked up ES... 90% done, need to figure out how to generate magnet URIs 2017-05-15 23:51:58 -07:00
martstern 8a87ca93a5 styled user info better, show user class on profile 2017-05-16 00:20:40 -04:00
martstern eb59116429 allow admin to give trusted to users. show users their own info when logged in 2017-05-15 07:49:25 -04:00
sharkykh 5c75424243 Fix 'Link' column header width
Set optimal width of 70px
2017-05-15 11:54:28 +03:00
TheAMM 7f767072cf Fix icon spacing in torrent filelist
As noted in #66
2017-05-15 09:50:58 +03:00
sharkykh 6be5326f45 Reformat code some more 2017-05-15 09:37:02 +03:00
sharkykh bd1a9f5cf4 Reformat 2017-05-15 09:34:22 +03:00
sharkykh dd1f1b6834 Nicer looking file list (basic table) 2017-05-15 09:28:48 +03:00
queue 85ba16545f es: fix highlighting without query term
I like highlighting.
2017-05-14 22:26:44 -06:00
Johnny Ding 8bca32a626 Merge pull request #50 from qqueue/elasticsearchin
elasticsearch-based search (WIP)
2017-05-14 20:06:33 -07:00
aldacron c5d77f996b Resolve #57 2017-05-14 17:43:56 -07:00
TheAMM 2c013090e0 Replace newlines with html entities in torrent description
Fixes #60
On production, Cloudflare minifies our HTML which removes blank newlines from the source and therefore the description.
Replacing them with HTML entities fixes the problem.
2017-05-14 23:28:22 +03:00
TheAMM c1df153e98 Don't enforce site tracker as first, just that it exists on the torrent
Fixes issue #42
Also adds logic for private torrents requiring site tracker as the main tracker (otherwise there's no point on uploading them on the site)
Changes upload.html wording to reflect the requirement to have the tracker, not necessarily as the first one.
2017-05-14 14:22:17 +03:00
Anna-Maria Meriniemi 22cea7af17 Merge pull request #54 from sharkykh/footer-commit-hash
Display the site's commit hash
2017-05-14 13:55:55 +03:00
Anna-Maria Meriniemi 8d0d7cfac8 Merge pull request #52 from bittebitte/patch-1
Autofocus username field
2017-05-14 13:24:20 +03:00
sharkykh 2a71fd8158 Display the site's commit hash 2017-05-14 12:02:39 +03:00
TheAMM cf77b03a6f Convert UTC to local time in JS
Also adds classes to row headers to accurately access them in JS.
Updates the serverside date format in view.html to match YYYY-MM-DD HH:MM
2017-05-14 11:23:02 +03:00
queue 8c951210d4 es: implement highlighting
no apologies for styling. somebody else with opinions will fix it later.
2017-05-14 02:19:42 -06:00
bittebitte 60f11b54ff Autofocus username field 2017-05-14 03:06:13 -05:00
queue 3cbe2e4221 WIP hack in es as the provider for search results
real sketch. lots of stuff is still broken. But! you can
make elasticsearch q= style queries and it shows up properly.
only first page works; need to adapt pager to elasticsearch's "total-hits" thing.
2017-05-14 02:01:26 -06:00
TheAMM 3bdff6246f Fix markdown linebreaks and match preview render options with final 2017-05-14 09:38:19 +03:00
Nathan Yam d45c9dca43 Add markdown editor when editing own torrents 2017-05-14 16:21:20 +10:00
Nathan Yam de4891dfc6 Add well styling to preview content 2017-05-14 16:14:18 +10:00
Nathan Yam fabe0f6fec Issue #10 Add markdown preview editor
These changes add a macro that creates the relevant HTML markup for a
markdown editor. In the main.js file, we bind the relevant elements with
the marked library, so users can see their contents in a HTML format.
2017-05-14 15:33:08 +10:00
Nathan Yam d3ad2503ae Add markdown editor macro 2017-05-14 15:33:08 +10:00
TheAMM 00a0327b19 Format information into a link if possible
Fixes issue #24 (am I doing this right?)
Supports HTTP(S) and IRC channels (#channel@server.com)
2017-05-13 23:44:00 +03:00
Adam 8d244675a0 Fixed problem with saving filter after reloading (#26) 2017-05-13 21:51:24 +02:00
nyaadev a3422ce068 RSS: Fix #2 #5 and #12 2017-05-13 16:14:00 +02:00
Anna-Maria Meriniemi 799e9dea87 Merge pull request #4 from erengy/rss-links
Remove whitespace from RSS links
2017-05-13 09:31:43 +03:00
Eren Okka 1e66fe0f77 Remove whitespace from RSS channel description 2017-05-13 09:06:31 +03:00
TheAMM f7d14ee19f Update WIP message with big promises 2017-05-13 08:59:31 +03:00
TheAMM 5af55245ec [templates] Add category links to /view, add hover-text to category icons in list 2017-05-13 08:17:22 +03:00
Eren Okka 60c3d7c7cd Remove whitespace from RSS links 2017-05-13 06:23:58 +03:00
nyaadev b2b8ae9722 S T O P H A R D C O D I N G U R L S 2017-05-13 01:59:52 +02:00
TheAMM 39230e1f39 [templates] Add JS-calculated hovertext for date ages
On torrent listing and torrent view, mouse over the times to see "X hours Y minutes Z seconds ago" etc
2017-05-13 02:41:52 +03:00
TheAMM 517d3e8e32 [templates, config] Add SITE_FLAVOR for selecting nyaa/sukebei, update templates
By default TABLE_PREFIX is derived from flavor.
Added back Date column, adjusted column widths
2017-05-13 02:41:52 +03:00
nyaadev 131bdaa11c Add .gitignore
Add github link to welcome banner
2017-05-12 22:12:00 +02:00
TheAMM 4f9ddfd7bc [templates] Clean up row headers to use a common macro, add title for s/l/d icons 2017-05-12 22:24:45 +03:00
nyaadev 00d65e312c Initial commit. 2017-05-12 20:51:49 +02:00