Skip to content

Commit

Permalink
fix(release): Fix broken build2
Browse files Browse the repository at this point in the history
  • Loading branch information
zenyr committed Jun 16, 2023
1 parent 2e50ea8 commit ded000d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
15 changes: 7 additions & 8 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 6 additions & 10 deletions src/comp/TreeSorter.tsx
Original file line number Diff line number Diff line change
@@ -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<string>;
// onDone: () => void;
};
// type Props = {
// // onExecute: (prompt: string) => Promise<string>;
// // onDone: () => void;
// };

export const TreeSorter = (props: Props) => {
export const TreeSorter = () => {
const id = `tree-${(useId() || "").replace(/:/g, "")}`;
const update = useForceUpdate();
const target = document.getElementById(id);
Expand Down

0 comments on commit ded000d

Please sign in to comment.