From a8425862f0bb8d6bc84fdfdc4ce6d150c2c596e8 Mon Sep 17 00:00:00 2001 From: GyDi Date: Sun, 16 Jan 2022 03:25:50 +0800 Subject: [PATCH] feat: rename page --- src/pages/_routers.tsx | 28 ++++++++++++------------- src/pages/{log.tsx => logs.tsx} | 0 src/pages/{profile.tsx => profiles.tsx} | 0 src/pages/{proxy.tsx => proxies.tsx} | 0 src/pages/{setting.tsx => settings.tsx} | 0 5 files changed, 14 insertions(+), 14 deletions(-) rename src/pages/{log.tsx => logs.tsx} (100%) rename src/pages/{profile.tsx => profiles.tsx} (100%) rename src/pages/{proxy.tsx => proxies.tsx} (100%) rename src/pages/{setting.tsx => settings.tsx} (100%) diff --git a/src/pages/_routers.tsx b/src/pages/_routers.tsx index 66939e4..f7d2f75 100644 --- a/src/pages/_routers.tsx +++ b/src/pages/_routers.tsx @@ -1,19 +1,19 @@ -import LogPage from "./log"; -import ProxyPage from "./proxy"; -import ProfilePage from "./profile"; -import SettingPage from "./setting"; +import LogsPage from "./logs"; +import ProxiesPage from "./proxies"; +import ProfilesPage from "./profiles"; +import SettingsPage from "./settings"; import ConnectionsPage from "./connections"; export const routers = [ { - label: "Proxy", + label: "Proxies", link: "/", - ele: ProxyPage, + ele: ProxiesPage, }, { - label: "Profile", + label: "Profiles", link: "/profile", - ele: ProfilePage, + ele: ProfilesPage, }, { label: "Connections", @@ -21,13 +21,13 @@ export const routers = [ ele: ConnectionsPage, }, { - label: "Log", - link: "/log", - ele: LogPage, + label: "Logs", + link: "/logs", + ele: LogsPage, }, { - label: "Setting", - link: "/setting", - ele: SettingPage, + label: "Settings", + link: "/settings", + ele: SettingsPage, }, ]; diff --git a/src/pages/log.tsx b/src/pages/logs.tsx similarity index 100% rename from src/pages/log.tsx rename to src/pages/logs.tsx diff --git a/src/pages/profile.tsx b/src/pages/profiles.tsx similarity index 100% rename from src/pages/profile.tsx rename to src/pages/profiles.tsx diff --git a/src/pages/proxy.tsx b/src/pages/proxies.tsx similarity index 100% rename from src/pages/proxy.tsx rename to src/pages/proxies.tsx diff --git a/src/pages/setting.tsx b/src/pages/settings.tsx similarity index 100% rename from src/pages/setting.tsx rename to src/pages/settings.tsx