ζ-1: WebShellView + Universal-Link-Routing
- WebShellView (UIViewRepresentable + NSViewRepresentable) wrapt WKWebView, KVO-Observation für Loading/Progress/canGoBack/URL, Pull-to-Refresh via UIRefreshControl - WebShellCoordinator (MainActor) hält WKNavigationDelegate + WKUIDelegate, externe Links via openURL aus dem Environment in System-Browser, Host-Whitelist auf zitare.com + .mana.how - RootView refactored: Lesen-Tab lädt webBaseURL/, Erkunden-Tab /explore. Universal-Links zitare.com/q|a|c/<slug>, /search, /region/*, /thema/* etc. routen in den passenden Tab, reloadToken zwingt Re-Navigation auch bei selber URL - AppConfig.webBaseURL = appBaseURL (zitare.mana.how) bis Cloudflare-Zone für zitare.com live ist; publicWebURL als Konstante schon eingetragen - CookieBridge-Skeleton für mana.access auf .mana.how — scharfgeschaltet erst in ζ-3 nach Live-Auth-Smoke - iPhone 16e Simulator: zitare.mana.how lädt, Carl-Spitteler-Quote rendert, Healthz weiter 200 - 16 Files swiftlint-grün, alle Tests grün Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0bd59ed148
commit
75b5e7113f
5 changed files with 467 additions and 78 deletions
|
|
@ -16,15 +16,22 @@ enum AppConfig {
|
|||
/// `zitare-api.mana.how` — API-Backend (Hono+Bun).
|
||||
static let apiBaseURL = URL(string: "https://zitare-api.mana.how")!
|
||||
|
||||
/// `zitare.com` — öffentliches statisches Frontend. Universal-Link-
|
||||
/// Domain. WKWebView-Default für Lesen-Surfaces.
|
||||
static let webBaseURL = URL(string: "https://zitare.com")!
|
||||
/// `zitare.com` — geplante öffentliche Domain (CC-BY-SA-Korpus,
|
||||
/// statisch). Universal-Link-Domain für AASA. **Heute DNS noch
|
||||
/// nicht live** (Cloudflare-Zone-Onboarding offen, siehe
|
||||
/// `zitare/STATUS.md`); bis dahin nutzt der WebView `appBaseURL`
|
||||
/// (`zitare.mana.how`) — der Container liefert beide Surfaces.
|
||||
static let publicWebURL = URL(string: "https://zitare.com")!
|
||||
|
||||
/// `zitare.mana.how` — SPA-Surface für eingeloggte Pfade (Submit,
|
||||
/// Edit, Moderation). Bekommt den `mana.access`-Cookie injiziert
|
||||
/// für Cookie-SSO.
|
||||
/// `zitare.mana.how` — SPA-Surface, eingeloggte Pfade. Heute auch
|
||||
/// der Default für Lese-Surfaces, bis `zitare.com` live ist.
|
||||
static let appBaseURL = URL(string: "https://zitare.mana.how")!
|
||||
|
||||
/// Effektive Default-URL für den WebView. Zeigt vorerst auf
|
||||
/// `appBaseURL` (`zitare.mana.how`); nach Cloudflare-Zone-Cut
|
||||
/// kommt das zurück auf `publicWebURL`.
|
||||
static let webBaseURL = appBaseURL
|
||||
|
||||
/// App-Group für Daten-Sharing zwischen App ↔ Widget ↔ ShareExt.
|
||||
static let appGroup = "group.ev.mana.zitare"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue