aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/state/models.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/state/models.ts')
-rw-r--r--ui/src/state/models.ts34
1 files changed, 34 insertions, 0 deletions
diff --git a/ui/src/state/models.ts b/ui/src/state/models.ts
new file mode 100644
index 00000000..f11ce651
--- /dev/null
+++ b/ui/src/state/models.ts
@@ -0,0 +1,34 @@
+export interface User {
+ username: string;
+}
+
+export const DefaultUser: User = {
+ username: "",
+};
+
+export interface HomeInfo {
+ historyCount: number;
+ recordCount: number;
+ lastSyncTime: Date;
+}
+
+export const DefaultHomeInfo: HomeInfo = {
+ historyCount: 0,
+ recordCount: 0,
+ lastSyncTime: new Date(),
+};
+
+export interface ShellHistory {
+ id: string;
+ timestamp: number;
+ command: string;
+ user: string;
+ host: string;
+ cwd: string;
+ duration: number;
+}
+
+export interface Alias {
+ name: string;
+ value: string;
+}