From cbbb48af97a8ba071de6f10528af56ebfd7352f0 Mon Sep 17 00:00:00 2001 From: xion Date: Sun, 23 Mar 2025 04:02:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/translation.json | 3 ++- public/locales/zh/translation.json | 3 ++- src/modules/layout/Menu.tsx | 5 ----- src/pages/config/edit/List.tsx | 20 +++++++++++++++++--- src/pages/config/store/config.ts | 11 +++++++++++ submodules/query-config | 2 +- 6 files changed, 33 insertions(+), 11 deletions(-) diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 695fb76..a7a7c8b 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -70,5 +70,6 @@ "usernames": "Usernames", "content-type": "Content Type", "app-source": "App Source", - "app-version": "App Version" + "app-version": "App Version", + "Detect": "Detect" } \ No newline at end of file diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index 52df8ae..905f6ae 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -70,5 +70,6 @@ "usernames": "用户名", "content-type": "内容类型", "app-source": "应用来源", - "app-version": "应用版本" + "app-version": "应用版本", + "Detect": "检测" } \ No newline at end of file diff --git a/src/modules/layout/Menu.tsx b/src/modules/layout/Menu.tsx index 5c3cd09..0b70a6a 100644 --- a/src/modules/layout/Menu.tsx +++ b/src/modules/layout/Menu.tsx @@ -36,11 +36,6 @@ export const LayoutMenu = () => { icon: , link: '/container/edit/list', }, - { - title: t('Org'), - icon: , - link: '/org/edit/list', - }, { title: t('Config'), icon: , link: '/config/edit/list' }, { title: t('About'), diff --git a/src/pages/config/edit/List.tsx b/src/pages/config/edit/List.tsx index 139d821..a5243ca 100644 --- a/src/pages/config/edit/List.tsx +++ b/src/pages/config/edit/List.tsx @@ -188,7 +188,7 @@ export const MyController = React.forwardRef( }, ); export const List = () => { - const { list, getConfig, setShowEdit, setFormData, deleteConfig, updateData, formData } = useConfigStore(); + const { list, getConfig, setShowEdit, setFormData, deleteConfig, updateData, formData, detectConfig } = useConfigStore(); const [modal, contextHolder] = useModal(); useEffect(() => { getConfig(); @@ -221,8 +221,22 @@ export const List = () => { +
-
+
+ + + +
+
{list.map((item) => (
@@ -237,7 +251,7 @@ export const List = () => {
{item.key}
-
+