diff --git a/ui/frontend/build_src/.eslintrc.cjs b/ui/frontend/build_src/.eslintrc.cjs index 656195f8..10a26f6e 100644 --- a/ui/frontend/build_src/.eslintrc.cjs +++ b/ui/frontend/build_src/.eslintrc.cjs @@ -52,9 +52,7 @@ module.exports = { "@typescript-eslint/no-unused-vars": "warn", // TS things turned off for now - // "@typescript-eslint/naming-convention": "off", - "@typescript-eslint/restrict-template-expressions": "off", - "@typescript-eslint/prefer-optional-chain": "off", + // "@typescript-eslint/prefer-optional-chain": "off", "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/strict-boolean-expressions": "off", "@typescript-eslint/no-floating-promises": "off", diff --git a/ui/frontend/build_src/src/api/index.ts b/ui/frontend/build_src/src/api/index.ts index 9802718b..a97eb2b6 100644 --- a/ui/frontend/build_src/src/api/index.ts +++ b/ui/frontend/build_src/src/api/index.ts @@ -56,6 +56,19 @@ export const toggleBetaConfig = async (branch: string) => { /** * post a new request for an image */ +// TODO; put hese some place better +export type ImageOutput = { + data: string; + path_abs: string | null; + seed: number; +} + +export type ImageReturnType = { + output: ImageOutput[]; + request: {}; + status: string, + session_id: string, +} export const MakeImageKey = "MakeImage"; export const doMakeImage = async (reqBody: ImageRequest) => { 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 23a28ce2..7c0bbe6a 100644 --- a/ui/frontend/build_src/src/components/molecules/generatedImage/index.tsx +++ b/ui/frontend/build_src/src/components/molecules/generatedImage/index.tsx @@ -1,6 +1,6 @@ -import React, { useCallback } from "react"; +import React from "react"; -import { ImageRequest, useImageCreate } from "../../../stores/imageCreateStore"; +import { ImageRequest } from "../../../stores/imageCreateStore"; import { generatedImageMain, diff --git a/ui/frontend/build_src/src/components/organisms/creationPanel/basicCreation/makeButton/index.tsx b/ui/frontend/build_src/src/components/organisms/creationPanel/basicCreation/makeButton/index.tsx index 31a0dda1..3b1fb24b 100644 --- a/ui/frontend/build_src/src/components/organisms/creationPanel/basicCreation/makeButton/index.tsx +++ b/ui/frontend/build_src/src/components/organisms/creationPanel/basicCreation/makeButton/index.tsx @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import React, { useEffect, useState } from "react"; +import React from "react"; import { useImageCreate } from "../../../../../stores/imageCreateStore"; import { useImageQueue } from "../../../../../stores/imageQueueStore"; diff --git a/ui/frontend/build_src/src/components/organisms/creationPanel/creationPanelUIStore.ts b/ui/frontend/build_src/src/components/organisms/creationPanel/creationPanelUIStore.ts index 2c52cf77..0ebdc8ca 100644 --- a/ui/frontend/build_src/src/components/organisms/creationPanel/creationPanelUIStore.ts +++ b/ui/frontend/build_src/src/components/organisms/creationPanel/creationPanelUIStore.ts @@ -1,6 +1,6 @@ import create from "zustand"; import produce from "immer"; -import { persist, devtools } from "zustand/middleware"; +import { persist } from "zustand/middleware"; export type ImageCreationUIOptions = { isOpenAdvancedSettings: boolean; diff --git a/ui/frontend/build_src/src/components/organisms/creationPanel/imageModifiers/index.tsx b/ui/frontend/build_src/src/components/organisms/creationPanel/imageModifiers/index.tsx index 5d9629c4..6b4ec83c 100644 --- a/ui/frontend/build_src/src/components/organisms/creationPanel/imageModifiers/index.tsx +++ b/ui/frontend/build_src/src/components/organisms/creationPanel/imageModifiers/index.tsx @@ -1,7 +1,5 @@ -import React, { useEffect, useState } from "react"; +import React, { useState } from "react"; -import { useQuery } from "@tanstack/react-query"; -import { loadModifications } from "../../../../api"; // @ts-expect-error import { PanelBox } from "../../../../styles/shared.css.ts"; diff --git a/ui/frontend/build_src/src/components/organisms/displayPanel/completedImages/index.tsx b/ui/frontend/build_src/src/components/organisms/displayPanel/completedImages/index.tsx index ec6a3fc9..f00d4f4b 100644 --- a/ui/frontend/build_src/src/components/organisms/displayPanel/completedImages/index.tsx +++ b/ui/frontend/build_src/src/components/organisms/displayPanel/completedImages/index.tsx @@ -40,26 +40,25 @@ export default function CompletedImages({ )}