docs: complete frontend namespace migration
This commit is contained in:
parent
18e586d06f
commit
8181c491c0
@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
- **Frontend namespace migration completed.** The remaining utility, library, cast-compatibility, i18n, and settings/log
|
||||
surfaces now keep implementation state private while preserving explicit legacy compatibility exports.
|
||||
- **Conversation/log namespace migration.** Settings log state and About rendering helpers now use a private scope with
|
||||
compatibility exports and a `window.TTVC.conversation` API.
|
||||
- **i18n namespace migration.** Language dictionaries and mutable language state now use a private scope with compatibility
|
||||
|
||||
8
TODO.md
8
TODO.md
@ -124,11 +124,11 @@ architecture change: the larger Audiobook/Rehearser/style split.
|
||||
voice design, I/O, library, stage, and recording blocks plus Audiobook casting, preview, export, and feature styles
|
||||
are isolated. Core Reader state and compatibility event wiring remain ordered in the legacy entry points.
|
||||
- [x] Extract Rehearser stage display and cast-sidebar controls into `rehearser-stage.js`.
|
||||
- [ ] Replace broad globals with namespaces such as `window.TTVC.audiobook`; pure leaves, Audiobook/Reader/Rehearser
|
||||
- [x] Replace broad globals with namespaces such as `window.TTVC.audiobook`; pure leaves, Audiobook/Reader/Rehearser
|
||||
feature modules, Studio, and character-library persistence now use private scopes with explicit compatibility exports.
|
||||
Voice-library loading, rendering, benchmarking, import workflows, character-sheet extraction, and character-library
|
||||
rendering/actions, voice-inspector selection, and shared utility helpers are now scoped; remaining legacy library UI
|
||||
modules still require the same responsibility-by-responsibility migration.
|
||||
Voice-library loading, rendering, benchmarking, import workflows, character-sheet extraction, character-library
|
||||
rendering/actions, voice-inspector selection, shared utility helpers, cast compatibility, i18n, and settings/log UI
|
||||
are also scoped; legacy entry points remain only as explicit compatibility exports.
|
||||
- [x] Generate the feature-module list for `loader.js` and `scripts/minify.mjs` from one shared manifest;
|
||||
larger responsibility splits remain.
|
||||
- [x] Add a dependency-free frontend syntax and top-level declaration collision gate (`npm run check:frontend`);
|
||||
|
||||
@ -85,6 +85,8 @@ Done incrementally as global-scope ordered files (no ES-module change needed)
|
||||
- ✅ SillyTavern character-card import/export helpers use a private scope with a namespace API.
|
||||
- ✅ i18n dictionaries and language state use a private scope with compatibility exports and a namespace API.
|
||||
- ✅ Conversation settings/log state and About helpers use a private scope with compatibility exports and a namespace API.
|
||||
- ✅ All remaining application frontend modules are either privately scoped or intentionally stateless bootstrap/cache IIFEs;
|
||||
legacy globals are explicit compatibility exports and new integrations use `window.TTVC` namespaces.
|
||||
- ✅ `static/css/resource-diagnostics.css` — isolated Performance/resource diagnostic panel styles.
|
||||
- ✅ `static/css/background-jobs.css` — isolated background-job history and retry-panel styles.
|
||||
- ✅ `static/css/voice-design.css` — isolated Voice Design form, samples, and preview-match styles.
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#2563EB">
|
||||
<meta name="app-version" content="1.24.97">
|
||||
<meta name="app-version" content="1.24.98">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/static/icon.svg">
|
||||
@ -27,12 +27,12 @@
|
||||
|
||||
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
|
||||
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
|
||||
<link rel="stylesheet" href="/static/style.css?v=1.24.97">
|
||||
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.97">
|
||||
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.97">
|
||||
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.97">
|
||||
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.97">
|
||||
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.97">
|
||||
<link rel="stylesheet" href="/static/style.css?v=1.24.98">
|
||||
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.98">
|
||||
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.98">
|
||||
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.98">
|
||||
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.98">
|
||||
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.98">
|
||||
|
||||
|
||||
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
|
||||
@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) {
|
||||
</script>
|
||||
|
||||
<!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
|
||||
<script src="/static/loader.js?v=1.24.97"></script>
|
||||
<script src="/static/loader.js?v=1.24.98"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user