46 Commits

Author SHA1 Message Date
Matthew Esposito 2fd358f3ed feat(hls): add video quality preference (#306) 2024-11-01 12:28:52 -04:00
Nolan Poe d17d097b12 Fix parts of CI (#304)
* Run cargo fmt, hide clippy::cmp_owned errors

* Bump deps

* Fix failing test

* Update src/client.rs

---------

Co-authored-by: Matthew Esposito <matt@matthew.science>
2024-10-31 22:50:50 -04:00
Guillaume Gomez 1838fdaea4 Replace askama with rinja (#276)
Release Build / Rust project - latest (aarch64-unknown-linux-musl) (push) Has been cancelled
Release Build / Rust project - latest (armv7-unknown-linux-musleabihf) (push) Has been cancelled
Release Build / Rust project - latest (x86_64-unknown-linux-musl) (push) Has been cancelled
Rust Build & Publish / build (push) Has been cancelled
Pull Request / cargo test (push) Has been cancelled
Pull Request / cargo fmt --all -- --check (push) Has been cancelled
Pull Request / cargo clippy -- -D warnings (push) Has been cancelled
2024-10-02 17:43:13 -04:00
pimlie 3301da1ef1 feat: add support to blur spoiler previews 2024-06-22 12:16:12 +02:00
Ales Lerch b6f5831d10 feat: adds hide summary sidebar option 2024-05-13 23:49:59 +02:00
Matthew Esposito 9f9ae45f6e Add many Clippy's, fix many Clippy's 2024-01-19 20:16:17 -05:00
Matthew Esposito 3e3c30d7f1 Update cookie + changes 2023-12-26 16:24:53 -05:00
Matthew Esposito de268314f3 Fix tests 2023-12-26 15:42:41 -05:00
Matthew Esposito 0eb5e18cef Merge remote-tracking branch 'origin/pull/536' 2023-12-26 15:20:21 -05:00
gmnsii e3b1c5b587 Use a bullet instead of empty margin when score is hidden
This is prettier and keeps consistency across the app.
2023-03-23 11:29:28 -07:00
gmnsii df3d894947 Add option to hide score
Add the option to hide score for posts and comments in preferences.
There is still however a blank margin where the score is supposed to be.
2023-03-22 20:08:20 -07:00
potatoesAreGod fa68bf561b added leaving reddit dialog (#643) 2023-02-08 00:24:06 -07:00
Spike bb5f2674d1 Merge branch 'master' into feature/fixed-navbar 2023-01-16 19:43:54 -08:00
potatoesAreGod eb9ef9f6d9 added leaving reddit dialog (#643) 2023-01-12 01:46:56 -07:00
Matthew Esposito 6a785baa2c Add hide_awards config 2023-01-01 21:39:38 -05:00
NKIPSC e62d33ccae Blur NSFW posts.
Reimplementation of libreddit/libreddit#482.

Co-authored by: Daniel Valentine <Daniel-Valentine@users.noreply.github.com>
2022-11-08 09:01:12 -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
Nick Lowery 888e7b302d Filter subreddits and users (#317)
* Initial work on filtering subreddits and users

* Fix doubly-prefixed subreddit name in search alt text (e.g. r/r/pics)

* Don't set post title to "Comment" if empty - this could throw off actual posts with the title "Comment"

* Filter search results

* Fix filtering to differentiate between "this subject itself is filtered" vs "all posts on this current page have been filtered"

* Remove unnecessary check

* Clean up

* Cargo format

* Collapse comments from filtered users

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-26 04:02:04 +00:00
spikecodes 34ea679519 Update crates and optimize parameters 2021-11-14 18:51:36 -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 1d4ea50a45 Add setting to autoplay videos 2021-10-25 21:27:55 -07:00
spikecodes 6a4191f3b5 Fix #272 2021-09-09 17:28:55 -07:00
spikecodes d2002c9027 Disable dysfunctional moderator list feature 2021-06-11 11:03:36 -07:00
spikecodes 4defb58f2a Optimizations and commenting 2021-05-20 12:24:06 -07:00
spikecodes ba42fc066f Fix two subscription bugs 2021-05-19 20:30:10 -07:00
spikecodes 73732a2a44 Fix subscription clearing when saving settings 2021-05-19 15:59:32 -07:00
Adrian Lebioda 928907086c HLS video playback (#182)
* HLS video playback

Signed-off-by: Adrian Lebioda <adrianlebioda@gmail.com>

* Add LibreJS compliance

* Locally host hls.js

* Notification about HLS under videos that support it

Signed-off-by: Adrian Lebioda <adrianlebioda@gmail.com>

* Use .contains() instead of .find() == None

* Make list of preferences constant

* Change headers_keys from Vector into Array

* Fix incorrect detecting of # in paths

* Remove trailing-slash-appending if statement

* Change HLS notification styling

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-05-10 01:25:52 +00:00
spikecodes c7f9386c01 Fix #169 2021-03-27 13:03:13 -07:00
spikecodes 6a7f725c12 Default subreddit post sorting. Closes #166 2021-03-25 21:41:58 -07:00
spikecodes b14b4ff551 Rewrite server and client using Hyper 2021-03-17 15:30:33 -07:00
spikecodes bf783c2f3a Optimize type casting 2021-03-08 18:49:06 -08:00
spikecodes a3ec44149c Categorize utilities 2021-02-24 21:29:23 -08:00
spikecodes aa7c8c85df Templatize redirects 2021-02-13 15:02:38 -08:00
robrobinbin 93cfc713c6 Generate URL to restore settings, including subscriptions. Closes #89 (#116)
* Start recursive comments

* Update comment.html

* Fix move error

* Comment improvements

* Fix merge

* Remove extra endif from post.html

* Fix post.html

* Restore setting from link

* Tweak settings page

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-02-13 20:55:23 +00: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 1653d4fb4c Hide NSFW content by default 2021-01-30 21:43:46 -08:00
spikecodes dea7f33910 Add code optimizations 2021-01-20 17:38:34 -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 b8cdc605a2 Front page config and settings note 2021-01-08 20:55:40 -08:00
spikecodes ef2f9ad12b Unify preferences under one struct 2021-01-08 17:50:03 -08:00
spikecodes b13874d0db Add "hide nsfw" option 2021-01-08 17:35:04 -08:00
spikecodes 3444989f9a Default Comment Sort Setting 2021-01-07 08:38:05 -08:00
spikecodes 3260a4d596 Disable "secure" flag for cookies 2021-01-06 09:52:23 -08:00
spikecodes aa7b4b2af7 Settings with Layouts 2021-01-05 18:04:49 -08:00
spikecodes 5ea504e6e8 Restrict Proxy to Reddit Domains 2021-01-02 20:50:23 -08:00