mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
update jslib and construct policyService
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: e1d42f95d9...3d2e2cb174
@@ -22,6 +22,7 @@ import {
|
|||||||
import { EventService } from 'jslib/services/event.service';
|
import { EventService } from 'jslib/services/event.service';
|
||||||
import { ExportService } from 'jslib/services/export.service';
|
import { ExportService } from 'jslib/services/export.service';
|
||||||
import { NotificationsService } from 'jslib/services/notifications.service';
|
import { NotificationsService } from 'jslib/services/notifications.service';
|
||||||
|
import { PolicyService } from 'jslib/services/policy.service';
|
||||||
import { SearchService } from 'jslib/services/search.service';
|
import { SearchService } from 'jslib/services/search.service';
|
||||||
import { SystemService } from 'jslib/services/system.service';
|
import { SystemService } from 'jslib/services/system.service';
|
||||||
import { WebCryptoFunctionService } from 'jslib/services/webCryptoFunction.service';
|
import { WebCryptoFunctionService } from 'jslib/services/webCryptoFunction.service';
|
||||||
@@ -50,6 +51,7 @@ import {
|
|||||||
import { EventService as EventServiceAbstraction } from 'jslib/abstractions/event.service';
|
import { EventService as EventServiceAbstraction } from 'jslib/abstractions/event.service';
|
||||||
import { ExportService as ExportServiceAbstraction } from 'jslib/abstractions/export.service';
|
import { ExportService as ExportServiceAbstraction } from 'jslib/abstractions/export.service';
|
||||||
import { NotificationsService as NotificationsServiceAbstraction } from 'jslib/abstractions/notifications.service';
|
import { NotificationsService as NotificationsServiceAbstraction } from 'jslib/abstractions/notifications.service';
|
||||||
|
import { PolicyService as PolicyServiceAbstraction } from 'jslib/abstractions/policy.service';
|
||||||
import { SearchService as SearchServiceAbstraction } from 'jslib/abstractions/search.service';
|
import { SearchService as SearchServiceAbstraction } from 'jslib/abstractions/search.service';
|
||||||
import { SystemService as SystemServiceAbstraction } from 'jslib/abstractions/system.service';
|
import { SystemService as SystemServiceAbstraction } from 'jslib/abstractions/system.service';
|
||||||
|
|
||||||
@@ -104,6 +106,7 @@ export default class MainBackground {
|
|||||||
notificationsService: NotificationsServiceAbstraction;
|
notificationsService: NotificationsServiceAbstraction;
|
||||||
systemService: SystemServiceAbstraction;
|
systemService: SystemServiceAbstraction;
|
||||||
eventService: EventServiceAbstraction;
|
eventService: EventServiceAbstraction;
|
||||||
|
policyService: PolicyServiceAbstraction;
|
||||||
analytics: Analytics;
|
analytics: Analytics;
|
||||||
|
|
||||||
onUpdatedRan: boolean;
|
onUpdatedRan: boolean;
|
||||||
@@ -152,6 +155,7 @@ export default class MainBackground {
|
|||||||
this.collectionService = new CollectionService(this.cryptoService, this.userService, this.storageService,
|
this.collectionService = new CollectionService(this.cryptoService, this.userService, this.storageService,
|
||||||
this.i18nService);
|
this.i18nService);
|
||||||
this.searchService = new SearchService(this.cipherService, this.platformUtilsService);
|
this.searchService = new SearchService(this.cipherService, this.platformUtilsService);
|
||||||
|
this.policyService = new PolicyService(this.userService, this.storageService);
|
||||||
this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService,
|
this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService,
|
||||||
this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService,
|
this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService,
|
||||||
this.searchService, this.userService, async () => {
|
this.searchService, this.userService, async () => {
|
||||||
@@ -167,7 +171,8 @@ export default class MainBackground {
|
|||||||
});
|
});
|
||||||
this.syncService = new SyncService(this.userService, this.apiService, this.settingsService,
|
this.syncService = new SyncService(this.userService, this.apiService, this.settingsService,
|
||||||
this.folderService, this.cipherService, this.cryptoService, this.collectionService,
|
this.folderService, this.cipherService, this.cryptoService, this.collectionService,
|
||||||
this.storageService, this.messagingService, async (expired: boolean) => await this.logout(expired));
|
this.storageService, this.messagingService, this.policyService,
|
||||||
|
async (expired: boolean) => await this.logout(expired));
|
||||||
this.eventService = new EventService(this.storageService, this.apiService, this.userService,
|
this.eventService = new EventService(this.storageService, this.apiService, this.userService,
|
||||||
this.cipherService);
|
this.cipherService);
|
||||||
this.passwordGenerationService = new PasswordGenerationService(this.cryptoService, this.storageService);
|
this.passwordGenerationService = new PasswordGenerationService(this.cryptoService, this.storageService);
|
||||||
@@ -303,6 +308,7 @@ export default class MainBackground {
|
|||||||
this.cipherService.clear(userId),
|
this.cipherService.clear(userId),
|
||||||
this.folderService.clear(userId),
|
this.folderService.clear(userId),
|
||||||
this.collectionService.clear(userId),
|
this.collectionService.clear(userId),
|
||||||
|
this.policyService.clear(userId),
|
||||||
this.passwordGenerationService.clear(),
|
this.passwordGenerationService.clear(),
|
||||||
this.lockService.clear(),
|
this.lockService.clear(),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user