mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
[chore] Update jslib (#1277)
* [chore] Update jslib * [bug] Correct value for system theme dropdown key * [chore] Update jslib
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: e372bf242b...92a65b7b36
@@ -135,7 +135,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
this.localeOptions = localeOptions;
|
this.localeOptions = localeOptions;
|
||||||
|
|
||||||
this.themeOptions = [
|
this.themeOptions = [
|
||||||
{ name: i18nService.t("default"), value: null },
|
{ name: i18nService.t("default"), value: ThemeType.System },
|
||||||
{ name: i18nService.t("light"), value: ThemeType.Light },
|
{ name: i18nService.t("light"), value: ThemeType.Light },
|
||||||
{ name: i18nService.t("dark"), value: ThemeType.Dark },
|
{ name: i18nService.t("dark"), value: ThemeType.Dark },
|
||||||
{ name: "Nord", value: ThemeType.Nord },
|
{ name: "Nord", value: ThemeType.Nord },
|
||||||
|
|||||||
@@ -47,7 +47,9 @@ import { ThemeType } from "jslib-common/enums/themeType";
|
|||||||
|
|
||||||
import { Account } from "../models/account";
|
import { Account } from "../models/account";
|
||||||
|
|
||||||
import { AccountFactory } from "jslib-common/models/domain/account";
|
import { GlobalState } from "jslib-common/models/domain/globalState";
|
||||||
|
|
||||||
|
import { StateFactory } from "jslib-common/factories/stateFactory";
|
||||||
|
|
||||||
export function initFactory(
|
export function initFactory(
|
||||||
window: Window,
|
window: Window,
|
||||||
@@ -190,7 +192,7 @@ export function initFactory(
|
|||||||
secureStorageService,
|
secureStorageService,
|
||||||
logService,
|
logService,
|
||||||
stateMigrationService,
|
stateMigrationService,
|
||||||
new AccountFactory(Account)
|
new StateFactory(GlobalState, Account)
|
||||||
),
|
),
|
||||||
deps: [
|
deps: [
|
||||||
StorageServiceAbstraction,
|
StorageServiceAbstraction,
|
||||||
|
|||||||
@@ -22,7 +22,11 @@ import { NativeMessagingMain } from "./main/nativeMessaging.main";
|
|||||||
|
|
||||||
import { StateService } from "jslib-common/services/state.service";
|
import { StateService } from "jslib-common/services/state.service";
|
||||||
|
|
||||||
import { Account, AccountFactory } from "jslib-common/models/domain/account";
|
import { Account } from "./models/account";
|
||||||
|
|
||||||
|
import { GlobalState } from "jslib-common/models/domain/globalState";
|
||||||
|
|
||||||
|
import { StateFactory } from "jslib-common/factories/stateFactory";
|
||||||
|
|
||||||
export class Main {
|
export class Main {
|
||||||
logService: ElectronLogService;
|
logService: ElectronLogService;
|
||||||
@@ -86,7 +90,7 @@ export class Main {
|
|||||||
null,
|
null,
|
||||||
this.logService,
|
this.logService,
|
||||||
null,
|
null,
|
||||||
new AccountFactory(Account)
|
new StateFactory(GlobalState, Account)
|
||||||
);
|
);
|
||||||
|
|
||||||
this.windowMain = new WindowMain(
|
this.windowMain = new WindowMain(
|
||||||
|
|||||||
Reference in New Issue
Block a user