1
0

refactor: 项目更名为 DiAL(统一拨测平台)

将 gateway-checker/Gateway Checker 统一替换为 dial-server/DiAL
- 包名、可执行文件名、API service 标识改为 dial-server
- UI 标题改为 DiAL,副标题改为统一拨测平台
- 同步更新测试断言、构建脚本、示例配置和文档
This commit is contained in:
2026-05-11 22:23:17 +08:00
parent 767f26617e
commit 3fa1b3957e
13 changed files with 25 additions and 25 deletions

View File

@@ -244,7 +244,7 @@ function formatDuration(ms: number): string {
function createHealthResponse(): HealthResponse {
return {
ok: true,
service: "gateway-checker",
service: "dial-server",
timestamp: new Date().toISOString(),
};
}

View File

@@ -1,6 +1,6 @@
export function readRuntimeConfig(argv: string[] = process.argv.slice(2)): { configPath: string } {
if (argv.length === 0) {
throw new Error("需要指定 YAML 配置文件路径\n用法: gateway-checker <config.yaml>");
throw new Error("需要指定 YAML 配置文件路径\n用法: dial-server <config.yaml>");
}
return { configPath: argv[0]! };

View File

@@ -23,7 +23,7 @@ export function startServer(options: StartServerOptions) {
}),
});
console.log(`Gateway Checker listening on ${server.url}`);
console.log(`DiAL listening on ${server.url}`);
return server;
}

View File

@@ -2,7 +2,7 @@ export type RuntimeMode = "development" | "production" | "test";
export interface HealthResponse {
ok: true;
service: "gateway-checker";
service: "dial-server";
timestamp: string;
}

View File

@@ -39,8 +39,8 @@ export function App() {
return (
<main className="dashboard">
<header className="dashboard-header">
<h1>Gateway Checker</h1>
<p className="dashboard-subtitle">HTTP </p>
<h1>DiAL</h1>
<p className="dashboard-subtitle"></p>
</header>
{error && <div className="error-banner">: {error}</div>}

View File

@@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Gateway Checker - HTTP 拨测监控面板" />
<title>Gateway Checker</title>
<meta name="description" content="DiAL - 统一拨测平台" />
<title>DiAL</title>
</head>
<body>
<div id="root"></div>