refactor(*): 代码质量 - 优化前后端实现并完善协议与画布验证

This commit is contained in:
ddcat666
2026-10-08 19:38:57 +08:00
parent d74f783912
commit 295374650a
724 changed files with 3046 additions and 3885 deletions

View File

@@ -6,8 +6,8 @@ import { withCanvasStorePersistenceLock, type CanvasProject } from "@/stores/can
import { withGenerationArtifactCommitLock } from "@/services/generation-asset-repository";
export type CanvasSyncDraft = { id: string; savedAt: string; project: CanvasProject };
const draftKey = (projectId: string) => `infinite-canvas:sync-drafts:${projectId}`;
const draftIndexKey = "infinite-canvas:sync-draft-index";
const draftKey = (projectId: string) => `yingce:sync-drafts:${projectId}`;
const draftIndexKey = "yingce:sync-draft-index";
export async function readAllCanvasSyncDrafts(scope = getActiveUserScope()) {
const raw = await localForageStorageForScope(scope).getItem(draftIndexKey);