From 2a4d6dbd60b88100dbff18dd04e0c9bb4c8649f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A2=A8=E9=9B=AA?= Date: Sun, 16 Aug 2026 15:25:49 +0800 Subject: [PATCH] fix: remove quick create UI (sidebar, i18n) and delete InboundTemplates page --- frontend/src/components/Sidebar.tsx | 3 +-- frontend/src/i18n/locales/en.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 89cf2f6..f2534ac 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Layout, Menu } from 'antd'; import { DashboardOutlined, NodeIndexOutlined, UserOutlined, SettingOutlined, - CodeOutlined, FileTextOutlined, ApiOutlined, LogoutOutlined, ThunderboltOutlined, + CodeOutlined, FileTextOutlined, ApiOutlined, LogoutOutlined, } from '@ant-design/icons'; import { useNavigate, useLocation } from 'react-router-dom'; import { useAuthStore } from '../stores/authStore'; @@ -19,7 +19,6 @@ const Sidebar: React.FC<{ collapsed: boolean }> = ({ collapsed }) => { const items = [ { key: '/', icon: , label: t('nav.dashboard') }, { key: '/listeners', icon: , label: t('nav.listeners') }, - { key: '/inbound-templates', icon: , label: t('nav.inboundTemplates') }, { key: '/users', icon: , label: t('nav.users') }, { key: '/core', icon: , label: t('nav.core') }, { key: '/logs', icon: , label: t('nav.logs') }, diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index aceac54..3e83e93 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -1,7 +1,7 @@ export default { app: { name: '3M-UI', title: 'Mihomo Core Management' }, nav: { - dashboard: 'Dashboard', listeners: 'Nodes', inboundTemplates: 'Quick Create', users: 'Users', + dashboard: 'Dashboard', listeners: 'Nodes', users: 'Users', core: 'Core', logs: 'Logs', config: 'Config', settings: 'Settings', logout: 'Logout', }, common: { @@ -70,5 +70,4 @@ export default { passwordDescription: 'Change your password regularly to improve security', changePassword: 'Change Password', about: 'About 3M-UI', version: 'Version', }, - templates: { title: 'Quick Create Node' }, };