mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 21:16:17 +02:00
add qobuz and listenbrainz external links
This commit is contained in:
@@ -476,6 +476,7 @@ export const GeneralSettingsSchema = z.object({
|
||||
language: z.string(),
|
||||
lastFM: z.boolean(),
|
||||
lastfmApiKey: z.string(),
|
||||
listenBrainz: z.boolean(),
|
||||
musicBrainz: z.boolean(),
|
||||
nativeAspectRatio: z.boolean(),
|
||||
nativeSpotify: z.boolean(),
|
||||
@@ -488,6 +489,7 @@ export const GeneralSettingsSchema = z.object({
|
||||
playerItems: z.array(SortableItemSchema(PlayerItemSchema)),
|
||||
playlistTarget: PlaylistTargetSchema,
|
||||
primaryShade: z.number().min(0).max(9),
|
||||
qobuz: z.boolean(),
|
||||
resume: z.boolean(),
|
||||
showLyricsInSidebar: z.boolean(),
|
||||
showRatings: z.boolean(),
|
||||
@@ -1132,6 +1134,7 @@ const initialState: SettingsState = {
|
||||
language: 'en',
|
||||
lastFM: true,
|
||||
lastfmApiKey: '',
|
||||
listenBrainz: true,
|
||||
musicBrainz: true,
|
||||
nativeAspectRatio: false,
|
||||
nativeSpotify: false,
|
||||
@@ -1150,6 +1153,7 @@ const initialState: SettingsState = {
|
||||
playerItems,
|
||||
playlistTarget: PlaylistTarget.TRACK,
|
||||
primaryShade: 6,
|
||||
qobuz: true,
|
||||
resume: true,
|
||||
showLyricsInSidebar: true,
|
||||
showRatings: true,
|
||||
@@ -2565,8 +2569,10 @@ export const useExternalLinks = () =>
|
||||
(state) => ({
|
||||
externalLinks: state.general.externalLinks,
|
||||
lastFM: state.general.lastFM,
|
||||
listenBrainz: state.general.listenBrainz,
|
||||
musicBrainz: state.general.musicBrainz,
|
||||
nativeSpotify: state.general.nativeSpotify,
|
||||
qobuz: state.general.qobuz,
|
||||
spotify: state.general.spotify,
|
||||
}),
|
||||
shallow,
|
||||
|
||||
Reference in New Issue
Block a user