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

Functions

function syncIdleLock (mins:number, paused:boolean)
 R15: tell the Rust idle lock how long to wait, and whether auto-lock is paused.
function export showRelockScreen (reason:'auto'| 'manual'| 'visibility'| 'switch'='manual')
function export resetLock ()
function export recentServers ()
 Saved remotes ordered most-recently-connected first.
function export showUnlockModal (isFirstRun:boolean)

Variables

 import
let _finishInitFn
let _warnTimer
let _activityBound = false
let _idleMins = -1
let _idlePaused = false
let _idleSynced = 0

Function Documentation

◆ syncIdleLock()

function syncIdleLock ( mins:number,
paused:boolean )

R15: tell the Rust idle lock how long to wait, and whether auto-lock is paused.

Rust is the backstop for a page that has stopped running, so it must hear about activity too: a change, or ten seconds of activity since the last message, is sent; the rest is dropped.

◆ showRelockScreen()

function export showRelockScreen ( reason:'auto'| 'manual'| 'visibility'| 'switch' = 'manual')

◆ resetLock()

function export resetLock ( )

◆ recentServers()

function export recentServers ( )

Saved remotes ordered most-recently-connected first.

Servers that have never authenticated sort last rather than being dropped: one added through the Remote panel but not yet used is still worth offering, it just should not outrank the one used every morning.

◆ showUnlockModal()

function export showUnlockModal ( isFirstRun:boolean)

Variable Documentation

◆ import

import
Initial value:
{
st,
Settings,
triggerRender,
resetViewState,
} from './state'
Definition state.ts:238
The a, b list after "both changed:" in a conflict message, if there is one.
Definition state.ts:123
export const st
Definition state.ts:708

◆ _finishInitFn

let _finishInitFn

◆ _warnTimer

let _warnTimer

◆ _activityBound

let _activityBound = false

◆ _idleMins

let _idleMins = -1

◆ _idlePaused

let _idlePaused = false

◆ _idleSynced

let _idleSynced = 0