1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

print folder, collections, and ciphers to vault

This commit is contained in:
Kyle Spearrin
2018-01-23 16:58:32 -05:00
parent 78b1f5df99
commit 881b581fe3
7 changed files with 64 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
//import { remote } from 'electron';
import { webFrame } from 'electron';
import { NgModule } from '@angular/core';
@@ -50,6 +50,8 @@ import {
UtilsService as UtilsServiceAbstraction,
} from 'jslib/abstractions';
webFrame.registerURLSchemeAsPrivileged('file');
const utilsService = new UtilsService();
const platformUtilsService = new DesktopPlatformUtilsService();
const messagingService = new DesktopMessagingService();
@@ -82,11 +84,19 @@ const authService: AuthServiceAbstraction = new AuthService(cryptoService, apiSe
userService, tokenService, appIdService, platformUtilsService, constantsService,
messagingService);
containerService.attachToWindow(window);
environmentService.setUrlsFromStorage().then(() => {
return syncService.fullSync(true);
});
@NgModule({
imports: [],
declarations: [],
providers: [
{ provide: AuthServiceAbstraction, useValue: authService },
{ provide: CipherServiceAbstraction, useValue: cipherService },
{ provide: FolderServiceAbstraction, useValue: folderService },
{ provide: CollectionServiceAbstraction, useValue: collectionService },
],
})
export class ServicesModule {