turnstone/web/uno.config.ts
pyr0ball 59c5b61841 feat: Vue 3 frontend and FastAPI REST layer
- app/rest.py: FastAPI app wrapping search/diagnose/sources with CORS
- web/: Vue 3 + Vite + UnoCSS + Pinia frontend at port 8535
  - LogSearchView: sidebar filters (source, severity, limit) + FTS search
  - DiagnoseView: layered symptom investigation matching MCP diagnose tool
  - SourcesView: corpus table with entry count, error count, time range
  - LogEntryRow: severity badge, pattern chips, repeat count, timestamp
  - StatusDot: live API health indicator in nav
- scripts/start_dev.sh: launch FastAPI (:8534) + Vite dev server (:8535)
- .gitignore: add web/node_modules/ and web/dist/
- Caddy: /turnstone* route added to menagerie.circuitforge.tech block
  (API → :8534 with /turnstone strip, SPA fallback → :8535)
2026-05-08 16:27:59 -07:00

33 lines
699 B
TypeScript

import { defineConfig, presetAttributify, presetWind } from 'unocss'
export default defineConfig({
presets: [presetWind(), presetAttributify()],
theme: {
colors: {
surface: {
DEFAULT: '#0f1117',
raised: '#161b25',
border: '#1e2636',
},
accent: {
DEFAULT: '#4e9af1',
muted: '#2a4a72',
},
sev: {
debug: '#6b7280',
info: '#60a5fa',
warn: '#fbbf24',
error: '#f87171',
critical: '#ef4444',
},
text: {
primary: '#e2e8f0',
muted: '#94a3b8',
dim: '#475569',
},
},
fontFamily: {
mono: ['JetBrains Mono', 'monospace'],
},
},
})