1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-27 18:13:29 +00:00

Create AchievementsList and use it within browser and web

This commit is contained in:
Daniel James Smith
2025-03-20 11:37:32 +01:00
parent 93f789df6b
commit 773af3ced4
6 changed files with 115 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
<app-header></app-header>
<bit-container>
<achievements-list></achievements-list>
<button bitButton type="button" bitFormButton buttonType="primary" (click)="testAchievement()">
Test achievements
</button>

View File

@@ -2,6 +2,7 @@ import { Component, OnInit } from "@angular/core";
import { firstValueFrom } from "rxjs";
import { AchievementNotifierService } from "@bitwarden/angular/tools/achievements/achievement-notifier.abstraction";
import { AchievementsListComponent } from "@bitwarden/angular/tools/achievements/achievements-list.component";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
import { EventStoreAbstraction } from "@bitwarden/common/tools/achievements/event-store.abstraction.service";
import { VaultItems_10_Added_Achievement } from "@bitwarden/common/tools/achievements/examples/achievements";
@@ -14,7 +15,7 @@ import { SharedModule } from "../../shared";
@Component({
templateUrl: "achievements.component.html",
standalone: true,
imports: [SharedModule, HeaderModule],
imports: [SharedModule, HeaderModule, AchievementsListComponent],
})
export class AchievementsComponent implements OnInit {
private currentUserId: UserId;