mirror of
https://github.com/bitwarden/browser
synced 2025-12-26 05:03:33 +00:00
* [deps] Autofill: Update prettier to v3 * prettier formatting updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
42 lines
1.6 KiB
TypeScript
42 lines
1.6 KiB
TypeScript
import { Component } from "@angular/core";
|
|
import { ActivatedRoute } from "@angular/router";
|
|
|
|
import { GeneratorComponent as BaseGeneratorComponent } from "@bitwarden/angular/tools/generator/components/generator.component";
|
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
|
import { UsernameGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/username";
|
|
|
|
@Component({
|
|
selector: "app-generator",
|
|
templateUrl: "generator.component.html",
|
|
})
|
|
export class GeneratorComponent extends BaseGeneratorComponent {
|
|
constructor(
|
|
passwordGenerationService: PasswordGenerationServiceAbstraction,
|
|
usernameGenerationService: UsernameGenerationServiceAbstraction,
|
|
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");
|
|
}
|
|
}
|