1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

import ts through node_modules alias

This commit is contained in:
Kyle Spearrin
2018-01-09 14:26:20 -05:00
parent e165b5cc70
commit f51bebd99a
49 changed files with 515 additions and 322 deletions

View File

@@ -1,4 +1,7 @@
import { Abstractions, Enums } from '@bitwarden/jslib';
import { CipherType } from 'jslib/enums/cipherType';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { UtilsService } from 'jslib/abstractions/utils.service';
import * as template from './current.component.html';
@@ -17,8 +20,8 @@ export class CurrentController {
disableSearch: boolean = false;
constructor($scope: any, private cipherService: any,
private platformUtilsService: Abstractions.PlatformUtilsService,
private utilsService: Abstractions.UtilsService, private toastr: any, private $window: any, private $state: any,
private platformUtilsService: PlatformUtilsService,
private utilsService: UtilsService, private toastr: any, private $window: any, private $state: any,
private $timeout: any, private autofillService: any, private $analytics: any, private i18nService: any,
private $filter: any) {
this.i18n = i18nService;
@@ -117,8 +120,8 @@ export class CurrentController {
});
const otherTypes = [
Enums.CipherType.Card,
Enums.CipherType.Identity,
CipherType.Card,
CipherType.Identity,
];
this.cipherService.getAllDecryptedForDomain(this.domain, otherTypes).then((ciphers: any[]) => {
@@ -131,13 +134,13 @@ export class CurrentController {
sortedCiphers.forEach((cipher: any) => {
switch (cipher.type) {
case Enums.CipherType.Login:
case CipherType.Login:
loginCiphers.push(cipher);
break;
case Enums.CipherType.Card:
case CipherType.Card:
cardCiphers.push(cipher);
break;
case Enums.CipherType.Identity:
case CipherType.Identity:
identityCiphers.push(cipher);
break;
default: