Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
CI: add TS indentation check via esLint (#24810)
Yongtao Huang208ce4e774e9
diff --git a/.github/workflows/style.yml b/.github/workflows/style.ymlindex b6c9131c08a..9c79dbc57ed 100644--- a/.github/workflows/style.yml+++ b/.github/workflows/style.yml@@ -89,7 +89,9 @@ jobs:- name: Web style checkif: steps.changed-files.outputs.any_changed == 'true'working-directory: ./web- run: pnpm run lint+ run: |+ pnpm run lint+ pnpm run eslintdocker-compose-template:name: Docker Compose Templatediff --git a/web/__tests__/check-i18n.test.ts b/web/__tests__/check-i18n.test.tsindex b4c4f1540d5..b579f22d4bc 100644--- a/web/__tests__/check-i18n.test.ts+++ b/web/__tests__/check-i18n.test.ts@@ -621,7 +621,7 @@ export default translation&& !trimmed.startsWith('//'))break}- else {+ else {break}diff --git a/web/__tests__/description-validation.test.tsx b/web/__tests__/description-validation.test.tsxindex 85263b035f1..a78a4e632e5 100644--- a/web/__tests__/description-validation.test.tsx+++ b/web/__tests__/description-validation.test.tsx@@ -60,7 +60,7 @@ describe('Description Validation Logic', () => {try {validateDescriptionLength(invalidDescription)}- catch (error) {+ catch (error) {expect((error as Error).message).toBe(expectedErrorMessage)}})@@ -86,7 +86,7 @@ describe('Description Validation Logic', () => {expect(() => validateDescriptionLength(testDescription)).not.toThrow()expect(validateDescriptionLength(testDescription)).toBe(testDescription)}- else {+ else {expect(() => validateDescriptionLength(testDescription)).toThrow('Description cannot exceed 400 characters.',)diff --git a/web/__tests__/document-list-sorting.test.tsx b/web/__tests__/document-list-sorting.test.tsxindex 1510dbec235..77c0bb60cf9 100644--- a/web/__tests__/document-list-sorting.test.tsx+++ b/web/__tests__/document-list-sorting.test.tsx@@ -39,7 +39,7 @@ describe('Document List Sorting', () => {const result = aValue.localeCompare(bValue)return order === 'asc' ? result : -result}- else {+ else {const result = aValue - bValuereturn order === 'asc' ? result : -result}diff --git a/web/__tests__/plugin-tool-workflow-error.test.tsx b/web/__tests__/plugin-tool-workflow-error.test.tsxindex 370052bc80d..87bda8fa139 100644--- a/web/__tests__/plugin-tool-workflow-error.test.tsx+++ b/web/__tests__/plugin-tool-workflow-error.test.tsx@@ -196,7 +196,7 @@ describe('Plugin Tool Workflow Integration', () => {const _pluginId = (tool.uniqueIdentifier as any).split(':')[0]}).toThrow()}- else {+ else {// Valid tools should work fineexpect(() => {const _pluginId = tool.uniqueIdentifier.split(':')[0]diff --git a/web/__tests__/real-browser-flicker.test.tsx b/web/__tests__/real-browser-flicker.test.tsxindex cf3abd5f809..52bdf4777f3 100644--- a/web/__tests__/real-browser-flicker.test.tsx+++ b/web/__tests__/real-browser-flicker.test.tsx@@ -252,7 +252,7 @@ describe('Real Browser Environment Dark Mode Flicker Test', () => {if (hasStyleChange)console.log('⚠️ Style changes detected - this causes visible flicker')- else+ elseconsole.log('✅ No style changes detected')expect(timingData.length).toBeGreaterThan(1)diff --git a/web/__tests__/workflow-parallel-limit.test.tsx b/web/__tests__/workflow-parallel-limit.test.tsxindex 0843122ab4e..64e9d328f02 100644--- a/web/__tests__/workflow-parallel-limit.test.tsx+++ b/web/__tests__/workflow-parallel-limit.test.tsx@@ -15,7 +15,7 @@ const originalEnv = process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMITfunction setupEnvironment(value?: string) {if (value)process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT = value- else+ elsedelete process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT// Clear module cache to force re-evaluation@@ -25,7 +25,7 @@ function setupEnvironment(value?: string) {function restoreEnvironment() {if (originalEnv)process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT = originalEnv- else+ elsedelete process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMITjest.resetModules()diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsxindex a3281be8ebe..b1e915b2bf3 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx@@ -47,7 +47,7 @@ describe('SVG Attribute Error Reproduction', () => {console.log(` ${index + 1}. ${error.substring(0, 100)}...`)})}- else {+ else {console.log('No inkscape errors found in this render')}@@ -150,7 +150,7 @@ describe('SVG Attribute Error Reproduction', () => {if (problematicKeys.length > 0)console.log(`🚨 PROBLEM: Still found problematic attributes: ${problematicKeys.join(', ')}`)- else+ elseconsole.log('✅ No problematic attributes found after normalization')})})diff --git a/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx b/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsxindex 0408d2ee348..5890c2ea92b 100644--- a/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx+++ b/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx@@ -106,7 +106,7 @@ const AvatarWithEdit = ({ onSave, ...props }: AvatarWithEditProps) => {onClick={() => {if (hoverArea === 'right' && !onAvatarError)setIsShowDeleteConfirm(true)- else+ elsesetIsShowAvatarPicker(true)}}onMouseMove={(e) => {diff --git a/web/app/components/app-sidebar/basic.tsx b/web/app/components/app-sidebar/basic.tsxindex 00357d6c27e..77a965c03e4 100644--- a/web/app/components/app-sidebar/basic.tsx+++ b/web/app/components/app-sidebar/basic.tsx@@ -45,8 +45,8 @@ const ICON_MAP = {</div>,dataset: <AppIcon innerIcon={DatasetSvg} className='!border-[0.5px] !border-indigo-100 !bg-indigo-25' />,webapp: <div className='rounded-lg border-[0.5px] border-divider-subtle bg-util-colors-blue-brand-blue-brand-500 p-1 shadow-md'>- <WindowCursor className='h-4 w-4 text-text-primary-on-surface' />-</div>,+ <WindowCursor className='h-4 w-4 text-text-primary-on-surface' />+ </div>,notion: <AppIcon innerIcon={NotionSvg} className='!border-[0.5px] !border-indigo-100 !bg-white' />,}diff --git a/web/app/components/app-sidebar/index.tsx b/web/app/components/app-sidebar/index.tsxindex c3ff45d6a69..c60aa26f5d8 100644--- a/web/app/components/app-sidebar/index.tsx+++ b/web/app/components/app-sidebar/index.tsx@@ -62,12 +62,12 @@ const AppDetailNav = ({ title, desc, isExternal, icon, icon_background, navigati}, [appSidebarExpand, setAppSiderbarExpand])if (inWorkflowCanvas && hideHeader) {- return (+ return (<div className='flex w-0 shrink-0'><AppSidebarDropdown navigation={navigation} /></div>)-}+ }return (<divdiff --git a/web/app/components/app-sidebar/sidebar-animation-issues.spec.tsx b/web/app/components/app-sidebar/sidebar-animation-issues.spec.tsxindex 2cf22eb621d..7c5a7ec21f5 100644--- a/web/app/components/app-sidebar/sidebar-animation-issues.spec.tsx+++ b/web/app/components/app-sidebar/sidebar-animation-issues.spec.tsx@@ -121,7 +121,7 @@ describe('Sidebar Animation Issues Reproduction', () => {}))})- describe('Issue #1: Toggle Button Position Movement - FIXED', () => {+ describe('Issue #1: Toggle Button Position Movement - FIXED', () => {it('should verify consistent padding prevents button position shift', () => {let expanded = falseconst handleToggle = () => {diff --git a/web/app/components/app/annotation/index.tsx b/web/app/components/app/annotation/index.tsxindex bb2a95b0b5a..afa87327015 100644--- a/web/app/components/app/annotation/index.tsx+++ b/web/app/components/app/annotation/index.tsx@@ -84,7 +84,7 @@ const Annotation: FC<Props> = (props) => {setList(data as AnnotationItem[])setTotal(total)}- finally {+ finally {setIsLoading(false)}}diff --git a/web/app/components/app/configuration/config-var/config-modal/type-select.tsx b/web/app/components/app/configuration/config-var/config-modal/type-select.tsxindex 3f6a01ed7c7..beb7b03e37c 100644--- a/web/app/components/app/configuration/config-var/config-modal/type-select.tsx+++ b/web/app/components/app/configuration/config-var/config-modal/type-select.tsx@@ -52,13 +52,13 @@ const TypeSelector: FC<Props> = ({><div className='flex items-center'><InputVarTypeIcon type={selectedItem?.value as InputVarType} className='size-4 shrink-0 text-text-secondary' />- <span- className={`+ <span+ className={`ml-1.5 ${!selectedItem?.name && 'text-components-input-text-placeholder'}`}- >- {selectedItem?.name}- </span>+ >+ {selectedItem?.name}+ </span></div><div className='flex items-center space-x-1'><Badge uppercase={false}>{inputVarTypeToVarType(selectedItem?.value as InputVarType)}</Badge>diff --git a/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx b/web/app/components/app/configuration/dataset-config/params-config/config-content.tsxindex 86025f68fab..cb61b927bce 100644--- a/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx+++ b/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx@@ -175,7 +175,6 @@ const ConfigContent: FC<Props> = ({...datasetConfigs,reranking_enable: enable,})- // eslint-disable-next-line react-hooks/exhaustive-deps}, [currentRerankModel, datasetConfigs, onChange])return (diff --git a/web/app/components/app/configuration/debug/chat-user-input.tsx b/web/app/components/app/configuration/debug/chat-user-input.tsxindex ac07691ce4d..b1161de075a 100644--- a/web/app/components/app/configuration/debug/chat-user-input.tsx+++ b/web/app/components/app/configuration/debug/chat-user-input.tsx@@ -57,10 +57,10 @@ const ChatUserInput = ({><div>{type !== 'checkbox' && (- <div className='system-sm-semibold mb-1 flex h-6 items-center gap-1 text-text-secondary'>- <div className='truncate'>{name || key}</div>- {!required && <span className='system-xs-regular text-text-tertiary'>{t('workflow.panel.optional')}</span>}- </div>+ <div className='system-sm-semibold mb-1 flex h-6 items-center gap-1 text-text-secondary'>+ <div className='truncate'>{name || key}</div>+ {!required && <span className='system-xs-regular text-text-tertiary'>{t('workflow.panel.optional')}</span>}+ </div>)}<div className='grow'>{type === 'string' && (diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsxindex 67b80657454..b73d1f19de3 100644--- a/web/app/components/app/log/list.tsx+++ b/web/app/components/app/log/list.tsx@@ -112,72 +112,72 @@ const getFormattedChatList = (messages: ChatMessage[], conversationId: string, tconst newChatList: IChatItem[] = []try {messages.forEach((item: ChatMessage) => {- const questionFiles = item.message_files?.filter((file: any) => file.belongs_to === 'user') || []- newChatList.push({- id: `question-${item.id}`,- content: item.inputs.query || item.inputs.default_input || item.query, // text generation: item.inputs.query; chat: item.query- isAnswer: false,- message_files: getProcessedFilesFromResponse(questionFiles.map((item: any) => ({ ...item, related_id: item.id }))),- parentMessageId: item.parent_message_id || undefined,- })+ const questionFiles = item.message_files?.filter((file: any) => file.belongs_to === 'user') || []+ newChatList.push({+ id: `question-${item.id}`,+ content: item.inputs.query || item.inputs.default_input || item.query, // text generation: item.inputs.query; chat: item.query+ isAnswer: false,+ message_files: getProcessedFilesFromResponse(questionFiles.map((item: any) => ({ ...item, related_id: item.id }))),+ parentMessageId: item.parent_message_id || undefined,+ })- const answerFiles = item.message_files?.filter((file: any) => file.belongs_to === 'assistant') || []- newChatList.push({- id: item.id,- content: item.answer,- agent_thoughts: addFileInfos(item.agent_thoughts ? sortAgentSorts(item.agent_thoughts) : item.agent_thoughts, item.message_files),- feedback: item.feedbacks.find(item => item.from_source === 'user'), // user feedback- adminFeedback: item.feedbacks.find(item => item.from_source === 'admin'), // admin feedback- feedbackDisabled: false,- isAnswer: true,- message_files: getProcessedFilesFromResponse(answerFiles.map((item: any) => ({ ...item, related_id: item.id }))),- log: [- ...item.message,- ...(item.message[item.message.length - 1]?.role !== 'assistant'- ? [- {- role: 'assistant',- text: item.answer,- files: item.message_files?.filter((file: any) => file.belongs_to === 'assistant') || [],- },- ]- : []),- ] as IChatItem['log'],- workflow_run_id: item.workflow_run_id,- conversationId,- input: {- inputs: item.inputs,- query: item.query,- },- more: {- time: dayjs.unix(item.created_at).tz(timezone).format(format),- tokens: item.answer_tokens + item.message_tokens,- latency: item.provider_response_latency.toFixed(2),- },- citation: item.metadata?.retriever_resources,- annotation: (() => {- if (item.annotation_hit_history) {- return {- id: item.annotation_hit_history.annotation_id,- authorName: item.annotation_hit_history.annotation_create_account?.name || 'N/A',- created_at: item.annotation_hit_history.created_at,+ const answerFiles = item.message_files?.filter((file: any) => file.belongs_to === 'assistant') || []+ newChatList.push({+ id: item.id,+ content: item.answer,+ agent_thoughts: addFileInfos(item.agent_thoughts ? sortAgentSorts(item.agent_thoughts) : item.agent_thoughts, item.message_files),+ feedback: item.feedbacks.find(item => item.from_source === 'user'), // user feedback+ adminFeedback: item.feedbacks.find(item => item.from_source === 'admin'), // admin feedback+ feedbackDisabled: false,+ isAnswer: true,+ message_files: getProcessedFilesFromResponse(answerFiles.map((item: any) => ({ ...item, related_id: item.id }))),+ log: [+ ...item.message,+ ...(item.message[item.message.length - 1]?.role !== 'assistant'+ ? [+ {+ role: 'assistant',+ text: item.answer,+ files: item.message_files?.filter((file: any) => file.belongs_to === 'assistant') || [],+ },+ ]+ : []),+ ] as IChatItem['log'],+ workflow_run_id: item.workflow_run_id,+ conversationId,+ input: {+ inputs: item.inputs,+ query: item.query,+ },+ more: {+ time: dayjs.unix(item.created_at).tz(timezone).format(format),+ tokens: item.answer_tokens + item.message_tokens,+ latency: item.provider_response_latency.toFixed(2),+ },+ citation: item.metadata?.retriever_resources,+ annotation: (() => {+ if (item.annotation_hit_history) {+ return {+ id: item.annotation_hit_history.annotation_id,+ authorName: item.annotation_hit_history.annotation_create_account?.name || 'N/A',+ created_at: item.annotation_hit_history.created_at,+ }}- }- if (item.annotation) {- return {- id: item.annotation.id,- authorName: item.annotation.account.name,- logAnnotation: item.annotation,- created_at: 0,+ if (item.annotation) {+ return {+ id: item.annotation.id,+ authorName: item.annotation.account.name,+ logAnnotation: item.annotation,+ created_at: 0,+ }}- }- return undefined- })(),- parentMessageId: `question-${item.id}`,+ return undefined+ })(),+ parentMessageId: `question-${item.id}`,+ })})- })return newChatList}@@ -503,7 +503,7 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {setThreadChatItems(getThreadMessages(tree, newAllChatItems.at(-1)?.id))}- catch (error) {+ catch (error) {console.error(error)setHasMore(false)}@@ -522,7 +522,7 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {if (outerDiv && outerDiv.scrollHeight > outerDiv.clientHeight) {scrollContainer = outerDiv}- else if (scrollableDiv && scrollableDiv.scrollHeight > scrollableDiv.clientHeight) {+ else if (scrollableDiv && scrollableDiv.scrollHeight > scrollableDiv.clientHeight) {scrollContainer = scrollableDiv}else if (chatContainer && chatContainer.scrollHeight > chatContainer.clientHeight) {diff --git a/web/app/components/app/overview/app-card.tsx b/web/app/components/app/overview/app-card.tsxindex 8713c8ef7bc..c6df0ebfd97 100644--- a/web/app/components/app/overview/app-card.tsx+++ b/web/app/components/app/overview/app-card.tsx@@ -167,7 +167,7 @@ function AppCard({setAppDetail(res)setShowAccessControl(false)}- catch (error) {+ catch (error) {console.error('Failed to fetch app detail:', error)}}, [appDetail, setAppDetail])diff --git a/web/app/components/app/overview/embedded/index.tsx b/web/app/components/app/overview/embedded/index.tsxindex cd25c4ca657..6eba993e1d4 100644--- a/web/app/components/app/overview/embedded/index.tsx+++ b/web/app/components/app/overview/embedded/index.tsx@@ -40,12 +40,12 @@ const OPTION_MAP = {`<script>window.difyChatbotConfig = {token: '${token}'${isTestEnv- ? `,+ ? `,isDev: true`- : ''}${IS_CE_EDITION- ? `,+ : ''}${IS_CE_EDITION+ ? `,baseUrl: '${url}${basePath}'`- : ''},+ : ''},inputs: {// You can define the inputs from the Start node here// key is the variable namediff --git a/web/app/components/app/overview/settings/index.tsx b/web/app/components/app/overview/settings/index.tsxindex 8c619a28851..8835fd24642 100644--- a/web/app/components/app/overview/settings/index.tsx+++ b/web/app/components/app/overview/settings/index.tsx@@ -240,7 +240,7 @@ const SettingsModal: FC<ISettingsModalProps> = ({<Link href={docLink('/guides/application-publishing/launch-your-webapp-quickly/README', {'zh-Hans': '/guides/application-publishing/launch-your-webapp-quickly/readme',})}- target='_blank' rel='noopener noreferrer' className='text-text-accent'>{t('common.operation.learnMore')}</Link>+ target='_blank' rel='noopener noreferrer' className='text-text-accent'>{t('common.operation.learnMore')}</Link></div></div>{/* form body */}diff --git a/web/app/components/apps/list.tsx b/web/app/components/apps/list.tsxindex 222379e96d8..aa85fb13136 100644--- a/web/app/components/apps/list.tsx+++ b/web/app/components/apps/list.tsx@@ -68,7 +68,7 @@ const getKey = (const List = () => {const { t } = useTranslation()- const { systemFeatures } = useGlobalPublicStore()+ const { systemFeatures } = useGlobalPublicStore()const router = useRouter()const { isCurrentWorkspaceEditor, isCurrentWorkspaceDatasetOperator } = useAppContext()const showTagManagementModal = useTagStore(s => s.showTagManagementModal)diff --git a/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx b/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsxindex 1235899d101..dd65f0ce729 100644--- a/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx+++ b/web/app/components/base/chat/embedded-chatbot/inputs-form/content.tsx@@ -46,12 +46,12 @@ const InputsFormContent = ({ showTip }: Props) => {{visibleInputsForms.map(form => (<div key={form.variable} className='space-y-1'>{form.type !== InputVarType.checkbox && (- <div className='flex h-6 items-center gap-1'>- <div className='system-md-semibold text-text-secondary'>{form.label}</div>- {!form.required && (- <div className='system-xs-regular text-text-tertiary'>{t('appDebug.variableTable.optional')}</div>- )}- </div>+ <div className='flex h-6 items-center gap-1'>+ <div className='system-md-semibold text-text-secondary'>{form.label}</div>+ {!form.required && (+ <div className='system-xs-regular text-text-tertiary'>{t('appDebug.variableTable.optional')}</div>+ )}+ </div>)}{form.type === InputVarType.textInput && (<Inputdiff --git a/web/app/components/base/checkbox/index.tsx b/web/app/components/base/checkbox/index.tsxindex 3e47967c62f..46ae0dbabad 100644--- a/web/app/components/base/checkbox/index.tsx+++ b/web/app/components/base/checkbox/index.tsx@@ -12,12 +12,12 @@ type CheckboxProps = {}const Checkbox = ({- id,- checked,- onCheck,- className,- disabled,- indeterminate,+ id,+ checked,+ onCheck,+ className,+ disabled,+ indeterminate,}: CheckboxProps) => {const checkClassName = (checked || indeterminate)? 'bg-components-checkbox-bg text-components-checkbox-icon hover:bg-components-checkbox-bg-hover'diff --git a/web/app/components/base/date-and-time-picker/utils/dayjs.ts b/web/app/components/base/date-and-time-picker/utils/dayjs.tsindex 80dc0f780cb..27200e76e9b 100644--- a/web/app/components/base/date-and-time-picker/utils/dayjs.ts+++ b/web/app/components/base/date-and-time-picker/utils/dayjs.ts@@ -131,7 +131,7 @@ export const formatDateForOutput = (date: Dayjs, includeTime: boolean = false, l// Output format with timereturn date.format('YYYY-MM-DDTHH:mm:ss.SSSZ')}- else {+ else {// Date-only output format without timezonereturn date.format('YYYY-MM-DD')}diff --git a/web/app/components/base/form/form-scenarios/demo/index.tsx b/web/app/components/base/form/form-scenarios/demo/index.tsxindex f08edee41e7..3dd973d7fe2 100644--- a/web/app/components/base/form/form-scenarios/demo/index.tsx+++ b/web/app/components/base/form/form-scenarios/demo/index.tsx@@ -24,7 +24,7 @@ const DemoForm = () => {},})-const name = useStore(form.store, state => state.values.name)+ const name = useStore(form.store, state => state.values.name)return (<formdiff --git a/web/app/components/base/form/types.ts b/web/app/components/base/form/types.tsindex 90af1abe4e5..d18c1661867 100644--- a/web/app/components/base/form/types.ts+++ b/web/app/components/base/form/types.ts@@ -70,10 +70,10 @@ export type GetValuesOptions = {needCheckValidatedValues?: boolean}export type FormRefObject = {- getForm: () => AnyFormApi- getFormValues: (obj: GetValuesOptions) => {- values: Record<string, any>- isCheckValidated: boolean- }+ getForm: () => AnyFormApi+ getFormValues: (obj: GetValuesOptions) => {+ values: Record<string, any>+ isCheckValidated: boolean+ }}export type FormRef = ForwardedRef<FormRefObject>diff --git a/web/app/components/base/mermaid/index.tsx b/web/app/components/base/mermaid/index.tsxindex 44df3e394f2..7df9ee398c6 100644--- a/web/app/components/base/mermaid/index.tsx+++ b/web/app/components/base/mermaid/index.tsx@@ -529,9 +529,9 @@ const Flowchart = React.forwardRef((props: {{isLoading && !svgString && (<div className='px-[26px] py-4'><LoadingAnim type='text'/>- <div className="mt-2 text-sm text-gray-500">- {t('common.wait_for_completion', 'Waiting for diagram code to complete...')}- </div>+ <div className="mt-2 text-sm text-gray-500">+ {t('common.wait_for_completion', 'Waiting for diagram code to complete...')}+ </div></div>)}diff --git a/web/app/components/base/prompt-editor/plugins/current-block/component.tsx b/web/app/components/base/prompt-editor/plugins/current-block/component.tsxindex 7e56ffa6cce..1d1cb7bde53 100644--- a/web/app/components/base/prompt-editor/plugins/current-block/component.tsx+++ b/web/app/components/base/prompt-editor/plugins/current-block/component.tsx@@ -20,9 +20,9 @@ const CurrentBlockComponent: FC<CurrentBlockComponentProps> = ({const Icon = generatorType === GeneratorType.prompt ? MagicEdit : CodeAssistantuseEffect(() => {- if (!editor.hasNodes([CurrentBlockNode]))- throw new Error('WorkflowVariableBlockPlugin: WorkflowVariableBlock not registered on editor')- }, [editor])+ if (!editor.hasNodes([CurrentBlockNode]))+ throw new Error('WorkflowVariableBlockPlugin: WorkflowVariableBlock not registered on editor')+ }, [editor])return (<divdiff --git a/web/app/components/base/prompt-editor/plugins/error-message-block/component.tsx b/web/app/components/base/prompt-editor/plugins/error-message-block/component.tsxindex e5d113f6804..3fc4db23232 100644--- a/web/app/components/base/prompt-editor/plugins/error-message-block/component.tsx+++ b/web/app/components/base/prompt-editor/plugins/error-message-block/component.tsx@@ -16,9 +16,9 @@ const ErrorMessageBlockComponent: FC<Props> = ({const [ref, isSelected] = useSelectOrDelete(nodeKey, DELETE_ERROR_MESSAGE_COMMAND)useEffect(() => {- if (!editor.hasNodes([ErrorMessageBlockNode]))- throw new Error('WorkflowVariableBlockPlugin: WorkflowVariableBlock not registered on editor')- }, [editor])+ if (!editor.hasNodes([ErrorMessageBlockNode]))+ throw new Error('WorkflowVariableBlockPlugin: WorkflowVariableBlock not registered on editor')+ }, [editor])return (<divdiff --git a/web/app/components/base/prompt-editor/plugins/last-run-block/component.tsx b/web/app/components/base/prompt-editor/plugins/last-run-block/component.tsxindex 748a66e5a89..e7f96cd4da1 100644--- a/web/app/components/base/prompt-editor/plugins/last-run-block/component.tsx+++ b/web/app/components/base/prompt-editor/plugins/last-run-block/component.tsx@@ -16,9 +16,9 @@ const LastRunBlockComponent: FC<Props> = ({const [ref, isSelected] = useSelectOrDelete(nodeKey, DELETE_LAST_RUN_COMMAND)useEffect(() => {- if (!editor.hasNodes([LastRunBlockNode]))- throw new Error('WorkflowVariableBlockPlugin: WorkflowVariableBlock not registered on editor')- }, [editor])+ if (!editor.hasNodes([LastRunBlockNode]))+ throw new Error('WorkflowVariableBlockPlugin: WorkflowVariableBlock not registered on editor')+ }, [editor])return (<divdiff --git a/web/app/components/base/select/index.tsx b/web/app/components/base/select/index.tsxindex aa0cf02215a..a1e8ac27244 100644--- a/web/app/components/base/select/index.tsx+++ b/web/app/components/base/select/index.tsx@@ -219,36 +219,36 @@ const SimpleSelect: FC<ISelectProps> = ({{renderTrigger && <ListboxButton className='w-full'>{renderTrigger(selectedItem)}</ListboxButton>}{!renderTrigger && (<ListboxButton onClick={() => {- onOpenChange?.(open)+ onOpenChange?.(open)}} className={classNames(`flex h-full w-full items-center rounded-lg border-0 bg-components-input-bg-normal pl-3 pr-10 focus-visible:bg-state-base-hover-alt focus-visible:outline-none group-hover/simple-select:bg-state-base-hover-alt sm:text-sm sm:leading-6 ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`, className)}><span className={classNames('system-sm-regular block truncate text-left text-components-input-text-filled', !selectedItem?.name && 'text-components-input-text-placeholder')}>{selectedItem?.name ?? localPlaceholder}</span><span className="absolute inset-y-0 right-0 flex items-center pr-2">{isLoading ? <RiLoader4Line className='h-3.5 w-3.5 animate-spin text-text-secondary' />- : (selectedItem && !notClearable)- ? (- <XMarkIcon- onClick={(e) => {- e.stopPropagation()- setSelectedItem(null)- onSelect({ name: '', value: '' })- }}- className="h-4 w-4 cursor-pointer text-text-quaternary"- aria-hidden="false"- />- )- : (- open ? (- <ChevronUpIcon- className="h-4 w-4 text-text-quaternary group-hover/simple-select:text-text-secondary"- aria-hidden="true"- />- ) : (- <ChevronDownIcon- className="h-4 w-4 text-text-quaternary group-hover/simple-select:text-text-secondary"- aria-hidden="true"+ : (selectedItem && !notClearable)+ ? (+ <XMarkIcon+ onClick={(e) => {+ e.stopPropagation()+ setSelectedItem(null)+ onSelect({ name: '', value: '' })+ }}+ className="h-4 w-4 cursor-pointer text-text-quaternary"+ aria-hidden="false"/>)- )}+ : (+ open ? (+ <ChevronUpIcon+ className="h-4 w-4 text-text-quaternary group-hover/simple-select:text-text-secondary"+ aria-hidden="true"+ />+ ) : (+ <ChevronDownIcon+ className="h-4 w-4 text-text-quaternary group-hover/simple-select:text-text-secondary"+ aria-hidden="true"+ />+ )+ )}</span></ListboxButton>)}diff --git a/web/app/components/base/tag-management/selector.tsx b/web/app/components/base/tag-management/selector.tsxindex 53598654b41..e1db2fd9561 100644--- a/web/app/components/base/tag-management/selector.tsx+++ b/web/app/components/base/tag-management/selector.tsx@@ -226,7 +226,7 @@ const TagSelector: FC<TagSelectorProps> = ({const res = await fetchTagList(type)setTagList(res)}- catch (error) {+ catch (error) {setTagList([])}}diff --git a/web/app/components/base/toast/index.tsx b/web/app/components/base/toast/index.tsxindex 245f709143b..0e0e8613b7b 100644--- a/web/app/components/base/toast/index.tsx+++ b/web/app/components/base/toast/index.tsx@@ -60,7 +60,7 @@ const Toast = ({|| (type === 'warning' && 'bg-toast-warning-bg')|| (type === 'error' && 'bg-toast-error-bg')|| (type === 'info' && 'bg-toast-info-bg')- }`}+ }`}/><div className={`flex ${size === 'md' ? 'gap-1' : 'gap-0.5'}`}><div className={`flex items-center justify-center ${size === 'md' ? 'p-0.5' : 'p-1'}`}>diff --git a/web/app/components/datasets/common/retrieval-param-config/index.tsx b/web/app/components/datasets/common/retrieval-param-config/index.tsxindex 97e0a7f303a..fc70ca0d895 100644--- a/web/app/components/datasets/common/retrieval-param-config/index.tsx+++ b/web/app/components/datasets/common/retrieval-param-config/index.tsx@@ -61,7 +61,6 @@ const RetrievalParamConfig: FC<Props> = ({...value,reranking_enable: enable,})- // eslint-disable-next-line react-hooks/exhaustive-deps}, [currentModel, onChange, value])const rerankModel = useMemo(() => {diff --git a/web/app/components/datasets/create/website/base/options-wrap.tsx b/web/app/components/datasets/create/website/base/options-wrap.tsxindex 8e9181b8e9e..f17a546203b 100644--- a/web/app/components/datasets/create/website/base/options-wrap.tsx+++ b/web/app/components/datasets/create/website/base/options-wrap.tsx@@ -29,7 +29,6 @@ const OptionsWrap: FC<Props> = ({useEffect(() => {if (controlFoldOptions)foldHide()- // eslint-disable-next-line react-hooks/exhaustive-deps}, [controlFoldOptions])return (<div className={cn(className, !fold ? 'mb-0' : 'mb-3')}>diff --git a/web/app/components/datasets/create/website/index.tsx b/web/app/components/datasets/create/website/index.tsxindex e2d0e2df993..cd2e2a14fa5 100644--- a/web/app/components/datasets/create/website/index.tsx+++ b/web/app/components/datasets/create/website/index.tsx@@ -64,7 +64,6 @@ const Website: FC<Props> = ({checkSetApiKey().then(() => {setIsLoaded(true)})- // eslint-disable-next-line react-hooks/exhaustive-deps}, [])const handleOnConfig = useCallback(() => {setShowAccountSettingModal({@@ -97,7 +96,7 @@ const Website: FC<Props> = ({<span className={cn(s.jinaLogo, 'mr-2')}/><span>Jina Reader</span></button>}- {ENABLE_WEBSITE_FIRECRAWL && <button+ {ENABLE_WEBSITE_FIRECRAWL && <buttonclassName={cn('rounded-lg px-4 py-2',selectedProvider === DataSourceProvider.fireCrawl? 'system-sm-medium border-[1.5px] border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg text-text-primary'diff --git a/web/app/components/datasets/create/website/jina-reader/base/options-wrap.tsx b/web/app/components/datasets/create/website/jina-reader/base/options-wrap.tsxindex a5fa6871cbf..02b1cadb0a3 100644--- a/web/app/components/datasets/create/website/jina-reader/base/options-wrap.tsx+++ b/web/app/components/datasets/create/website/jina-reader/base/options-wrap.tsx@@ -29,7 +29,6 @@ const OptionsWrap: FC<Props> = ({useEffect(() => {if (controlFoldOptions)foldHide()- // eslint-disable-next-line react-hooks/exhaustive-deps}, [controlFoldOptions])return (<div className={cn(className, !fold ? 'mb-0' : 'mb-3')}>diff --git a/web/app/components/datasets/documents/detail/batch-modal/csv-uploader.tsx b/web/app/components/datasets/documents/detail/batch-modal/csv-uploader.tsxindex c352f11d7ff..aaf9ed8ffda 100644--- a/web/app/components/datasets/documents/detail/batch-modal/csv-uploader.tsx+++ b/web/app/components/datasets/documents/detail/batch-modal/csv-uploader.tsx@@ -161,7 +161,7 @@ const CSVUploader: FC<Props> = ({const fileChangeHandle = (e: React.ChangeEvent<HTMLInputElement>) => {const currentFile = e.target.files?.[0]if (!isValid(currentFile))- return+ returninitialUpload(currentFile)}diff --git a/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx b/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsxindex 336e5dbb429..8e37c5d1b89 100644--- a/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx+++ b/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx@@ -24,9 +24,9 @@ const InfoPanel = () => {{t('dataset.connectDatasetIntro.content.end')}</span><a className='system-sm-regular self-stretch text-text-accent'- href={docLink('/guides/knowledge-base/connect-external-knowledge-base')}- target='_blank'- rel="noopener noreferrer">+ href={docLink('/guides/knowledge-base/connect-external-knowledge-base')}+ target='_blank'+ rel="noopener noreferrer">{t('dataset.connectDatasetIntro.learnMore')}</a></p>diff --git a/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx b/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsxindex 71c5edb21a6..33cff979c80 100644--- a/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx+++ b/web/app/components/datasets/hit-testing/components/chunk-detail-modal.tsx@@ -69,13 +69,13 @@ const ChunkDetailModal: FC<Props> = ({<div><div className='flex gap-x-1'><div className='w-4 shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary'>Q</div>- <div className={cn('body-md-regular text-text-secondary line-clamp-20')}>+ <div className={cn('body-md-regular line-clamp-20 text-text-secondary')}>{content}</div></div><div className='flex gap-x-1'><div className='w-4 shrink-0 text-[13px] font-medium leading-[20px] text-text-tertiary'>A</div>- <div className={cn('body-md-regular text-text-secondary line-clamp-20')}>+ <div className={cn('body-md-regular line-clamp-20 text-text-secondary')}>{answer}</div></div>diff --git a/web/app/components/datasets/metadata/hooks/use-edit-dataset-metadata.ts b/web/app/components/datasets/metadata/hooks/use-edit-dataset-metadata.tsindex dd1cd0f6964..779cd05e19e 100644--- a/web/app/components/datasets/metadata/hooks/use-edit-dataset-metadata.ts+++ b/web/app/components/datasets/metadata/hooks/use-edit-dataset-metadata.ts@@ -28,7 +28,6 @@ const useEditDatasetMetadata = ({showEditModal()localStorage.removeItem(isShowManageMetadataLocalStorageKey)}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [])const { data: datasetMetaData } = useDatasetMetaData(datasetId)diff --git a/web/app/components/goto-anything/actions/commands/registry.ts b/web/app/components/goto-anything/actions/commands/registry.tsindex 192bf6c7396..3632db323e3 100644--- a/web/app/components/goto-anything/actions/commands/registry.ts+++ b/web/app/components/goto-anything/actions/commands/registry.ts@@ -132,7 +132,7 @@ export class SlashCommandRegistry {try {return await handler.search(args, locale)}- catch (error) {+ catch (error) {console.warn(`Command search failed for ${commandName}:`, error)return []}@@ -144,7 +144,7 @@ export class SlashCommandRegistry {try {return await handler.search(args, locale)}- catch (error) {+ catch (error) {console.warn(`Command search failed for ${handler.name}:`, error)return []}diff --git a/web/app/components/goto-anything/actions/index.ts b/web/app/components/goto-anything/actions/index.tsindex e0e2b3e08e5..92ee22f9ec9 100644--- a/web/app/components/goto-anything/actions/index.ts+++ b/web/app/components/goto-anything/actions/index.ts@@ -205,7 +205,7 @@ export const searchAnything = async (const results = await action.search(query, query, locale)return { success: true, data: results, actionType: action.key }}- catch (error) {+ catch (error) {console.warn(`Search failed for ${action.key}:`, error)return { success: false, data: [], actionType: action.key, error }}@@ -220,7 +220,7 @@ export const searchAnything = async (if (result.status === 'fulfilled' && result.value.success) {allResults.push(...result.value.data)}- else {+ else {const actionKey = globalSearchActions[index]?.key || 'unknown'failedActions.push(actionKey)}diff --git a/web/app/components/goto-anything/index.tsx b/web/app/components/goto-anything/index.tsxindex a8d474b9705..cd883ac2160 100644--- a/web/app/components/goto-anything/index.tsx+++ b/web/app/components/goto-anything/index.tsx@@ -166,7 +166,7 @@ const GotoAnything: FC<Props> = ({acc[result.type].push(result)return acc}, {} as { [key: string]: SearchResult[] }),- [searchResults])+ [searchResults])const emptyResult = useMemo(() => {if (searchResults.length || !searchQuery.trim() || isLoading || isCommandsMode)diff --git a/web/app/components/header/account-setting/data-source-page/data-source-website/index.tsx b/web/app/components/header/account-setting/data-source-page/data-source-website/index.tsxindex 911bf01c099..d2faa1dd6ab 100644--- a/web/app/components/header/account-setting/data-source-page/data-source-website/index.tsx+++ b/web/app/components/header/account-setting/data-source-page/data-source-website/index.tsx@@ -32,7 +32,6 @@ const DataSourceWebsite: FC<Props> = ({ provider }) => {useEffect(() => {checkSetApiKey()- // eslint-disable-next-line react-hooks/exhaustive-deps}, [])const [configTarget, setConfigTarget] = useState<DataSourceProvider | null>(null)diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsxindex 64e631614d0..a0c78e32923 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsx@@ -60,9 +60,9 @@ const AddCredentialInLoadBalancing = ({asChildpopupContent={t('plugin.auth.credentialUnavailable')}>- {Item}- </Tooltip>- )+ {Item}+ </Tooltip>+ )}return Item}, [notAllowCustomCredential, t, customModel])diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsxindex 3e7c04a0f28..2aa64ffb89d 100644--- a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx+++ b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx@@ -176,11 +176,11 @@ const Authorized = ({onClick={() => handleEdit(undefined,currentCustomConfigurationModelFixedFields- ? {- model: currentCustomConfigurationModelFixedFields.__model_name,- model_type: currentCustomConfigurationModelFixedFields.__model_type,- }- : undefined,+ ? {+ model: currentCustomConfigurationModelFixedFields.__model_name,+ model_type: currentCustomConfigurationModelFixedFields.__model_type,+ }+ : undefined,)}className='system-xs-medium flex h-[30px] cursor-pointer items-center px-3 text-text-accent-light-mode-only'>diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsxindex 1d6db30c4c8..cbd19c7caeb 100644--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx@@ -200,8 +200,8 @@ const ModelLoadBalancingModal = ({<div className='grow'><div className='text-sm text-text-secondary'>{providerFormSchemaPredefined- ? t('common.modelProvider.auth.providerManaged')- : t('common.modelProvider.auth.specifyModelCredential')+ ? t('common.modelProvider.auth.providerManaged')+ : t('common.modelProvider.auth.specifyModelCredential')}</div><div className='text-xs text-text-tertiary'>{providerFormSchemaPredefineddiff --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.tsxindex 48f0bff3c75..a298909a7f9 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<Props> = ({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 <Loading />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.tsxindex ee45520a61e..2691877a077 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<ExposeRefs, Props> = ({if (failedIndex.length > 0)setErrorIndexes([...errorIndexes, ...failedIndex])}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [isFetchingMarketplaceDataById])useEffect(() => {@@ -156,15 +155,12 @@ const InstallByDSLList: ForwardRefRenderFunction<ExposeRefs, Props> = ({if (failedIndex.length > 0)setErrorIndexes([...errorIndexes, ...failedIndex])}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [isFetchingDataByMeta])useEffect(() => {// get info all failedif (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<ExposeRefs, Props> = ({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/plugins/install-plugin/install-from-github/steps/loaded.tsx b/web/app/components/plugins/install-plugin/install-from-github/steps/loaded.tsxindex 0764f03ae5d..c544d5dc907 100644--- a/web/app/components/plugins/install-plugin/install-from-github/steps/loaded.tsx+++ b/web/app/components/plugins/install-plugin/install-from-github/steps/loaded.tsx@@ -61,7 +61,6 @@ const Loaded: React.FC<LoadedProps> = ({useEffect(() => {if (hasInstalled && uniqueIdentifier === installedInfoPayload.uniqueIdentifier)onInstalled()- // eslint-disable-next-line react-hooks/exhaustive-deps}, [hasInstalled])const handleInstall = async () => {diff --git a/web/app/components/plugins/install-plugin/install-from-local-package/steps/uploading.tsx b/web/app/components/plugins/install-plugin/install-from-local-package/steps/uploading.tsxindex 5b1c478d9bb..a72b40bb271 100644--- a/web/app/components/plugins/install-plugin/install-from-local-package/steps/uploading.tsx+++ b/web/app/components/plugins/install-plugin/install-from-local-package/steps/uploading.tsx@@ -55,7 +55,6 @@ const Uploading: FC<Props> = ({React.useEffect(() => {handleUpload()- // eslint-disable-next-line react-hooks/exhaustive-deps}, [])return (<>diff --git a/web/app/components/plugins/marketplace/context.tsx b/web/app/components/plugins/marketplace/context.tsxindex 91621afaf85..248e035c1bb 100644--- a/web/app/components/plugins/marketplace/context.tsx+++ b/web/app/components/plugins/marketplace/context.tsx@@ -175,7 +175,6 @@ export const MarketplaceContextProvider = ({})}}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [queryPlugins, queryMarketplaceCollectionsAndPlugins, isSuccess, exclude])const handleQueryMarketplaceCollectionsAndPlugins = useCallback(() => {diff --git a/web/app/components/plugins/plugin-auth/authorized/index.tsx b/web/app/components/plugins/plugin-auth/authorized/index.tsxindex d0bef8d11db..13265488c43 100644--- a/web/app/components/plugins/plugin-auth/authorized/index.tsx+++ b/web/app/components/plugins/plugin-auth/authorized/index.tsx@@ -155,9 +155,9 @@ const Authorized = ({}, [setPluginDefaultCredential, onUpdate, notify, t, handleSetDoingAction])const { mutateAsync: updatePluginCredential } = useUpdatePluginCredentialHook(pluginPayload)const handleRename = useCallback(async (payload: {- credential_id: string- name: string- }) => {+ credential_id: string+ name: string+ }) => {if (doingActionRef.current)returntry {@@ -306,17 +306,17 @@ const Authorized = ({!notAllowCustomCredential && (<><div className='h-[1px] bg-divider-subtle'></div>- <div className='p-2'>- <Authorize- pluginPayload={pluginPayload}- theme='secondary'- showDivider={false}- canOAuth={canOAuth}- canApiKey={canApiKey}- disabled={disabled}- onUpdate={onUpdate}- />- </div>+ <div className='p-2'>+ <Authorize+ pluginPayload={pluginPayload}+ theme='secondary'+ showDivider={false}+ canOAuth={canOAuth}+ canApiKey={canApiKey}+ disabled={disabled}+ onUpdate={onUpdate}+ />+ </div></>)}diff --git a/web/app/components/plugins/plugin-auth/hooks/use-plugin-auth-action.ts b/web/app/components/plugins/plugin-auth/hooks/use-plugin-auth-action.tsindex fe4ab014ef2..1dc2f00ec2b 100644--- a/web/app/components/plugins/plugin-auth/hooks/use-plugin-auth-action.ts+++ b/web/app/components/plugins/plugin-auth/hooks/use-plugin-auth-action.ts@@ -87,9 +87,9 @@ export const usePluginAuthAction = (}, [setPluginDefaultCredential, onUpdate, notify, t, handleSetDoingAction])const { mutateAsync: updatePluginCredential } = useUpdatePluginCredentialHook(pluginPayload)const handleRename = useCallback(async (payload: {- credential_id: string- name: string- }) => {+ credential_id: string+ name: string+ }) => {if (doingActionRef.current)returntry {diff --git a/web/app/components/plugins/plugin-detail-panel/app-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/app-selector/index.tsxindex 9c16c66a700..c2d5b76de56 100644--- a/web/app/components/plugins/plugin-detail-panel/app-selector/index.tsx+++ b/web/app/components/plugins/plugin-detail-panel/app-selector/index.tsx@@ -97,7 +97,7 @@ const AppSelector: FC<Props> = ({try {await setSize((size: number) => size + 1)}- finally {+ finally {// Add a small delay to ensure state updates are completesetTimeout(() => {setIsLoadingMore(false)diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header.tsxindex 3f03a632efd..318d1112bbf 100644--- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx+++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx@@ -61,7 +61,7 @@ const DetailHeader = ({onUpdate,}: Props) => {const { t } = useTranslation()- const { userProfile: { timezone } } = useAppContext()+ const { userProfile: { timezone } } = useAppContext()const { theme } = useTheme()const locale = useGetLanguage()diff --git a/web/app/components/plugins/plugin-detail-panel/endpoint-modal.tsx b/web/app/components/plugins/plugin-detail-panel/endpoint-modal.tsxindex a715237a43b..3041f13f2fb 100644--- a/web/app/components/plugins/plugin-detail-panel/endpoint-modal.tsx+++ b/web/app/components/plugins/plugin-detail-panel/endpoint-modal.tsx@@ -55,9 +55,9 @@ const EndpointModal: FC<Props> = ({const value = processedCredential[field.name]if (typeof value === 'string')processedCredential[field.name] = value === 'true' || value === '1' || value === 'True'- else if (typeof value === 'number')+ else if (typeof value === 'number')processedCredential[field.name] = value === 1- else if (typeof value === 'boolean')+ else if (typeof value === 'boolean')processedCredential[field.name] = value}})diff --git a/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsxindex 44212e38edb..c92b9d171ad 100644--- a/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx+++ b/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx@@ -45,7 +45,7 @@ const MultipleToolSelector = ({canChooseMCPTool,}: Props) => {const { t } = useTranslation()- const { data: mcpTools } = useAllMCPTools()+ const { data: mcpTools } = useAllMCPTools()const enabledCount = value.filter((item) => {const isMCPTool = mcpTools?.find(tool => tool.id === item.provider_name)if(isMCPTool)diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsxindex 6de83603a49..b0b8a45f3d1 100644--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx@@ -222,12 +222,12 @@ const ReasoningConfigForm: React.FC<Props> = ({{t('workflow.nodes.agent.clickToViewParameterSchema')}</div>}asChild={false}>- <div- className='ml-0.5 cursor-pointer rounded-[4px] p-px text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary'- onClick={() => showSchema(input_schema as SchemaRoot, label[language] || label.en_US)}- >- <RiBracesLine className='size-3.5'/>- </div>+ <div+ className='ml-0.5 cursor-pointer rounded-[4px] p-px text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary'+ onClick={() => showSchema(input_schema as SchemaRoot, label[language] || label.en_US)}+ >+ <RiBracesLine className='size-3.5'/>+ </div></Tooltip>)}diff --git a/web/app/components/plugins/plugin-item/action.tsx b/web/app/components/plugins/plugin-item/action.tsxindex 21c17642076..6d7ff388ea0 100644--- a/web/app/components/plugins/plugin-item/action.tsx+++ b/web/app/components/plugins/plugin-item/action.tsx@@ -98,7 +98,6 @@ const Action: FC<Props> = ({hideDeleteConfirm()onDelete()}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [installationId, onDelete])return (<div className='flex space-x-1'>diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsxindex a4875fc11b5..2d00788142a 100644--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx@@ -101,19 +101,19 @@ const AutoUpdateSetting: FC<Props> = ({const renderTimePickerTrigger = useCallback(({ inputElem, onClick, isOpen }: TriggerParams) => {return (- <div- className='group float-right flex h-8 w-[160px] cursor-pointer items-center justify-between rounded-lg bg-components-input-bg-normal px-2 hover:bg-state-base-hover-alt'- onClick={onClick}- >- <div className='flex w-0 grow items-center gap-x-1'>- <RiTimeLine className={cn(- 'h-4 w-4 shrink-0 text-text-tertiary',- isOpen ? 'text-text-secondary' : 'group-hover:text-text-secondary',- )} />- {inputElem}- </div>- <div className='system-sm-regular text-text-tertiary'>{convertTimezoneToOffsetStr(timezone)}</div>+ <div+ className='group float-right flex h-8 w-[160px] cursor-pointer items-center justify-between rounded-lg bg-components-input-bg-normal px-2 hover:bg-state-base-hover-alt'+ onClick={onClick}+ >+ <div className='flex w-0 grow items-center gap-x-1'>+ <RiTimeLine className={cn(+ 'h-4 w-4 shrink-0 text-text-tertiary',+ isOpen ? 'text-text-secondary' : 'group-hover:text-text-secondary',+ )} />+ {inputElem}</div>+ <div className='system-sm-regular text-text-tertiary'>{convertTimezoneToOffsetStr(timezone)}</div>+ </div>)}, [timezone])diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/utils.ts b/web/app/components/plugins/reference-setting-modal/auto-update-setting/utils.tsindex 23c067285f7..3c677dfeefe 100644--- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/utils.ts+++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/utils.ts@@ -28,10 +28,10 @@ export const dayjsToTimeOfDay = (date?: Dayjs): number => {}export const convertUTCDaySecondsToLocalSeconds = (utcDaySeconds: number, localTimezone: string): number => {- const utcDayStart = dayjs().utc().startOf('day')- const utcTargetTime = utcDayStart.add(utcDaySeconds, 'second')- const localTargetTime = utcTargetTime.tz(localTimezone)- const localDayStart = localTargetTime.startOf('day')- const secondsInLocalDay = localTargetTime.diff(localDayStart, 'second')- return secondsInLocalDay+ const utcDayStart = dayjs().utc().startOf('day')+ const utcTargetTime = utcDayStart.add(utcDaySeconds, 'second')+ const localTargetTime = utcTargetTime.tz(localTimezone)+ const localDayStart = localTargetTime.startOf('day')+ const secondsInLocalDay = localTargetTime.diff(localDayStart, 'second')+ return secondsInLocalDay}diff --git a/web/app/components/plugins/update-plugin/downgrade-warning.tsx b/web/app/components/plugins/update-plugin/downgrade-warning.tsxindex a5f6e40e41e..beb64793a07 100644--- a/web/app/components/plugins/update-plugin/downgrade-warning.tsx+++ b/web/app/components/plugins/update-plugin/downgrade-warning.tsx@@ -20,7 +20,7 @@ const DowngradeWarningModal = ({<div className='flex flex-col items-start gap-2 self-stretch'><div className='title-2xl-semi-bold text-text-primary'>{t(`${i18nPrefix}.title`)}</div><div className='system-md-regular text-text-secondary'>- {t(`${i18nPrefix}.description`)}+ {t(`${i18nPrefix}.description`)}</div></div><div className='mt-9 flex items-start justify-end space-x-2 self-stretch'>diff --git a/web/app/components/plugins/update-plugin/from-market-place.tsx b/web/app/components/plugins/update-plugin/from-market-place.tsxindex 70bc7399f53..fd15d923be1 100644--- a/web/app/components/plugins/update-plugin/from-market-place.tsx+++ b/web/app/components/plugins/update-plugin/from-market-place.tsx@@ -136,47 +136,47 @@ const UpdatePluginModal: FC<Props> = ({onExcludeAndDowngrade={handleExcludeAndDownload}/>)}- {!doShowDowngradeWarningModal && (- <>- <div className='system-md-regular mb-2 mt-3 text-text-secondary'>- {t(`${i18nPrefix}.description`)}- </div>- <div className='flex flex-wrap content-start items-start gap-1 self-stretch rounded-2xl bg-background-section-burn p-2'>- <Card- installed={uploadStep === UploadStep.installed}- payload={pluginManifestToCardPluginProps({- ...originalPackageInfo.payload,- icon: icon!,- })}- className='w-full'- titleLeft={- <>- <Badge className='mx-1' size="s" state={BadgeState.Warning}>- {`${originalPackageInfo.payload.version} -> ${targetPackageInfo.version}`}- </Badge>- </>- }- />- </div>- <div className='flex items-center justify-end gap-2 self-stretch pt-5'>- {uploadStep === UploadStep.notStarted && (+ {!doShowDowngradeWarningModal && (+ <>+ <div className='system-md-regular mb-2 mt-3 text-text-secondary'>+ {t(`${i18nPrefix}.description`)}+ </div>+ <div className='flex flex-wrap content-start items-start gap-1 self-stretch rounded-2xl bg-background-section-burn p-2'>+ <Card+ installed={uploadStep === UploadStep.installed}+ payload={pluginManifestToCardPluginProps({+ ...originalPackageInfo.payload,+ icon: icon!,+ })}+ className='w-full'+ titleLeft={+ <>+ <Badge className='mx-1' size="s" state={BadgeState.Warning}>+ {`${originalPackageInfo.payload.version} -> ${targetPackageInfo.version}`}+ </Badge>+ </>+ }+ />+ </div>+ <div className='flex items-center justify-end gap-2 self-stretch pt-5'>+ {uploadStep === UploadStep.notStarted && (+ <Button+ onClick={handleCancel}+ >+ {t('common.operation.cancel')}+ </Button>+ )}<Button- onClick={handleCancel}+ variant='primary'+ loading={uploadStep === UploadStep.upgrading}+ onClick={handleConfirm}+ disabled={uploadStep === UploadStep.upgrading}>- {t('common.operation.cancel')}+ {configBtnText}</Button>- )}- <Button- variant='primary'- loading={uploadStep === UploadStep.upgrading}- onClick={handleConfirm}- disabled={uploadStep === UploadStep.upgrading}- >- {configBtnText}- </Button>- </div>- </>- )}+ </div>+ </>+ )}</Modal>)diff --git a/web/app/components/tools/mcp/detail/content.tsx b/web/app/components/tools/mcp/detail/content.tsxindex 3f927b990d9..965b270bdab 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<Props> = ({useEffect(() => {if (isTriggerAuthorize)handleAuthorize()- // eslint-disable-next-line react-hooks/exhaustive-deps}, [])if (!detail)diff --git a/web/app/components/tools/mcp/mcp-service-card.tsx b/web/app/components/tools/mcp/mcp-service-card.tsxindex 301bb668974..6c86932b327 100644--- a/web/app/components/tools/mcp/mcp-service-card.tsx+++ b/web/app/components/tools/mcp/mcp-service-card.tsx@@ -209,9 +209,9 @@ function MCPServiceCard({><div className="flex items-center justify-center gap-[1px]">- <RiEditLine className="h-3.5 w-3.5" />- <div className="system-xs-medium px-[3px] text-text-tertiary">{serverPublished ? t('tools.mcp.server.edit') : t('tools.mcp.server.addDescription')}</div>- </div>+ <RiEditLine className="h-3.5 w-3.5" />+ <div className="system-xs-medium px-[3px] text-text-tertiary">{serverPublished ? t('tools.mcp.server.edit') : t('tools.mcp.server.addDescription')}</div>+ </div></Button></div></div>diff --git a/web/app/components/tools/utils/to-form-schema.ts b/web/app/components/tools/utils/to-form-schema.tsindex dd3c5c22b49..cc17579d029 100644--- a/web/app/components/tools/utils/to-form-schema.ts+++ b/web/app/components/tools/utils/to-form-schema.ts@@ -70,9 +70,9 @@ export const addDefaultValue = (value: Record<string, any>, formSchemas: { variaif (formSchema.type === 'boolean' && itemValue !== undefined && itemValue !== null && itemValue !== '') {if (typeof itemValue === 'string')newValues[formSchema.variable] = itemValue === 'true' || itemValue === '1' || itemValue === 'True'- else if (typeof itemValue === 'number')+ else if (typeof itemValue === 'number')newValues[formSchema.variable] = itemValue === 1- else if (typeof itemValue === 'boolean')+ else if (typeof itemValue === 'boolean')newValues[formSchema.variable] = itemValue}})@@ -162,13 +162,13 @@ export const getConfiguredValue = (value: Record<string, any>, formSchemas: { va}const getVarKindType = (type: FormTypeEnum) => {- if (type === FormTypeEnum.file || type === FormTypeEnum.files)- return VarKindType.variable- if (type === FormTypeEnum.select || type === FormTypeEnum.boolean || type === FormTypeEnum.textNumber)- return VarKindType.constant- if (type === FormTypeEnum.textInput || type === FormTypeEnum.secretInput)- return VarKindType.mixed- }+ if (type === FormTypeEnum.file || type === FormTypeEnum.files)+ return VarKindType.variable+ if (type === FormTypeEnum.select || type === FormTypeEnum.boolean || type === FormTypeEnum.textNumber)+ return VarKindType.constant+ if (type === FormTypeEnum.textInput || type === FormTypeEnum.secretInput)+ return VarKindType.mixed+}export const generateAgentToolValue = (value: Record<string, any>, formSchemas: { variable: string; default?: any; type: string }[], isReasoning = false) => {const newValues = {} as anydiff --git a/web/app/components/workflow-app/hooks/use-workflow-init.ts b/web/app/components/workflow-app/hooks/use-workflow-init.tsindex 6d16dc5c440..d63c5ca7b95 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.tsxindex 870d791d4f3..f155b644a1c 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<ListRef>(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.tsxindex 4e64929582d..56ee420cfff 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<Props> = ({downloadFile({ data: blob, fileName })setNeedDownload(false)}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [blob])return (<PortalToFollowElemdiff --git a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx b/web/app/components/workflow/block-selector/market-place-plugin/list.tsxindex dce877ab918..98b799adf4d 100644--- a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx+++ b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx@@ -56,7 +56,6 @@ const List = forwardRef<ListRef, ListProps>(({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.tsxindex 83ae062737b..e0da011d2af 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<Props> = ({}if (!hasSearchText && !isFold)setFold(true)- // eslint-disable-next-line react-hooks/exhaustive-deps}, [hasSearchText])const FoldIcon = isFold ? RiArrowRightSLine : RiArrowDownSLinediff --git a/web/app/components/workflow/datasets-detail-store/provider.tsx b/web/app/components/workflow/datasets-detail-store/provider.tsxindex 7d6ede823a6..1f5749bc3c0 100644--- a/web/app/components/workflow/datasets-detail-store/provider.tsx+++ b/web/app/components/workflow/datasets-detail-store/provider.tsx@@ -40,7 +40,6 @@ const DatasetsDetailProvider: FC<DatasetsDetailProviderProps> = ({}, [])if (allDatasetIds.length === 0) returnupdateDatasetsDetail(allDatasetIds)- // eslint-disable-next-line react-hooks/exhaustive-deps}, [])return (diff --git a/web/app/components/workflow/header/header-in-restoring.tsx b/web/app/components/workflow/header/header-in-restoring.tsxindex da436336ecf..ff8c74d98de 100644--- a/web/app/components/workflow/header/header-in-restoring.tsx+++ b/web/app/components/workflow/header/header-in-restoring.tsx@@ -82,26 +82,26 @@ const HeaderInRestoring = ({<RestoringTitle /></div><div className=' flex items-center justify-end gap-x-2'>- <Button- onClick={handleRestore}- disabled={!currentVersion || currentVersion.version === WorkflowVersion.Draft}- variant='primary'- className={cn(- theme === 'dark' && 'rounded-lg border border-black/5 bg-white/10 backdrop-blur-sm',- )}- >- {t('workflow.common.restore')}- </Button>- <Button- onClick={handleCancelRestore}- className={cn(- 'text-components-button-secondary-accent-text',- theme === 'dark' && 'rounded-lg border border-black/5 bg-white/10 backdrop-blur-sm',- )}- >- <div className='flex items-center gap-x-0.5'>- <RiHistoryLine className='h-4 w-4' />- <span className='px-0.5'>{t('workflow.common.exitVersions')}</span>+ <Button+ onClick={handleRestore}+ disabled={!currentVersion || currentVersion.version === WorkflowVersion.Draft}+ variant='primary'+ className={cn(+ theme === 'dark' && 'rounded-lg border border-black/5 bg-white/10 backdrop-blur-sm',+ )}+ >+ {t('workflow.common.restore')}+ </Button>+ <Button+ onClick={handleCancelRestore}+ className={cn(+ 'text-components-button-secondary-accent-text',+ theme === 'dark' && 'rounded-lg border border-black/5 bg-white/10 backdrop-blur-sm',+ )}+ >+ <div className='flex items-center gap-x-0.5'>+ <RiHistoryLine className='h-4 w-4' />+ <span className='px-0.5'>{t('workflow.common.exitVersions')}</span></div></Button></div>diff --git a/web/app/components/workflow/header/version-history-button.tsx b/web/app/components/workflow/header/version-history-button.tsxindex 0dee845b555..0de10d94f32 100644--- a/web/app/components/workflow/header/version-history-button.tsx+++ b/web/app/components/workflow/header/version-history-button.tsx@@ -49,7 +49,7 @@ const VersionHistoryButton: FC<VersionHistoryButtonProps> = ({e.preventDefault()handleViewVersionHistory()},- { exactMatch: true, useCapture: true })+ { exactMatch: true, useCapture: true })return <TooltippopupContent={<PopupContent />}@@ -57,15 +57,15 @@ const VersionHistoryButton: FC<VersionHistoryButtonProps> = ({popupClassName='rounded-lg border-[0.5px] border-components-panel-border bg-components-tooltip-bgshadow-lg shadow-shadow-shadow-5 backdrop-blur-[5px] p-1.5'>- <Button- className={cn(- 'p-2',- theme === 'dark' && 'rounded-lg border border-black/5 bg-white/10 backdrop-blur-sm',- )}- onClick={handleViewVersionHistory}- >- <RiHistoryLine className='h-4 w-4 text-components-button-secondary-text' />- </Button>+ <Button+ className={cn(+ 'p-2',+ theme === 'dark' && 'rounded-lg border border-black/5 bg-white/10 backdrop-blur-sm',+ )}+ onClick={handleViewVersionHistory}+ >+ <RiHistoryLine className='h-4 w-4 text-components-button-secondary-text' />+ </Button></Tooltip>}diff --git a/web/app/components/workflow/hooks-store/provider.tsx b/web/app/components/workflow/hooks-store/provider.tsxindex c1090ae3f80..82336640042 100644--- a/web/app/components/workflow/hooks-store/provider.tsx+++ b/web/app/components/workflow/hooks-store/provider.tsx@@ -22,7 +22,6 @@ export const HooksStoreContextProvider = ({ children, ...restProps }: HooksStoreuseEffect(() => {if (storeRef.current && d3Selection && d3Zoom)storeRef.current.getState().refreshAll(restProps)- // eslint-disable-next-line react-hooks/exhaustive-deps}, [d3Selection, d3Zoom])if (!storeRef.current)diff --git a/web/app/components/workflow/hooks/use-inspect-vars-crud-common.ts b/web/app/components/workflow/hooks/use-inspect-vars-crud-common.tsindex ffcfd816666..8bcd754961f 100644--- a/web/app/components/workflow/hooks/use-inspect-vars-crud-common.ts+++ b/web/app/components/workflow/hooks/use-inspect-vars-crud-common.ts@@ -54,9 +54,9 @@ export const useInspectVarsCrudCommon = ({if (!node)return undefinedconst varId = node.vars.find((varItem) => {- return varItem.selector[1] === varName- })?.id- return varId+ return varItem.selector[1] === varName+ })?.id+ return varId}, [getNodeInspectVars])const getInspectVar = useCallback((nodeId: string, name: string): VarInInspect | undefined => {@@ -71,16 +71,16 @@ export const useInspectVarsCrudCommon = ({}, [getNodeInspectVars])const hasSetInspectVar = useCallback((nodeId: string, name: string, sysVars: VarInInspect[], conversationVars: VarInInspect[]) => {- const isEnv = isENV([nodeId])- if (isEnv) // always have value- return true- const isSys = isSystemVar([nodeId])- if (isSys)- return sysVars.some(varItem => varItem.selector?.[1]?.replace('sys.', '') === name)- const isChatVar = isConversationVar([nodeId])- if (isChatVar)- return conversationVars.some(varItem => varItem.selector?.[1] === name)- return getInspectVar(nodeId, name) !== undefined+ const isEnv = isENV([nodeId])+ if (isEnv) // always have value+ return true+ const isSys = isSystemVar([nodeId])+ if (isSys)+ return sysVars.some(varItem => varItem.selector?.[1]?.replace('sys.', '') === name)+ const isChatVar = isConversationVar([nodeId])+ if (isChatVar)+ return conversationVars.some(varItem => varItem.selector?.[1] === name)+ return getInspectVar(nodeId, name) !== undefined}, [getInspectVar])const hasNodeInspectVars = useCallback((nodeId: string) => {@@ -115,23 +115,23 @@ export const useInspectVarsCrudCommon = ({} = workflowStore.getState()const nodes = produce(nodesWithInspectVars, (draft) => {const nodeInfo = allNodes.find(node => node.id === nodeId)- if (nodeInfo) {- const index = draft.findIndex(node => node.nodeId === nodeId)- if (index === -1) {- draft.unshift({- nodeId,- nodeType: nodeInfo.data.type,- title: nodeInfo.data.title,- vars: payload,- nodePayload: nodeInfo.data,- })- }- else {- draft[index].vars = payload+ if (nodeInfo) {+ const index = draft.findIndex(node => node.nodeId === nodeId)+ if (index === -1) {+ draft.unshift({+ nodeId,+ nodeType: nodeInfo.data.type,+ title: nodeInfo.data.title,+ vars: payload,+ nodePayload: nodeInfo.data,+ })+ }+ else {+ draft[index].vars = payload// put the node to the topAdd commentMore actions- draft.unshift(draft.splice(index, 1)[0])- }+ draft.unshift(draft.splice(index, 1)[0])}+ }})setNodesWithInspectVars(nodes)handleCancelNodeSuccessStatus(nodeId)diff --git a/web/app/components/workflow/hooks/use-nodes-available-var-list.ts b/web/app/components/workflow/hooks/use-nodes-available-var-list.tsindex 5efe2519ef1..e6df5468902 100644--- a/web/app/components/workflow/hooks/use-nodes-available-var-list.ts+++ b/web/app/components/workflow/hooks/use-nodes-available-var-list.ts@@ -35,9 +35,9 @@ const useNodesAvailableVarList = (nodes: Node[], {hideChatVar = false,passedInAvailableNodes,}: Params = {- onlyLeafNodeVar: false,- filterVar: () => true,- }) => {+ onlyLeafNodeVar: false,+ filterVar: () => true,+}) => {const { getTreeLeafNodes, getBeforeNodesInSameBranchIncludeParent } = useWorkflow()const { getNodeAvailableVars } = useWorkflowVariables()const isChatMode = useIsChatMode()diff --git a/web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.ts b/web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.tsindex f1f184d4bb3..54af9843e64 100644--- a/web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.ts+++ b/web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.ts@@ -68,7 +68,7 @@ export const useWorkflowNodeStarted = () => {incomeEdges.forEach((edge) => {const incomeNode = nodes.find(node => node.id === edge.source)!if (!incomeNode || !('data' in incomeNode))- return+ returnif ((!incomeNode.data._runningBranchId && edge.sourceHandle === 'source')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.tsxindex 9e67debd588..7635e0faf0a 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@@ -93,7 +93,7 @@ export type AgentStrategySelectorProps = {}export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) => {- const { enable_marketplace } = useGlobalPublicStore(s => s.systemFeatures)+ const { enable_marketplace } = useGlobalPublicStore(s => s.systemFeatures)const { value, onChange, canChooseMCPTool } = propsconst [open, setOpen] = useState(false)diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy.tsxindex 3b5b81ed1fb..b447c3f70e9 100644--- a/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx+++ b/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx@@ -236,7 +236,7 @@ export const AgentStrategy = memo((props: AgentStrategyProps) => {'zh-Hans': '/guides/workflow/node/agent#选择-agent-策略','ja-JP': '/guides/workflow/node/agent#エージェント戦略の選択',})}- className='text-text-accent-secondary' target='_blank'>+ className='text-text-accent-secondary' target='_blank'>{t('workflow.nodes.agent.learnMore')}</Link></div>}diff --git a/web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx b/web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsxindex 0ed79d235bc..d14d26e44a7 100644--- a/web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx+++ b/web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx@@ -193,10 +193,10 @@ const FormItem: FC<Props> = ({language={CodeLanguage.json}onChange={onChange}noWrapper- className='bg h-[80px] overflow-y-auto rounded-[10px] bg-components-input-bg-normal p-1'- placeholder={- <div className='whitespace-pre'>{payload.json_schema}</div>- }+ className='bg h-[80px] overflow-y-auto rounded-[10px] bg-components-input-bg-normal p-1'+ placeholder={+ <div className='whitespace-pre'>{payload.json_schema}</div>+ }/>)}{(type === InputVarType.singleFile) && (diff --git a/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx b/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsxindex a741629da86..ecd5e4c029d 100644--- a/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx+++ b/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx@@ -53,7 +53,6 @@ const Editor: FC<Props> = ({useEffect(() => {onFocusChange?.(isFocus)- // eslint-disable-next-line react-hooks/exhaustive-deps}, [isFocus])return (diff --git a/web/app/components/workflow/nodes/_base/components/mcp-tool-not-support-tooltip.tsx b/web/app/components/workflow/nodes/_base/components/mcp-tool-not-support-tooltip.tsxindex 8117f7502f7..b314082af28 100644--- a/web/app/components/workflow/nodes/_base/components/mcp-tool-not-support-tooltip.tsx+++ b/web/app/components/workflow/nodes/_base/components/mcp-tool-not-support-tooltip.tsx@@ -11,7 +11,7 @@ const McpToolNotSupportTooltip: FC = () => {<TooltippopupContent={<div className='w-[256px]'>- {t('plugin.detailPanel.toolSelector.unsupportedMCPTool')}+ {t('plugin.detailPanel.toolSelector.unsupportedMCPTool')}</div>}>diff --git a/web/app/components/workflow/nodes/_base/components/variable/utils.ts b/web/app/components/workflow/nodes/_base/components/variable/utils.tsindex d96c9be6cf6..474f99325fb 100644--- a/web/app/components/workflow/nodes/_base/components/variable/utils.ts+++ b/web/app/components/workflow/nodes/_base/components/variable/utils.ts@@ -694,9 +694,9 @@ const getIterationItemType = ({curr = Array.isArray(curr) ? curr.find(v => v.variable === key) : []if (isLast)- arrayType = curr?.type+ arrayType = curr?.typeelse if (curr?.type === VarType.object || curr?.type === VarType.file)- curr = curr.children || []+ curr = curr.children || []}}diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-list.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-list.tsxindex e9e45d3aad5..447dfe1f402 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-list.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-list.tsx@@ -55,11 +55,11 @@ const VarList: FC<Props> = ({const { isValid, errorKey, errorMessageKey } = checkKeys([newKey], true)if (!isValid) {setToastHandle(Toast.notify({- type: 'error',- message: t(`appDebug.varKeyError.${errorMessageKey}`, { key: errorKey }),- }))- return- }+ type: 'error',+ message: t(`appDebug.varKeyError.${errorMessageKey}`, { key: errorKey }),+ }))+ return+ }if (list.some(item => item.variable?.trim() === newKey.trim())) {console.log('new key', newKey.trim())setToastHandle(Toast.notify({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.tsxindex 21eb9b8655b..7af5c5f901a 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@@ -339,7 +339,7 @@ const VarReferencePicker: FC<Props> = ({const data = await fetchDynamicOptions()setDynamicOptions(data?.options || [])}- finally {+ finally {setIsLoading(false)}}diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsxindex 264bb1e456f..3594b8fdbc3 100644--- a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx+++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx@@ -250,7 +250,7 @@ const BasePanel: FC<BasePanelProps> = ({if(logParams.showSpecialResultPanel) {return (- <div className={cn(+ <div className={cn('relative mr-1 h-full',)}><div@@ -356,7 +356,7 @@ const BasePanel: FC<BasePanelProps> = ({>{isSingleRunning ? <Stop className='h-4 w-4 text-text-tertiary' />- : <RiPlayLargeLine className='h-4 w-4 text-text-tertiary' />+ : <RiPlayLargeLine className='h-4 w-4 text-text-tertiary' />}</div></Tooltip>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.tsxindex 2ff474c0bc7..e23e29c95a4 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@@ -79,11 +79,11 @@ const LastRun: FC<Props> = ({}, [nodeId])const handlePageVisibilityChange = useCallback(() => {- if (document.visibilityState === 'hidden')- setPageHasHide(true)- else- setPageShowed(true)- }, [])+ if (document.visibilityState === 'hidden')+ setPageHasHide(true)+ else+ setPageShowed(true)+ }, [])useEffect(() => {document.addEventListener('visibilitychange', handlePageVisibilityChange)diff --git a/web/app/components/workflow/nodes/_base/hooks/use-output-var-list.ts b/web/app/components/workflow/nodes/_base/hooks/use-output-var-list.tsindex 515f2c365b5..771bfb51616 100644--- a/web/app/components/workflow/nodes/_base/hooks/use-output-var-list.ts+++ b/web/app/components/workflow/nodes/_base/hooks/use-output-var-list.ts@@ -118,8 +118,8 @@ function useOutputVarList<T>({const [removedVar, setRemovedVar] = useState<ValueSelector>([])const removeVarInNode = useCallback(() => {const varId = nodesWithInspectVars.find(node => node.nodeId === id)?.vars.find((varItem) => {- return varItem.name === removedVar[1]- })?.id+ return varItem.name === removedVar[1]+ })?.idif(varId)deleteInspectVar(id, varId)removeUsedVarInNodes(removedVar)@@ -143,8 +143,8 @@ function useOutputVarList<T>({setInputs(newInputs)onOutputKeyOrdersChange(outputKeyOrders.filter((_, i) => i !== index))const varId = nodesWithInspectVars.find(node => node.nodeId === id)?.vars.find((varItem) => {- return varItem.name === key- })?.id+ return varItem.name === key+ })?.idif(varId)deleteInspectVar(id, varId)}, [outputKeyOrders, isVarUsedInNodes, id, inputs, setInputs, onOutputKeyOrdersChange, nodesWithInspectVars, deleteInspectVar, showRemoveVarConfirm, varKey])diff --git a/web/app/components/workflow/nodes/agent/panel.tsx b/web/app/components/workflow/nodes/agent/panel.tsxindex ec6fb9c506b..7c87da8121c 100644--- a/web/app/components/workflow/nodes/agent/panel.tsx+++ b/web/app/components/workflow/nodes/agent/panel.tsx@@ -45,10 +45,10 @@ const AgentPanel: FC<NodePanelProps<AgentNodeType>> = (props) => {const resetEditor = useStore(s => s.setControlPromptEditorRerenderKey)return <div className='my-2'><Field- required- title={t('workflow.nodes.agent.strategy.label')}- className='px-4 py-2'- tooltip={t('workflow.nodes.agent.strategy.tooltip')} >+ required+ title={t('workflow.nodes.agent.strategy.label')}+ className='px-4 py-2'+ tooltip={t('workflow.nodes.agent.strategy.tooltip')} ><AgentStrategystrategy={inputs.agent_strategy_name ? {agent_strategy_provider_name: inputs.agent_strategy_provider_name!,diff --git a/web/app/components/workflow/nodes/agent/use-single-run-form-params.ts b/web/app/components/workflow/nodes/agent/use-single-run-form-params.tsindex 09f329b94d5..b2785c39ff4 100644--- a/web/app/components/workflow/nodes/agent/use-single-run-form-params.ts+++ b/web/app/components/workflow/nodes/agent/use-single-run-form-params.ts@@ -76,7 +76,7 @@ const useSingleRunFormParams = ({return formatTracing([runResult], t)[0]}, [runResult, t])- const getDependentVars = () => {+ const getDependentVars = () => {return varInputs.map((item) => {// Guard against null/undefined variable to prevent app crashif (!item.variable || typeof item.variable !== 'string')diff --git a/web/app/components/workflow/nodes/assigner/components/var-list/index.tsx b/web/app/components/workflow/nodes/assigner/components/var-list/index.tsxindex ca57b4fd128..68d4afdce81 100644--- a/web/app/components/workflow/nodes/assigner/components/var-list/index.tsx+++ b/web/app/components/workflow/nodes/assigner/components/var-list/index.tsx@@ -69,7 +69,7 @@ const VarList: FC<Props> = ({if (item.value === WriteMode.set || item.value === WriteMode.increment || item.value === WriteMode.decrement|| item.value === WriteMode.multiply || item.value === WriteMode.divide) {if(varType === VarType.boolean)- draft[index].value = false+ draft[index].value = falsedraft[index].input_type = AssignerNodeInputType.constant}else {diff --git a/web/app/components/workflow/nodes/http/hooks/use-key-value-list.ts b/web/app/components/workflow/nodes/http/hooks/use-key-value-list.tsindex 3892461c369..a61cad646f0 100644--- a/web/app/components/workflow/nodes/http/hooks/use-key-value-list.ts+++ b/web/app/components/workflow/nodes/http/hooks/use-key-value-list.ts@@ -31,8 +31,6 @@ const useKeyValueList = (value: string, onChange: (value: string) => void, noFilconst newValue = list.filter(item => item.key && item.value).map(item => `${item.key}:${item.value}`).join('\n')if (newValue !== value)onChange(newValue)-- // eslint-disable-next-line react-hooks/exhaustive-deps}, [list, noFilter])const addItem = useCallback(() => {setList([...list, {diff --git a/web/app/components/workflow/nodes/http/use-config.ts b/web/app/components/workflow/nodes/http/use-config.tsindex a539a88a8bd..63d14794b25 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/components/metadata/metadata-trigger.tsx b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-trigger.tsxindex 3381a1f6d6d..5d11bc7c6cf 100644--- a/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-trigger.tsx+++ b/web/app/components/workflow/nodes/knowledge-retrieval/components/metadata/metadata-trigger.tsx@@ -31,7 +31,6 @@ const MetadataTrigger = ({handleRemoveCondition(condition.id)})}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [metadataList, handleRemoveCondition, selectedDatasetsLoaded])return (diff --git a/web/app/components/workflow/nodes/knowledge-retrieval/use-config.ts b/web/app/components/workflow/nodes/knowledge-retrieval/use-config.tsindex 380f8b95c9d..47e376cdc61 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<DataSet[]>([])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/components/json-schema-config-modal/json-importer.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-importer.tsxindex 643059adbd6..6368397b740 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-importer.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-importer.tsx@@ -34,7 +34,6 @@ const JsonImporter: FC<JsonImporterProps> = ({const rect = importBtnRef.current.getBoundingClientRect()updateBtnWidth(rect.width)}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [])const handleTrigger = useCallback((e: React.MouseEvent<HTMLElement, MouseEvent>) => {diff --git a/web/app/components/workflow/nodes/parameter-extractor/use-config.ts b/web/app/components/workflow/nodes/parameter-extractor/use-config.tsindex 3fe42b60cf5..2caae83f2a1 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) => {returnsetModelChanged(false)handleVisionConfigAfterModelChanged()- // eslint-disable-next-line react-hooks/exhaustive-deps}, [isVisionModel, modelChanged])const {diff --git a/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx b/web/app/components/workflow/nodes/question-classifier/components/class-list.tsxindex 8758490beea..fa4f4df2668 100644--- a/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx+++ b/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx@@ -84,10 +84,10 @@ const ClassList: FC<Props> = ({})()return (<div key={item.id}- className={cn(- 'group relative rounded-[10px] bg-components-panel-bg',- `-ml-${handleSideWidth} min-h-[40px] px-0 py-0`,- )}>+ className={cn(+ 'group relative rounded-[10px] bg-components-panel-bg',+ `-ml-${handleSideWidth} min-h-[40px] px-0 py-0`,+ )}><div ><ItemclassName={cn(canDrag && 'handle')}diff --git a/web/app/components/workflow/nodes/question-classifier/use-config.ts b/web/app/components/workflow/nodes/question-classifier/use-config.tsindex a4acf5b7f65..b4907641b5e 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) => {returnsetModelChanged(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/tool/use-config.ts b/web/app/components/workflow/nodes/tool/use-config.tsindex ea8d0e21caf..c169ae71a4f 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) => {returnconst inputsWithDefaultValue = formattingParameters()setInputs(inputsWithDefaultValue)- // eslint-disable-next-line react-hooks/exhaustive-deps}, [currTool])// setting when calldiff --git a/web/app/components/workflow/nodes/tool/use-single-run-form-params.ts b/web/app/components/workflow/nodes/tool/use-single-run-form-params.tsindex 13b1da6b01a..535787697e4 100644--- a/web/app/components/workflow/nodes/tool/use-single-run-form-params.ts+++ b/web/app/components/workflow/nodes/tool/use-single-run-form-params.ts@@ -61,7 +61,7 @@ const useSingleRunFormParams = ({Object.keys(inputs.tool_parameters).forEach((key: string) => {const { type, value } = inputs.tool_parameters[key]if (type === VarType.constant && (value === undefined || value === null)) {- if(!draft.tool_parameters || !draft.tool_parameters[key])+ if(!draft.tool_parameters || !draft.tool_parameters[key])returndraft[key] = value}diff --git a/web/app/components/workflow/operator/export-image.tsx b/web/app/components/workflow/operator/export-image.tsxindex 546c702d641..d14014ed1e2 100644--- a/web/app/components/workflow/operator/export-image.tsx+++ b/web/app/components/workflow/operator/export-image.tsx@@ -122,7 +122,7 @@ const ExportImage: FC = () => {reactFlow.setViewport(currentViewport)}, 500)}- else {+ else {// Current viewport export (existing functionality)switch (type) {case 'png':@@ -152,7 +152,7 @@ const ExportImage: FC = () => {link.click()document.body.removeChild(link)}- else {+ else {// For current view, just downloadconst link = document.createElement('a')link.href = dataUrldiff --git a/web/app/components/workflow/panel/inputs-panel.tsx b/web/app/components/workflow/panel/inputs-panel.tsxindex c631fa2b67c..f5cdce2e7ea 100644--- a/web/app/components/workflow/panel/inputs-panel.tsx+++ b/web/app/components/workflow/panel/inputs-panel.tsx@@ -51,7 +51,7 @@ const InputsPanel = ({ onRun }: Props) => {if (startVariables) {startVariables.forEach((variable) => {if (variable.default)- initialInputs[variable.variable] = variable.default+ initialInputs[variable.variable] = variable.default})}diff --git a/web/app/components/workflow/panel/workflow-preview.tsx b/web/app/components/workflow/panel/workflow-preview.tsxindex 2c797e05d63..eb30fbec711 100644--- a/web/app/components/workflow/panel/workflow-preview.tsx+++ b/web/app/components/workflow/panel/workflow-preview.tsx@@ -88,7 +88,7 @@ const WorkflowPreview = () => {<div className={'relative flex h-full flex-col rounded-l-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-xl'}- style={{ width: `${panelWidth}px` }}+ style={{ width: `${panelWidth}px` }}><divclassName="absolute bottom-0 left-[3px] top-1/2 z-50 h-6 w-[3px] cursor-col-resize rounded bg-gray-300"diff --git a/web/app/components/workflow/selection-contextmenu.tsx b/web/app/components/workflow/selection-contextmenu.tsxindex d153708bbca..e5101fb5f39 100644--- a/web/app/components/workflow/selection-contextmenu.tsx+++ b/web/app/components/workflow/selection-contextmenu.tsx@@ -416,7 +416,7 @@ const SelectionContextmenu = () => {</div><div className='h-px bg-divider-regular'></div><div className='p-1'>- <div className='system-xs-medium px-2 py-2 text-text-tertiary'>+ <div className='system-xs-medium px-2 py-2 text-text-tertiary'>{t('workflow.operator.horizontal')}</div><divdiff --git a/web/app/components/workflow/variable-inspect/empty.tsx b/web/app/components/workflow/variable-inspect/empty.tsxindex 6b371635d7a..38df10f6e37 100644--- a/web/app/components/workflow/variable-inspect/empty.tsx+++ b/web/app/components/workflow/variable-inspect/empty.tsx@@ -18,7 +18,7 @@ const Empty: FC = () => {href='https://docs.dify.ai/en/guides/workflow/debug-and-preview/variable-inspect'target='_blank'rel='noopener noreferrer'>- {t('workflow.debug.variableInspect.emptyLink')}+ {t('workflow.debug.variableInspect.emptyLink')}</a></div></div>diff --git a/web/app/components/workflow/variable-inspect/index.tsx b/web/app/components/workflow/variable-inspect/index.tsxindex 2761dcae3c1..9da35c152c6 100644--- a/web/app/components/workflow/variable-inspect/index.tsx+++ b/web/app/components/workflow/variable-inspect/index.tsx@@ -16,15 +16,15 @@ const VariableInspectPanel: FC = () => {const setVariableInspectPanelHeight = useStore(s => s.setVariableInspectPanelHeight)const maxHeight = useMemo(() => {- if (!workflowCanvasHeight)- return 480- return workflowCanvasHeight - 60- }, [workflowCanvasHeight])+ if (!workflowCanvasHeight)+ return 480+ return workflowCanvasHeight - 60+ }, [workflowCanvasHeight])const handleResize = useCallback((width: number, height: number) => {localStorage.setItem('workflow-variable-inpsect-panel-height', `${height}`)setVariableInspectPanelHeight(height)- }, [setVariableInspectPanelHeight])+ }, [setVariableInspectPanelHeight])const {triggerRef,diff --git a/web/app/education-apply/hooks.ts b/web/app/education-apply/hooks.tsindex 474b3551661..df3ee387952 100644--- a/web/app/education-apply/hooks.ts+++ b/web/app/education-apply/hooks.ts@@ -99,28 +99,28 @@ const useEducationReverifyNotice = ({if (isLoading || !timezone)returnif (allowRefreshEducationVerify) {- const expired = isExpired(educationAccountExpireAt!, timezone)- const isExpireAtChanged = prevExpireAt !== educationAccountExpireAt- if (isExpireAtChanged) {- setPrevExpireAt(educationAccountExpireAt!)- setReverifyHasNoticed(false)- setExpiredHasNoticed(false)- }- const shouldNotice = (() => {- if (isExpireAtChanged)- return true- return expired ? !expiredHasNoticed : !reverifyHasNoticed- })()- if (shouldNotice) {- onNotice({- expireAt: educationAccountExpireAt!,- expired,- })- if (expired)- setExpiredHasNoticed(true)- else- setReverifyHasNoticed(true)- }+ const expired = isExpired(educationAccountExpireAt!, timezone)+ const isExpireAtChanged = prevExpireAt !== educationAccountExpireAt+ if (isExpireAtChanged) {+ setPrevExpireAt(educationAccountExpireAt!)+ setReverifyHasNoticed(false)+ setExpiredHasNoticed(false)+ }+ const shouldNotice = (() => {+ if (isExpireAtChanged)+ return true+ return expired ? !expiredHasNoticed : !reverifyHasNoticed+ })()+ if (shouldNotice) {+ onNotice({+ expireAt: educationAccountExpireAt!,+ expired,+ })+ if (expired)+ setExpiredHasNoticed(true)+ else+ setReverifyHasNoticed(true)+ }}}, [allowRefreshEducationVerify, timezone])diff --git a/web/app/install/installForm.tsx b/web/app/install/installForm.tsxindex b9228865d06..8ddb5276f06 100644--- a/web/app/install/installForm.tsx+++ b/web/app/install/installForm.tsx@@ -76,7 +76,7 @@ const InstallForm = () => {localStorage.setItem('refresh_token', loginRes.data.refresh_token)router.replace('/apps')}- else {+ else {// Fallback to signin page if auto-login failsrouter.replace('/signin')}diff --git a/web/eslint.config.mjs b/web/eslint.config.mjsindex 99f85ab4cce..67b561cec06 100644--- a/web/eslint.config.mjs+++ b/web/eslint.config.mjs@@ -193,11 +193,17 @@ export default combine('node/prefer-global/process': 'off','node/prefer-global/buffer': 'off','node/no-callback-literal': 'off',+ 'eslint-comments/no-unused-disable': 'off',+ 'tailwindcss/no-arbitrary-value': 'off',+ 'tailwindcss/classnames-order': 'off',+ 'style/indent': ['error', 2, {+ SwitchCase: 1,+ ignoreComments: true,+ }],// useful, but big change'unicorn/prefer-number-properties': 'warn','unicorn/no-new-array': 'warn',- 'style/indent': 'off',},},// suppress error for `no-undef` rulediff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.tsindex f4353da24ec..14bd3d1293f 100644--- a/web/i18n/en-US/workflow.ts+++ b/web/i18n/en-US/workflow.ts@@ -953,7 +953,7 @@ const translation = {updateSuccess: 'Version updated',updateFailure: 'Failed to update version',copyIdSuccess: 'ID copied to clipboard',- },+ },},debug: {settingsTab: 'Settings',diff --git a/web/package.json b/web/package.jsonindex 528f5e468f7..728089e90bb 100644--- a/web/package.json+++ b/web/package.json@@ -26,6 +26,7 @@"lint": "npx oxlint && pnpm eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache","lint-only-show-error": "npm oxlint && pnpm eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache --quiet","fix": "eslint --fix .",+ "eslint": "eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache","eslint-fix": "eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache --fix","eslint-fix-only-show-error": "eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache --fix --quiet","eslint-complexity": "eslint --rule 'complexity: [error, {max: 15}]' --quiet",diff --git a/web/service/base.ts b/web/service/base.tsindex 5386f9b07b1..9621d21a279 100644--- a/web/service/base.ts+++ b/web/service/base.ts@@ -442,29 +442,29 @@ export const ssePost = async (}onData?.(str, isFirstMessage, moreInfo)},- onCompleted,- onThought,- onMessageEnd,- onMessageReplace,- onFile,- onWorkflowStarted,- onWorkflowFinished,- onNodeStarted,- onNodeFinished,- onIterationStart,- onIterationNext,- onIterationFinish,- onLoopStart,- onLoopNext,- onLoopFinish,- onNodeRetry,- onParallelBranchStarted,- onParallelBranchFinished,- onTextChunk,- onTTSChunk,- onTTSEnd,- onTextReplace,- onAgentLog,+ onCompleted,+ onThought,+ onMessageEnd,+ onMessageReplace,+ onFile,+ onWorkflowStarted,+ onWorkflowFinished,+ onNodeStarted,+ onNodeFinished,+ onIterationStart,+ onIterationNext,+ onIterationFinish,+ onLoopStart,+ onLoopNext,+ onLoopFinish,+ onNodeRetry,+ onParallelBranchStarted,+ onParallelBranchFinished,+ onTextChunk,+ onTTSChunk,+ onTTSEnd,+ onTextReplace,+ onAgentLog,)}).catch((e) => {if (e.toString() !== 'AbortError: The user aborted a request.' && !e.toString().includes('TypeError: Cannot assign to read only property'))diff --git a/web/service/use-plugins-auth.ts b/web/service/use-plugins-auth.tsindex 51992361eb7..82eade40084 100644--- a/web/service/use-plugins-auth.ts+++ b/web/service/use-plugins-auth.ts@@ -19,11 +19,11 @@ export const useGetPluginCredentialInfo = (enabled: !!url,queryKey: [NAME_SPACE, 'credential-info', url],queryFn: () => get<{- allow_custom_token?: boolean- supported_credential_types: string[]- credentials: Credential[]- is_oauth_custom_client_enabled: boolean- }>(url),+ allow_custom_token?: boolean+ supported_credential_types: string[]+ credentials: Credential[]+ is_oauth_custom_client_enabled: boolean+ }>(url),staleTime: 0,})}@@ -107,11 +107,11 @@ export const useGetPluginOAuthUrl = (mutationKey: [NAME_SPACE, 'oauth-url', url],mutationFn: () => {return get<- {- authorization_url: string- state: string- context_id: string- }>(url)+ {+ authorization_url: string+ state: string+ context_id: string+ }>(url)},})}@@ -143,9 +143,9 @@ export const useSetPluginOAuthCustomClient = () => {return useMutation({mutationFn: (params: {- client_params: Record<string, any>- enable_oauth_custom_client: boolean- }) => {+ client_params: Record<string, any>+ enable_oauth_custom_client: boolean+ }) => {return post<{ result: string }>(url, { body: params })},})diff --git a/web/utils/navigation.ts b/web/utils/navigation.tsindex fec2291f3f9..15fd5711d10 100644--- a/web/utils/navigation.ts+++ b/web/utils/navigation.ts@@ -32,7 +32,7 @@ export function createNavigationPath(basePath: string, preserveParams: boolean =const separator = queryString ? '?' : ''return `${basePath}${separator}${queryString}`}- catch (error) {+ catch (error) {// Fallback to base path if there's any error accessing locationconsole.warn('Failed to preserve query parameters:', error)return basePath@@ -89,7 +89,7 @@ export function extractQueryParams(paramNames: string[]): Record<string, string>return extracted}- catch (error) {+ catch (error) {console.warn('Failed to extract query parameters:', error)return {}}@@ -126,7 +126,7 @@ export function createNavigationPathWithParams(const separator = queryString ? '?' : ''return `${basePath}${separator}${queryString}`}- catch (error) {+ catch (error) {console.warn('Failed to create navigation path with params:', error)return basePath}@@ -155,7 +155,7 @@ export function mergeQueryParams(Object.entries(newParams).forEach(([key, value]) => {if (value === null || value === undefined)searchParams.delete(key)- else if (value !== '')+ else if (value !== '')searchParams.set(key, String(value))})