- 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>
37 lines
1.6 KiB
Swift
37 lines
1.6 KiB
Swift
import Foundation
|
|
import ManaCore
|
|
|
|
/// App-spezifische Konfiguration für Zitare. Implementiert
|
|
/// `ManaAppConfig` aus ManaCore und ergänzt die Zitare-eigene
|
|
/// `apiBaseURL` (zitare-api, getrennt von mana-auth) sowie
|
|
/// `webBaseURL` (zitare.com, für WKWebView und Universal-Links)
|
|
/// und `appBaseURL` (zitare.mana.how, für eingeloggte Pfade).
|
|
enum AppConfig {
|
|
static let manaAppConfig: ManaAppConfig = DefaultManaAppConfig(
|
|
authBaseURL: URL(string: "https://auth.mana.how")!,
|
|
keychainService: "ev.mana.zitare",
|
|
keychainAccessGroup: nil
|
|
)
|
|
|
|
/// `zitare-api.mana.how` — API-Backend (Hono+Bun).
|
|
static let apiBaseURL = URL(string: "https://zitare-api.mana.how")!
|
|
|
|
/// `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, 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"
|
|
}
|