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
refactor(web): migrate webapp reset password inputs (#41633)
yyhde3f3714ae09
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.jsonindex ca7f9a9ba3e..8107bf6001a 100644--- a/oxlint-suppressions.json+++ b/oxlint-suppressions.json@@ -78,21 +78,11 @@"count": 1}},- "web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx": {- "no-restricted-imports": {- "count": 1- }- },"web/app/(shareLayout)/webapp-reset-password/layout.tsx": {"typescript/no-explicit-any": {"count": 1}},- "web/app/(shareLayout)/webapp-reset-password/page.tsx": {- "no-restricted-imports": {- "count": 1- }- },"web/app/(shareLayout)/webapp-signin/check-code/page.tsx": {"no-restricted-imports": {"count": 1diff --git a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsxindex d26b531cfc2..49a16e6f9d4 100644--- a/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx+++ b/web/app/(shareLayout)/webapp-reset-password/check-code/page.tsx@@ -1,10 +1,10 @@'use client'import { Button } from '@langgenius/dify-ui/button'+import { Input } from '@langgenius/dify-ui/input'import { toast } from '@langgenius/dify-ui/toast'import { RiArrowLeftLine, RiMailSendFill } from '@remixicon/react'import { useState } from 'react'import { useTranslation } from 'react-i18next'-import Input from '@/app/components/base/input'import Countdown from '@/app/components/signin/countdown'import { useLocale } from '@/context/i18n'import useDocumentTitle from '@/hooks/use-document-title'@@ -83,8 +83,13 @@ export default function CheckCode() {{t(($) => $['checkCode.verificationCode'], { ns: 'login' })}</label><Input+ id="code"+ name="code"+ inputMode="numeric"+ autoComplete="one-time-code"+ spellCheck={false}value={code}- onChange={(e) => setVerifyCode(e.target.value)}+ onValueChange={setVerifyCode}maxLength={6}className="mt-1"placeholder={t(($) => $['checkCode.verificationCodePlaceholder'], { ns: 'login' }) || ''}diff --git a/web/app/(shareLayout)/webapp-reset-password/page.tsx b/web/app/(shareLayout)/webapp-reset-password/page.tsxindex 6037bd181a2..fb2c00b1a71 100644--- a/web/app/(shareLayout)/webapp-reset-password/page.tsx+++ b/web/app/(shareLayout)/webapp-reset-password/page.tsx@@ -1,11 +1,11 @@'use client'import { Button } from '@langgenius/dify-ui/button'+import { Input } from '@langgenius/dify-ui/input'import { toast } from '@langgenius/dify-ui/toast'import { RiArrowLeftLine, RiLockPasswordLine } from '@remixicon/react'import { noop } from 'es-toolkit/function'import { useState } from 'react'import { useTranslation } from 'react-i18next'-import Input from '@/app/components/base/input'import { COUNT_DOWN_TIME_MS, useSetCountdownLeftTime } from '@/app/components/signin/storage'import { emailRegex } from '@/config'import { useLocale } from '@/context/i18n'@@ -77,11 +77,14 @@ export default function CheckCode() {<div className="mt-1"><Inputid="email"+ name="email"type="email"+ autoComplete="email"+ spellCheck={false}disabled={loading}value={email}placeholder={t(($) => $.emailPlaceholder, { ns: 'login' }) as string}- onChange={(e) => setEmail(e.target.value)}+ onValueChange={setEmail}/></div><div className="mt-3">