From ded000d0f20228acad4a265c7342c5a9bb8efeb2 Mon Sep 17 00:00:00 2001 From: JinhyeokLee Date: Fri, 16 Jun 2023 13:24:07 +0900 Subject: [PATCH] fix(release): Fix broken build2 --- manifest.json | 15 +++++++-------- src/App.tsx | 1 - src/comp/TreeSorter.tsx | 16 ++++++---------- 3 files changed, 13 insertions(+), 19 deletions(-) diff --git a/manifest.json b/manifest.json index 813cec3..4600c66 100644 --- a/manifest.json +++ b/manifest.json @@ -5,17 +5,16 @@ "description": "Enhance chat with ChatGPT-Augment: auto-continue, macros, token count, prompts, gradients, JSON format.", "content_scripts": [ { - "matches": ["https://chat.openai.com/*"], - "js": ["src/main.ts"] + "matches": [ + "https://chat.openai.com/*" + ], + "js": [ + "src/main.ts" + ] } ], - "permissions": ["webRequest"], - "host_permissions": ["https://chat.openai.com/*"], - "background": { - "service_worker": "src/background.ts" - }, "icons": { "64": "icon64.png", "128": "icon128.png" } -} +} \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 8d183cc..4db37c9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -21,7 +21,6 @@ import { InputWatcher } from "./comp/InputWatcher"; import { JSONFormatter } from "./comp/JSONFormatter"; import { SelectionWatcher } from "./comp/SelectionWatcher"; import { useFormElements } from "./lib/hooks/useFormElements"; -import { TreeSorter } from "./comp/TreeSorter"; const cache = createEmotionCache({ key: "cgpt-agmt", diff --git a/src/comp/TreeSorter.tsx b/src/comp/TreeSorter.tsx index 977d4d5..ac24fcc 100644 --- a/src/comp/TreeSorter.tsx +++ b/src/comp/TreeSorter.tsx @@ -1,19 +1,15 @@ import { ClassNames } from "@emotion/react"; -import { - MantineProvider, - Paper, - Portal -} from "@mantine/core"; +import { MantineProvider, Paper, Portal } from "@mantine/core"; import { useForceUpdate } from "@mantine/hooks"; import throttle from "lodash/throttle"; import { useCallback, useEffect, useId, useMemo } from "react"; -type Props = { - // onExecute: (prompt: string) => Promise; - // onDone: () => void; -}; +// type Props = { +// // onExecute: (prompt: string) => Promise; +// // onDone: () => void; +// }; -export const TreeSorter = (props: Props) => { +export const TreeSorter = () => { const id = `tree-${(useId() || "").replace(/:/g, "")}`; const update = useForceUpdate(); const target = document.getElementById(id);