Subsonic 2, general rework (#758)

This commit is contained in:
Kendall Garner
2024-09-26 04:23:08 +00:00
committed by GitHub
parent 31492fa9ef
commit 8cddbef701
69 changed files with 4625 additions and 3566 deletions
+5 -2
View File
@@ -627,7 +627,10 @@ export const useListStore = create<ListSlice>()(
export const useListStoreActions = () => useListStore((state) => state._actions);
export const useListStoreByKey = <TFilter>(args: { filter?: Partial<TFilter>; key: string }) => {
export const useListStoreByKey = <TFilter>(args: {
filter?: Partial<TFilter>;
key: string;
}): ListItemProps<TFilter> => {
const key = args.key as keyof ListState['item'];
return useListStore(
(state) => ({
@@ -644,7 +647,7 @@ export const useListStoreByKey = <TFilter>(args: { filter?: Partial<TFilter>; ke
export const useListFilterByKey = <TFilter>(args: {
filter?: Partial<TFilter> | any;
key: string;
}) => {
}): TFilter => {
const key = args.key as keyof ListState['item'];
return useListStore(
(state) => {
-2
View File
@@ -224,7 +224,6 @@ export interface SettingsState {
albumBackgroundBlur: number;
artistItems: SortableItem<ArtistItem>[];
buttonSize: number;
defaultFullPlaylist: boolean;
disabledContextMenu: { [k in ContextMenuItemType]?: boolean };
doubleClickQueueAll: boolean;
externalLinks: boolean;
@@ -370,7 +369,6 @@ const initialState: SettingsState = {
albumBackgroundBlur: 6,
artistItems,
buttonSize: 20,
defaultFullPlaylist: true,
disabledContextMenu: {},
doubleClickQueueAll: true,
externalLinks: true,