From 9bd8e6270257448e09628db8e8e89b9fb43b4d25 Mon Sep 17 00:00:00 2001 From: CorrectRoad Date: Mon, 21 Apr 2025 09:51:39 +0800 Subject: [PATCH 1/3] fix: bump the minimal node requirement to fix eslint fail (#17938) --- web/README.md | 2 +- web/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/README.md b/web/README.md index 3236347e80..3d9fd2de87 100644 --- a/web/README.md +++ b/web/README.md @@ -7,7 +7,7 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next ### Run by source code Before starting the web frontend service, please make sure the following environment is ready. -- [Node.js](https://nodejs.org) >= v18.x +- [Node.js](https://nodejs.org) >= v22.11.x - [pnpm](https://pnpm.io) v10.x First, install the dependencies: diff --git a/web/package.json b/web/package.json index 0dd0b72bc2..714ec87695 100644 --- a/web/package.json +++ b/web/package.json @@ -3,7 +3,7 @@ "version": "1.2.0", "private": true, "engines": { - "node": ">=18.18.0" + "node": ">=v22.11.0" }, "scripts": { "dev": "cross-env NODE_OPTIONS='--inspect' next dev", From c768d97637712914e7302ac567c72f09c63e5916 Mon Sep 17 00:00:00 2001 From: Ethan <118581835+realethanhsu@users.noreply.github.com> Date: Mon, 21 Apr 2025 10:04:33 +0800 Subject: [PATCH 2/3] feat: update privacy policy URL and add validation for privacy policy link (#18422) --- web/app/components/app/overview/settings/index.tsx | 13 ++++++++++++- web/i18n/de-DE/app-overview.ts | 1 + web/i18n/en-US/app-overview.ts | 1 + web/i18n/es-ES/app-overview.ts | 1 + web/i18n/fa-IR/app-overview.ts | 1 + web/i18n/fr-FR/app-overview.ts | 1 + web/i18n/hi-IN/app-overview.ts | 1 + web/i18n/it-IT/app-overview.ts | 1 + web/i18n/ja-JP/app-overview.ts | 1 + web/i18n/ko-KR/app-overview.ts | 1 + web/i18n/pl-PL/app-overview.ts | 1 + web/i18n/pt-BR/app-overview.ts | 1 + web/i18n/ro-RO/app-overview.ts | 1 + web/i18n/ru-RU/app-overview.ts | 1 + web/i18n/sl-SI/app-overview.ts | 1 + web/i18n/th-TH/app-overview.ts | 1 + web/i18n/tr-TR/app-overview.ts | 1 + web/i18n/uk-UA/app-overview.ts | 1 + web/i18n/vi-VN/app-overview.ts | 1 + web/i18n/zh-Hans/app-overview.ts | 1 + web/i18n/zh-Hant/app-overview.ts | 1 + 21 files changed, 32 insertions(+), 1 deletion(-) diff --git a/web/app/components/app/overview/settings/index.tsx b/web/app/components/app/overview/settings/index.tsx index 896229d433..679d616e54 100644 --- a/web/app/components/app/overview/settings/index.tsx +++ b/web/app/components/app/overview/settings/index.tsx @@ -162,11 +162,22 @@ const SettingsModal: FC = ({ return check } + const validatePrivacyPolicy = (privacyPolicy: string | null) => { + if (privacyPolicy === null || privacyPolicy?.length === 0) + return true + + return privacyPolicy.startsWith('http://') || privacyPolicy.startsWith('https://') + } + if (inputInfo !== null) { if (!validateColorHex(inputInfo.chatColorTheme)) { notify({ type: 'error', message: t(`${prefixSettings}.invalidHexMessage`) }) return } + if (!validatePrivacyPolicy(inputInfo.privacyPolicy)) { + notify({ type: 'error', message: t(`${prefixSettings}.invalidPrivacyPolicy`) }) + return + } } setSaveLoading(true) @@ -410,7 +421,7 @@ const SettingsModal: FC = ({

}} + components={{ privacyPolicyLink: }} />

Date: Mon, 21 Apr 2025 04:06:21 +0200 Subject: [PATCH 3/3] fix: correct unsupported German date format on document list page (#18426) --- web/i18n/de-DE/dataset-hit-testing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/i18n/de-DE/dataset-hit-testing.ts b/web/i18n/de-DE/dataset-hit-testing.ts index cb96b22689..840a3c81f1 100644 --- a/web/i18n/de-DE/dataset-hit-testing.ts +++ b/web/i18n/de-DE/dataset-hit-testing.ts @@ -1,7 +1,7 @@ const translation = { title: 'Abruf-Test', desc: 'Testen Sie die Treffereffektivität des Wissens anhand des gegebenen Abfragetextes.', - dateTimeFormat: 'MM/TT/JJJJ hh:mm A', + dateTimeFormat: 'MM/DD/YYYY hh:mm A', recents: 'Kürzlich', table: { header: {