diff --git a/.vscode/launch.json.template b/.vscode/launch.json.template index f5a7f0893b..02944ff032 100644 --- a/.vscode/launch.json.template +++ b/.vscode/launch.json.template @@ -53,16 +53,27 @@ "type": "node", "request": "launch", "program": "${workspaceFolder}/web/node_modules/next/dist/bin/next", - "runtimeArgs": ["--inspect"], - "skipFiles": ["/**"], + "sourceMaps": true, + "runtimeArgs": [ + "--inspect" + ], + "sourceMapPathOverrides": { + "turbopack:///[project]/app/*": "${webRoot}/web/app/*" + }, + "skipFiles": [ + "/**" + ], + "args": [ + "--turbopack" + ], "serverReadyAction": { - "action": "debugWithChrome", - "killOnServerStop": true, - "pattern": "- Local:.+(https?://.+)", - "uriFormat": "%s", - "webRoot": "${workspaceFolder}/web" + "action": "debugWithChrome", + "killOnServerStop": true, + "pattern": "- Local:.+(https?://.+)", + "uriFormat": "%s", + "webRoot": "${workspaceFolder}/web" }, "cwd": "${workspaceFolder}/web" - } + } ] } diff --git a/web/app/components/app/configuration/index.tsx b/web/app/components/app/configuration/index.tsx index 02f1928eca..7b9e3cc676 100644 --- a/web/app/components/app/configuration/index.tsx +++ b/web/app/components/app/configuration/index.tsx @@ -693,7 +693,6 @@ const Configuration: FC = () => { setHasFetchedDetail(true) }) })() - // eslint-disable-next-line react-hooks/exhaustive-deps }, [appId]) const promptEmpty = (() => { diff --git a/web/app/components/base/audio-btn/style.module.css b/web/app/components/base/audio-btn/style.module.css index 7e3175aa13..bf1a1b6867 100644 --- a/web/app/components/base/audio-btn/style.module.css +++ b/web/app/components/base/audio-btn/style.module.css @@ -1,10 +1,10 @@ .playIcon { - background-image: url(~@/app/components/develop/secret-key/assets/play.svg); + background-image: url(/assets/play.svg); background-position: center; background-repeat: no-repeat; } .pauseIcon { - background-image: url(~@/app/components/develop/secret-key/assets/pause.svg); + background-image: url(/assets/pause.svg); background-position: center; background-repeat: no-repeat; } diff --git a/web/app/components/base/copy-btn/style.module.css b/web/app/components/base/copy-btn/style.module.css index 83625d6189..f4118ab40b 100644 --- a/web/app/components/base/copy-btn/style.module.css +++ b/web/app/components/base/copy-btn/style.module.css @@ -1,15 +1,15 @@ .copyIcon { - background-image: url(~@/app/components/develop/secret-key/assets/copy.svg); + background-image: url(/assets/copy.svg); background-position: center; background-repeat: no-repeat; } .copyIcon:hover { - background-image: url(~@/app/components/develop/secret-key/assets/copy-hover.svg); + background-image: url(/assets/copy-hover.svg); background-position: center; background-repeat: no-repeat; } .copyIcon.copied { - background-image: url(~@/app/components/develop/secret-key/assets/copied.svg); + background-image: url(/assets/copied.svg); } diff --git a/web/app/components/base/copy-feedback/style.module.css b/web/app/components/base/copy-feedback/style.module.css index 83625d6189..f4118ab40b 100644 --- a/web/app/components/base/copy-feedback/style.module.css +++ b/web/app/components/base/copy-feedback/style.module.css @@ -1,15 +1,15 @@ .copyIcon { - background-image: url(~@/app/components/develop/secret-key/assets/copy.svg); + background-image: url(/assets/copy.svg); background-position: center; background-repeat: no-repeat; } .copyIcon:hover { - background-image: url(~@/app/components/develop/secret-key/assets/copy-hover.svg); + background-image: url(/assets/copy-hover.svg); background-position: center; background-repeat: no-repeat; } .copyIcon.copied { - background-image: url(~@/app/components/develop/secret-key/assets/copied.svg); + background-image: url(/assets/copied.svg); } diff --git a/web/app/components/base/icons/src/image/llm/BaichuanTextCn.module.css b/web/app/components/base/icons/src/image/llm/BaichuanTextCn.module.css index 97ab9b22f9..e82ef75be1 100644 --- a/web/app/components/base/icons/src/image/llm/BaichuanTextCn.module.css +++ b/web/app/components/base/icons/src/image/llm/BaichuanTextCn.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/baichuan-text-cn.png) center center no-repeat; + background: url(/app/components/base/icons/assets/image/llm/baichuan-text-cn.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/icons/src/image/llm/Minimax.module.css b/web/app/components/base/icons/src/image/llm/Minimax.module.css index 551ecc3c62..0c4a4eb10e 100644 --- a/web/app/components/base/icons/src/image/llm/Minimax.module.css +++ b/web/app/components/base/icons/src/image/llm/Minimax.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/minimax.png) center center no-repeat; + background: url(app/components/base/icons/assets/image/llm/minimax.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/icons/src/image/llm/MinimaxText.module.css b/web/app/components/base/icons/src/image/llm/MinimaxText.module.css index a63be49e8b..642e63c836 100644 --- a/web/app/components/base/icons/src/image/llm/MinimaxText.module.css +++ b/web/app/components/base/icons/src/image/llm/MinimaxText.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/minimax-text.png) center center no-repeat; + background: url(app/components/base/icons/assets/image/llm/minimax-text.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/icons/src/image/llm/Tongyi.module.css b/web/app/components/base/icons/src/image/llm/Tongyi.module.css index 3ca440768c..82e617a8ea 100644 --- a/web/app/components/base/icons/src/image/llm/Tongyi.module.css +++ b/web/app/components/base/icons/src/image/llm/Tongyi.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/tongyi.png) center center no-repeat; + background: url(app/components/base/icons/assets/image/llm/tongyi.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/icons/src/image/llm/TongyiText.module.css b/web/app/components/base/icons/src/image/llm/TongyiText.module.css index f713671808..af1a2d2a73 100644 --- a/web/app/components/base/icons/src/image/llm/TongyiText.module.css +++ b/web/app/components/base/icons/src/image/llm/TongyiText.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/tongyi-text.png) center center no-repeat; + background: url(app/components/base/icons/assets/image/llm/tongyi-text.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/icons/src/image/llm/TongyiTextCn.module.css b/web/app/components/base/icons/src/image/llm/TongyiTextCn.module.css index d07e6e8bc4..3683f6bf55 100644 --- a/web/app/components/base/icons/src/image/llm/TongyiTextCn.module.css +++ b/web/app/components/base/icons/src/image/llm/TongyiTextCn.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/tongyi-text-cn.png) center center no-repeat; + background: url(app/components/base/icons/assets/image/llm/tongyi-text-cn.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/icons/src/image/llm/Wxyy.module.css b/web/app/components/base/icons/src/image/llm/Wxyy.module.css index 44344a495f..0a77d732e8 100644 --- a/web/app/components/base/icons/src/image/llm/Wxyy.module.css +++ b/web/app/components/base/icons/src/image/llm/Wxyy.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/wxyy.png) center center no-repeat; + background: url(app/components/base/icons/assets/image/llm/wxyy.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/icons/src/image/llm/WxyyText.module.css b/web/app/components/base/icons/src/image/llm/WxyyText.module.css index 58a0c62047..777868fb55 100644 --- a/web/app/components/base/icons/src/image/llm/WxyyText.module.css +++ b/web/app/components/base/icons/src/image/llm/WxyyText.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/wxyy-text.png) center center no-repeat; + background: url(app/components/base/icons/assets/image/llm/wxyy-text.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/icons/src/image/llm/WxyyTextCn.module.css b/web/app/components/base/icons/src/image/llm/WxyyTextCn.module.css index fb5839ab07..9de04ec47b 100644 --- a/web/app/components/base/icons/src/image/llm/WxyyTextCn.module.css +++ b/web/app/components/base/icons/src/image/llm/WxyyTextCn.module.css @@ -1,5 +1,5 @@ .wrapper { display: inline-flex; - background: url(~@/app/components/base/icons/assets/image/llm/wxyy-text-cn.png) center center no-repeat; + background: url(app/components/base/icons/assets/image/llm/wxyy-text-cn.png) center center no-repeat; background-size: contain; } diff --git a/web/app/components/base/select/index.tsx b/web/app/components/base/select/index.tsx index 77d229672f..23c753a067 100644 --- a/web/app/components/base/select/index.tsx +++ b/web/app/components/base/select/index.tsx @@ -77,7 +77,6 @@ const Select: FC = ({ defaultSelect = existed setSelectedItem(defaultSelect) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [defaultValue]) const filteredItems: Item[] @@ -201,7 +200,6 @@ const SimpleSelect: FC = ({ defaultSelect = existed setSelectedItem(defaultSelect) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [defaultValue]) const listboxRef = useRef(null) diff --git a/web/app/components/base/svg/style.module.css b/web/app/components/base/svg/style.module.css index 9258fe8ed3..290c16de37 100644 --- a/web/app/components/base/svg/style.module.css +++ b/web/app/components/base/svg/style.module.css @@ -1,11 +1,11 @@ .svgIcon { - background-image: url(~@/app/components/develop/secret-key/assets/svg.svg); + background-image: url(/assets/svg.svg); background-position: center; background-repeat: no-repeat; } .svgIconed { - background-image: url(~@/app/components/develop/secret-key/assets/svged.svg); + background-image: url(/assets/svged.svg); background-position: center; background-repeat: no-repeat; } diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index ebd8552a99..3585364ed6 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/web/app/components/datasets/create/step-two/index.tsx @@ -405,7 +405,6 @@ const StepTwo = ({ score_threshold_enabled: false, score_threshold: 0.5, }) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [rerankDefaultModel, isRerankDefaultModelValid]) const getCreationParams = () => { @@ -596,7 +595,6 @@ const StepTwo = ({ getRulesFromDetail() getDefaultMode() } - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) useEffect(() => { diff --git a/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx b/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx index 4fb1e90657..e686226e5f 100644 --- a/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx +++ b/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx @@ -60,7 +60,6 @@ const ChildSegmentDetail: FC = ({ const wordCountText = useMemo(() => { const count = content.length return `${formatNumber(count)} ${t('datasetDocuments.segment.characters', { count })}` - // eslint-disable-next-line react-hooks/exhaustive-deps }, [content.length]) const EditTimeText = useMemo(() => { @@ -69,7 +68,6 @@ const ChildSegmentDetail: FC = ({ dateFormat: `${t('datasetDocuments.segment.dateTimeFormat')}`, }) return `${t('datasetDocuments.segment.editedAt')} ${timeText}` - // eslint-disable-next-line react-hooks/exhaustive-deps }, [childChunkInfo?.updated_at]) return ( diff --git a/web/app/components/datasets/documents/index.tsx b/web/app/components/datasets/documents/index.tsx index 676581a50f..d5024ef91c 100644 --- a/web/app/components/datasets/documents/index.tsx +++ b/web/app/components/datasets/documents/index.tsx @@ -164,7 +164,6 @@ const Documents: FC = ({ datasetId }) => { if (totalPages < currPage + 1) setCurrPage(totalPages === 0 ? 0 : totalPages - 1) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [documentsRes]) const invalidDocumentDetail = useInvalidDocumentDetailKey() @@ -178,7 +177,6 @@ const Documents: FC = ({ datasetId }) => { invalidChunkList() invalidChildChunkList() }, 5000) - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) const documentsWithProgress = useMemo(() => { diff --git a/web/app/components/datasets/documents/style.module.css b/web/app/components/datasets/documents/style.module.css index dd1ced5ad5..483bad6c2a 100644 --- a/web/app/components/datasets/documents/style.module.css +++ b/web/app/components/datasets/documents/style.module.css @@ -54,40 +54,40 @@ } .actionIcon { @apply bg-gray-500; - mask-image: url(~@/assets/action.svg); + mask-image: url(/assets/action.svg); } .pdfIcon { - background-image: url(~@/assets/pdf.svg); + background-image: url(/assets/pdf.svg); } .jsonIcon { - background-image: url(~@/assets/json.svg); + background-image: url(/assets/json.svg); } .htmlIcon { - background-image: url(~@/assets/html.svg); + background-image: url(/assets/html.svg); } .txtIcon { - background-image: url(~@/assets/txt.svg); + background-image: url(/assets/txt.svg); } .markdownIcon { - background-image: url(~@/assets/md.svg); + background-image: url(/assets/md.svg); } .mdIcon { - background-image: url(~@/assets/md.svg); + background-image: url(/assets/md.svg); } .xlsIcon { - background-image: url(~@/assets/xlsx.svg); + background-image: url(/assets/xlsx.svg); } .xlsxIcon { - background-image: url(~@/assets/xlsx.svg); + background-image: url(/assets/xlsx.svg); } .csvIcon { - background-image: url(~@/assets/csv.svg); + background-image: url(/assets/csv.svg); } .docIcon { - background-image: url(~@/assets/doc.svg); + background-image: url(/assets/doc.svg); } .docxIcon { - background-image: url(~@/assets/docx.svg); + background-image: url(/assets/docx.svg); } .statusItemDetail { @apply border-[0.5px] border-components-button-secondary-border inline-flex items-center diff --git a/web/app/components/develop/secret-key/style.module.css b/web/app/components/develop/secret-key/style.module.css index f13161c888..c2a480d1eb 100644 --- a/web/app/components/develop/secret-key/style.module.css +++ b/web/app/components/develop/secret-key/style.module.css @@ -26,7 +26,7 @@ .trashIcon { background-color: transparent; - background-image: url(./assets/trash-gray.svg); + background-image: url(/assets/trash-gray.svg); background-position: center; background-repeat: no-repeat; background-size: 16px 16px; @@ -34,24 +34,24 @@ .trashIcon:hover { background-color: rgba(254, 228, 226, 1); - background-image: url(./assets/trash-red.svg); + background-image: url(/assets/trash-red.svg); background-position: center; background-repeat: no-repeat; background-size: 16px 16px; } .copyIcon { - background-image: url(./assets/copy.svg); + background-image: url(/assets/copy.svg); background-position: center; background-repeat: no-repeat; } .copyIcon:hover { - background-image: url(./assets/copy-hover.svg); + background-image: url(/assets/copy-hover.svg); background-position: center; background-repeat: no-repeat; } .copyIcon.copied { - background-image: url(./assets/copied.svg); + background-image: url(/assets/copied.svg); } diff --git a/web/app/components/explore/item-operation/style.module.css b/web/app/components/explore/item-operation/style.module.css index 7d4a46a840..6c40dc7fd2 100644 --- a/web/app/components/explore/item-operation/style.module.css +++ b/web/app/components/explore/item-operation/style.module.css @@ -15,12 +15,12 @@ .actionIcon { @apply bg-gray-500; - mask-image: url(~@/assets/action.svg); + mask-image: url(/assets/action.svg); } body .btn.open, body .btn:hover { - background: url(~@/assets/action.svg) center center no-repeat transparent; + background: url(/assets/action.svg) center center no-repeat transparent; background-size: 16px 16px; } diff --git a/web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx b/web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx index 48f0bff3c7..a298909a7f 100644 --- a/web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx +++ b/web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx @@ -41,13 +41,10 @@ const Item: FC = ({ onFetchedPayload(payload) setPayload({ ...payload, from: dependency.type }) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [data]) useEffect(() => { if (error) onFetchError() - - // eslint-disable-next-line react-hooks/exhaustive-deps }, [error]) if (!payload) return return ( diff --git a/web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx b/web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx index ee45520a61..2691877a07 100644 --- a/web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx +++ b/web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx @@ -131,7 +131,6 @@ const InstallByDSLList: ForwardRefRenderFunction = ({ if (failedIndex.length > 0) setErrorIndexes([...errorIndexes, ...failedIndex]) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isFetchingMarketplaceDataById]) useEffect(() => { @@ -156,15 +155,12 @@ const InstallByDSLList: ForwardRefRenderFunction = ({ if (failedIndex.length > 0) setErrorIndexes([...errorIndexes, ...failedIndex]) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isFetchingDataByMeta]) useEffect(() => { // get info all failed if (infoByMetaError || infoByIdError) setErrorIndexes([...errorIndexes, ...marketPlaceInDSLIndex]) - - // eslint-disable-next-line react-hooks/exhaustive-deps }, [infoByMetaError, infoByIdError]) const isLoadedAllData = (plugins.filter(p => !!p).length + errorIndexes.length) === allPlugins.length @@ -189,8 +185,6 @@ const InstallByDSLList: ForwardRefRenderFunction = ({ useEffect(() => { if (isLoadedAllData && installedInfo) onLoadedAllPlugin(installedInfo!) - - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isLoadedAllData, installedInfo]) const handleSelect = useCallback((index: number) => { diff --git a/web/app/components/tools/add-tool-modal/type.tsx b/web/app/components/tools/add-tool-modal/type.tsx index 26e78a7525..354418d5eb 100644 --- a/web/app/components/tools/add-tool-modal/type.tsx +++ b/web/app/components/tools/add-tool-modal/type.tsx @@ -17,7 +17,7 @@ const Types = ({ return (
onSelect('builtin')}> -
+
{t('tools.type.builtIn')}
onSelect('api')}> diff --git a/web/app/components/tools/mcp/detail/content.tsx b/web/app/components/tools/mcp/detail/content.tsx index 3f927b990d..965b270bda 100644 --- a/web/app/components/tools/mcp/detail/content.tsx +++ b/web/app/components/tools/mcp/detail/content.tsx @@ -141,7 +141,6 @@ const MCPDetailContent: FC = ({ useEffect(() => { if (isTriggerAuthorize) handleAuthorize() - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) if (!detail) diff --git a/web/app/components/workflow-app/hooks/use-workflow-init.ts b/web/app/components/workflow-app/hooks/use-workflow-init.ts index 6d16dc5c44..d63c5ca7b9 100644 --- a/web/app/components/workflow-app/hooks/use-workflow-init.ts +++ b/web/app/components/workflow-app/hooks/use-workflow-init.ts @@ -83,7 +83,6 @@ export const useWorkflowInit = () => { useEffect(() => { handleGetInitialWorkflowData() - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) const handleFetchPreloadData = useCallback(async () => { diff --git a/web/app/components/workflow/block-selector/all-tools.tsx b/web/app/components/workflow/block-selector/all-tools.tsx index 870d791d4f..f155b644a1 100644 --- a/web/app/components/workflow/block-selector/all-tools.tsx +++ b/web/app/components/workflow/block-selector/all-tools.tsx @@ -101,7 +101,6 @@ const AllTools = ({ category: PluginType.tool, }) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [searchText, tags, enable_marketplace]) const pluginRef = useRef(null) diff --git a/web/app/components/workflow/block-selector/market-place-plugin/action.tsx b/web/app/components/workflow/block-selector/market-place-plugin/action.tsx index 4e64929582..56ee420cff 100644 --- a/web/app/components/workflow/block-selector/market-place-plugin/action.tsx +++ b/web/app/components/workflow/block-selector/market-place-plugin/action.tsx @@ -60,7 +60,6 @@ const OperationDropdown: FC = ({ downloadFile({ data: blob, fileName }) setNeedDownload(false) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [blob]) return ( (({ useEffect(() => { handleScroll() - // eslint-disable-next-line react-hooks/exhaustive-deps }, [list]) const handleHeadClick = () => { diff --git a/web/app/components/workflow/block-selector/tool/tool.tsx b/web/app/components/workflow/block-selector/tool/tool.tsx index 83ae062737..e0da011d2a 100644 --- a/web/app/components/workflow/block-selector/tool/tool.tsx +++ b/web/app/components/workflow/block-selector/tool/tool.tsx @@ -122,7 +122,6 @@ const Tool: FC = ({ } if (!hasSearchText && !isFold) setFold(true) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [hasSearchText]) const FoldIcon = isFold ? RiArrowRightSLine : RiArrowDownSLine diff --git a/web/app/components/workflow/hooks/use-workflow.ts b/web/app/components/workflow/hooks/use-workflow.ts index 8bc9d3436f..9c99699c16 100644 --- a/web/app/components/workflow/hooks/use-workflow.ts +++ b/web/app/components/workflow/hooks/use-workflow.ts @@ -270,8 +270,6 @@ export const useWorkflow = () => { }) setNodes(newNodes) } - - // eslint-disable-next-line react-hooks/exhaustive-deps }, [store]) const isVarUsedInNodes = useCallback((varSelector: ValueSelector) => { diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsx index 3356188618..a5894451c1 100644 --- a/web/app/components/workflow/index.tsx +++ b/web/app/components/workflow/index.tsx @@ -190,7 +190,6 @@ export const Workflow: FC = memo(({ return () => { handleSyncWorkflowDraft(true, true) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) const { handleRefreshWorkflowDraft } = useWorkflowRefreshDraft() @@ -282,7 +281,6 @@ export const Workflow: FC = memo(({ const { fetchInspectVars } = useSetWorkflowVarsWithValue() useEffect(() => { fetchInspectVars() - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) const store = useStoreApi() diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx index c872952900..9e67debd58 100644 --- a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx +++ b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx @@ -143,7 +143,6 @@ export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) => category: PluginType.agent, }) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [query]) const pluginRef = useRef(null) diff --git a/web/app/components/workflow/nodes/_base/components/variable/output-var-list.tsx b/web/app/components/workflow/nodes/_base/components/variable/output-var-list.tsx index a7c9a9d172..831e6eb6ef 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/output-var-list.tsx +++ b/web/app/components/workflow/nodes/_base/components/variable/output-var-list.tsx @@ -64,7 +64,6 @@ const OutputVarList: FC = ({ }) onChange(newOutputs, index, newKey) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [list, onChange, outputs, outputKeyOrders]) const handleVarTypeChange = useCallback((index: number) => { @@ -75,7 +74,6 @@ const OutputVarList: FC = ({ }) onChange(newOutputs) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [list, onChange, outputs, outputKeyOrders]) const handleVarRemove = useCallback((index: number) => { diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx index e6f3ce1fa1..08a20b52e4 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx +++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx @@ -138,7 +138,6 @@ const VarReferencePicker: FC = ({ useEffect(() => { if (triggerRef.current) setTriggerWidth(triggerRef.current.clientWidth) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [triggerRef.current]) const [varKindType, setVarKindType] = useState(defaultVarKindType) @@ -149,7 +148,6 @@ const VarReferencePicker: FC = ({ const [open, setOpen] = useState(false) useEffect(() => { onOpen() - // eslint-disable-next-line react-hooks/exhaustive-deps }, [open]) const hasValue = !isConstant && value.length > 0 diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx index 303840d8e7..325d1889aa 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx +++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx @@ -118,7 +118,6 @@ const Item: FC = ({ const open = (isObj || isStructureOutput) && isHovering useEffect(() => { onHovering && onHovering(isHovering) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isHovering]) const handleChosen = (e: React.MouseEvent) => { e.stopPropagation() @@ -219,11 +218,9 @@ const ObjectChildren: FC = ({ const isHovering = isItemHovering || isChildrenHovering useEffect(() => { onHovering && onHovering(isHovering) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isHovering]) useEffect(() => { onHovering && onHovering(isItemHovering) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isItemHovering]) // absolute top-[-2px] return ( diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx index a029987818..0c8e28c11a 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx @@ -67,7 +67,6 @@ const LastRun: FC = ({ updateNodeRunningStatus(hidePageOneStepFinishedStatus) resetHidePageStatus() } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isOneStepRunSucceed, isOneStepRunFailed, oneStepRunRunningStatus]) useEffect(() => { @@ -77,7 +76,6 @@ const LastRun: FC = ({ useEffect(() => { resetHidePageStatus() - // eslint-disable-next-line react-hooks/exhaustive-deps }, [nodeId]) const handlePageVisibilityChange = useCallback(() => { diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts index 014707cdfb..d01b294a2e 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts @@ -197,7 +197,6 @@ const useLastRun = ({ setTabType(TabType.lastRun) setInitShowLastRunTab(false) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [initShowLastRunTab]) const invalidLastRun = useInvalidLastRun(appId!, id) diff --git a/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts b/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts index 769804a20b..764cded2ed 100644 --- a/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts +++ b/web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts @@ -251,7 +251,6 @@ const useOneStepRun = ({ const { isValid } = checkValidWrap() setCanShowSingleRun(isValid) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [data._isSingleRun]) useEffect(() => { diff --git a/web/app/components/workflow/nodes/agent/use-config.ts b/web/app/components/workflow/nodes/agent/use-config.ts index dd9236f24f..01abf7f761 100644 --- a/web/app/components/workflow/nodes/agent/use-config.ts +++ b/web/app/components/workflow/nodes/agent/use-config.ts @@ -151,7 +151,6 @@ const useConfig = (id: string, payload: AgentNodeType) => { return const newData = formattingLegacyData() setInputs(newData) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [currentStrategy]) // vars diff --git a/web/app/components/workflow/nodes/code/use-config.ts b/web/app/components/workflow/nodes/code/use-config.ts index 9b0c14e529..ff9d68bde8 100644 --- a/web/app/components/workflow/nodes/code/use-config.ts +++ b/web/app/components/workflow/nodes/code/use-config.ts @@ -60,7 +60,6 @@ const useConfig = (id: string, payload: CodeNodeType) => { }) syncOutputKeyOrders(defaultConfig.outputs) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [defaultConfig]) const handleCodeChange = useCallback((code: string) => { diff --git a/web/app/components/workflow/nodes/http/use-config.ts b/web/app/components/workflow/nodes/http/use-config.ts index a539a88a8b..63d14794b2 100644 --- a/web/app/components/workflow/nodes/http/use-config.ts +++ b/web/app/components/workflow/nodes/http/use-config.ts @@ -51,7 +51,6 @@ const useConfig = (id: string, payload: HttpNodeType) => { setInputs(newInputs) setIsDataReady(true) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [defaultConfig]) const handleMethodChange = useCallback((method: Method) => { diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/use-config.ts b/web/app/components/workflow/nodes/knowledge-retrieval/use-config.ts index 380f8b95c9..47e376cdc6 100644 --- a/web/app/components/workflow/nodes/knowledge-retrieval/use-config.ts +++ b/web/app/components/workflow/nodes/knowledge-retrieval/use-config.ts @@ -172,7 +172,6 @@ const useConfig = (id: string, payload: KnowledgeRetrievalNodeType) => { } }) setInputs(newInput) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [currentProvider?.provider, currentModel, currentRerankModel, rerankDefaultModel]) const [selectedDatasets, setSelectedDatasets] = useState([]) const [rerankModelOpen, setRerankModelOpen] = useState(false) @@ -229,7 +228,6 @@ const useConfig = (id: string, payload: KnowledgeRetrievalNodeType) => { setInputs(newInputs) setSelectedDatasetsLoaded(true) })() - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) useEffect(() => { @@ -241,7 +239,6 @@ const useConfig = (id: string, payload: KnowledgeRetrievalNodeType) => { setInputs(produce(inputs, (draft) => { draft.query_variable_selector = query_variable_selector })) - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) const handleOnDatasetsChange = useCallback((newDatasets: DataSet[]) => { diff --git a/web/app/components/workflow/nodes/llm/use-config.ts b/web/app/components/workflow/nodes/llm/use-config.ts index b8516caed8..8c22068671 100644 --- a/web/app/components/workflow/nodes/llm/use-config.ts +++ b/web/app/components/workflow/nodes/llm/use-config.ts @@ -101,7 +101,6 @@ const useConfig = (id: string, payload: LLMNodeType) => { }) setInputs(newInputs) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [defaultConfig, isChatModel]) const [modelChanged, setModelChanged] = useState(false) @@ -161,7 +160,6 @@ const useConfig = (id: string, payload: LLMNodeType) => { return setModelChanged(false) handleVisionConfigAfterModelChanged() - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isVisionModel, modelChanged]) // variables diff --git a/web/app/components/workflow/nodes/parameter-extractor/use-config.ts b/web/app/components/workflow/nodes/parameter-extractor/use-config.ts index 3fe42b60cf..2caae83f2a 100644 --- a/web/app/components/workflow/nodes/parameter-extractor/use-config.ts +++ b/web/app/components/workflow/nodes/parameter-extractor/use-config.ts @@ -155,7 +155,6 @@ const useConfig = (id: string, payload: ParameterExtractorNodeType) => { return setModelChanged(false) handleVisionConfigAfterModelChanged() - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isVisionModel, modelChanged]) const { diff --git a/web/app/components/workflow/nodes/question-classifier/use-config.ts b/web/app/components/workflow/nodes/question-classifier/use-config.ts index a4acf5b7f6..b4907641b5 100644 --- a/web/app/components/workflow/nodes/question-classifier/use-config.ts +++ b/web/app/components/workflow/nodes/question-classifier/use-config.ts @@ -88,7 +88,6 @@ const useConfig = (id: string, payload: QuestionClassifierNodeType) => { return setModelChanged(false) handleVisionConfigAfterModelChanged() - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isVisionModel, modelChanged]) const handleQueryVarChange = useCallback((newVar: ValueSelector | string) => { @@ -110,7 +109,6 @@ const useConfig = (id: string, payload: QuestionClassifierNodeType) => { query_variable_selector: inputs.query_variable_selector.length > 0 ? inputs.query_variable_selector : query_variable_selector, }) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [defaultConfig]) const handleClassesChange = useCallback((newClasses: any) => { diff --git a/web/app/components/workflow/nodes/template-transform/use-config.ts b/web/app/components/workflow/nodes/template-transform/use-config.ts index 8be93abdf8..4f5aa90dd8 100644 --- a/web/app/components/workflow/nodes/template-transform/use-config.ts +++ b/web/app/components/workflow/nodes/template-transform/use-config.ts @@ -65,7 +65,6 @@ const useConfig = (id: string, payload: TemplateTransformNodeType) => { ...defaultConfig, }) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [defaultConfig]) const handleCodeChange = useCallback((template: string) => { diff --git a/web/app/components/workflow/nodes/tool/use-config.ts b/web/app/components/workflow/nodes/tool/use-config.ts index ea8d0e21ca..c169ae71a4 100644 --- a/web/app/components/workflow/nodes/tool/use-config.ts +++ b/web/app/components/workflow/nodes/tool/use-config.ts @@ -140,7 +140,6 @@ const useConfig = (id: string, payload: ToolNodeType) => { return const inputsWithDefaultValue = formattingParameters() setInputs(inputsWithDefaultValue) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [currTool]) // setting when call diff --git a/web/app/components/workflow/run/status-container.tsx b/web/app/components/workflow/run/status-container.tsx index 47890da0b2..be7006fd7a 100644 --- a/web/app/components/workflow/run/status-container.tsx +++ b/web/app/components/workflow/run/status-container.tsx @@ -18,30 +18,30 @@ const StatusContainer: FC = ({
{children}
diff --git a/web/app/components/workflow/variable-inspect/value-content.tsx b/web/app/components/workflow/variable-inspect/value-content.tsx index 3770dbb022..50633e1c14 100644 --- a/web/app/components/workflow/variable-inspect/value-content.tsx +++ b/web/app/components/workflow/variable-inspect/value-content.tsx @@ -72,7 +72,6 @@ const ValueContent = ({ if (showFileEditor) setFileValue(formatFileValue(currentVar)) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [currentVar.id, currentVar.value]) const handleTextChange = (value: string) => { diff --git a/web/app/styles/globals.css b/web/app/styles/globals.css index 353cfa2fff..d01b600138 100644 --- a/web/app/styles/globals.css +++ b/web/app/styles/globals.css @@ -1,11 +1,14 @@ @import "preflight.css"; -@tailwind base; -@tailwind components; - @import '../../themes/light.css'; @import '../../themes/dark.css'; @import "../../themes/manual-light.css"; @import "../../themes/manual-dark.css"; +@import "../components/base/button/index.css"; +@import "../components/base/action-button/index.css"; +@import "../components/base/modal/index.css"; + +@tailwind base; +@tailwind components; html { color-scheme: light; @@ -680,10 +683,6 @@ button:focus-within { display: none; } -@import "../components/base/button/index.css"; -@import "../components/base/action-button/index.css"; -@import "../components/base/modal/index.css"; - @tailwind utilities; @layer utilities { diff --git a/web/next.config.js b/web/next.config.js index 00793bf26a..6966155c78 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -1,5 +1,4 @@ const { basePath, assetPrefix } = require('./utils/var-basePath') -const { codeInspectorPlugin } = require('code-inspector-plugin') const withMDX = require('@next/mdx')({ extension: /\.mdx?$/, options: { @@ -27,7 +26,6 @@ const nextConfig = { basePath, assetPrefix, webpack: (config, { dev, isServer }) => { - config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' })) return config }, productionBrowserSourceMaps: false, // enable browser source map generation during the production build diff --git a/web/package.json b/web/package.json index 2470a70dec..98053e1372 100644 --- a/web/package.json +++ b/web/package.json @@ -18,7 +18,7 @@ "and_qq >= 14.9" ], "scripts": { - "dev": "cross-env NODE_OPTIONS='--inspect' next dev", + "dev": "cross-env NODE_OPTIONS='--inspect' next dev --turbopack", "build": "next build", "start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js", "lint": "pnpx oxlint && pnpm eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache", @@ -194,7 +194,6 @@ "@types/uuid": "^10.0.0", "autoprefixer": "^10.4.20", "bing-translate-api": "^4.0.2", - "code-inspector-plugin": "^0.18.1", "cross-env": "^7.0.3", "eslint": "^9.20.1", "eslint-config-next": "~15.3.5", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index eaff8c8504..b15b65369d 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -504,9 +504,6 @@ importers: bing-translate-api: specifier: ^4.0.2 version: 4.1.0 - code-inspector-plugin: - specifier: ^0.18.1 - version: 0.18.3 cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -3639,9 +3636,6 @@ packages: resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==} hasBin: true - async@3.2.6: - resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} - autoprefixer@10.4.21: resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==} engines: {node: ^10 || ^12 || >=14} @@ -3864,10 +3858,6 @@ packages: resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==} engines: {node: '>=8'} - chalk@4.1.1: - resolution: {integrity: sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==} - engines: {node: '>=10'} - chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -4006,12 +3996,6 @@ packages: resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} - code-inspector-core@0.18.3: - resolution: {integrity: sha512-60pT2cPoguMTUYdN1MMpjoPUnuF0ud/u7M2y+Vqit/bniLEit9dySEWAVxLU/Ukc5ILrDeLKEttc6fCMl9RUrA==} - - code-inspector-plugin@0.18.3: - resolution: {integrity: sha512-d9oJXZUsnvfTaQDwFmDNA2F+AR/TXIxWg1rr8KGcEskltR2prbZsfuu1z70EAn4khpx0smfi/PvIIwNJQ7FAMw==} - collapse-white-space@2.1.0: resolution: {integrity: sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw==} @@ -4513,10 +4497,6 @@ packages: dot-case@3.0.4: resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} - dotenv@16.6.1: - resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==} - engines: {node: '>=12'} - duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} @@ -4599,9 +4579,6 @@ packages: esast-util-from-js@2.0.1: resolution: {integrity: sha512-8Ja+rNJ0Lt56Pcf3TAmpBZjmx8ZcK5Ts4cAzIOjsjevg9oSXJnl6SUQ2EevU8tv3h6ZLWmoKL5H4fgWvdvfETw==} - esbuild-code-inspector-plugin@0.18.3: - resolution: {integrity: sha512-FaPt5eFMtW1oXMWqAcqfAJByNagP1V/R9dwDDLQO29JmryMF35+frskTqy+G53whmTaVi19+TCrFqhNbMZH5ZQ==} - esbuild-register@3.6.0: resolution: {integrity: sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==} peerDependencies: @@ -5890,9 +5867,6 @@ packages: resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==} engines: {node: '>=0.10'} - launch-ide@1.0.1: - resolution: {integrity: sha512-U7qBxSNk774PxWq4XbmRe0ThiIstPoa4sMH/OGSYxrFVvg8x3biXcF1fsH6wasDpEmEXMdINUrQhBdwsSgKyMg==} - layout-base@1.0.2: resolution: {integrity: sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==} @@ -6704,10 +6678,6 @@ packages: resolution: {integrity: sha512-OBatVyC/N7SCW/FaDHrSd+vn0o5cS855TOmYi4OkdWUMSJCET/xip//ch8xGUvtr3i44X9LVyWwQlRMTN3pwSA==} engines: {node: '>=10'} - portfinder@1.0.37: - resolution: {integrity: sha512-yuGIEjDAYnnOex9ddMnKZEMFE0CcGo6zbfzDklkmT1m5z734ss6JMzN9rNB3+RR7iS+F10D4/BVIaXOyh8PQKw==} - engines: {node: '>= 10.12'} - postcss-import@15.1.0: resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} engines: {node: '>=14.0.0'} @@ -7993,9 +7963,6 @@ packages: vfile@6.0.3: resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - vite-code-inspector-plugin@0.18.3: - resolution: {integrity: sha512-178H73vbDUHE+JpvfAfioUHlUr7qXCYIEa2YNXtzenFQGOjtae59P1jjcxGfa6pPHEnOoaitb13K+0qxwhi/WA==} - vm-browserify@1.1.2: resolution: {integrity: sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==} @@ -8051,9 +8018,6 @@ packages: engines: {node: '>= 10.13.0'} hasBin: true - webpack-code-inspector-plugin@0.18.3: - resolution: {integrity: sha512-3782rsJhBnRiw0IpR6EqnyGDQoiSq0CcGeLJ52rZXlszYCe8igXtcujq7OhI0byaivWQ1LW7sXKyMEoVpBhq0w==} - webpack-dev-middleware@6.1.3: resolution: {integrity: sha512-A4ChP0Qj8oGociTs6UdlRUGANIGrCDL3y+pmQMc+dSsraXHCatFpmMey4mYELA+juqwUqwQsUgJJISXl1KWmiw==} engines: {node: '>= 14.15.0'} @@ -11900,8 +11864,6 @@ snapshots: astring@1.9.0: {} - async@3.2.6: {} - autoprefixer@10.4.21(postcss@8.5.6): dependencies: browserslist: 4.25.1 @@ -12175,11 +12137,6 @@ snapshots: ansi-styles: 4.3.0 supports-color: 7.2.0 - chalk@4.1.1: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - chalk@4.1.2: dependencies: ansi-styles: 4.3.0 @@ -12298,27 +12255,6 @@ snapshots: co@4.6.0: {} - code-inspector-core@0.18.3: - dependencies: - '@vue/compiler-dom': 3.5.17 - chalk: 4.1.1 - dotenv: 16.6.1 - launch-ide: 1.0.1 - portfinder: 1.0.37 - transitivePeerDependencies: - - supports-color - - code-inspector-plugin@0.18.3: - dependencies: - chalk: 4.1.1 - code-inspector-core: 0.18.3 - dotenv: 16.6.1 - esbuild-code-inspector-plugin: 0.18.3 - vite-code-inspector-plugin: 0.18.3 - webpack-code-inspector-plugin: 0.18.3 - transitivePeerDependencies: - - supports-color - collapse-white-space@2.1.0: {} collect-v8-coverage@1.0.2: {} @@ -12835,8 +12771,6 @@ snapshots: no-case: 3.0.4 tslib: 2.8.1 - dotenv@16.6.1: {} - duplexer@0.1.2: {} echarts-for-react@3.0.2(echarts@5.6.0)(react@19.1.0): @@ -12924,12 +12858,6 @@ snapshots: esast-util-from-estree: 2.0.0 vfile-message: 4.0.2 - esbuild-code-inspector-plugin@0.18.3: - dependencies: - code-inspector-core: 0.18.3 - transitivePeerDependencies: - - supports-color - esbuild-register@3.6.0(esbuild@0.25.0): dependencies: debug: 4.4.1 @@ -14715,11 +14643,6 @@ snapshots: dependencies: language-subtag-registry: 0.3.23 - launch-ide@1.0.1: - dependencies: - chalk: 4.1.1 - dotenv: 16.6.1 - layout-base@1.0.2: {} layout-base@2.0.1: {} @@ -15847,13 +15770,6 @@ snapshots: dependencies: '@babel/runtime': 7.27.6 - portfinder@1.0.37: - dependencies: - async: 3.2.6 - debug: 4.4.1 - transitivePeerDependencies: - - supports-color - postcss-import@15.1.0(postcss@8.5.6): dependencies: postcss: 8.5.6 @@ -17298,12 +17214,6 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - vite-code-inspector-plugin@0.18.3: - dependencies: - code-inspector-core: 0.18.3 - transitivePeerDependencies: - - supports-color - vm-browserify@1.1.2: {} void-elements@3.1.0: {} @@ -17372,12 +17282,6 @@ snapshots: - bufferutil - utf-8-validate - webpack-code-inspector-plugin@0.18.3: - dependencies: - code-inspector-core: 0.18.3 - transitivePeerDependencies: - - supports-color - webpack-dev-middleware@6.1.3(webpack@5.100.2(esbuild@0.25.0)(uglify-js@3.19.3)): dependencies: colorette: 2.0.20 diff --git a/web/app/components/tools/add-tool-modal/D.png b/web/public/assets/D.png similarity index 100% rename from web/app/components/tools/add-tool-modal/D.png rename to web/public/assets/D.png diff --git a/web/assets/action.svg b/web/public/assets/action.svg similarity index 99% rename from web/assets/action.svg rename to web/public/assets/action.svg index ae3f48e2ed..cfdf3bcb2a 100644 --- a/web/assets/action.svg +++ b/web/public/assets/action.svg @@ -2,4 +2,5 @@ + diff --git a/web/app/components/develop/secret-key/assets/copied.svg b/web/public/assets/copied.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/copied.svg rename to web/public/assets/copied.svg diff --git a/web/app/components/develop/secret-key/assets/copy-hover.svg b/web/public/assets/copy-hover.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/copy-hover.svg rename to web/public/assets/copy-hover.svg diff --git a/web/app/components/develop/secret-key/assets/copy.svg b/web/public/assets/copy.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/copy.svg rename to web/public/assets/copy.svg diff --git a/web/assets/csv.svg b/web/public/assets/csv.svg similarity index 100% rename from web/assets/csv.svg rename to web/public/assets/csv.svg diff --git a/web/assets/delete.svg b/web/public/assets/delete.svg similarity index 100% rename from web/assets/delete.svg rename to web/public/assets/delete.svg diff --git a/web/assets/doc.svg b/web/public/assets/doc.svg similarity index 100% rename from web/assets/doc.svg rename to web/public/assets/doc.svg diff --git a/web/assets/docx.svg b/web/public/assets/docx.svg similarity index 100% rename from web/assets/docx.svg rename to web/public/assets/docx.svg diff --git a/web/app/components/tools/add-tool-modal/empty.png b/web/public/assets/empty.png similarity index 100% rename from web/app/components/tools/add-tool-modal/empty.png rename to web/public/assets/empty.png diff --git a/web/assets/html.svg b/web/public/assets/html.svg similarity index 100% rename from web/assets/html.svg rename to web/public/assets/html.svg diff --git a/web/assets/json.svg b/web/public/assets/json.svg similarity index 100% rename from web/assets/json.svg rename to web/public/assets/json.svg diff --git a/web/assets/md.svg b/web/public/assets/md.svg similarity index 100% rename from web/assets/md.svg rename to web/public/assets/md.svg diff --git a/web/app/components/develop/secret-key/assets/pause.svg b/web/public/assets/pause.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/pause.svg rename to web/public/assets/pause.svg diff --git a/web/assets/pdf.svg b/web/public/assets/pdf.svg similarity index 100% rename from web/assets/pdf.svg rename to web/public/assets/pdf.svg diff --git a/web/app/components/develop/secret-key/assets/play.svg b/web/public/assets/play.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/play.svg rename to web/public/assets/play.svg diff --git a/web/app/components/develop/secret-key/assets/qrcode-hover.svg b/web/public/assets/qrcode-hover.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/qrcode-hover.svg rename to web/public/assets/qrcode-hover.svg diff --git a/web/app/components/develop/secret-key/assets/qrcode.svg b/web/public/assets/qrcode.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/qrcode.svg rename to web/public/assets/qrcode.svg diff --git a/web/app/components/develop/secret-key/assets/svg.svg b/web/public/assets/svg.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/svg.svg rename to web/public/assets/svg.svg diff --git a/web/app/components/develop/secret-key/assets/svged.svg b/web/public/assets/svged.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/svged.svg rename to web/public/assets/svged.svg diff --git a/web/app/components/develop/secret-key/assets/trash-gray.svg b/web/public/assets/trash-gray.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/trash-gray.svg rename to web/public/assets/trash-gray.svg diff --git a/web/app/components/develop/secret-key/assets/trash-red.svg b/web/public/assets/trash-red.svg similarity index 100% rename from web/app/components/develop/secret-key/assets/trash-red.svg rename to web/public/assets/trash-red.svg diff --git a/web/assets/txt.svg b/web/public/assets/txt.svg similarity index 100% rename from web/assets/txt.svg rename to web/public/assets/txt.svg diff --git a/web/assets/xlsx.svg b/web/public/assets/xlsx.svg similarity index 100% rename from web/assets/xlsx.svg rename to web/public/assets/xlsx.svg