Files
stpweb/vue/src/views/architecture/Architecture.vue
T
adamfandClaude Opus 5.5 4530cb8dc4
Test and deploy / test (push) Successful in 28s
Test and deploy / deploy (push) Successful in 31s
Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo,
keep short ones for security boundaries, upstream quirks and ordering
constraints, and record the convention in CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 20:49:03 +00:00

75 lines
2.5 KiB
Vue

<script setup>
/**
* Route `/architecture`: hand-drawn SVG diagrams of the site. When a behaviour
* a diagram shows changes, redraw it in the same commit.
*/
import "./diagram.css";
import Header from "@/components/text/Header.vue";
import Paragraph from "@/components/text/Paragraph.vue";
import DiagramDefs from "./DiagramDefs.vue";
import InfraSection from "./sections/InfraSection.vue";
import EdgeSection from "./sections/EdgeSection.vue";
import BackendSection from "./sections/BackendSection.vue";
import FrontendSection from "./sections/FrontendSection.vue";
import ServicesSection from "./sections/ServicesSection.vue";
const SECTIONS = [
{ id: "infra", label: "Infrastructure & deployment" },
{ id: "edge", label: "The edge: nginx" },
{ id: "backend", label: "Go backend" },
{ id: "frontend", label: "Vue frontend" },
{ id: "services", label: "Python & the other services" },
];
</script>
<template>
<main class="architecture flex justify-center px-4 py-10">
<DiagramDefs />
<div class="max-w-6xl w-full flex flex-col gap-10">
<section>
<Header>How this site works</Header>
<Paragraph>
Everything behind this website, drawn. It is a couple of
dozen Docker containers on one Ubuntu VM: nginx in front, a
Go GraphQL backend, a Vue single-page app, a Python API that
holds the Claude call and the scrapers, and a ring of
self-hosted services (Gitea, SilverBullet notes, Garage
object storage, Icecast radio, a job tracker) around them.
Each diagram can be expanded to full screen.
</Paragraph>
<nav class="toc">
<a v-for="s in SECTIONS" :key="s.id" :href="`#${s.id}`">
{{ s.label }}
</a>
</nav>
</section>
<InfraSection />
<EdgeSection />
<BackendSection />
<FrontendSection />
<ServicesSection />
</div>
</main>
</template>
<style scoped>
.toc {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
padding: 0.5rem 0.25rem;
}
.toc a {
padding: 0.2rem 0.75rem;
border: 1px solid var(--color-quaternary);
text-decoration: none;
}
.toc a:hover {
border-color: var(--color-primary);
}
.architecture :deep(section) {
scroll-margin-top: 4rem;
}
</style>