first commit
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
import type { PluginCatalogItem, ServerInstanceView, ShellSummaryItem, UserAccessView } from "./page";
|
||||
|
||||
export const shellSummary: ShellSummaryItem[] = [
|
||||
{ label: "服务器实例", value: "2", detail: "1 个运行中,1 个待配置", tone: "success" },
|
||||
{ label: "运行节点", value: "1", detail: "本地执行器在线", tone: "success" },
|
||||
{ label: "插件", value: "2", detail: "桥接能力已就绪", tone: "success" },
|
||||
{ label: "访问审核", value: "1", detail: "待确认角色变更", tone: "warning" }
|
||||
];
|
||||
|
||||
export const serverInstances: ServerInstanceView[] = [
|
||||
{
|
||||
id: "server-example-1",
|
||||
name: "Example Survival #1",
|
||||
plugin: "game.example",
|
||||
runEndpoint: "run-local",
|
||||
state: "running",
|
||||
pendingJobs: 0,
|
||||
latestLog: "stdout seq 1842 acknowledged"
|
||||
},
|
||||
{
|
||||
id: "server-example-2",
|
||||
name: "Example Creative #2",
|
||||
plugin: "game.example",
|
||||
runEndpoint: "run-local",
|
||||
state: "draft",
|
||||
pendingJobs: 1,
|
||||
latestLog: "waiting for create workflow"
|
||||
}
|
||||
];
|
||||
|
||||
export const pluginCatalog: PluginCatalogItem[] = [
|
||||
{
|
||||
id: "game.example",
|
||||
name: "Example Server",
|
||||
version: "0.1.0",
|
||||
serverType: "example",
|
||||
status: "installed",
|
||||
permissions: ["server.read", "server.lifecycle", "server.logs.read", "ai.invoke"],
|
||||
bridgeActions: ["server.instances.read", "logs.query", "ai.invoke"],
|
||||
validation: "manifest validated"
|
||||
},
|
||||
{
|
||||
id: "game.scum",
|
||||
name: "SCUM Server",
|
||||
version: "planned",
|
||||
serverType: "scum",
|
||||
status: "disabled",
|
||||
permissions: ["server.read"],
|
||||
bridgeActions: ["server.instances.read"],
|
||||
validation: "pending proof plugin"
|
||||
}
|
||||
];
|
||||
|
||||
export const userAccess: UserAccessView[] = [
|
||||
{
|
||||
id: "user-admin",
|
||||
displayName: "Operator",
|
||||
status: "active",
|
||||
roles: ["admin", "operator"],
|
||||
review: "baseline owner"
|
||||
},
|
||||
{
|
||||
id: "user-review",
|
||||
displayName: "Plugin Reviewer",
|
||||
status: "pending",
|
||||
roles: ["plugin-reviewer"],
|
||||
review: "needs approval"
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user