Commit graph

31 commits

Author SHA1 Message Date
Kendall Garner
b2fce071a9
[bugfix]: Check for Navidrome authentication on startup
Resolves #403.
This PR introduces a startup check for Navidrome that tries a simple API request (/songs) before loading homepage.
If the check fails, Navidrome API will fallback to trying saved password (if available).

Notes:
- It might also be worthwhile to do a periodic poll?
2024-02-16 13:37:49 -08:00
Kendall Garner
9720fcc202
add server info query 2024-02-01 08:17:31 -08:00
Kendall Garner
5e9ef9f23f
use type, remove console 2024-01-22 18:52:14 -08:00
Kendall Garner
74cab01013
[feature]: Support using system fonts (#304)
* [feature]: Support using system fonts

Uses the **experimental** queryLocalFonts API, when prompted, to get the fonts and do CSS.
Resolves #270 and #288 (by proxy)

Caveats/notes:
- This is experimental, and is only supported by Chrome/Chromium/Edgeium (see https://caniuse.com/?search=querylocalfonts)
- As far as I can tell, the only way to dynamically change the font (shown in https://wicg.github.io/local-font-access/#example-style-with-local-fonts) was by DOM manipulation; css variables did not seem to work
- This shows **all** fonts, including their variants (bold/italic/etc); given that the style names could be localized, not sure of a way to parse this (on my system, for instance, I had 859 different combinations)
- I made fonts a separate top-level setting because it was easier to manipulate without causing as many rerenders; feel free to put that back

* add permission chec

* add electron magic to support custom font

* restrict content types
2023-10-22 15:25:17 -07:00
jeffvli
3f813b1a26 Make album detail columns customizable 2023-08-08 09:26:53 -07:00
Kendall Garner
c9dbf9b5be
Add remote control (#164)
* draft add remotes

* add favorite, rating

* add basic auth
2023-07-23 05:23:18 -07:00
jeffvli
179129b7cb Add actions table column 2023-07-18 17:37:32 -07:00
jeffvli
be0792a5c7 Refresh playlist list on delete (#134) 2023-07-16 23:23:07 -07:00
jeffvli
0ba8d5bf70 Add extra item types to card row 2023-07-16 13:35:32 -07:00
jeffvli
30e52ebb54 Lint all files 2023-07-01 19:14:12 -07:00
Kendall Garner
2fac9efc1b
initial implementation for password saving (#132)
* initial implementation for password saving

* support restoring password in interceptor

* Fix modal overflow and position styles

* warn about 429, better error handling

---------

Co-authored-by: jeffvli <jeffvictorli@gmail.com>
Co-authored-by: Jeff <42182408+jeffvli@users.noreply.github.com>
2023-06-13 10:52:51 -07:00
jeffvli
f8ecb3fc53 Update fetchers to support search 2023-06-09 17:24:34 -07:00
jeffvli
48dfd469ed Additional styling changes 2023-06-04 16:46:05 -07:00
Kendall Garner
85d2576bdc Improved lyric syncing, fetch
- uses a somewhat more sane way to parse lyrics and teardown timeouts
- adds 'seeked' to setCurrentTime to make detecting seeks in lyric much easier
- adds ability to fetch lyrics from genius/netease (desktop only)
2023-06-04 16:46:05 -07:00
jeffvli
93530008a9 Add custom query prop to play queue add 2023-05-20 20:58:11 -07:00
jeffvli
6747fbb701 Add initialSongId prop as alternative to initialIndex 2023-05-20 20:47:07 -07:00
jeffvli
02caf896ff Update playqueueadd props 2023-05-20 14:55:08 -07:00
Jeff
e47fcfc62e
Add fullscreen player view (#27)
* Add store controls for fullscreen player

* Normalize styles for playback config

* Add fullscreen player component

* Add option component

* Update player controls to use option/popover components

* Add esc hotkey to close player

* Add usePlayerData hook
2023-03-28 14:19:23 -07:00
jeffvli
d17f30f5e6 Add favorite handler to grid cards 2023-01-08 00:52:53 -08:00
jeffvli
2df96c0d31 Add song filter as add queue type 2023-01-07 03:26:18 -08:00
jeffvli
d1dfbaedaa Move LibraryItem type 2023-01-05 21:59:07 -08:00
jeffvli
d63e5f5784 Add owner to playlist update query
- Support smart playlist rules
- Add user list query
2023-01-04 18:33:49 -08:00
jeffvli
ec79d91d30 Add playlist list 2022-12-31 03:46:12 -08:00
jeffvli
4745c4a42d Add card/table types for album artists 2022-12-30 21:11:09 -08:00
jeffvli
9836d548a6 Accept string of ids by itemtype in playqueue add 2022-12-28 19:19:05 -08:00
jeffvli
8ebe882236 Add 'byData' as playqueue add option 2022-12-28 15:31:04 -08:00
jeffvli
2b0d4c44a6 Update table component 2022-12-27 14:22:54 -08:00
jeffvli
5ed06f79b3 Change type name, add paginated table 2022-12-26 05:16:52 -08:00
jeffvli
6eb08243b7 Add generic to CardRow type
squash cardrow type

squash cardrow type
2022-12-24 14:09:02 -08:00
jeffvli
b742b814c0 Split stores 2022-12-21 01:29:00 -08:00
jeffvli
e87c814068 Add files 2022-12-19 17:44:40 -08:00