Remove manual runtime controls from server detail
This commit is contained in:
@@ -6,7 +6,7 @@ First-party routes must be declared here before page implementation.
|
||||
|
||||
- `/`: 平台概览(平台管理员默认落地页).
|
||||
- `/servers`: 服务器管理(服主/服务器管理员默认落地页).
|
||||
- `/servers/:serverId`: 服务器详情 route(日常运维工作台:日志、管理终端、运行操作、配置、插件控制、AI 助手、操作历史).
|
||||
- `/servers/:serverId`: 服务器详情 route(日常运维工作台:插件声明页面、日志、管理终端、配置、AI 助手、操作历史).
|
||||
- `/plugins`: 插件市场.
|
||||
- `/users`: 用户管理.
|
||||
- `/ai-providers`: AI 提供商管理.
|
||||
|
||||
@@ -39,8 +39,8 @@ describe("console shell routes", () => {
|
||||
expect(resolved.route.id).toBe("serverDetail");
|
||||
expect(resolved.params.serverId).toBe("server-example-1");
|
||||
expect(hashForPage("serverDetail", { serverId: "server-example-1" })).toBe("#/servers/server-example-1");
|
||||
expect(hashForPage("serverDetail", { serverId: "server-example-1", routeKey: "run-builder" })).toBe("#/servers/server-example-1?focus=run-builder");
|
||||
expect(resolveRouteHash("#/servers/server-example-1?focus=run-builder", platformAdmin).params).toEqual({ serverId: "server-example-1", routeKey: "run-builder" });
|
||||
expect(hashForPage("serverDetail", { serverId: "server-example-1", routeKey: "overview" })).toBe("#/servers/server-example-1?focus=overview");
|
||||
expect(resolveRouteHash("#/servers/server-example-1?focus=overview", platformAdmin).params).toEqual({ serverId: "server-example-1", routeKey: "overview" });
|
||||
});
|
||||
|
||||
it("round-trips hosted plugin page hashes with server context", () => {
|
||||
|
||||
Reference in New Issue
Block a user