aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/state/models.ts
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-05-28 14:54:05 +0100
committerGitHub <noreply@github.com>2024-05-28 14:54:05 +0100
commitfc4dfe4fffce05c91f6766024891bdb39b2a3299 (patch)
treea9a0923645a4e6f6047f25db0d2f4f25a984b4b0 /ui/src/state/models.ts
parentchore(deps): bump uuid from 1.7.0 to 1.8.0 (#2047) (diff)
downloadatuin-fc4dfe4fffce05c91f6766024891bdb39b2a3299.zip
feat(ui): use correct username on welcome screen (#2050)
* wip * fetch and use username
Diffstat (limited to '')
-rw-r--r--ui/src/state/models.ts40
1 files changed, 40 insertions, 0 deletions
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<InspectHistory> {