You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
import { Component } from "@angular/core"; |
|
import { ActivatedRoute } from "@angular/router"; |
|
|
|
import { GeneratorComponent as BaseGeneratorComponent } from "jslib-angular/components/generator.component"; |
|
import { I18nService } from "jslib-common/abstractions/i18n.service"; |
|
import { LogService } from "jslib-common/abstractions/log.service"; |
|
import { PasswordGenerationService } from "jslib-common/abstractions/passwordGeneration.service"; |
|
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service"; |
|
import { StateService } from "jslib-common/abstractions/state.service"; |
|
import { UsernameGenerationService } from "jslib-common/abstractions/usernameGeneration.service"; |
|
|
|
@Component({ |
|
selector: "app-generator", |
|
templateUrl: "generator.component.html", |
|
}) |
|
export class GeneratorComponent extends BaseGeneratorComponent { |
|
constructor( |
|
passwordGenerationService: PasswordGenerationService, |
|
usernameGenerationService: UsernameGenerationService, |
|
stateService: StateService, |
|
platformUtilsService: PlatformUtilsService, |
|
i18nService: I18nService, |
|
route: ActivatedRoute, |
|
logService: LogService |
|
) { |
|
super( |
|
passwordGenerationService, |
|
usernameGenerationService, |
|
platformUtilsService, |
|
stateService, |
|
i18nService, |
|
logService, |
|
route, |
|
window |
|
); |
|
} |
|
|
|
usernameTypesLearnMore() { |
|
this.platformUtilsService.launchUri("https://bitwarden.com/help/generator/#username-types"); |
|
} |
|
}
|
|
|