2023-09-09 16:33:16 +05:30
|
|
|
import { atom } from "jotai";
|
2023-04-09 10:46:15 +05:30
|
|
|
import { atomWithStorage } from "jotai/utils";
|
|
|
|
|
|
|
|
export const customModelsPathAtom = atomWithStorage<string | null>(
|
|
|
|
"customModelsPath",
|
|
|
|
null
|
|
|
|
);
|
2023-04-14 16:01:37 +05:30
|
|
|
export const scaleAtom = atomWithStorage<"2" | "3" | "4">("scale", "4");
|
2023-09-09 16:33:16 +05:30
|
|
|
export const batchModeAtom = atom<boolean>(false);
|
2023-11-10 17:11:35 +05:30
|
|
|
export const outputPathAtom = atom<string | null>("");
|
|
|
|
export const progressAtom = atom<string>("");
|
2023-04-16 08:09:38 +05:30
|
|
|
|
2023-04-21 00:04:49 +05:30
|
|
|
export const rememberOutputFolderAtom = atomWithStorage<boolean>(
|
|
|
|
"rememberOutputFolder",
|
|
|
|
false
|
|
|
|
);
|
2023-09-03 14:46:48 +05:30
|
|
|
|
|
|
|
export const dontShowCloudModalAtom = atomWithStorage<boolean>(
|
|
|
|
"dontShowCloudModal",
|
|
|
|
false
|
|
|
|
);
|
2023-09-19 00:00:43 +05:30
|
|
|
|
|
|
|
export const noImageProcessingAtom = atomWithStorage<boolean>(
|
|
|
|
"noImageProcessing",
|
|
|
|
false
|
|
|
|
);
|
2023-11-22 21:27:44 +05:30
|
|
|
|
|
|
|
export const compressionAtom = atomWithStorage<number>("compression", 0);
|
2024-01-15 14:37:22 +05:30
|
|
|
|
|
|
|
export const overwriteAtom = atomWithStorage("overwrite", false);
|