From 3d8e55cbea4d081a38a603dd819e7536e3f8de8c Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Fri, 5 Jan 2024 11:03:51 +0800 Subject: [PATCH] Pre rename dir --- .../{sidebar => sidebar_}/SidebarFooter.tsx | 0 .../{sidebar => sidebar_}/SidebarItem.tsx | 2 +- .../{sidebar => sidebar_}/SidebarItemList.tsx | 0 .../{sidebar => sidebar_}/SidebarScroll.tsx | 0 .../{sidebar => sidebar_}/SidebarSeparate.tsx | 0 .../{sidebar => sidebar_}/SidebarSubmenu.tsx | 0 .../common/{sidebar => sidebar_}/index.tsx | 4 +- src/pages/SystemFramework.tsx | 6 +-- src/pages/ToolsFramework.tsx | 10 ++-- src/pages/UserFramework.tsx | 6 +-- src/pages/{sign => sign_}/Forget.tsx | 0 src/pages/{sign => sign_}/SignIn.tsx | 0 src/pages/{sign => sign_}/SignUp.tsx | 0 src/pages/{sign => sign_}/Verify.tsx | 0 src/pages/{sign => sign_}/index.tsx | 8 +-- src/pages/{system => system_}/Group.tsx | 0 src/pages/{system => system_}/Log.tsx | 0 src/pages/{system => system_}/Role.tsx | 0 src/pages/{system => system_}/User.tsx | 0 src/pages/{system => system_}/index.tsx | 0 .../settings_}/BaseSettings.tsx | 2 +- .../settings_}/MailSettings.tsx | 2 +- .../settings_}/SensitiveWordSettings.tsx | 2 +- .../settings => system_/settings_}/index.tsx | 6 +-- .../statistics_}/ActiveInfo.tsx | 4 +- .../statistics_}/CPUInfo.tsx | 4 +- .../statistics_}/HardwareInfo.tsx | 2 +- .../statistics_}/OnlineInfo.tsx | 4 +- .../statistics_}/SoftwareInfo.tsx | 2 +- .../statistics_}/StorageInfo.tsx | 4 +- .../statistics_}/index.tsx | 12 ++--- .../statistics_}/shared.ts | 0 src/pages/{tools => tools_}/All.tsx | 0 src/pages/{tools => tools_}/Translation.tsx | 0 src/pages/{tools => tools_}/index.tsx | 0 src/pages/{user => user_}/index.tsx | 0 src/router/index.tsx | 2 +- src/router/system.tsx | 14 +++--- src/router/tools.tsx | 50 +++++++++---------- src/router/user.tsx | 2 +- 40 files changed, 74 insertions(+), 74 deletions(-) rename src/components/common/{sidebar => sidebar_}/SidebarFooter.tsx (100%) rename src/components/common/{sidebar => sidebar_}/SidebarItem.tsx (96%) rename src/components/common/{sidebar => sidebar_}/SidebarItemList.tsx (100%) rename src/components/common/{sidebar => sidebar_}/SidebarScroll.tsx (100%) rename src/components/common/{sidebar => sidebar_}/SidebarSeparate.tsx (100%) rename src/components/common/{sidebar => sidebar_}/SidebarSubmenu.tsx (100%) rename src/components/common/{sidebar => sidebar_}/index.tsx (91%) rename src/pages/{sign => sign_}/Forget.tsx (100%) rename src/pages/{sign => sign_}/SignIn.tsx (100%) rename src/pages/{sign => sign_}/SignUp.tsx (100%) rename src/pages/{sign => sign_}/Verify.tsx (100%) rename src/pages/{sign => sign_}/index.tsx (93%) rename src/pages/{system => system_}/Group.tsx (100%) rename src/pages/{system => system_}/Log.tsx (100%) rename src/pages/{system => system_}/Role.tsx (100%) rename src/pages/{system => system_}/User.tsx (100%) rename src/pages/{system => system_}/index.tsx (100%) rename src/pages/{system/settings => system_/settings_}/BaseSettings.tsx (97%) rename src/pages/{system/settings => system_/settings_}/MailSettings.tsx (99%) rename src/pages/{system/settings => system_/settings_}/SensitiveWordSettings.tsx (99%) rename src/pages/{system/settings => system_/settings_}/index.tsx (93%) rename src/pages/{system/statistics => system_/statistics_}/ActiveInfo.tsx (98%) rename src/pages/{system/statistics => system_/statistics_}/CPUInfo.tsx (98%) rename src/pages/{system/statistics => system_/statistics_}/HardwareInfo.tsx (97%) rename src/pages/{system/statistics => system_/statistics_}/OnlineInfo.tsx (98%) rename src/pages/{system/statistics => system_/statistics_}/SoftwareInfo.tsx (98%) rename src/pages/{system/statistics => system_/statistics_}/StorageInfo.tsx (98%) rename src/pages/{system/statistics => system_/statistics_}/index.tsx (86%) rename src/pages/{system/statistics => system_/statistics_}/shared.ts (100%) rename src/pages/{tools => tools_}/All.tsx (100%) rename src/pages/{tools => tools_}/Translation.tsx (100%) rename src/pages/{tools => tools_}/index.tsx (100%) rename src/pages/{user => user_}/index.tsx (100%) diff --git a/src/components/common/sidebar/SidebarFooter.tsx b/src/components/common/sidebar_/SidebarFooter.tsx similarity index 100% rename from src/components/common/sidebar/SidebarFooter.tsx rename to src/components/common/sidebar_/SidebarFooter.tsx diff --git a/src/components/common/sidebar/SidebarItem.tsx b/src/components/common/sidebar_/SidebarItem.tsx similarity index 96% rename from src/components/common/sidebar/SidebarItem.tsx rename to src/components/common/sidebar_/SidebarItem.tsx index 20edf64..6289ac2 100644 --- a/src/components/common/sidebar/SidebarItem.tsx +++ b/src/components/common/sidebar_/SidebarItem.tsx @@ -1,6 +1,6 @@ import React from 'react' import Icon from '@ant-design/icons' -import SidebarSubmenu from '@/components/common/sidebar/SidebarSubmenu' +import SidebarSubmenu from '@/components/common/sidebar_/SidebarSubmenu' type ItemProps = { icon?: IconComponent diff --git a/src/components/common/sidebar/SidebarItemList.tsx b/src/components/common/sidebar_/SidebarItemList.tsx similarity index 100% rename from src/components/common/sidebar/SidebarItemList.tsx rename to src/components/common/sidebar_/SidebarItemList.tsx diff --git a/src/components/common/sidebar/SidebarScroll.tsx b/src/components/common/sidebar_/SidebarScroll.tsx similarity index 100% rename from src/components/common/sidebar/SidebarScroll.tsx rename to src/components/common/sidebar_/SidebarScroll.tsx diff --git a/src/components/common/sidebar/SidebarSeparate.tsx b/src/components/common/sidebar_/SidebarSeparate.tsx similarity index 100% rename from src/components/common/sidebar/SidebarSeparate.tsx rename to src/components/common/sidebar_/SidebarSeparate.tsx diff --git a/src/components/common/sidebar/SidebarSubmenu.tsx b/src/components/common/sidebar_/SidebarSubmenu.tsx similarity index 100% rename from src/components/common/sidebar/SidebarSubmenu.tsx rename to src/components/common/sidebar_/SidebarSubmenu.tsx diff --git a/src/components/common/sidebar/index.tsx b/src/components/common/sidebar_/index.tsx similarity index 91% rename from src/components/common/sidebar/index.tsx rename to src/components/common/sidebar_/index.tsx index d9b3266..96e3a90 100644 --- a/src/components/common/sidebar/index.tsx +++ b/src/components/common/sidebar_/index.tsx @@ -2,8 +2,8 @@ import React from 'react' import Icon from '@ant-design/icons' import '@/assets/css/components/common/sidebar.scss' import { getLocalStorage, setLocalStorage } from '@/util/browser' -import SidebarSeparate from '@/components/common/sidebar/SidebarSeparate' -import SidebarFooter from '@/components/common/sidebar/SidebarFooter' +import SidebarSeparate from '@/components/common/sidebar_/SidebarSeparate' +import SidebarFooter from '@/components/common/sidebar_/SidebarFooter' interface SidebarProps extends React.PropsWithChildren { title: string diff --git a/src/pages/SystemFramework.tsx b/src/pages/SystemFramework.tsx index 9ca567c..189d747 100644 --- a/src/pages/SystemFramework.tsx +++ b/src/pages/SystemFramework.tsx @@ -2,9 +2,9 @@ import React from 'react' import '@/assets/css/pages/system-framework.scss' import { getSystemRouteJson } from '@/router/system' import FitFullscreen from '@/components/common/FitFullscreen' -import Sidebar from '@/components/common/sidebar' -import SidebarItemList from '@/components/common/sidebar/SidebarItemList' -import SidebarItem from '@/components/common/sidebar/SidebarItem' +import Sidebar from 'src/components/common/sidebar_' +import SidebarItemList from '@/components/common/sidebar_/SidebarItemList' +import SidebarItem from '@/components/common/sidebar_/SidebarItem' import FullscreenLoadingMask from '@/components/common/FullscreenLoadingMask' const SystemFramework: React.FC = () => { diff --git a/src/pages/ToolsFramework.tsx b/src/pages/ToolsFramework.tsx index c079dd1..b7a70c1 100644 --- a/src/pages/ToolsFramework.tsx +++ b/src/pages/ToolsFramework.tsx @@ -2,11 +2,11 @@ import React from 'react' import '@/assets/css/pages/tools-framework.scss' import { tools } from '@/router/tools' import FitFullscreen from '@/components/common/FitFullscreen' -import SidebarScroll, { SidebarScrollElement } from '@/components/common/sidebar/SidebarScroll' -import Sidebar from '@/components/common/sidebar' -import SidebarItemList from '@/components/common/sidebar/SidebarItemList' -import SidebarItem from '@/components/common/sidebar/SidebarItem' -import SidebarSeparate from '@/components/common/sidebar/SidebarSeparate' +import SidebarScroll, { SidebarScrollElement } from '@/components/common/sidebar_/SidebarScroll' +import Sidebar from 'src/components/common/sidebar_' +import SidebarItemList from '@/components/common/sidebar_/SidebarItemList' +import SidebarItem from '@/components/common/sidebar_/SidebarItem' +import SidebarSeparate from '@/components/common/sidebar_/SidebarSeparate' import FullscreenLoadingMask from '@/components/common/FullscreenLoadingMask' const ToolsFramework: React.FC = () => { diff --git a/src/pages/UserFramework.tsx b/src/pages/UserFramework.tsx index a29c6b4..172b9c3 100644 --- a/src/pages/UserFramework.tsx +++ b/src/pages/UserFramework.tsx @@ -3,9 +3,9 @@ import '@/assets/css/pages/user-framework.scss' import user from '@/router/user' import { hasPathPermission } from '@/util/auth' import FitFullscreen from '@/components/common/FitFullscreen' -import Sidebar from '@/components/common/sidebar' -import SidebarItemList from '@/components/common/sidebar/SidebarItemList' -import SidebarItem from '@/components/common/sidebar/SidebarItem' +import Sidebar from 'src/components/common/sidebar_' +import SidebarItemList from '@/components/common/sidebar_/SidebarItemList' +import SidebarItem from '@/components/common/sidebar_/SidebarItem' import FullscreenLoadingMask from '@/components/common/FullscreenLoadingMask' const ToolsFramework: React.FC = () => { diff --git a/src/pages/sign/Forget.tsx b/src/pages/sign_/Forget.tsx similarity index 100% rename from src/pages/sign/Forget.tsx rename to src/pages/sign_/Forget.tsx diff --git a/src/pages/sign/SignIn.tsx b/src/pages/sign_/SignIn.tsx similarity index 100% rename from src/pages/sign/SignIn.tsx rename to src/pages/sign_/SignIn.tsx diff --git a/src/pages/sign/SignUp.tsx b/src/pages/sign_/SignUp.tsx similarity index 100% rename from src/pages/sign/SignUp.tsx rename to src/pages/sign_/SignUp.tsx diff --git a/src/pages/sign/Verify.tsx b/src/pages/sign_/Verify.tsx similarity index 100% rename from src/pages/sign/Verify.tsx rename to src/pages/sign_/Verify.tsx diff --git a/src/pages/sign/index.tsx b/src/pages/sign_/index.tsx similarity index 93% rename from src/pages/sign/index.tsx rename to src/pages/sign_/index.tsx index 476acc8..947bc3b 100644 --- a/src/pages/sign/index.tsx +++ b/src/pages/sign_/index.tsx @@ -4,10 +4,10 @@ import { useUpdatedEffect } from '@/util/hooks' import FitFullscreen from '@/components/common/FitFullscreen' import FitCenter from '@/components/common/FitCenter' import FlexBox from '@/components/common/FlexBox' -import SignUp from '@/pages/sign/SignUp' -import Verify from '@/pages/sign/Verify' -import Forget from '@/pages/sign/Forget' -import SignIn from '@/pages/sign/SignIn' +import SignUp from '@/pages/sign_/SignUp' +import Verify from '@/pages/sign_/Verify' +import Forget from '@/pages/sign_/Forget' +import SignIn from '@/pages/sign_/SignIn' const Sign: React.FC = () => { const lastPage = useRef('none') diff --git a/src/pages/system/Group.tsx b/src/pages/system_/Group.tsx similarity index 100% rename from src/pages/system/Group.tsx rename to src/pages/system_/Group.tsx diff --git a/src/pages/system/Log.tsx b/src/pages/system_/Log.tsx similarity index 100% rename from src/pages/system/Log.tsx rename to src/pages/system_/Log.tsx diff --git a/src/pages/system/Role.tsx b/src/pages/system_/Role.tsx similarity index 100% rename from src/pages/system/Role.tsx rename to src/pages/system_/Role.tsx diff --git a/src/pages/system/User.tsx b/src/pages/system_/User.tsx similarity index 100% rename from src/pages/system/User.tsx rename to src/pages/system_/User.tsx diff --git a/src/pages/system/index.tsx b/src/pages/system_/index.tsx similarity index 100% rename from src/pages/system/index.tsx rename to src/pages/system_/index.tsx diff --git a/src/pages/system/settings/BaseSettings.tsx b/src/pages/system_/settings_/BaseSettings.tsx similarity index 97% rename from src/pages/system/settings/BaseSettings.tsx rename to src/pages/system_/settings_/BaseSettings.tsx index 19a1304..20bbbb2 100644 --- a/src/pages/system/settings/BaseSettings.tsx +++ b/src/pages/system_/settings_/BaseSettings.tsx @@ -2,7 +2,7 @@ import React from 'react' import { useUpdatedEffect } from '@/util/hooks' import { hasPermission } from '@/util/auth' import { r_sys_settings_base_get, r_sys_settings_base_update } from '@/services/system' -import { SettingsCard } from '@/pages/system/settings' +import { SettingsCard } from '@/pages/system_/settings_' const BaseSettings: React.FC = () => { const [baseForm] = AntdForm.useForm() diff --git a/src/pages/system/settings/MailSettings.tsx b/src/pages/system_/settings_/MailSettings.tsx similarity index 99% rename from src/pages/system/settings/MailSettings.tsx rename to src/pages/system_/settings_/MailSettings.tsx index cd0fd51..fd060ae 100644 --- a/src/pages/system/settings/MailSettings.tsx +++ b/src/pages/system_/settings_/MailSettings.tsx @@ -7,7 +7,7 @@ import { r_sys_settings_mail_send, r_sys_settings_mail_update } from '@/services/system' -import { SettingsCard } from '@/pages/system/settings' +import { SettingsCard } from '@/pages/system_/settings_' const MailSettings: React.FC = () => { const [modal, contextHolder] = AntdModal.useModal() diff --git a/src/pages/system/settings/SensitiveWordSettings.tsx b/src/pages/system_/settings_/SensitiveWordSettings.tsx similarity index 99% rename from src/pages/system/settings/SensitiveWordSettings.tsx rename to src/pages/system_/settings_/SensitiveWordSettings.tsx index ceea0e1..a3db305 100644 --- a/src/pages/system/settings/SensitiveWordSettings.tsx +++ b/src/pages/system_/settings_/SensitiveWordSettings.tsx @@ -8,7 +8,7 @@ import { r_sys_settings_sensitive_get, r_sys_settings_sensitive_update } from '@/services/system' -import { SettingsCard } from '@/pages/system/settings' +import { SettingsCard } from '@/pages/system_/settings_' const SensitiveWordSettings: React.FC = () => { const [dataSource, setDataSource] = useState() diff --git a/src/pages/system/settings/index.tsx b/src/pages/system_/settings_/index.tsx similarity index 93% rename from src/pages/system/settings/index.tsx rename to src/pages/system_/settings_/index.tsx index cf05b94..344d010 100644 --- a/src/pages/system/settings/index.tsx +++ b/src/pages/system_/settings_/index.tsx @@ -7,9 +7,9 @@ import Card from '@/components/common/Card' import FlexBox from '@/components/common/FlexBox' import LoadingMask from '@/components/common/LoadingMask' import Permission from '@/components/common/Permission' -import BaseSettings from '@/pages/system/settings/BaseSettings' -import MailSettings from '@/pages/system/settings/MailSettings' -import SensitiveWordSettings from '@/pages/system/settings/SensitiveWordSettings' +import BaseSettings from '@/pages/system_/settings_/BaseSettings' +import MailSettings from '@/pages/system_/settings_/MailSettings' +import SensitiveWordSettings from '@/pages/system_/settings_/SensitiveWordSettings' interface SettingsCardProps extends React.PropsWithChildren { icon: IconComponent diff --git a/src/pages/system/statistics/ActiveInfo.tsx b/src/pages/system_/statistics_/ActiveInfo.tsx similarity index 98% rename from src/pages/system/statistics/ActiveInfo.tsx rename to src/pages/system_/statistics_/ActiveInfo.tsx index 2d5eb99..dfc1592 100644 --- a/src/pages/system/statistics/ActiveInfo.tsx +++ b/src/pages/system_/statistics_/ActiveInfo.tsx @@ -5,8 +5,8 @@ import { useUpdatedEffect } from '@/util/hooks' import { getTimesBetweenTwoTimes } from '@/util/datetime' import { r_sys_statistics_active } from '@/services/system' import FlexBox from '@/components/common/FlexBox' -import { getTooltipTimeFormatter, lineEChartsBaseOption } from '@/pages/system/statistics/shared' -import { CommonCard } from '@/pages/system/statistics' +import { getTooltipTimeFormatter, lineEChartsBaseOption } from '@/pages/system_/statistics_/shared' +import { CommonCard } from '@/pages/system_/statistics_' const ActiveInfo: React.FC = () => { const activeInfoDivRef = useRef(null) diff --git a/src/pages/system/statistics/CPUInfo.tsx b/src/pages/system_/statistics_/CPUInfo.tsx similarity index 98% rename from src/pages/system/statistics/CPUInfo.tsx rename to src/pages/system_/statistics_/CPUInfo.tsx index 8090e0c..2677587 100644 --- a/src/pages/system/statistics/CPUInfo.tsx +++ b/src/pages/system_/statistics_/CPUInfo.tsx @@ -8,8 +8,8 @@ import { barDefaultSeriesOption, barEChartsBaseOption, EChartsOption -} from '@/pages/system/statistics/shared' -import { CommonCard } from '@/pages/system/statistics' +} from '@/pages/system_/statistics_/shared' +import { CommonCard } from '@/pages/system_/statistics_' const CPUInfo: React.FC = () => { const keyDivRef = useRef(null) diff --git a/src/pages/system/statistics/HardwareInfo.tsx b/src/pages/system_/statistics_/HardwareInfo.tsx similarity index 97% rename from src/pages/system/statistics/HardwareInfo.tsx rename to src/pages/system_/statistics_/HardwareInfo.tsx index 8864fec..3cc657b 100644 --- a/src/pages/system/statistics/HardwareInfo.tsx +++ b/src/pages/system_/statistics_/HardwareInfo.tsx @@ -2,7 +2,7 @@ import React from 'react' import { useUpdatedEffect } from '@/util/hooks' import { r_sys_statistics_hardware } from '@/services/system' import FlexBox from '@/components/common/FlexBox' -import { CommonCard } from '@/pages/system/statistics' +import { CommonCard } from '@/pages/system_/statistics_' const HardwareInfo: React.FC = () => { const [hardwareInfoData, setHardwareInfoData] = useState() diff --git a/src/pages/system/statistics/OnlineInfo.tsx b/src/pages/system_/statistics_/OnlineInfo.tsx similarity index 98% rename from src/pages/system/statistics/OnlineInfo.tsx rename to src/pages/system_/statistics_/OnlineInfo.tsx index 7ddd95d..f1798fe 100644 --- a/src/pages/system/statistics/OnlineInfo.tsx +++ b/src/pages/system_/statistics_/OnlineInfo.tsx @@ -5,8 +5,8 @@ import { useUpdatedEffect } from '@/util/hooks' import { getTimesBetweenTwoTimes } from '@/util/datetime' import { r_sys_statistics_online } from '@/services/system' import FlexBox from '@/components/common/FlexBox' -import { getTooltipTimeFormatter, lineEChartsBaseOption } from '@/pages/system/statistics/shared' -import { CommonCard } from '@/pages/system/statistics' +import { getTooltipTimeFormatter, lineEChartsBaseOption } from '@/pages/system_/statistics_/shared' +import { CommonCard } from '@/pages/system_/statistics_' const OnlineInfo: React.FC = () => { const onlineInfoDivRef = useRef(null) diff --git a/src/pages/system/statistics/SoftwareInfo.tsx b/src/pages/system_/statistics_/SoftwareInfo.tsx similarity index 98% rename from src/pages/system/statistics/SoftwareInfo.tsx rename to src/pages/system_/statistics_/SoftwareInfo.tsx index 5254691..0ea498d 100644 --- a/src/pages/system/statistics/SoftwareInfo.tsx +++ b/src/pages/system_/statistics_/SoftwareInfo.tsx @@ -3,7 +3,7 @@ import { useUpdatedEffect } from '@/util/hooks' import { utcToLocalTime } from '@/util/datetime' import { r_sys_statistics_software } from '@/services/system' import FlexBox from '@/components/common/FlexBox' -import { CommonCard } from '@/pages/system/statistics' +import { CommonCard } from '@/pages/system_/statistics_' const SoftwareInfo: React.FC = () => { const [softwareInfoData, setSoftwareInfoData] = useState() diff --git a/src/pages/system/statistics/StorageInfo.tsx b/src/pages/system_/statistics_/StorageInfo.tsx similarity index 98% rename from src/pages/system/statistics/StorageInfo.tsx rename to src/pages/system_/statistics_/StorageInfo.tsx index 318c65d..987444d 100644 --- a/src/pages/system/statistics/StorageInfo.tsx +++ b/src/pages/system_/statistics_/StorageInfo.tsx @@ -9,8 +9,8 @@ import { barDefaultSeriesOption, barEChartsBaseOption, EChartsOption -} from '@/pages/system/statistics/shared' -import { CommonCard } from '@/pages/system/statistics' +} from '@/pages/system_/statistics_/shared' +import { CommonCard } from '@/pages/system_/statistics_' const StorageInfo: React.FC = () => { const keyDivRef = useRef(null) diff --git a/src/pages/system/statistics/index.tsx b/src/pages/system_/statistics_/index.tsx similarity index 86% rename from src/pages/system/statistics/index.tsx rename to src/pages/system_/statistics_/index.tsx index 587fb15..8d60094 100644 --- a/src/pages/system/statistics/index.tsx +++ b/src/pages/system_/statistics_/index.tsx @@ -7,12 +7,12 @@ import FitFullscreen from '@/components/common/FitFullscreen' import HideScrollbar from '@/components/common/HideScrollbar' import LoadingMask from '@/components/common/LoadingMask' import Permission from '@/components/common/Permission' -import OnlineInfo from '@/pages/system/statistics/OnlineInfo' -import ActiveInfo from '@/pages/system/statistics/ActiveInfo' -import SoftwareInfo from '@/pages/system/statistics/SoftwareInfo' -import HardwareInfo from '@/pages/system/statistics/HardwareInfo' -import CPUInfo from '@/pages/system/statistics/CPUInfo' -import StorageInfo from '@/pages/system/statistics/StorageInfo' +import OnlineInfo from '@/pages/system_/statistics_/OnlineInfo' +import ActiveInfo from '@/pages/system_/statistics_/ActiveInfo' +import SoftwareInfo from '@/pages/system_/statistics_/SoftwareInfo' +import HardwareInfo from '@/pages/system_/statistics_/HardwareInfo' +import CPUInfo from '@/pages/system_/statistics_/CPUInfo' +import StorageInfo from '@/pages/system_/statistics_/StorageInfo' interface CommonCardProps extends React.PropsWithChildren { icon: IconComponent diff --git a/src/pages/system/statistics/shared.ts b/src/pages/system_/statistics_/shared.ts similarity index 100% rename from src/pages/system/statistics/shared.ts rename to src/pages/system_/statistics_/shared.ts diff --git a/src/pages/tools/All.tsx b/src/pages/tools_/All.tsx similarity index 100% rename from src/pages/tools/All.tsx rename to src/pages/tools_/All.tsx diff --git a/src/pages/tools/Translation.tsx b/src/pages/tools_/Translation.tsx similarity index 100% rename from src/pages/tools/Translation.tsx rename to src/pages/tools_/Translation.tsx diff --git a/src/pages/tools/index.tsx b/src/pages/tools_/index.tsx similarity index 100% rename from src/pages/tools/index.tsx rename to src/pages/tools_/index.tsx diff --git a/src/pages/user/index.tsx b/src/pages/user_/index.tsx similarity index 100% rename from src/pages/user/index.tsx rename to src/pages/user_/index.tsx diff --git a/src/router/index.tsx b/src/router/index.tsx index c5aac51..2469d6a 100644 --- a/src/router/index.tsx +++ b/src/router/index.tsx @@ -5,7 +5,7 @@ import user from '@/router/user' import tools from '@/router/tools' import { getAuthRoute, mapJsonToRoute, setTitle } from '@/util/route' -const lazySignPage = React.lazy(() => import('@/pages/sign')) +const lazySignPage = React.lazy(() => import('src/pages/sign_')) const root: RouteJsonObject[] = [ { diff --git a/src/router/system.tsx b/src/router/system.tsx index ce3b836..638dd87 100644 --- a/src/router/system.tsx +++ b/src/router/system.tsx @@ -6,7 +6,7 @@ const system: RouteJsonObject[] = [ path: '', absolutePath: '/system', id: 'system', - component: React.lazy(() => import('@/pages/system')), + component: React.lazy(() => import('src/pages/system_')), name: '系统管理', icon: React.lazy(() => import('~icons/oxygen/setting.jsx')), menu: true @@ -15,7 +15,7 @@ const system: RouteJsonObject[] = [ path: 'statistics', absolutePath: '/system/statistics', id: 'system-statistics', - component: React.lazy(() => import('@/pages/system/statistics')), + component: React.lazy(() => import('@/pages/system_/statistics_')), name: '系统概况', icon: React.lazy(() => import('~icons/oxygen/chart.jsx')), menu: true, @@ -25,7 +25,7 @@ const system: RouteJsonObject[] = [ path: 'settings', absolutePath: '/system/settings', id: 'system-settings', - component: React.lazy(() => import('@/pages/system/settings')), + component: React.lazy(() => import('@/pages/system_/settings_')), name: '系统设置', icon: React.lazy(() => import('~icons/oxygen/option.jsx')), menu: true, @@ -35,7 +35,7 @@ const system: RouteJsonObject[] = [ path: 'user', absolutePath: '/system/user', id: 'system-user', - component: React.lazy(() => import('@/pages/system/User')), + component: React.lazy(() => import('@/pages/system_/User')), name: '用户管理', icon: React.lazy(() => import('~icons/oxygen/user.jsx')), menu: true, @@ -45,7 +45,7 @@ const system: RouteJsonObject[] = [ path: 'role', absolutePath: '/system/role', id: 'system-role', - component: React.lazy(() => import('@/pages/system/Role')), + component: React.lazy(() => import('@/pages/system_/Role')), name: '角色管理', icon: React.lazy(() => import('~icons/oxygen/role.jsx')), menu: true, @@ -55,7 +55,7 @@ const system: RouteJsonObject[] = [ path: 'group', absolutePath: '/system/group', id: 'system-group', - component: React.lazy(() => import('@/pages/system/Group')), + component: React.lazy(() => import('@/pages/system_/Group')), name: '群组管理', icon: React.lazy(() => import('~icons/oxygen/group.jsx')), menu: true, @@ -65,7 +65,7 @@ const system: RouteJsonObject[] = [ path: 'log', absolutePath: '/system/log', id: 'system-log', - component: React.lazy(() => import('@/pages/system/Log')), + component: React.lazy(() => import('@/pages/system_/Log')), name: '系统日志', icon: React.lazy(() => import('~icons/oxygen/log.jsx')), menu: true, diff --git a/src/router/tools.tsx b/src/router/tools.tsx index 8f1e01b..349e77f 100644 --- a/src/router/tools.tsx +++ b/src/router/tools.tsx @@ -5,7 +5,7 @@ export const tools: RouteJsonObject[] = [ path: '', absolutePath: '/', id: 'tools', - component: React.lazy(() => import('@/pages/tools')), + component: React.lazy(() => import('src/pages/tools_')), name: '主页', icon: React.lazy(() => import('~icons/oxygen/home.jsx')), menu: true, @@ -15,7 +15,7 @@ export const tools: RouteJsonObject[] = [ path: 'all', absolutePath: '/all', id: 'tools-all', - component: React.lazy(() => import('@/pages/tools')), + component: React.lazy(() => import('src/pages/tools_')), name: '全部工具', titlePostfix: ' - 全部工具', icon: React.lazy(() => import('~icons/oxygen/tool.jsx')), @@ -26,7 +26,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation', absolutePath: '/translation', id: 'tools-translation', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -55,7 +55,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation-', absolutePath: '/translation-', id: 'tools-translation-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -83,7 +83,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--', absolutePath: '/translation--', id: 'tools-translation--', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -93,7 +93,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--1', absolutePath: '/translation--1', id: 'tools-translation--1', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--1', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -103,7 +103,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--2', absolutePath: '/translation--2', id: 'tools-translation--2', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--2', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -113,7 +113,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--3', absolutePath: '/translation--3', id: 'tools-translation--3', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--3', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -123,7 +123,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--4', absolutePath: '/translation--4', id: 'tools-translation--4', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--4', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -133,7 +133,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--5', absolutePath: '/translation--5', id: 'tools-translation--5', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--5', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -143,7 +143,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--6', absolutePath: '/translation--6', id: 'tools-translation--6', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--6', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -153,7 +153,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--7', absolutePath: '/translation--7', id: 'tools-translation--7', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--7', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -163,7 +163,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--8', absolutePath: '/translation--8', id: 'tools-translation--8', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--8', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -173,7 +173,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--9', absolutePath: '/translation--9', id: 'tools-translation--9', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--9', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -183,7 +183,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--10', absolutePath: '/translation--10', id: 'tools-translation--10', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--10', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -193,7 +193,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--1-', absolutePath: '/translation--1-', id: 'tools-translation--1-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--1-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -203,7 +203,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--2-', absolutePath: '/translation--2-', id: 'tools-translation--2-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--2-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -213,7 +213,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--3-', absolutePath: '/translation--3-', id: 'tools-translation--3-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--3-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -223,7 +223,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--4-', absolutePath: '/translation--4-', id: 'tools-translation--4-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--4-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -233,7 +233,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--5-', absolutePath: '/translation--5-', id: 'tools-translation--5-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--5-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -243,7 +243,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--6-', absolutePath: '/translation--6-', id: 'tools-translation--6-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--6-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -253,7 +253,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--7-', absolutePath: '/translation--7-', id: 'tools-translation--7-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--7-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -263,7 +263,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--8-', absolutePath: '/translation--8-', id: 'tools-translation--8-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--8-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -273,7 +273,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--9-', absolutePath: '/translation--9-', id: 'tools-translation--9-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--9-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, @@ -283,7 +283,7 @@ export const tools: RouteJsonObject[] = [ path: 'translation--10-', absolutePath: '/translation--10-', id: 'tools-translation--10-', - component: React.lazy(() => import('@/pages/tools/Translation')), + component: React.lazy(() => import('@/pages/tools_/Translation')), name: '翻译--10-', icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')), menu: true, diff --git a/src/router/user.tsx b/src/router/user.tsx index dde6c59..8279478 100644 --- a/src/router/user.tsx +++ b/src/router/user.tsx @@ -5,7 +5,7 @@ const user: RouteJsonObject[] = [ path: '', absolutePath: '/user', id: 'user', - component: React.lazy(() => import('@/pages/user')), + component: React.lazy(() => import('src/pages/user_')), name: '个人档案', icon: React.lazy(() => import('~icons/oxygen/user.jsx')), menu: true