UnENVerse 0.84.0
Local-first desktop secrets manager — TypeScript frontend
Loading...
Searching...
No Matches
settings-panel.ts File Reference

Functions

function export buildThemeSwatches ()
function export buildTypeOrderEditor ()
 Up/down editor for the order of the "Group by secret type" headings.
function export buildSidebarOrderEditor ()
function export buildPanelOrderEditor ()
function describeCatalogue (c:CatalogueStatus)
 R20: change the master password, and forget the old values of one entry.
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

import type { AppSettings, VaultEntry } from './types'
 import
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 Documentation

◆ buildThemeSwatches()

function export buildThemeSwatches ( )

◆ buildTypeOrderEditor()

function export buildTypeOrderEditor ( )

Up/down editor for the order of the "Group by secret type" headings.

◆ buildSidebarOrderEditor()

function export buildSidebarOrderEditor ( )

◆ buildPanelOrderEditor()

function export buildPanelOrderEditor ( )

◆ describeCatalogue()

function describeCatalogue ( c:CatalogueStatus)

R20: change the master password, and forget the old values of one entry.

R12: show the public half of the automation key, for a node's automation_approver. R14: the read-only plugin list. Installing and enabling stay command-line acts. R19: show which instance of the vault this is, and let a standby copy be made the live one. R25: save the support bundle the CLI would write (unv support bundle). R26: Check for updates, then Install the version that was shown. Nothing runs until a click. R18: the "Allow local scripts" switch. Applies at once; it is a system setting, not a preference. 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.

◆ wireCopyPreview()

function renderCopyPreview() wireCopyPreview ( )

Assignment-guarded (invariant 9): openSettings runs on every open.

◆ initSettingsTabs()

function initSettingsTabs ( )

◆ openSettings()

function export openSettings ( )

◆ cancelSettings()

function export cancelSettings ( )

Discard edits made since the panel opened, including live previews.

◆ saveSettings()

function export saveSettings ( )

◆ closeSettings()

function export closeSettings ( )

Variable Documentation

◆ type

import type { AppSettings, VaultEntry } from './types'

◆ import

import
Initial value:
{
Settings,
st,
entryId,
triggerRender,
applySidebarOrder,
applyActivityBar,
applyUsersPanelVisibility,
} from './state'
import type
Definition assign-project.ts:11
export const st
Definition state.ts:708
export type EnvNameCase
How the finished name is cased.
Definition state.ts:1964

◆ THEMES

const THEMES
Initial value:
= [
{ id: 'dark', label: 'Dark', bg: '#0e0e0e', accent: '#7364c9' },
{ id: 'midnight', label: 'Midnight', bg: '#09090f', accent: '#5b8dd9' },
{ id: 'amoled', label: 'AMOLED', bg: '#000000', accent: '#7364c9' },
{ id: 'dracula', label: 'Dracula', bg: '#282a36', accent: '#bd93f9' },
{ id: 'nord', label: 'Nord', bg: '#2e3440', accent: '#88c0d0' },
{ id: 'catppuccin', label: 'Catppuccin', bg: '#1e1e2e', accent: '#cba6f7' },
{ id: 'light', label: 'Light', bg: '#f0f0f6', accent: '#6355b5' },
{
id: 'system',
label: 'System',
bg: 'linear-gradient(135deg, #0e0e0e 50%, #f0f0f6 50%)',
accent: '#7364c9',
},
]
label label
Definition settings-panel.ts:61

◆ SidebarSection

type SidebarSection = AppSettings['sidebarSections'][number]

◆ SIDEBAR_SECTION_DEFS

const SIDEBAR_SECTION_DEFS

◆ __pad0__

label __pad0__

◆ label

ext label

◆ DEFAULT_SIDEBAR_SECTIONS

label const DEFAULT_SIDEBAR_SECTIONS

◆ price

label const price

◆ env

label const env

◆ category

label const category

◆ project

label const project

◆ tags

label const tags

◆ pools

label const pools

◆ prefixes

label const prefixes

◆ CatalogueStatus

type CatalogueStatus
Initial value:
= {
source: 'catalogue' | 'bundled';
generated_at?: string;
providers?: number;
}
const string
Definition auth-panel.ts:39
let source
Definition generators.ts:38

◆ VaultEntry

as unknown as VaultEntry

◆ _tabsInited

let _tabsInited = false

◆ _settingsSnapshot

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.