Refactor architecture into eight components and consolidate reliability work
Build and publish container images / images (push) Successful in 9m34s
Release container images / release (push) Successful in 36s

Extract Grammaratur, Dregarnuhr, Geduldh, Mestionora, Ordoschnellic, Schutzaria, Kunstzeal and Seheweit behind compatible application contracts.

Include accumulated editor resilience, navigation and theme UX, remote CLI, storage/schema and DR groundwork, tests and design/operations documentation.

Verified: uncached full Go suite; go vet ./...; race tests for all eight components; 11 targeted Chromium tests; Node suites; 19 Python CLI tests; reproducible editor build. No push, release tag or deployment in this checkpoint.
This commit is contained in:
Anya Tokugawa committed 2026-11-01 15:23:31 +09:00
1 parent 9dd425f765
commit d5d21b7841
302 files changed
+20037 -3492

No files matched your search

+19
View File
@@ -2,6 +2,7 @@ package server
import (
"net/http"
"net/url"
"pageswiki/internal/store"
)
@@ -46,6 +47,24 @@ func (s *Server) renderWithContext(
data["AuthUser"] = nil
data["AuthIsAdmin"] = false
domainUUID := s.domainUUIDForRequest(r)
data["CommandEnabled"] = name != "home.gohtml" && name != "search_home.gohtml" && r.URL.Path != "/"
data["CommandBrowser"] = name == "browser.gohtml"
data["CommandPath"] = "/"
if semantic, ok := data["Path"].(string); ok && len(semantic) > 0 && semantic[0] == '/' {
data["CommandPath"] = semantic
}
data["QuickThemes"] = themeOptions()
data["DefaultThemeCSS"] = s.getThemeCSS(domainUUID)
data["QuickThemeID"] = ""
if cookie, err := r.Cookie("pageswiki_theme"); err == nil {
id, decodeErr := url.PathUnescape(cookie.Value)
if theme, ok := findTheme(id); ok && decodeErr == nil {
// Presentation only: never change the Domain's configured theme.
data["ThemeCSS"] = theme.CSS
data["QuickThemeID"] = theme.ID
}
}
w.Header().Add("Vary", "Cookie")
data["CalendarEnabled"] = s.systemExtensionEnabled(domainUUID, "organizer.calendar")
data["TasksEnabled"] = s.systemExtensionEnabled(domainUUID, "organizer.tasks")
if r.URL.Path == "/" {