From 7463a599a9bc304f2b61480cbfe4fb6cd9c2dd1d Mon Sep 17 00:00:00 2001 From: Qing Date: Wed, 22 Nov 2023 08:54:59 +0800 Subject: [PATCH] remove make GIF --- web_app/src/components/Editor.tsx | 2 -- web_app/src/lib/api.ts | 32 ------------------------------- web_app/src/lib/store.ts | 14 -------------- web_app/src/lib/types.ts | 1 - 4 files changed, 49 deletions(-) diff --git a/web_app/src/components/Editor.tsx b/web_app/src/components/Editor.tsx index 2de8d1a..91b2baf 100644 --- a/web_app/src/components/Editor.tsx +++ b/web_app/src/components/Editor.tsx @@ -71,7 +71,6 @@ import { Slider } from "./ui/slider" // import InteractiveSegReplaceModal from "../InteractiveSeg/ReplaceModal" import { PluginName } from "@/lib/types" import { useHotkeys } from "react-hotkeys-hook" -// import MakeGIF from "./MakeGIF" const TOOLBAR_SIZE = 200 const MIN_BRUSH_SIZE = 10 @@ -1583,7 +1582,6 @@ export default function Editor() { onMouseMove={onMouseMove} onMouseUp={onPointerUp} > - {/* */} {/* ({ isInteractiveSegRunning: false, interactiveSegClicks: [], enableFileManager: false, - gifImage: undefined, brushSize: 40, isControlNet: false, controlNetMethod: ControlNetMethod.canny, @@ -225,18 +223,6 @@ export const enableFileManagerState = selector({ }, }) -export const gifImageState = selector({ - key: "gifImageState", - get: ({ get }) => { - const app = get(appState) - return app.gifImage - }, - set: ({ get, set }, newValue: any) => { - const app = get(appState) - set(appState, { ...app, gifImage: newValue }) - }, -}) - export const fileState = selector({ key: "fileState", get: ({ get }) => { diff --git a/web_app/src/lib/types.ts b/web_app/src/lib/types.ts index b076e16..4620893 100644 --- a/web_app/src/lib/types.ts +++ b/web_app/src/lib/types.ts @@ -5,5 +5,4 @@ export enum PluginName { GFPGAN = "GFPGAN", RestoreFormer = "RestoreFormer", InteractiveSeg = "InteractiveSeg", - MakeGIF = "MakeGIF", }