Commit Graph

55 Commits

Author SHA1 Message Date
Spike
bb5f2674d1
Merge branch 'master' into feature/fixed-navbar 2023-01-16 19:43:54 -08:00
Daniel Valentine
c83a4e0cc8
Landing page for NSFW content, SFW-only mode (#656)
Co-authored-by: Matt <matt@matthew.science>
Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2023-01-03 02:39:45 -07:00
Spenser Black
a49d399f72
Link to libreddit/libreddit and open in new tab
This sets the target of the "code" link to `_blank`, so that it will
open in a new tab in browsers. Because the GitHub page is a different
context from libreddit, and accessing the repository doesn't imply that
the user is finished browsing libreddit, this seemed reasonable. This
also changes the link from `spikecodes/libreddit` to
`libreddit/libreddit`.
2023-01-01 13:43:33 -05:00
Daniel Valentine
d86cebf975 Request CSS with explicit version.
base.html will now request with a query parameter `v=` whose value is
the current version of Libreddit. This will cause the browser to request
the stylesheet for a specific version of Libreddit, bypassing the cache.
A new version of Libreddit will cause the browser to fetch a new
stylesheet.

Resolves #622. Credit is due to GitHub user @chloekek for offering this
solution in the following post:
        https://github.com/libreddit/libreddit/issues/622#issuecomment-1315961742
2022-11-23 14:43:36 -07:00
Connor Holloway
6c202a59b0 Make the fixed navbar optional
Adds another on/off preference (default: on, keeps same
behaviour) for the fixed navbar.
When off the navbar will not remain at the top of the
page when scrolling.
This is useful for small displays such as phones where
otherwise the navbar takes up a sizeable portion of
the viewport.
2022-06-18 22:53:30 +01:00
spikecodes
7aeabfc4bc
Rewrite Reddit post links to Libreddit equivalents 2021-12-26 21:18:20 -08:00
spikecodes
85ae7c1f60
Fix indentation and formatting 2021-11-23 22:23:29 -08:00
mikupls
0f7ba3c61d
Add "open in reddit" button to all pages (#304)
* Pass the url parameter to all templates. Add a reddit_link to the navbar, which opens the current url on reddit.

* Add icon for reddit link

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-15 02:39:33 +00:00
spikecodes
038fafa378
Remove unnecessary trailing slashes 2021-03-17 17:28:05 -07:00
spikecodes
10c73fad7f
Switch favicon to ico 2021-02-26 12:04:11 -08:00
spikecodes
5d643277bc
Geometric logo 2021-02-25 09:07:45 -08:00
spikecodes
e731cfbac4
Support post links without titles 2021-02-09 10:11:39 -08:00
Spike
ebbdd7185f
Move from Actix Web to Tide (#99)
* Initial commit

* Port posts

* Pinpoint Tide Bug

* Revert testing

* Add basic sub support

* Unwrap nested routes

* Front page & sync templates

* Port remaining functions

* Log request errors

* Clean main and settings

* Handle /w/ requests

* Create template() util

* Reduce caching time to 30s

* Fix subscription redirects

* Handle frontpage sorting
2021-02-09 17:38:52 +00:00
spikecodes
956de50419
Change Libreddit PWA Theme Color 2021-02-01 16:26:35 -08:00
robrobinbin
0742a33304
Update base.html 2021-02-01 20:32:57 +01:00
JPyke3
0a140a6ffc
Merge branch 'master' of github.com:JPyke3/libreddit into master 2021-02-01 11:13:36 +01:00
JPyke3
e837d84105
Add Support for iOS "Add to Homescreen"
* Adds basic Manifest.json
 * Adds Meta Tags for iOS
 * Adds Meta Tags for Android
 * Adds Logo for Manifest.json
 * Adds iOS Logo for homescreen
2021-02-01 11:10:53 +01:00
spikecodes
f6d791ccd9
Style focus outline 2021-01-31 20:56:13 -08:00
spikecodes
9a1733ac99
Fix cog class 2021-01-31 13:49:55 -08:00
spikecodes
c32d62fbd5
Shrink links to icons on mobile 2021-01-31 13:22:11 -08:00
Matthew Crossman
8cc01c58f3
Move the subs list into the navbar. 2021-01-31 09:52:18 +11:00
Matthew Crossman
dc2030e6f3
Vertical list subscriptions. 2021-01-30 21:21:54 +11:00
Matthew Crossman
ef5a1cd66e
Rename block sub_list > subscriptions 2021-01-30 19:47:30 +11:00
Matthew Crossman
11e4ff42ed
Clean-up and more consistent styles. 2021-01-30 19:33:38 +11:00
Matthew Crossman
75bbcefbec
Display sub list from list in cookie.
Very basic sub list setup. Cookie must be manually added in devtools.
2021-01-30 16:00:55 +11:00
spikecodes
49a6168607 Improve CSP 2021-01-29 14:39:03 -08:00
spikecodes
f55ea5a353 Specify default headers for security 2021-01-28 21:53:10 -08:00
robin
baf7272cfd Absolutly no jumping when images (fail to) load 2021-01-21 22:04:06 +01:00
spikecodes
a562395c26 Refactor system theme 2021-01-17 18:11:36 -08:00
Matthew Crossman
72eaa685d0
Prevent "system" class from being added to body. 2021-01-18 11:25:39 +11:00
Matthew Crossman
1d57e29d56
Add "system" theme to settings. 2021-01-18 10:44:51 +11:00
spikecodes
801216dfe9 Include code link on mobile 2021-01-17 13:24:44 -08:00
spikecodes
96607256fc Add Favicon 2021-01-12 20:18:20 -08:00
spikecodes
08683fa5a6 Light theme 2021-01-10 18:15:34 -08:00
spikecodes
f445c42f55 Wide UI Mode 2021-01-10 13:08:36 -08:00
spikecodes
3444989f9a Default Comment Sort Setting 2021-01-07 08:38:05 -08:00
spikecodes
b50fa6f3ae Settings Button 2021-01-05 18:16:32 -08:00
spikecodes
aa7b4b2af7 Settings with Layouts 2021-01-05 18:04:49 -08:00
spikecodes
f819ad2bc6 Remove CSP "Upgrade Insecure Requests" Header 2021-01-04 10:11:07 -08:00
spikecodes
a422a74747 Make Design More Compact 2021-01-03 19:44:44 -08:00
spikecodes
5d26b5c764 Upgrade Insecure Requests 2021-01-02 20:59:14 -08:00
spikecodes
5ea504e6e8 Restrict Proxy to Reddit Domains 2021-01-02 20:50:23 -08:00
spikecodes
0925a9b334 Add Wiki Pages 2021-01-01 22:21:43 -08:00
spikecodes
93c1db502d Fix Title and Navbar 2020-12-31 16:45:10 -08:00
spikecodes
a6dc7ee043 Rewrite + Searching 2020-12-31 15:54:13 -08:00
spikecodes
f00ef59404 Fix proxy-less deployment 2020-12-28 20:49:15 -08:00
spikecodes
b1a572072c Highlight Post Authors in Comments 2020-12-21 08:38:24 -08:00
spikecodes
b1071e9579 Switch Sorting System to Dropdown 2020-12-20 21:49:31 -08:00
spikecodes
565f4f23b3 Multireddit Support & Referrer Policy 2020-12-20 17:45:26 -08:00
spikecodes
3594b6d41f Fix CSS and CSP 2020-12-19 22:25:00 -08:00