Work for ControlNet

This commit is contained in:
space-nuko
2023-05-09 19:14:45 -05:00
parent babfb8a4b4
commit 127768f04d
8 changed files with 8704 additions and 1991 deletions

View File

@@ -0,0 +1,27 @@
import { debounce } from '$lib/utils';
import { get, writable } from 'svelte/store';
import type { Writable } from 'svelte/store';
export type ConfigState = {
/** Strip user state even if saving to local storage */
alwaysStripUserState: boolean,
/** When saving, always prompt for a name to save the workflow as */
promptForWorkflowName: boolean,
}
type ConfigStateOps = {
}
export type WritableConfigStateStore = Writable<ConfigState> & ConfigStateOps;
const store: Writable<ConfigState> = writable(
{
alwaysStripUserState: false,
promptForWorkflowName: false
})
const configStateStore: WritableConfigStateStore =
{
...store
}
export default configStateStore;

View File

@@ -9,6 +9,8 @@ export type UIState = {
autoAddUI: boolean,
uiUnlocked: boolean,
uiEditMode: UIEditMode,
isSavingToLocalStorage: boolean
}
export type WritableUIStateStore = Writable<UIState>;
@@ -18,7 +20,9 @@ const store: WritableUIStateStore = writable(
nodesLocked: false,
autoAddUI: true,
uiUnlocked: false,
uiEditMode: "widgets"
uiEditMode: "widgets",
isSavingToLocalStorage: false
})
const uiStateStore: WritableUIStateStore =