restructure files onto electron-vite boilerplate

This commit is contained in:
jeffvli
2025-05-18 14:03:18 -07:00
parent 91ce2cd8a1
commit 1cf587bc8f
457 changed files with 9927 additions and 11705 deletions
+24 -23
View File
@@ -2,8 +2,32 @@ import merge from 'lodash/merge';
import { create } from 'zustand';
import { devtools, persist } from 'zustand/middleware';
import { immer } from 'zustand/middleware/immer';
import { Platform } from '/@/renderer/types';
export interface AppSlice extends AppState {
actions: {
setAppStore: (data: Partial<AppSlice>) => void;
setSideBar: (options: Partial<SidebarProps>) => void;
setTitleBar: (options: Partial<TitlebarProps>) => void;
};
}
export interface AppState {
commandPalette: CommandPaletteProps;
isReorderingQueue: boolean;
platform: Platform;
sidebar: SidebarProps;
titlebar: TitlebarProps;
}
type CommandPaletteProps = {
close: () => void;
open: () => void;
opened: boolean;
toggle: () => void;
};
type SidebarProps = {
collapsed: boolean;
expanded: string[];
@@ -18,29 +42,6 @@ type TitlebarProps = {
outOfView: boolean;
};
type CommandPaletteProps = {
close: () => void;
open: () => void;
opened: boolean;
toggle: () => void;
};
export interface AppState {
commandPalette: CommandPaletteProps;
isReorderingQueue: boolean;
platform: Platform;
sidebar: SidebarProps;
titlebar: TitlebarProps;
}
export interface AppSlice extends AppState {
actions: {
setAppStore: (data: Partial<AppSlice>) => void;
setSideBar: (options: Partial<SidebarProps>) => void;
setTitleBar: (options: Partial<TitlebarProps>) => void;
};
}
export const useAppStore = create<AppSlice>()(
persist(
devtools(