added typings to tools components
This commit is contained in:
parent
35a20c775c
commit
969eb76ccc
|
@ -4,7 +4,10 @@ import * as template from './export.component.html';
|
|||
|
||||
import { CipherType } from 'jslib/enums/cipherType';
|
||||
|
||||
import { CipherService } from 'jslib/abstractions/cipher.service';
|
||||
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
||||
import { FolderService } from 'jslib/abstractions/folder.service';
|
||||
import { UserService } from 'jslib/abstractions/user.service';
|
||||
import { UtilsService } from 'jslib/abstractions/utils.service';
|
||||
|
||||
export class ExportController {
|
||||
|
@ -13,8 +16,8 @@ export class ExportController {
|
|||
|
||||
constructor(private $state: any, private cryptoService: CryptoService,
|
||||
private toastr: any, private utilsService: UtilsService, private $analytics: any,
|
||||
private i18nService: any, private folderService: any, private cipherService: any,
|
||||
private $window: ng.IWindowService, private userService: any) {
|
||||
private i18nService: any, private folderService: FolderService, private cipherService: CipherService,
|
||||
private $window: ng.IWindowService, private userService: UserService) {
|
||||
this.i18n = i18nService;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ import * as template from './password-generator-history.component.html';
|
|||
|
||||
import { PasswordHistory } from 'jslib/models/domain/passwordHistory';
|
||||
|
||||
import { PasswordGenerationService } from 'jslib/abstractions/passwordGeneration.service';
|
||||
|
||||
export class PasswordGeneratorHistoryController {
|
||||
$transition$: any;
|
||||
history: PasswordHistory[];
|
||||
|
@ -9,8 +11,8 @@ export class PasswordGeneratorHistoryController {
|
|||
addState: any;
|
||||
i18n: any;
|
||||
|
||||
constructor(private $state: any, private passwordGenerationService: any, private toastr: any,
|
||||
private $analytics: any, private i18nService: any) {
|
||||
constructor(private $state: any, private passwordGenerationService: PasswordGenerationService,
|
||||
private toastr: any, private $analytics: any, private i18nService: any) {
|
||||
this.i18n = i18nService;
|
||||
this.history = passwordGenerationService.getHistory();
|
||||
}
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
import * as angular from 'angular';
|
||||
import * as template from './password-generator.component.html';
|
||||
|
||||
import { PasswordGenerationService } from 'jslib/abstractions/passwordGeneration.service';
|
||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||
|
||||
export class PasswordGeneratorController {
|
||||
$transition$: any;
|
||||
options: any;
|
||||
showSelect: any;
|
||||
showSelect: boolean;
|
||||
password: string = '-';
|
||||
editState: any;
|
||||
addState: any;
|
||||
i18n: any;
|
||||
|
||||
constructor(private $state: any, private passwordGenerationService: any,
|
||||
constructor(private $state: any, private passwordGenerationService: PasswordGenerationService,
|
||||
private toastr: any, private platformUtilsService: PlatformUtilsService,
|
||||
private $analytics: any, private i18nService: any, private $timeout: ng.ITimeoutService) {
|
||||
this.i18n = i18nService;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import * as template from './tools.component.html';
|
||||
|
||||
import { EnvironmentService } from 'jslib/abstractions/environment.service';
|
||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||
|
||||
export class ToolsController {
|
||||
|
@ -9,7 +10,7 @@ export class ToolsController {
|
|||
|
||||
constructor(private SweetAlert: any, private i18nService: any,
|
||||
private $analytics: any, private platformUtilsService: PlatformUtilsService,
|
||||
private environmentService: any) {
|
||||
private environmentService: EnvironmentService) {
|
||||
this.i18n = i18nService;
|
||||
this.showExport = !platformUtilsService.isEdge();
|
||||
if (environmentService.baseUrl) {
|
||||
|
|
Loading…
Reference in New Issue