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