add support for export service
This commit is contained in:
parent
ff67b9be82
commit
7167dd3fb7
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit cf5bce1ea91ebbc1c99a550b62114a88bfeb2036
|
||||
Subproject commit ba10d0704212f2bc8fabf0d3d6ebb552fd183401
|
|
@ -19,6 +19,7 @@ import {
|
|||
TotpService,
|
||||
UserService,
|
||||
} from 'jslib/services';
|
||||
import { ExportService } from 'jslib/services/export.service';
|
||||
import { WebCryptoFunctionService } from 'jslib/services/webCryptoFunction.service';
|
||||
|
||||
import {
|
||||
|
@ -43,6 +44,7 @@ import {
|
|||
UserService as UserServiceAbstraction,
|
||||
} from 'jslib/abstractions';
|
||||
import { CryptoFunctionService as CryptoFunctionServiceAbstraction } from 'jslib/abstractions/cryptoFunction.service';
|
||||
import { ExportService as ExportServiceAbstraction } from 'jslib/abstractions/export.service';
|
||||
|
||||
import { Analytics } from 'jslib/misc';
|
||||
|
||||
|
@ -88,6 +90,7 @@ export default class MainBackground {
|
|||
autofillService: AutofillServiceAbstraction;
|
||||
containerService: ContainerService;
|
||||
auditService: AuditServiceAbstraction;
|
||||
exportService: ExportServiceAbstraction;
|
||||
analytics: Analytics;
|
||||
|
||||
onUpdatedRan: boolean;
|
||||
|
@ -146,6 +149,7 @@ export default class MainBackground {
|
|||
this.totpService);
|
||||
this.containerService = new ContainerService(this.cryptoService, this.platformUtilsService);
|
||||
this.auditService = new AuditService(cryptoFunctionService);
|
||||
this.exportService = new ExportService(this.folderService, this.cipherService);
|
||||
this.analytics = new Analytics(window, () => BrowserApi.gaFilter(), this.platformUtilsService,
|
||||
this.storageService, this.appIdService);
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ import { CipherService } from 'jslib/abstractions/cipher.service';
|
|||
import { CollectionService } from 'jslib/abstractions/collection.service';
|
||||
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
||||
import { EnvironmentService } from 'jslib/abstractions/environment.service';
|
||||
import { ExportService } from 'jslib/abstractions/export.service';
|
||||
import { FolderService } from 'jslib/abstractions/folder.service';
|
||||
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||
import { LockService } from 'jslib/abstractions/lock.service';
|
||||
|
@ -131,6 +132,7 @@ export function initFactory(i18nService: I18nService, storageService: StorageSer
|
|||
{ provide: StorageService, useFactory: getBgService<StorageService>('storageService'), deps: [] },
|
||||
{ provide: AppIdService, useFactory: getBgService<AppIdService>('appIdService'), deps: [] },
|
||||
{ provide: AutofillService, useFactory: getBgService<AutofillService>('autofillService'), deps: [] },
|
||||
{ provide: ExportService, useFactory: getBgService<AppIdService>('exportService'), deps: [] },
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
useFactory: initFactory,
|
||||
|
|
Loading…
Reference in New Issue