feat(*): 用户工作台 - 统一黑白灰空间界面并整理画布入口
This commit is contained in:
@@ -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,
|
||||
|
||||
5
web/src/lib/workspace-routes.ts
Normal file
5
web/src/lib/workspace-routes.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function isSpatialWorkbenchPath(pathname: string) {
|
||||
// 画布列表属于用户工作台,只有具体画布编辑器与运营后台保留各自现有视觉契约。
|
||||
const canvasEditor = /^\/canvas\/[^/]+(?:\/|$)/.test(pathname);
|
||||
return !canvasEditor && !pathname.startsWith("/admin");
|
||||
}
|
||||
Reference in New Issue
Block a user