From f0d669f98a6b1479cf0cdd70243a46b87238e006 Mon Sep 17 00:00:00 2001 From: LTbinglingfeng Date: Tue, 19 May 2026 00:25:45 +0800 Subject: [PATCH] feat: remove Home control plane configuration and related validation logic --- src/components/config/VisualConfigEditor.tsx | 99 +------------------- src/hooks/useVisualConfig.ts | 68 -------------- src/i18n/locales/en.json | 19 ---- src/i18n/locales/ru.json | 19 ---- src/i18n/locales/zh-CN.json | 19 ---- src/i18n/locales/zh-TW.json | 19 ---- src/types/visualConfig.ts | 19 ---- 7 files changed, 1 insertion(+), 261 deletions(-) diff --git a/src/components/config/VisualConfigEditor.tsx b/src/components/config/VisualConfigEditor.tsx index afc466e..14a36c9 100644 --- a/src/components/config/VisualConfigEditor.tsx +++ b/src/components/config/VisualConfigEditor.tsx @@ -191,7 +191,6 @@ export function VisualConfigEditor({ values.streaming.nonstreamKeepaliveInterval === '0'; const portError = getValidationMessage(t, validationErrors?.port); - const homePortError = getValidationMessage(t, validationErrors?.homePort); const logsMaxSizeError = getValidationMessage(t, validationErrors?.logsMaxTotalSizeMb); const errorLogsMaxFilesError = getValidationMessage(t, validationErrors?.errorLogsMaxFiles); const redisUsageQueueRetentionError = getValidationMessage( @@ -269,7 +268,7 @@ export function VisualConfigEditor({ id: 'server', title: t('config_management.visual.sections.server.title'), icon: IconSettings, - errorCount: countErrors(['port', 'homePort']), + errorCount: countErrors(['port']), }, { id: 'auth', @@ -539,102 +538,6 @@ export function VisualConfigEditor({ - - - - onChange({ homeEnabled })} - /> - - onChange({ homeDisableClusterDiscovery }) - } - /> - - - onChange({ homeHost: e.target.value })} - disabled={disabled} - /> - onChange({ homePort: e.target.value })} - disabled={disabled} - error={homePortError} - /> - onChange({ homePassword: e.target.value })} - disabled={disabled} - /> - - -
-

- {t('config_management.visual.sections.home.tls_title')} -

-

- {t('config_management.visual.sections.home.tls_description')} -

-
- - onChange({ homeTlsEnable })} - /> - - onChange({ homeTlsInsecureSkipVerify }) - } - /> - - - onChange({ homeTlsServerName: e.target.value })} - disabled={disabled} - /> - onChange({ homeTlsCaCert: e.target.value })} - disabled={disabled} - /> - -
-
-