Replace the old Go TUI with a web app (port 8470) that runs in a container as a CoreDesktop sibling: - cmd/supermarket server with htmx web UI: dashboard, company profile, inventory (partners/competitors), AI and credential settings, and a Core & Hermes page - SQLite storage and a secrets store under ~/.local/share/supermarket - AI providers (Anthropic, OpenAI-compatible) behind one interface - MCP server and a Hermes bridge to the Federated Core MCP hub - Import of the old Coremarketing TUI's state - install.sh / update.sh / lib.sh, Dockerfile, compose.yaml, the bin/supermarket launcher and hermes/setup.sh Posting is not wired back up yet; that comes in Phase 1. See PLAN.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="htmx-config" content='{"includeIndicatorStyles": false}'>
|
|
<title>{{.Title}} · Supermarket</title>
|
|
<link rel="stylesheet" href="/static/app.css">
|
|
<script src="/static/htmx.min.js" defer></script>
|
|
<script src="/static/app.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<header class="topbar">
|
|
<a class="brand" href="/">Core<span>marketing</span></a>
|
|
<nav>
|
|
<a href="/" {{if eq .Nav "home"}}aria-current="page"{{end}}>Overview</a>
|
|
<a href="/profile" {{if eq .Nav "profile"}}aria-current="page"{{end}}>Profile</a>
|
|
<a href="/inventory" {{if eq .Nav "inventory"}}aria-current="page"{{end}}>Inventory</a>
|
|
<a href="/settings/ai" {{if eq .Nav "settings"}}aria-current="page"{{end}}>Settings</a>
|
|
<a href="/core" {{if eq .Nav "core"}}aria-current="page"{{end}}>Core & Hermes</a>
|
|
</nav>
|
|
</header>
|
|
<main>
|
|
{{if .Flash}}<p class="flash" role="status">{{.Flash}}</p>{{end}}
|
|
{{if .Error}}<p class="error" role="alert">{{.Error}}</p>{{end}}
|
|
{{template "content" .}}
|
|
</main>
|
|
<footer>Supermarket {{.Version}}</footer>
|
|
</body>
|
|
</html>
|