mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
converted cryptoservice to jslib
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import * as angular from 'angular';
|
||||
import * as template from './lock.component.html';
|
||||
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
|
||||
import { Abstractions } from '@bitwarden/jslib';
|
||||
|
||||
export class LockController {
|
||||
@@ -11,7 +9,7 @@ export class LockController {
|
||||
|
||||
constructor(public $state: any, public i18nService: any, private $timeout: any,
|
||||
private platformUtilsService: Abstractions.PlatformUtilsService,
|
||||
public cryptoService: CryptoService, public toastr: any, public userService: any,
|
||||
public cryptoService: Abstractions.CryptoService, public toastr: any, public userService: any,
|
||||
public messagingService: Abstractions.MessagingService, public SweetAlert: any) {
|
||||
this.i18n = i18nService;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
|
||||
import { Abstractions, Request } from '@bitwarden/jslib';
|
||||
|
||||
class AuthService {
|
||||
constructor(public cryptoService: CryptoService, public apiService: any, public userService: any,
|
||||
constructor(public cryptoService: Abstractions.CryptoService, public apiService: any, public userService: any,
|
||||
public tokenService: any, public $rootScope: any, public appIdService: any,
|
||||
public platformUtilsService: Abstractions.PlatformUtilsService, public constantsService: any,
|
||||
public messagingService: Abstractions.MessagingService) {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
|
||||
import { Abstractions } from '@bitwarden/jslib';
|
||||
|
||||
function getBackgroundService<T>(service: string) {
|
||||
@@ -15,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<CryptoService>('cipherService');
|
||||
export const cipherService = getBackgroundService<Abstractions.CryptoService>('cipherService');
|
||||
export const syncService = getBackgroundService<any>('syncService');
|
||||
export const autofillService = getBackgroundService<any>('autofillService');
|
||||
export const passwordGenerationService = getBackgroundService<any>('passwordGenerationService');
|
||||
|
||||
@@ -2,7 +2,6 @@ import * as angular from 'angular';
|
||||
|
||||
import { Abstractions, Enums } from '@bitwarden/jslib';
|
||||
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
import ConstantsService from '../../../services/constants.service';
|
||||
|
||||
import * as template from './settings.component.html';
|
||||
@@ -30,7 +29,7 @@ export class SettingsController {
|
||||
constructor(private $state: any, private SweetAlert: any,
|
||||
private platformUtilsService: Abstractions.PlatformUtilsService, private $analytics: any,
|
||||
private i18nService: any, private constantsService: ConstantsService,
|
||||
private cryptoService: CryptoService, private lockService: any,
|
||||
private cryptoService: Abstractions.CryptoService, private lockService: any,
|
||||
private storageService: Abstractions.StorageService,
|
||||
public messagingService: Abstractions.MessagingService, private $timeout: ng.ITimeoutService) {
|
||||
this.i18n = i18nService;
|
||||
|
||||
@@ -4,13 +4,11 @@ import * as template from './export.component.html';
|
||||
|
||||
import { Abstractions, Enums } from '@bitwarden/jslib';
|
||||
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
|
||||
export class ExportController {
|
||||
i18n: any;
|
||||
masterPassword: string;
|
||||
|
||||
constructor(private $state: any, private cryptoService: CryptoService,
|
||||
constructor(private $state: any, private cryptoService: Abstractions.CryptoService,
|
||||
private toastr: any, private utilsService: Abstractions.UtilsService, private $analytics: any,
|
||||
private i18nService: any, private folderService: any, private cipherService: any,
|
||||
private $window: any, private userService: any) {
|
||||
|
||||
Reference in New Issue
Block a user