refactor: scope conversation state
This commit is contained in:
parent
417d7215d2
commit
18e586d06f
@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
- **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
|
||||
exports and a `window.TTVC.i18n` API.
|
||||
- **Audiobook-cast namespace migration.** Cast serialization, page stamping, and speaker normalization now use a private
|
||||
|
||||
@ -84,6 +84,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed)
|
||||
- ✅ Audiobook cast serialization and speaker normalization use a private scope with the existing cast namespace API.
|
||||
- ✅ 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.
|
||||
- ✅ `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.96">
|
||||
<meta name="app-version" content="1.24.97">
|
||||
<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.96">
|
||||
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.96">
|
||||
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.96">
|
||||
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.96">
|
||||
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.96">
|
||||
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.96">
|
||||
<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">
|
||||
|
||||
|
||||
<!-- ── 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.96"></script>
|
||||
<script src="/static/loader.js?v=1.24.97"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// ── Settings: Logs ────────────────────────────────────────────────────────
|
||||
(function (root) {
|
||||
|
||||
let _logsLiveTimer = null;
|
||||
let _logsActiveLevel = '';
|
||||
@ -1289,3 +1290,12 @@ $('s-import-voices-file')?.addEventListener('change', async function () {
|
||||
try { if (localStorage.getItem(KEY) === '1') setCollapsed(true); } catch (_) {}
|
||||
})();
|
||||
})();
|
||||
|
||||
Object.assign(root, { escLog, renderSettingsAbout });
|
||||
root.TTVC = root.TTVC || {};
|
||||
root.TTVC.conversation = root.TTVC.conversation || {};
|
||||
Object.assign(root.TTVC.conversation, {
|
||||
loadSettingsLogs: root.loadSettingsLogs,
|
||||
renderSettingsAbout,
|
||||
});
|
||||
})(window);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user