From fc4dfe4fffce05c91f6766024891bdb39b2a3299 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Tue, 28 May 2024 14:54:05 +0100 Subject: feat(ui): use correct username on welcome screen (#2050) * wip * fetch and use username --- ui/src/state/models.ts | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'ui/src/state/models.ts') diff --git a/ui/src/state/models.ts b/ui/src/state/models.ts index b92d64a6..193b994d 100644 --- a/ui/src/state/models.ts +++ b/ui/src/state/models.ts @@ -69,6 +69,46 @@ export interface InspectHistory { other: ShellHistory[]; } +// Not yet complete. Not all types are defined here. +// Gonna hold off until the settings refactoring. +export interface Settings { + auto_sync: boolean; + update_check: boolean; + sync_address: string; + sync_frequency: string; + db_path: string; + record_store_path: string; + key_path: string; + session_path: string; + shell_up_key_binding: boolean; + inline_height: number; + invert: boolean; + show_preview: boolean; + max_preview_height: number; + show_help: boolean; + show_tabs: boolean; + word_chars: string; + scroll_context_lines: number; + history_format: string; + prefers_reduced_motion: boolean; + store_failed: boolean; + secrets_filter: boolean; + workspaces: boolean; + ctrl_n_shortcuts: boolean; + network_connect_timeout: number; + network_timeout: number; + local_timeout: number; + enter_accept: boolean; + smart_sort: boolean; + sync: Sync; +} + +interface Sync { + records: boolean; +} + +// Define other interfaces (Dialect, Timezone, Style, SearchMode, FilterMode, ExitMode, KeymapMode, CursorStyle, WordJumpMode, RegexSet, Stats) accordingly. + export async function inspectCommandHistory( h: ShellHistory, ): Promise { -- cgit v1.3.1