mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
Subsonic 2, general rework (#758)
This commit is contained in:
parent
31492fa9ef
commit
8cddbef701
69 changed files with 4625 additions and 3566 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue