mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
Move web to apps/web and bitwarden_license/bit-web
This commit is contained in:
20
apps/web/src/models/account.ts
Normal file
20
apps/web/src/models/account.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import {
|
||||
Account as BaseAccount,
|
||||
AccountSettings as BaseAccountSettings,
|
||||
} from "jslib-common/models/domain/account";
|
||||
|
||||
export class AccountSettings extends BaseAccountSettings {
|
||||
vaultTimeout: number = process.env.NODE_ENV === "development" ? null : 15;
|
||||
}
|
||||
|
||||
export class Account extends BaseAccount {
|
||||
settings?: AccountSettings = new AccountSettings();
|
||||
|
||||
constructor(init: Partial<Account>) {
|
||||
super(init);
|
||||
Object.assign(this.settings, {
|
||||
...new AccountSettings(),
|
||||
...this.settings,
|
||||
});
|
||||
}
|
||||
}
|
||||
7
apps/web/src/models/globalState.ts
Normal file
7
apps/web/src/models/globalState.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ThemeType } from "jslib-common/enums/themeType";
|
||||
import { GlobalState as BaseGlobalState } from "jslib-common/models/domain/globalState";
|
||||
|
||||
export class GlobalState extends BaseGlobalState {
|
||||
theme?: ThemeType = ThemeType.Light;
|
||||
rememberEmail = true;
|
||||
}
|
||||
Reference in New Issue
Block a user