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

interface cryptoservice

This commit is contained in:
Kyle Spearrin
2017-11-13 16:12:23 -05:00
parent 11f392b036
commit bed28aebaa
8 changed files with 52 additions and 19 deletions

View File

@@ -1,10 +1,12 @@
import * as template from './lock.component.html';
import { CryptoService } from '../../../services/abstractions/crypto.service';
class LockController {
i18n: any;
constructor(public $scope: any, public $state: any, public i18nService: any,
public cryptoService: any, public toastr: any, public userService: any,
public cryptoService: CryptoService, public toastr: any, public userService: any,
public SweetAlert: any, public $timeout: any) {
this.i18n = i18nService;

View File

@@ -1,13 +1,13 @@
import { DeviceRequest } from '../../../models/request/deviceRequest';
import { TokenRequest } from '../../../models/request/tokenRequest';
import { CryptoService } from '../../../services/abstractions/crypto.service';
import { UtilsService } from '../../../services/abstractions/utils.service';
class AuthService {
constructor(public cryptoService: any, public apiService: any, public userService: any, public tokenService: any,
public $rootScope: any, public appIdService: any, public utilsService: UtilsService,
public constantsService: any) {
constructor(public cryptoService: CryptoService, public apiService: any, public userService: any,
public tokenService: any, public $rootScope: any, public appIdService: any, public utilsService: UtilsService,
public constantsService: any) {
}
async logIn(email: string, masterPassword: string, twoFactorProvider?: number,

View File

@@ -1,3 +1,4 @@
import { CryptoService } from '../../../services/abstractions/crypto.service';
import { UtilsService } from '../../../services/abstractions/utils.service';
function getBackgroundService<T>(service: string) {
@@ -12,7 +13,7 @@ export const cryptoService = getBackgroundService<any>('cryptoService');
export const userService = getBackgroundService<any>('userService');
export const apiService = getBackgroundService<any>('apiService');
export const folderService = getBackgroundService<any>('folderService');
export const cipherService = getBackgroundService<any>('cipherService');
export const cipherService = getBackgroundService<CryptoService>('cipherService');
export const syncService = getBackgroundService<any>('syncService');
export const autofillService = getBackgroundService<any>('autofillService');
export const passwordGenerationService = getBackgroundService<any>('passwordGenerationService');

View File

@@ -1,7 +1,6 @@
import * as angular from 'angular';
import * as angular from 'angular';
class ValidationService {
constructor(private toastr: any, private i18nService: any) {
}