- 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)
14 lines
515 B
TypeScript
14 lines
515 B
TypeScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import LogSearchView from '@/views/LogSearchView.vue'
|
|
import DiagnoseView from '@/views/DiagnoseView.vue'
|
|
import SourcesView from '@/views/SourcesView.vue'
|
|
|
|
export default createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{ path: '/', redirect: '/search' },
|
|
{ path: '/search', component: LogSearchView },
|
|
{ path: '/diagnose', component: DiagnoseView },
|
|
{ path: '/sources', component: SourcesView },
|
|
],
|
|
})
|