mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
a4bcfc1e52
commit
24f754697b
13 files changed
+381
-60
No files matched your search
@@ -5,9 +5,14 @@ import migrations from "../migrations/user-store"
|
||||
import { getAppVersion } from "./utils/app-version";
|
||||
import { tracker } from "./tracker";
|
||||
|
||||
// todo: merge with common/user-store.ts
|
||||
// todo: merge with config.store.ts + theme.store.ts
|
||||
// fixme: detect new contexts from .kube/config since last open
|
||||
|
||||
export enum ThemeType {
|
||||
LIGHT = "light",
|
||||
DARK = "dark",
|
||||
}
|
||||
|
||||
export interface UserStoreModel {
|
||||
lastSeenAppVersion: string;
|
||||
seenContexts: string[];
|
||||
@@ -16,7 +21,7 @@ export interface UserStoreModel {
|
||||
|
||||
export interface UserPreferences {
|
||||
httpsProxy?: string;
|
||||
colorTheme?: string | "dark";
|
||||
colorTheme?: string | "dark" | "light";
|
||||
allowUntrustedCAs?: boolean;
|
||||
allowTelemetry?: boolean;
|
||||
downloadMirror?: string | "default";
|
||||
@@ -41,8 +46,10 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
||||
|
||||
@observable preferences: UserPreferences = {
|
||||
allowTelemetry: true,
|
||||
allowUntrustedCAs: false,
|
||||
colorTheme: "dark",
|
||||
downloadMirror: "default",
|
||||
httpsProxy: "",
|
||||
};
|
||||
|
||||
get isNewVersion() {
|
||||
|
||||
Reference in new issue
Block a user