feat: migrate v0.2 cloud web to TypeScript

This commit is contained in:
Codex
2026-05-28 21:33:11 +08:00
parent 44851d8eb3
commit b7f7299056
32 changed files with 5550 additions and 5327 deletions
+7 -3
View File
@@ -55,11 +55,15 @@ assert.ok(Array.isArray(liveBlockedJson.blockers));
const activeWebSource = [
"web/hwlab-cloud-web/index.html",
"web/hwlab-cloud-web/app.mjs",
"web/hwlab-cloud-web/live-status.mjs",
"web/hwlab-cloud-web/app.ts",
"web/hwlab-cloud-web/app-device-pod.ts",
"web/hwlab-cloud-web/app-conversation.ts",
"web/hwlab-cloud-web/app-trace.ts",
"web/hwlab-cloud-web/app-helpers.ts",
"web/hwlab-cloud-web/live-status.ts",
"web/hwlab-cloud-web/help.md"
].map((file) => fs.readFileSync(path.resolve(repoRoot, file), "utf8")).join("\n");
const distContract = fs.readFileSync(path.resolve(repoRoot, "web/hwlab-cloud-web/scripts/dist-contract.mjs"), "utf8");
const distContract = fs.readFileSync(path.resolve(repoRoot, "web/hwlab-cloud-web/scripts/dist-contract.ts"), "utf8");
assert.match(activeWebSource, /Device Pod/u);
assert.match(activeWebSource, /\/v1\/device-pods/u);