|
UnENVerse 0.42.6
Local-first desktop secrets manager — TypeScript frontend
|
import type;Functions | |
| function export | buildThemeSwatches () |
| function export | buildSidebarOrderEditor () |
| function export | buildPanelOrderEditor () |
| function | describeCatalogue (c:CatalogueStatus) |
| A worked example that re-renders as the four copy options change. | |
| function renderCopyPreview() | wireCopyPreview () |
Assignment-guarded (invariant 9): openSettings runs on every open. | |
| function | initSettingsTabs () |
| function export | openSettings () |
| function export | cancelSettings () |
| Discard edits made since the panel opened, including live previews. | |
| function export | saveSettings () |
| function export | closeSettings () |
Variables | |
| const | THEMES |
| type | SidebarSection = AppSettings['sidebarSections'][number] |
| const | SIDEBAR_SECTION_DEFS |
| label | __pad0__ |
| label | label |
| label const | DEFAULT_SIDEBAR_SECTIONS |
| label const | price |
| label const | env |
| label const | category |
| label const | project |
| label const | tags |
| label const | pools |
| label const | prefixes |
| type | CatalogueStatus |
| as unknown as | VaultEntry |
| let | _tabsInited = false |
| let | _settingsSnapshot |
| Settings as they were when the panel opened. | |
| function export buildThemeSwatches | ( | ) |
| function export buildSidebarOrderEditor | ( | ) |
| function export buildPanelOrderEditor | ( | ) |
| function describeCatalogue | ( | c:CatalogueStatus | ) |
A worked example that re-renders as the four copy options change.
These are interacting switches — profile, metadata style, case, prefix — and a list of four labels with no preview is how a settings panel becomes unreadable. The example uses a fixed invented entry rather than one of the user's: the panel must show the same thing on an empty vault, and a real credential's name in a settings screenshot is a small leak for no gain.
| function renderCopyPreview() wireCopyPreview | ( | ) |
Assignment-guarded (invariant 9): openSettings runs on every open.
| function initSettingsTabs | ( | ) |
| function export openSettings | ( | ) |
| function export cancelSettings | ( | ) |
Discard edits made since the panel opened, including live previews.
| function export saveSettings | ( | ) |
| function export closeSettings | ( | ) |
| const THEMES |
| type SidebarSection = AppSettings['sidebarSections'][number] |
| const SIDEBAR_SECTION_DEFS |
| label __pad0__ |
| ext label |
| label const DEFAULT_SIDEBAR_SECTIONS |
| label const price |
| label const env |
| label const category |
| label const project |
| label const tags |
| label const pools |
| label const prefixes |
| type CatalogueStatus |
| as unknown as VaultEntry |
| let _tabsInited = false |
| let _settingsSnapshot |
Settings as they were when the panel opened.
Theme and accent apply live (you need to see them to choose them), which previously made "Cancel" a lie — the preview had already been committed. Cancel now restores this snapshot.