Commit Graph

455 Commits

Author SHA1 Message Date
cd1fff8a10 Remove unused imports
Some checks failed
Push Workflows / rustfmt (push) Successful in 7s
Push Workflows / mdbook (push) Successful in 9s
Push Workflows / docs (push) Successful in 50s
Push Workflows / clippy (push) Successful in 1m8s
Push Workflows / mdbook-server (push) Successful in 1m42s
Push Workflows / leptos-test (push) Successful in 2m1s
Push Workflows / test (push) Successful in 2m22s
Push Workflows / nix-build (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
2025-06-28 00:58:07 +00:00
4b5b1209a5 Remove FromRequestParts for Config
Some checks failed
Push Workflows / rustfmt (push) Successful in 6s
Push Workflows / mdbook (push) Successful in 8s
Push Workflows / clippy (push) Failing after 34s
Push Workflows / docs (push) Successful in 42s
Push Workflows / build (push) Failing after 1m22s
Push Workflows / mdbook-server (push) Successful in 1m12s
Push Workflows / leptos-test (push) Successful in 1m30s
Push Workflows / test (push) Successful in 1m44s
Push Workflows / docker-build (push) Successful in 4m20s
Push Workflows / nix-build (push) Successful in 12m53s
2025-06-28 00:49:46 +00:00
83b56b9110 Move PG types back to util::database
Some checks failed
Push Workflows / rustfmt (push) Successful in 6s
Push Workflows / mdbook (push) Successful in 8s
Push Workflows / docs (push) Successful in 45s
Push Workflows / clippy (push) Successful in 50s
Push Workflows / mdbook-server (push) Successful in 1m18s
Push Workflows / leptos-test (push) Successful in 1m35s
Push Workflows / test (push) Successful in 1m48s
Push Workflows / build (push) Successful in 2m40s
Push Workflows / docker-build (push) Successful in 4m26s
Push Workflows / nix-build (push) Has been cancelled
2025-06-28 00:44:14 +00:00
36de234630 Add backend_state to AuthBackend 2025-06-28 00:41:10 +00:00
b43f9fae8c Add db_conn argument for functions required for auth 2025-06-28 00:39:00 +00:00
97f435c6d8 Implement Error for BackendError 2025-06-28 00:38:17 +00:00
7a79904aa4 Remove old database init/connection functions 2025-06-27 22:08:14 +00:00
7ddbee724b Use BackendState::get_db_conn() instead of database module 2025-06-27 22:08:14 +00:00
912c3b8adf Remove redis module
All functionality is now handled in BackendState
2025-06-27 22:08:14 +00:00
735f6758d7 Use BackendState for redis connection 2025-06-27 22:08:14 +00:00
e25f6ff5c4 Add function to BackendState to extract 2025-06-27 22:08:13 +00:00
8adefabc2f Initialize backend state, supply to requests instead of config 2025-06-27 22:08:13 +00:00
2795a1b754 Add BackendState 2025-06-27 22:08:13 +00:00
f25ebb85d2 Fix leptos tests using new errors
All checks were successful
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / mdbook (push) Successful in 7s
Push Workflows / docs (push) Successful in 40s
Push Workflows / clippy (push) Successful in 1m4s
Push Workflows / mdbook-server (push) Successful in 2m21s
Push Workflows / test (push) Successful in 2m56s
Push Workflows / build (push) Successful in 3m56s
Push Workflows / leptos-test (push) Successful in 5m51s
Push Workflows / nix-build (push) Successful in 11m20s
Push Workflows / docker-build (push) Successful in 11m49s
2025-06-27 00:56:18 +00:00
368f673fd7 Rewrite error handling and display
Some checks failed
Push Workflows / rustfmt (push) Successful in 11s
Push Workflows / mdbook (push) Successful in 16s
Push Workflows / mdbook-server (push) Successful in 4m20s
Push Workflows / docs (push) Successful in 5m44s
Push Workflows / clippy (push) Successful in 7m48s
Push Workflows / test (push) Successful in 11m14s
Push Workflows / leptos-test (push) Failing after 11m33s
Push Workflows / build (push) Successful in 12m53s
Push Workflows / nix-build (push) Successful in 16m54s
Push Workflows / docker-build (push) Successful in 17m40s
2025-06-26 00:01:49 +00:00
0541b77b66 Add more BackendError types
Remove "Error" from enum variant names
Add functions to create BackendErrors
Change Contextualize types
Implement conversion from all sub error types
2025-06-26 00:01:35 +00:00
f8a774f389 Add BackendResult type 2025-06-25 23:59:34 +00:00
a6d57a84ce Remove unnecesary feature 2025-06-25 23:59:11 +00:00
cd39ec7252 Create a type for different backend errors 2025-06-16 15:27:08 +00:00
9181b12c01 Load Config at start of main, supply to requests with middleware 2025-06-16 15:27:08 +00:00
40909bfdb0 Implement FromRequestParts for Config 2025-06-10 02:07:34 +00:00
c7154f5008 Update CustomClient for websocket support 2025-06-10 01:37:47 +00:00
13111e3567 Fix axum route syntax 2025-06-08 21:14:52 +00:00
5cbeba5dbe Add config module 2025-06-08 20:10:14 +00:00
deaef81999 Fix lints
All checks were successful
Push Workflows / rustfmt (push) Successful in 7s
Push Workflows / docs (push) Successful in 45s
Push Workflows / mdbook (push) Successful in 10s
Push Workflows / clippy (push) Successful in 1m3s
Push Workflows / mdbook-server (push) Successful in 42s
Push Workflows / leptos-test (push) Successful in 2m33s
Push Workflows / test (push) Successful in 3m8s
Push Workflows / build (push) Successful in 4m34s
Push Workflows / docker-build (push) Successful in 11m49s
Push Workflows / nix-build (push) Successful in 11m57s
2025-05-30 17:03:43 +00:00
b727137fa8 Show liked songs at top of playlists
Some checks failed
Push Workflows / rustfmt (push) Successful in 8s
Push Workflows / docs (push) Successful in 54s
Push Workflows / clippy (push) Successful in 54s
Push Workflows / leptos-test (push) Successful in 2m51s
Push Workflows / test (push) Successful in 3m9s
Push Workflows / build (push) Successful in 4m25s
Push Workflows / docker-build (push) Failing after 12m59s
Push Workflows / nix-build (push) Successful in 16m11s
2025-05-06 03:17:47 +00:00
f61507b197 Add liked songs page 2025-05-06 03:17:35 +00:00
d2aebde562 Add API endpoint to get liked songs 2025-05-06 03:14:57 +00:00
ba0a531f2c Ignore space and arrow key events on input fields
Some checks failed
Push Workflows / rustfmt (push) Successful in 6s
Push Workflows / docs (push) Successful in 39s
Push Workflows / clippy (push) Successful in 36s
Push Workflows / leptos-test (push) Successful in 1m29s
Push Workflows / test (push) Successful in 1m50s
Push Workflows / build (push) Successful in 2m47s
Push Workflows / docker-build (push) Failing after 9m52s
Push Workflows / nix-build (push) Successful in 12m32s
2025-05-06 02:41:15 +00:00
4d1859b331 Add playlist page
Some checks failed
Push Workflows / rustfmt (push) Successful in 6s
Push Workflows / docs (push) Successful in 41s
Push Workflows / clippy (push) Successful in 37s
Push Workflows / leptos-test (push) Successful in 1m18s
Push Workflows / test (push) Successful in 1m39s
Push Workflows / build (push) Successful in 2m43s
Push Workflows / docker-build (push) Failing after 9m22s
Push Workflows / nix-build (push) Successful in 12m39s
2025-05-06 01:34:53 +00:00
c17aeb3822 Display playlists on sidebar 2025-05-06 01:34:44 +00:00
0e0d107d08 Include playlist resource in global state 2025-05-06 01:34:28 +00:00
28875c8669 Write playlist API functions 2025-05-06 01:33:21 +00:00
68778615b9 Move extract_field to util 2025-05-06 01:33:20 +00:00
58b5ed6d3f Add image fallback handler 2025-05-06 01:33:20 +00:00
54d629d504 Use db_type for User
Some checks failed
Push Workflows / rustfmt (push) Successful in 8s
Push Workflows / nix-build (push) Failing after 45s
Push Workflows / docs (push) Successful in 3m20s
Push Workflows / clippy (push) Successful in 4m24s
Push Workflows / test (push) Successful in 5m58s
Push Workflows / leptos-test (push) Successful in 6m59s
Push Workflows / build (push) Successful in 7m53s
Push Workflows / docker-build (push) Failing after 11m47s
2025-05-05 01:25:20 +00:00
6486bbbdda Use db_type for Playlist 2025-05-05 01:10:17 +00:00
b727832c8e Use db_type for HistoryEntry 2025-05-05 01:07:07 +00:00
7c4058884e Use db_type for Artist 2025-05-05 01:05:20 +00:00
a67bd37d11 Use db_type for Album 2025-05-05 00:53:57 +00:00
3f43ef2d20 Use libretunes_macro::db_type instead of manual Song/NewSong structs 2025-05-05 00:38:37 +00:00
c02363c698 Create NewSong type 2025-05-04 21:36:34 +00:00
f65d054612 Create search page
Some checks failed
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / clippy (push) Successful in 27s
Push Workflows / docs (push) Successful in 33s
Push Workflows / leptos-test (push) Successful in 1m8s
Push Workflows / test (push) Successful in 1m19s
Push Workflows / build (push) Successful in 2m26s
Push Workflows / docker-build (push) Failing after 9m13s
Push Workflows / nix-build (push) Successful in 12m18s
2025-05-04 03:35:12 +00:00
ed6cd4efcf Return query match score for all search results
Some checks failed
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / clippy (push) Successful in 28s
Push Workflows / docs (push) Successful in 33s
Push Workflows / leptos-test (push) Successful in 1m1s
Push Workflows / test (push) Successful in 1m9s
Push Workflows / build (push) Successful in 2m3s
Push Workflows / docker-build (push) Failing after 12m0s
Push Workflows / nix-build (push) Successful in 15m20s
Add SearchRersult<T> type
Apply temporary fixes to upload page
2025-05-03 18:24:30 +00:00
7bccde7654 Create health check bin 2025-05-03 06:27:38 +00:00
e2a395ae7c Don't require auth for health check endpoint
Some checks failed
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / docs (push) Successful in 32s
Push Workflows / clippy (push) Successful in 28s
Push Workflows / leptos-test (push) Successful in 59s
Push Workflows / test (push) Successful in 1m7s
Push Workflows / build (push) Successful in 2m6s
Push Workflows / docker-build (push) Failing after 11m21s
Push Workflows / nix-build (push) Successful in 15m21s
2025-05-03 05:30:47 +00:00
6bb6322aa4 Create health check endpoint 2025-05-03 05:30:34 +00:00
a82da927b0 Move redis connection to util/redis.rs 2025-05-03 05:30:17 +00:00
9cd1e8291a Use feature-specific Client in server functions
Some checks failed
Push Workflows / rustfmt (push) Successful in 10s
Push Workflows / docs (push) Successful in 1m43s
Push Workflows / clippy (push) Successful in 2m12s
Push Workflows / test (push) Successful in 4m17s
Push Workflows / leptos-test (push) Successful in 4m24s
Push Workflows / build (push) Successful in 6m2s
Push Workflows / docker-build (push) Failing after 12m7s
Push Workflows / nix-build (push) Successful in 15m46s
2025-05-03 04:24:28 +00:00
ff1b7401f2 Add custom client for non-browser RPC 2025-05-03 03:51:55 +00:00