mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-24 07:51:52 +08:00
refactor: rename
1. 将枚举 Server 改为字符串常量,使得 memshell 和 probeshell 都能共用 2. 移除 memshell 模块直接内置在 generator 中 3. 通用类从 memshell 移动至 javaweb 下,命名修改,增加辨识度
This commit is contained in:
+7
-7
@@ -1,14 +1,14 @@
|
||||
import {createHashRouter} from "react-router-dom";
|
||||
import RootLayout from "@/components/layouts/root-layout";
|
||||
import {env} from "@/config";
|
||||
import LandingPage from "@/pages/landing";
|
||||
import MemShellPage from "@/pages/memshell";
|
||||
import type {ShellFormSchema} from "@/types/schema";
|
||||
import LandingPage from "./pages/landing";
|
||||
import ProbePage from "./pages/probe";
|
||||
import ProbeShellPage from "@/pages/probeshell";
|
||||
import type {MemShellFormSchema} from "@/types/schema";
|
||||
|
||||
// Function to parse URL parameters into form default values
|
||||
const parseUrlParams = (searchParams: URLSearchParams): Partial<ShellFormSchema> => {
|
||||
const result: Partial<ShellFormSchema> = {};
|
||||
const parseUrlParams = (searchParams: URLSearchParams): Partial<MemShellFormSchema> => {
|
||||
const result: Partial<MemShellFormSchema> = {};
|
||||
|
||||
// Helper function to parse boolean values
|
||||
const parseBoolean = (value: string | null): boolean | undefined => {
|
||||
@@ -72,8 +72,8 @@ export const router = createHashRouter(
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "probe",
|
||||
element: <ProbePage />,
|
||||
path: "probeshell",
|
||||
element: <ProbeShellPage />,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user