feat: include unconfigured secret paths in config settings snapshot

- Export SECRET_PATHS from registry for reuse
- Populate snapshot with `{ configured: true }` for non-empty secrets not already covered by registered fields
This commit is contained in:
2026-05-19 00:04:38 -07:00
parent 1f7318d615
commit ab29d56649
2 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ const JSON_OBJECT_FIELDS = new Set([
'subtitleSidebar.css',
]);
const SECRET_PATHS = new Set(['ai.apiKey', 'jimaku.apiKey', 'anilist.accessToken']);
export const SECRET_PATHS = new Set(['ai.apiKey', 'jimaku.apiKey', 'anilist.accessToken']);
const COLOR_SUFFIXES = new Set(['Color', 'color', 'backgroundColor', 'singleColor']);
const SUBTITLE_CSS_MANAGED_CONFIG_PATHS = new Set([