Add spaces, the page tree and the Docwell design system

Spaces and pages:
- Spaces inside workspaces, open or private, with admin/editor/commenter/viewer
  roles that cascade from the workspace role (rules in internal/access)
- Page tree per space with fractional position keys, move with cycle checks,
  trash that hides whole subtrees, restore and permanent delete
- OpenAPI, TypeScript client, and web app sidebar tree with drag-and-drop,
  page, space, trash and space settings views (EN + PL)

Design system:
- Tokens, type scale, radii and shadows from the design kit in
  @docwell/ui/theme.css; Inter, Source Serif 4 and JetBrains Mono bundled
- Vue ports of Button, TextField, Badge, Callout, Icon, Breadcrumbs,
  SlashMenu and PageTreeItem, plus Logo; favicons and web manifest
- Web app and admin panel restyled on the new tokens, in light and dark

Also: fix the Vite dev server crashing on /config.json, and stop tracking
the local Design/ and docs/ folders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tajniak81andClaude Opus 5.5 committed 2026-10-31 11:14:31 +01:00
1 parent 4cb313aa95
commit a96c6ad3ce
92 files changed
+5055 -892

No files matched your search

+28 -13
View File
@@ -1,25 +1,40 @@
/* Base document styles for the Docwell editor. Uses tokens from @docwell/ui/theme.css. */
/* Document styles for the Docwell editor, from the design system's Document
type scale. Uses tokens from @docwell/ui/theme.css. */
.dw-prose {
outline: none;
line-height: 1.7;
font-family: var(--font-sans);
font-size: var(--text-doc-body);
line-height: var(--text-doc-body--line-height);
color: var(--color-ink);
min-height: 12rem;
}
.dw-prose > * + * { margin-top: 0.75em; }
.dw-prose h1 { font-size: 2rem; font-weight: 700; line-height: 1.25; margin-top: 1.5em; }
.dw-prose h2 { font-size: 1.5rem; font-weight: 650; line-height: 1.3; margin-top: 1.4em; }
.dw-prose h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.2em; }
/* Paragraph blocks sit space-2 apart; a heading gets space-5 above it. */
.dw-prose > * + * { margin-top: 8px; }
.dw-prose > :is(h1, h2, h3) { margin-top: 20px; }
.dw-prose h1 { font-family: var(--font-serif); font-size: var(--text-doc-h1); line-height: var(--text-doc-h1--line-height); font-weight: 600; }
.dw-prose h2 { font-family: var(--font-serif); font-size: var(--text-doc-h2); line-height: var(--text-doc-h2--line-height); font-weight: 600; }
.dw-prose h3 { font-size: var(--text-doc-h3); line-height: var(--text-doc-h3--line-height); font-weight: 600; }
.dw-prose ul { list-style: disc; padding-left: 1.5rem; }
.dw-prose ol { list-style: decimal; padding-left: 1.5rem; }
.dw-prose a { color: var(--color-brand-600); text-decoration: underline; }
.dw-prose blockquote { border-left: 3px solid var(--color-border); padding-left: 1rem; color: var(--color-fg-muted); }
.dw-prose code { font-family: var(--font-mono); font-size: 0.875em; background: var(--color-surface-muted); padding: 0.1em 0.3em; border-radius: 4px; }
.dw-prose pre { font-family: var(--font-mono); background: var(--color-surface-muted); padding: 0.75rem 1rem; border-radius: 6px; overflow-x: auto; }
.dw-prose pre code { background: none; padding: 0; }
.dw-prose hr { border: none; border-top: 1px solid var(--color-border); margin: 1.5em 0; }
.dw-prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.dw-prose blockquote { border-left: 3px solid var(--color-line); padding-left: 1rem; color: var(--color-ink-muted); }
.dw-prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--color-code-bg); padding: 0.1em 0.3em; border-radius: var(--radius-xs); }
.dw-prose pre {
font-family: var(--font-mono);
font-size: var(--text-code);
line-height: var(--text-code--line-height);
background: var(--color-code-bg);
padding: 12px 16px;
border-radius: var(--radius-md);
overflow-x: auto;
}
.dw-prose pre code { background: none; padding: 0; font-size: inherit; }
.dw-prose hr { border: none; border-top: 1px solid var(--color-line); margin: 24px 0; }
.dw-prose ::selection { background: var(--color-selection); }
.dw-prose p.is-editor-empty:first-child::before {
content: attr(data-placeholder);
color: var(--color-fg-muted);
color: var(--color-ink-faint);
float: left;
height: 0;
pointer-events: none;