feat(*): 用户工作台 - 统一黑白灰空间界面并整理画布入口

This commit is contained in:
ddCat
2026-07-31 15:33:37 +08:00
parent ecb5b496d4
commit ad254784e4
11 changed files with 484 additions and 59 deletions

View File

@@ -10,8 +10,8 @@ export function canvasDockStyle(theme: CanvasTheme, color: string = theme.toolba
boxShadow: `0 18px 52px ${theme.spatial.shadow}, inset 0 1px 0 rgba(255,255,255,.14)`,
"--dock-command-bg": theme.spatial.surface,
"--dock-command-hover": theme.toolbar.itemHover,
"--dock-command-active": theme.node.text,
"--dock-command-active-text": theme.canvas.background,
"--dock-command-active": theme.toolbar.activeBg,
"--dock-command-active-text": theme.toolbar.activeText,
"--dock-command-danger": theme.accent.danger,
"--dock-tooltip-bg": theme.spatial.elevated,
"--dock-tooltip-border": theme.toolbar.border,

View File

@@ -0,0 +1,5 @@
export function isSpatialWorkbenchPath(pathname: string) {
// 画布列表属于用户工作台,只有具体画布编辑器与运营后台保留各自现有视觉契约。
const canvasEditor = /^\/canvas\/[^/]+(?:\/|$)/.test(pathname);
return !canvasEditor && !pathname.startsWith("/admin");
}