fix(release): 正式版本 - 修复 SSRF 与 Quality checks,发布 v1.6.6.1

This commit is contained in:
ddcat666
2026-10-13 12:55:30 +08:00
parent ede6cc1e70
commit ea6676f449
21 changed files with 1303 additions and 338 deletions

View File

@@ -39,7 +39,7 @@ describe("workspace route loading", () => {
expect(router).toContain('{ path: "/create", element: deferred(<CreatePage />) }');
expect(router).toContain("<RequireAuth allowAnonymous={isGuestWorkspacePath(pathname)}>");
expect(router).toContain('{ path: "/assets", element: <RequireAuth>{deferred(<AssetsPage />)}</RequireAuth> }');
expect(router).toContain('{ path: "/canvas/:id", element: <RequireAuth><CanvasProjectPage /></RequireAuth> }');
expect(router).toMatch(/path: "\/canvas\/:id",\s+element: \(\s+<RequireAuth>\s+<CanvasProjectPage \/>\s+<\/RequireAuth>\s+\),/);
expect(router).not.toContain('path: "/home"');
expect(router).not.toContain("HomePage");
expect(navigation).toContain('{ ...toolItem("create", "/"), id: "home", title: "创作" }');
@@ -77,7 +77,6 @@ describe("workspace route loading", () => {
expect(detail).toContain("新建画布");
});
test("keeps project asset refresh scoped to the latest user and project", () => {
const editor = source("../src/pages/projects/detail/editor.tsx");
@@ -108,7 +107,7 @@ describe("workspace route loading", () => {
expect(projectDetail).toContain('import("@/services/user-data-sync")');
expect(projectDetail).not.toContain('import { createCanvasProjectWithRemoteSync } from "@/services/user-data-sync"');
expect(workflow).not.toContain('from "@/lib/video-poster"');
expect(workflow).toContain('if (playing) return <video');
expect(workflow).toContain("if (playing) return <video");
});
test("uses a quiet workspace skeleton for initial hydration", () => {
@@ -141,9 +140,9 @@ describe("workspace wallet entry", () => {
expect(router).not.toContain("WalletPage");
expect(router).not.toContain("loadWalletPage");
expect(modules).not.toContain("pages/wallet");
expect(host).toContain("pathname !== \"/wallet\"");
expect(host).toContain('pathname !== "/wallet"');
expect(host).toContain("openWorkspaceWallet");
expect(palette).toContain('run: () => openWorkspaceWallet()');
expect(palette).toContain("run: () => openWorkspaceWallet()");
expect(palette).not.toContain('"/wallet"');
expect(canvasTopBar).toContain("openWorkspaceWallet()");
expect(canvasTopBar).not.toContain('to="/wallet"');