Commit Graph

13 Commits

Author SHA1 Message Date
Björn Blomberg
e89d2c87f0 feat: add syntax highlighting and enhance document editing features
- Import GitHub dark theme for highlight.js in main.ts
- Pass slug prop to VisualEditor in DocumentView.vue for version and normal editing modes
- Update Vite configuration to increase maximum cache size and add media proxy
- Add new dependencies for Tiptap extensions and highlight.js in package.json and package-lock.json
2026-04-13 15:14:46 +02:00
Björn Blomberg
a46d56e2fc feat: integrate @tailwindcss/typography and enhance folder picker functionality
- Added @tailwindcss/typography dependency to package.json and tailwind.config.js.
- Updated FolderPicker.vue to include additional properties (isGitRepo, hasDocuments) for directories.
- Enhanced Sidebar.vue with folder creation and document handling features, including drag-and-drop functionality.
- Implemented createFolder and moveDocument mutations in gql.ts for managing folder and document operations.
- Added logic to handle folder creation and document creation prompts in Sidebar.vue.
- Updated the layout and interactions in Sidebar.vue to improve user experience.
2026-04-13 10:55:02 +02:00
376b946e73 Implement AsciiDoc and TipTap conversion logic, including new Admonition node and CodeBlock extension; add DiffViewer and HistoryPanel components for document version comparison; introduce password hashing utility with SHA-256. 2026-04-12 22:28:15 +02:00
Björn Blomberg
05b773c14c first working login and editing of file. bugg is för rendering with tiptap 2026-04-10 19:56:21 +02:00
Björn Blomberg
41dc1d9988 fix: handle UNAUTHORIZED responses by clearing session and reloading 2026-04-10 18:56:26 +02:00
Björn Blomberg
772a01c9be docs: append JSON schema to README 2026-04-10 18:33:48 +02:00
Björn Blomberg
c8b63bf8c4 docs: API documentation and JSON schema updates 2026-04-10 18:31:38 +02:00
37056ff8a4 fix: add postcss.config.js so Tailwind CSS is actually compiled
Without this file Vite has no PostCSS plugins configured, so the
@tailwind base/components/utilities directives in main.css are silently
ignored and the built CSS file contains no styles at all.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 14:21:31 +02:00
542762e441 fix: double config path, stale service worker, empty op-name log
- main.go: DOCKER_PATH=/config + /config.json (was /config/config.json)
- vite.config.ts: skipWaiting+clientsClaim forces new SW immediately;
  navigateFallback: null prevents SW from serving stale index.html;
  globPatterns excludes HTML so navigation always hits the network
- server.go: gqlOpName handles shorthand { field } syntax

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 14:16:44 +02:00
d0db5cd59d fix: remove unused imports/variables caught by vue-tsc
- Remove unused app import in Sidebar.vue
- Remove unused toggleMode function in ThemeToggle.vue
- Remove unused theme variable in SetupWizard.vue
- Remove unused watch import in stores/theme.ts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 13:50:43 +02:00
d93f3bb888 fix+feat: SPA routing, theme system, modern UI, setup wizard improvements
Fixes:
- Go server now serves index.html for all non-asset paths (SPA fallback)
- Null guard on data.documents prevents undefined.length TypeError
- App.vue waits for checkStatus() before rendering AppLayout (race condition)
- PWA manifest no longer references missing icon files
- index.html applies theme class before paint to prevent flash

Features:
- Theme store: dark/light toggle + 6 accent color presets + custom hex picker
- ThemeToggle component in header dropdown
- CSS custom properties for accent color (--accent-400/500/600/700)
- Tailwind accent-* color utilities driven by CSS vars
- SetupWizard: 3-step flow, password confirmation, LDAP test button,
  animated toggle, review step, proper error/success states
- Sidebar: loading skeleton, active page highlight, null-safe document list
- Global .input, .btn-primary, .btn-secondary, .card component classes
- Stub GraphQL responses for setup/login/testLdapConnection

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 13:40:42 +02:00
3e41191f45 fix: three TypeScript build errors in frontend
- Remove unused onMounted import in VisualEditor.vue
- Add missing @codemirror/theme-one-dark to devDependencies
- Add vite-env.d.ts so import.meta.env is typed correctly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 13:21:51 +02:00
e6b64e3344 feat: Archivum skeleton — Go/GraphQL backend + Vue 3 PWA frontend
Full project scaffold: multi-stage Dockerfile (ARM64/AMD64), AsciiDoc↔TipTap
bridge, Setup Wizard, CodeMirror source editor, Git-backed storage layer,
LDAP+JWT auth skeleton, Tailwind mobile-first layout, and VS Code build/push
tasks targeting registry at 192.168.0.19:5000.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 13:07:01 +02:00