From 1ac8eba1b8f6313ece7dd0c0a4e4d2fd2d8b199d Mon Sep 17 00:00:00 2001 From: caranicas Date: Mon, 19 Sep 2022 15:40:34 -0400 Subject: [PATCH] clean and pretty --- ui/frontend/build_src/src/App.tsx | 2 +- ui/frontend/build_src/src/api/index.ts | 1 - .../components/atoms/modifierTag/index.tsx | 2 +- .../components/molecules/drawImage/index.tsx | 2 +- .../molecules/generatedImage/index.tsx | 2 +- .../advancedSettings/gpuSettings/index.tsx | 3 +- .../improvementSettings/index.tsx | 3 +- .../creationPanel/advancedSettings/index.tsx | 4 +- .../propertySettings/index.tsx | 2 +- .../workflowSettings/index.tsx | 2 +- .../basicCreation/activeTags/index.tsx | 2 +- .../creationPanel/basicCreation/index.tsx | 2 +- .../imageModifiers/imageModifiers.css.ts | 2 +- .../creationPanel/imageModifiers/index.tsx | 11 ++-- .../organisms/creationPanel/index.css.ts | 5 +- .../organisms/creationPanel/index.tsx | 2 +- .../completedImages/completedImages.css.ts | 7 +-- .../displayPanel/completedImages/index.tsx | 14 +++-- .../displayPanel/currentDisplay/index.tsx | 19 +++--- .../organisms/displayPanel/index.tsx | 14 ++--- .../footerDisplay/footerDisplay.css.ts | 7 +-- .../organisms/footerDisplay/index.tsx | 7 +-- .../headerDisplay/statusDisplay/index.tsx | 2 +- .../src/pages/Experimental/index.tsx | 2 +- .../build_src/src/pages/Home/index.tsx | 2 +- .../build_src/src/pages/Settings/index.tsx | 2 +- .../build_src/src/stores/imageCreateStore.ts | 62 +++++++++---------- .../build_src/src/stores/imageQueueStore.ts | 3 +- ui/frontend/build_src/src/styles/index.css.ts | 5 +- .../build_src/src/styles/shared.css.ts | 5 +- .../build_src/src/styles/theme/index.css.ts | 8 +-- ui/frontend/build_src/vite.config.ts | 10 +-- ui/frontend/dist/index.js | 26 ++++---- 33 files changed, 115 insertions(+), 127 deletions(-) diff --git a/ui/frontend/build_src/src/App.tsx b/ui/frontend/build_src/src/App.tsx index fc245456..a3cd0b0b 100644 --- a/ui/frontend/build_src/src/App.tsx +++ b/ui/frontend/build_src/src/App.tsx @@ -7,7 +7,7 @@ import { darkTheme, lightTheme } from "./styles/theme/index.css.ts"; import "./Translation/config"; const location = new ReactLocation(); -function App () { +function App() { // just check for the theme one 1 time // var { matches } = window.matchMedia('(prefers-color-scheme: dark)') diff --git a/ui/frontend/build_src/src/api/index.ts b/ui/frontend/build_src/src/api/index.ts index 5524b2e6..9802718b 100644 --- a/ui/frontend/build_src/src/api/index.ts +++ b/ui/frontend/build_src/src/api/index.ts @@ -59,7 +59,6 @@ export const toggleBetaConfig = async (branch: string) => { export const MakeImageKey = "MakeImage"; export const doMakeImage = async (reqBody: ImageRequest) => { - const res = await fetch(`${API_URL}/image`, { method: "POST", headers: { diff --git a/ui/frontend/build_src/src/components/atoms/modifierTag/index.tsx b/ui/frontend/build_src/src/components/atoms/modifierTag/index.tsx index b794c986..62e9f638 100644 --- a/ui/frontend/build_src/src/components/atoms/modifierTag/index.tsx +++ b/ui/frontend/build_src/src/components/atoms/modifierTag/index.tsx @@ -5,7 +5,7 @@ interface ModifierTagProps { name: string; } -export default function ModifierTag ({ name }: ModifierTagProps) { +export default function ModifierTag({ name }: ModifierTagProps) { const hasTag = useImageCreate((state) => state.hasTag(name)) ? "selected" : ""; diff --git a/ui/frontend/build_src/src/components/molecules/drawImage/index.tsx b/ui/frontend/build_src/src/components/molecules/drawImage/index.tsx index 6595bb31..5e236393 100644 --- a/ui/frontend/build_src/src/components/molecules/drawImage/index.tsx +++ b/ui/frontend/build_src/src/components/molecules/drawImage/index.tsx @@ -16,7 +16,7 @@ interface DrawImageProps { isErasing: boolean; } -export default function DrawImage ({ +export default function DrawImage({ imageData, brushSize, brushShape, diff --git a/ui/frontend/build_src/src/components/molecules/generatedImage/index.tsx b/ui/frontend/build_src/src/components/molecules/generatedImage/index.tsx index ef994c29..23a28ce2 100644 --- a/ui/frontend/build_src/src/components/molecules/generatedImage/index.tsx +++ b/ui/frontend/build_src/src/components/molecules/generatedImage/index.tsx @@ -14,7 +14,7 @@ interface GeneretaedImageProps { // children: never[]; } -export default function GeneratedImage ({ +export default function GeneratedImage({ imageData, metadata, className, diff --git a/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/gpuSettings/index.tsx b/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/gpuSettings/index.tsx index 2f58e629..2453275e 100644 --- a/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/gpuSettings/index.tsx +++ b/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/gpuSettings/index.tsx @@ -4,10 +4,9 @@ import { useImageCreate } from "../../../../../stores/imageCreateStore"; import { useCreateUI } from "../../creationPanelUIStore"; import { - SettingItem // @ts-expect-error + SettingItem, // @ts-expect-error } from "../../../../../styles/shared.css.ts"; - import { MenuButton, // @ts-expect-error } from "../advancedsettings.css.ts"; diff --git a/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/improvementSettings/index.tsx b/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/improvementSettings/index.tsx index fe41bfc5..de230621 100644 --- a/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/improvementSettings/index.tsx +++ b/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/improvementSettings/index.tsx @@ -4,7 +4,7 @@ import { useImageCreate } from "../../../../../stores/imageCreateStore"; import { useCreateUI } from "../../creationPanelUIStore"; import { - SettingItem // @ts-expect-error + SettingItem, // @ts-expect-error } from "../../../../../styles/shared.css.ts"; import { MenuButton, // @ts-expect-error @@ -43,7 +43,6 @@ export default function ImprovementSettings() { const [isFilteringDisabled, setIsFilteringDisabled] = useState(false); // should probably be a store selector useEffect(() => { - // if either are true we arent disabled if (isUsingFaceCorrection || useUpscale) { setIsFilteringDisabled(false); diff --git a/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/index.tsx b/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/index.tsx index 303ab51b..4dcb7fdb 100644 --- a/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/index.tsx +++ b/ui/frontend/build_src/src/components/organisms/creationPanel/advancedSettings/index.tsx @@ -16,7 +16,7 @@ import GpuSettings from "./gpuSettings"; import BetaMode from "../../../molecules/betaMode"; -function SettingsList () { +function SettingsList() { return (