diff --git a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx index 46f126085d..fe2f7dfa03 100644 --- a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx +++ b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx @@ -8,11 +8,11 @@ import { useBoolean } from 'ahooks' import { Cog8ToothIcon, // CommandLineIcon, - Squares2X2Icon, - PuzzlePieceIcon, DocumentTextIcon, PaperClipIcon, + PuzzlePieceIcon, QuestionMarkCircleIcon, + Squares2X2Icon, } from '@heroicons/react/24/outline' import { Cog8ToothIcon as Cog8ToothSolidIcon, diff --git a/web/app/components/app/overview/apikey-info-panel/progress/index.tsx b/web/app/components/app/overview/apikey-info-panel/progress/index.tsx index 3a4accbb43..cc8356e754 100644 --- a/web/app/components/app/overview/apikey-info-panel/progress/index.tsx +++ b/web/app/components/app/overview/apikey-info-panel/progress/index.tsx @@ -20,7 +20,7 @@ const Progress: FC = ({ className={cn(s.bar, exhausted && s['bar-error'], 'absolute top-0 left-0 right-0 bottom-0')} style={{ width: `${value}%` }} /> - {Array(10).fill(0).map((i, k) => ( + {Array.from({ length: 10 }).fill(0).map((i, k) => (
))}
diff --git a/web/app/components/base/audio-btn/audio.player.manager.ts b/web/app/components/base/audio-btn/audio.player.manager.ts index 848aef6cba..9b3349754f 100644 --- a/web/app/components/base/audio-btn/audio.player.manager.ts +++ b/web/app/components/base/audio-btn/audio.player.manager.ts @@ -12,6 +12,7 @@ export class AudioPlayerManager { private audioPlayers: AudioPlayer | null = null private msgId: string | undefined + // eslint-disable-next-line private constructor() { } diff --git a/web/app/components/base/prompt-editor/plugins/custom-text/node.tsx b/web/app/components/base/prompt-editor/plugins/custom-text/node.tsx index 5df4894c6b..49f4a056db 100644 --- a/web/app/components/base/prompt-editor/plugins/custom-text/node.tsx +++ b/web/app/components/base/prompt-editor/plugins/custom-text/node.tsx @@ -1,4 +1,4 @@ -import type { EditorConfig, NodeKey, SerializedTextNode } from 'lexical' +import type { EditorConfig, SerializedTextNode } from 'lexical' import { $createTextNode, TextNode } from 'lexical' export class CustomTextNode extends TextNode { @@ -10,9 +10,9 @@ export class CustomTextNode extends TextNode { return new CustomTextNode(node.__text, node.__key) } - constructor(text: string, key?: NodeKey) { - super(text, key) - } + // constructor(text: string, key?: NodeKey) { + // super(text, key) + // } createDOM(config: EditorConfig) { const dom = super.createDOM(config) diff --git a/web/app/components/base/prompt-editor/plugins/variable-value-block/node.tsx b/web/app/components/base/prompt-editor/plugins/variable-value-block/node.tsx index 163d4bfac4..34487b257c 100644 --- a/web/app/components/base/prompt-editor/plugins/variable-value-block/node.tsx +++ b/web/app/components/base/prompt-editor/plugins/variable-value-block/node.tsx @@ -1,7 +1,6 @@ import type { EditorConfig, LexicalNode, - NodeKey, SerializedTextNode, } from 'lexical' import { @@ -18,9 +17,9 @@ export class VariableValueBlockNode extends TextNode { return new VariableValueBlockNode(node.__text, node.__key) } - constructor(text: string, key?: NodeKey) { - super(text, key) - } + // constructor(text: string, key?: NodeKey) { + // super(text, key) + // } createDOM(config: EditorConfig): HTMLElement { const element = super.createDOM(config)