0 else noPosts" class="row gx-2 gy-3">
diff --git a/wowskarma.app/src/app/pages/post/list/list-latest.component.ts b/wowskarma.app/src/app/pages/post/list/list-latest.component.ts
index 21f436bc..cbabc6f9 100644
--- a/wowskarma.app/src/app/pages/post/list/list-latest.component.ts
+++ b/wowskarma.app/src/app/pages/post/list/list-latest.component.ts
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component, inject} from "@angular/core";
-import { FormBuilder } from "@angular/forms";
+import { FormBuilder, ReactiveFormsModule } from "@angular/forms";
import { BehaviorSubject, combineLatest, Observable, of } from "rxjs";
import { map, debounceTime, distinctUntilChanged, shareReplay, startWith, tap } from "rxjs/operators";
import { PlayerPostDto } from "src/app/services/api/models/player-post-dto";
@@ -7,14 +7,26 @@ import { PostService } from "src/app/services/api/services/post.service";
import { AuthService } from "src/app/services/auth.service";
import { PostsHub } from "src/app/services/hubs/posts-hub.service";
import { filterNotNull, filterPartials, mergeAndCache, shareReplayRefCount, startFrom, switchMapCatchError, tapAny, tapPageInfoHeaders } from "../../../shared/rxjs-operators";
+import { AsyncPipe, NgForOf, NgIf } from "@angular/common";
+import { NgbPagination } from "@ng-bootstrap/ng-bootstrap";
+import { PostComponent } from "../../../shared/post/post.component";
export declare type HasId = { id: string };
export declare type PostChange = { mode: "new" | "edited" | "deleted", post: HasId };
@Component({
+ standalone: true,
templateUrl: "./list-latest.component.html",
changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ ReactiveFormsModule,
+ AsyncPipe,
+ NgbPagination,
+ NgIf,
+ PostComponent,
+ NgForOf
+ ]
})
export class ListLatestComponent {
public authService: AuthService = inject(AuthService);
diff --git a/wowskarma.app/src/app/pages/post/view/view-post.component.ts b/wowskarma.app/src/app/pages/post/view/view-post.component.ts
index 9093700f..7e447c31 100644
--- a/wowskarma.app/src/app/pages/post/view/view-post.component.ts
+++ b/wowskarma.app/src/app/pages/post/view/view-post.component.ts
@@ -8,10 +8,26 @@ import { PostService } from "../../../services/api/services/post.service";
import { PostsHub } from "../../../services/hubs/posts-hub.service";
import { filterNotNull, mapApiModelState, reloadWhen, routeParam, shareReplayRefCount, switchMapCatchError } from "../../../shared/rxjs-operators";
import { toObservable } from "@angular/core/rxjs-interop";
+import { PostComponent } from "../../../shared/post/post.component";
+import { AsyncPipe, NgIf } from "@angular/common";
+import { MarkdownComponent } from "ngx-markdown";
+import { TeamRosterComponent } from "../../../shared/replay/team-roster/team-roster.component";
+import { ChatLogComponent } from "../../../shared/replay/chat-log/chat-log.component";
+import { NotFoundComponent } from "../../fallbacks/not-found/not-found.component";
@Component({
- templateUrl: "./view-post.component.html",
- changeDetection: ChangeDetectionStrategy.OnPush,
+ standalone: true,
+ templateUrl: "./view-post.component.html",
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ PostComponent,
+ AsyncPipe,
+ MarkdownComponent,
+ NgIf,
+ TeamRosterComponent,
+ ChatLogComponent,
+ NotFoundComponent
+ ]
})
export class ViewPostComponent implements OnDestroy {
private route: ActivatedRoute = inject(ActivatedRoute);
diff --git a/wowskarma.app/src/app/pages/settings/settings.component.ts b/wowskarma.app/src/app/pages/settings/settings.component.ts
index 000d28ee..e04bb1d7 100644
--- a/wowskarma.app/src/app/pages/settings/settings.component.ts
+++ b/wowskarma.app/src/app/pages/settings/settings.component.ts
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, inject, signal } from "@angular/core";
-import { FormBuilder } from "@angular/forms";
+import { FormBuilder, FormsModule, ReactiveFormsModule } from "@angular/forms";
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
import { BehaviorSubject, tap } from "rxjs";
import { map } from "rxjs/operators";
@@ -7,10 +7,19 @@ import "src/app/services/extensions";
import { ProfileService } from "../../services/api/services/profile.service";
import { AuthService } from "../../services/auth.service";
import { SeedTokenChangeComponent } from "../../shared/modals/seed-token-change/seed-token-change.component";
+import { AsyncPipe, DatePipe, NgIf } from "@angular/common";
@Component({
- templateUrl: "./settings.component.html",
- changeDetection: ChangeDetectionStrategy.Default,
+ standalone: true,
+ templateUrl: "./settings.component.html",
+ changeDetection: ChangeDetectionStrategy.Default,
+ imports: [
+ AsyncPipe,
+ ReactiveFormsModule,
+ FormsModule,
+ DatePipe,
+ NgIf
+ ]
})
export class SettingsComponent {
public authService: AuthService = inject(AuthService);
diff --git a/wowskarma.app/src/app/services/pipes/bypass-html.pipe.ts b/wowskarma.app/src/app/services/pipes/bypass-html.pipe.ts
index e5fe08c6..ff7b4dea 100644
--- a/wowskarma.app/src/app/services/pipes/bypass-html.pipe.ts
+++ b/wowskarma.app/src/app/services/pipes/bypass-html.pipe.ts
@@ -2,6 +2,7 @@ import { Pipe, PipeTransform } from "@angular/core";
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
@Pipe({
+ standalone: true,
name: "bypassHtml",
})
export class BypassHtmlPipe implements PipeTransform {
diff --git a/wowskarma.app/src/app/services/pipes/chat-message-channel.pipe.ts b/wowskarma.app/src/app/services/pipes/chat-message-channel.pipe.ts
index 9f9bede4..0495cc33 100644
--- a/wowskarma.app/src/app/services/pipes/chat-message-channel.pipe.ts
+++ b/wowskarma.app/src/app/services/pipes/chat-message-channel.pipe.ts
@@ -2,6 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core';
import { ReplayChatMessageDto } from "../api/models/replay-chat-message-dto";
@Pipe({
+ standalone: true,
name: 'chatMessageChannel'
})
export class ChatMessageChannelPipe implements PipeTransform {
diff --git a/wowskarma.app/src/app/services/pipes/colorHex.pipe.ts b/wowskarma.app/src/app/services/pipes/colorHex.pipe.ts
index 4f053ed1..aff083d5 100644
--- a/wowskarma.app/src/app/services/pipes/colorHex.pipe.ts
+++ b/wowskarma.app/src/app/services/pipes/colorHex.pipe.ts
@@ -1,6 +1,7 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
+ standalone: true,
name: 'colorHex'
})
export class ColorHexPipe implements PipeTransform {
diff --git a/wowskarma.app/src/app/services/pipes/karma-color.pipe.ts b/wowskarma.app/src/app/services/pipes/karma-color.pipe.ts
index 7711a5b8..e0f8759e 100644
--- a/wowskarma.app/src/app/services/pipes/karma-color.pipe.ts
+++ b/wowskarma.app/src/app/services/pipes/karma-color.pipe.ts
@@ -3,14 +3,15 @@ import { PostFlairs } from "../api/models/post-flairs";
import { getKarmaColor, getPostBorderColor } from "../helpers";
@Pipe({
- name: "karmaColor",
+ standalone: true,
+ name: "karmaColor",
})
export class KarmaColorPipe implements PipeTransform {
- transform(value: number | undefined | null): "success" | "danger" | "warning" {
- if (typeof value === "number") {
- return getKarmaColor(value);
- }
-
- return "warning";
+ transform(value: number | undefined | null): "success" | "danger" | "warning" {
+ if (typeof value === "number") {
+ return getKarmaColor(value);
}
+
+ return "warning";
+ }
}
diff --git a/wowskarma.app/src/app/services/pipes/mod-action-type-display.pipe.ts b/wowskarma.app/src/app/services/pipes/mod-action-type-display.pipe.ts
index 79960ce4..92c9d363 100644
--- a/wowskarma.app/src/app/services/pipes/mod-action-type-display.pipe.ts
+++ b/wowskarma.app/src/app/services/pipes/mod-action-type-display.pipe.ts
@@ -4,15 +4,16 @@ import { PostFlairs } from "../api/models/post-flairs";
import { getKarmaColor, getPostBorderColor } from "../helpers";
@Pipe({
- name: "modActionTypeDisplay",
+ standalone: true,
+ name: "modActionTypeDisplay",
})
export class ModActionTypeDisplayPipe implements PipeTransform {
- transform(value: ModActionType) {
- switch (value) {
- case ModActionType.Update:
- return {text: "Edit", color: "text-warning"};
- case ModActionType.Delete:
- return {text: "Deletion", color: "text-danger"};
- }
+ transform(value: ModActionType) {
+ switch (value) {
+ case ModActionType.Update:
+ return {text: "Edit", color: "text-warning"};
+ case ModActionType.Delete:
+ return {text: "Deletion", color: "text-danger"};
}
+ }
}
diff --git a/wowskarma.app/src/app/services/pipes/post-border-color.pipe.ts b/wowskarma.app/src/app/services/pipes/post-border-color.pipe.ts
index 0f9f5ab8..12c97b1a 100644
--- a/wowskarma.app/src/app/services/pipes/post-border-color.pipe.ts
+++ b/wowskarma.app/src/app/services/pipes/post-border-color.pipe.ts
@@ -3,11 +3,12 @@ import { PostFlairs } from "../api/models/post-flairs";
import { getPostBorderColor } from "../helpers";
@Pipe({
+ standalone: true,
name: 'postBorderColor'
})
export class PostBorderColorPipe implements PipeTransform {
transform(value: PostFlairs | number): unknown {
- return getPostBorderColor({ flairs: value });
+ return getPostBorderColor({flairs: value});
}
}
diff --git a/wowskarma.app/src/app/services/pipes/wows-numbers-clan-link.pipe.ts b/wowskarma.app/src/app/services/pipes/wows-numbers-clan-link.pipe.ts
index cf4c32e8..f626e21e 100644
--- a/wowskarma.app/src/app/services/pipes/wows-numbers-clan-link.pipe.ts
+++ b/wowskarma.app/src/app/services/pipes/wows-numbers-clan-link.pipe.ts
@@ -2,6 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core';
import { getWowsNumbersClanLink } from "../helpers";
@Pipe({
+ standalone: true,
name: 'wowsNumbersClanLink'
})
export class WowsNumbersClanLinkPipe implements PipeTransform {
diff --git a/wowskarma.app/src/app/services/pipes/wows-numbers-player-link.pipe.ts b/wowskarma.app/src/app/services/pipes/wows-numbers-player-link.pipe.ts
index e099d4bb..adac6576 100644
--- a/wowskarma.app/src/app/services/pipes/wows-numbers-player-link.pipe.ts
+++ b/wowskarma.app/src/app/services/pipes/wows-numbers-player-link.pipe.ts
@@ -2,12 +2,13 @@ import { Pipe, PipeTransform } from "@angular/core";
import { getWowsNumbersPlayerLink } from "../helpers";
@Pipe({
- name: "wowsNumbersPlayerLink",
+ standalone: true,
+ name: "wowsNumbersPlayerLink",
})
export class WowsNumbersPlayerLinkPipe implements PipeTransform {
- transform(player: { id?: number, username?: string | null }) {
- return getWowsNumbersPlayerLink({ id: player.id!, username: player.username! });
- }
+ transform(player: { id?: number, username?: string | null }) {
+ return getWowsNumbersPlayerLink({id: player.id!, username: player.username!});
+ }
}
diff --git a/wowskarma.app/src/app/shared/components/html-loader/html-loader.component.ts b/wowskarma.app/src/app/shared/components/html-loader/html-loader.component.ts
index 21ff211e..8096527e 100644
--- a/wowskarma.app/src/app/shared/components/html-loader/html-loader.component.ts
+++ b/wowskarma.app/src/app/shared/components/html-loader/html-loader.component.ts
@@ -3,11 +3,16 @@ import { ChangeDetectionStrategy, Component, computed, inject, input } from "@an
import { DomSanitizer } from "@angular/platform-browser";
import { ActivatedRoute } from "@angular/router";
import { firstValueFrom } from "rxjs";
+import { AsyncPipe } from "@angular/common";
@Component({
- selector: "html-loader",
- template: '
',
- changeDetection: ChangeDetectionStrategy.OnPush,
+ standalone: true,
+ selector: "html-loader",
+ template: '
',
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ AsyncPipe
+ ]
})
export class HtmlLoaderComponent {
// No requirement, as it can also be loaded from snapshot data.
@@ -20,11 +25,11 @@ export class HtmlLoaderComponent {
// Get the HTML content from the server, at the path specified by the path$ input.
content = computed(async () => {
const path = this.path() || this.route.snapshot.data["path"];
-
+
if (!path) {
return null;
}
-
+
let html = await firstValueFrom(this.http.get(path, {responseType: "text"}));
return this.sanitizer.bypassSecurityTrustHtml(html);
});
diff --git a/wowskarma.app/src/app/shared/components/icons/clan-rank/clan-rank.component.ts b/wowskarma.app/src/app/shared/components/icons/clan-rank/clan-rank.component.ts
index 62e7f07e..b1171ca0 100644
--- a/wowskarma.app/src/app/shared/components/icons/clan-rank/clan-rank.component.ts
+++ b/wowskarma.app/src/app/shared/components/icons/clan-rank/clan-rank.component.ts
@@ -1,10 +1,15 @@
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { ClanRole } from 'src/app/services/api/models/clan-role';
+import { NgbTooltip } from "@ng-bootstrap/ng-bootstrap";
@Component({
+ standalone: true,
selector: 'icon-clan-rank',
template: `
`,
styleUrls: ['./clan-rank.component.scss'],
+ imports: [
+ NgbTooltip
+ ],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ClanRankComponent {
diff --git a/wowskarma.app/src/app/shared/components/icons/user-roles/user-roles.component.ts b/wowskarma.app/src/app/shared/components/icons/user-roles/user-roles.component.ts
index 6f11e1eb..6faf0c2d 100644
--- a/wowskarma.app/src/app/shared/components/icons/user-roles/user-roles.component.ts
+++ b/wowskarma.app/src/app/shared/components/icons/user-roles/user-roles.component.ts
@@ -1,9 +1,14 @@
import { ChangeDetectionStrategy, Component, input, Input } from '@angular/core';
+import { NgbTooltip } from "@ng-bootstrap/ng-bootstrap";
@Component({
+ standalone: true,
selector: 'icon-user-roles',
templateUrl: './user-roles.component.html',
styleUrls: ['./user-roles.component.scss'],
+ imports: [
+ NgbTooltip
+ ],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class UserRolesComponent {
diff --git a/wowskarma.app/src/app/shared/components/minmax-metric/min-max-metric.component.ts b/wowskarma.app/src/app/shared/components/minmax-metric/min-max-metric.component.ts
index 63cda7f6..ad938177 100644
--- a/wowskarma.app/src/app/shared/components/minmax-metric/min-max-metric.component.ts
+++ b/wowskarma.app/src/app/shared/components/minmax-metric/min-max-metric.component.ts
@@ -1,10 +1,17 @@
-import { ChangeDetectionStrategy, Component, input, Input } from "@angular/core";
+import { ChangeDetectionStrategy, Component, input } from "@angular/core";
+import { NgbTooltip } from "@ng-bootstrap/ng-bootstrap";
+import { KarmaColorPipe } from "../../../services/pipes/karma-color.pipe";
@Component({
- selector: "minmax-metric",
- templateUrl: "./min-max-metric.component.html",
- styleUrls: ["./min-max-metric.component.scss"],
- changeDetection: ChangeDetectionStrategy.OnPush,
+ standalone: true,
+ selector: "minmax-metric",
+ templateUrl: "./min-max-metric.component.html",
+ styleUrls: ["./min-max-metric.component.scss"],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgbTooltip,
+ KarmaColorPipe
+ ]
})
export class MinMaxMetricComponent {
metric = input
();
@@ -13,4 +20,4 @@ export class MinMaxMetricComponent {
constructor() { }
}
-export type MinMaxMetricObject = { total: any; min: number; max: number };
\ No newline at end of file
+export type MinMaxMetricObject = { total: any; min: number; max: number };
diff --git a/wowskarma.app/src/app/shared/components/player-namelink/player-namelink.component.ts b/wowskarma.app/src/app/shared/components/player-namelink/player-namelink.component.ts
index 5980f2b4..2bbf2726 100644
--- a/wowskarma.app/src/app/shared/components/player-namelink/player-namelink.component.ts
+++ b/wowskarma.app/src/app/shared/components/player-namelink/player-namelink.component.ts
@@ -1,10 +1,19 @@
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { AccountClanListingDto } from 'src/app/services/api/models/account-clan-listing-dto';
import { ClanListingDto } from 'src/app/services/api/models/clan-listing-dto';
+import { RouterLink } from "@angular/router";
+import { NgIf } from "@angular/common";
+import { ColorHexPipe } from "../../../services/pipes/colorHex.pipe";
@Component({
+ standalone: true,
selector: 'player-namelink',
templateUrl: './player-namelink.component.html',
+ imports: [
+ RouterLink,
+ NgIf,
+ ColorHexPipe
+ ],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class PlayerNamelinkComponent {
diff --git a/wowskarma.app/src/app/shared/directives/control-extensions.directive.ts b/wowskarma.app/src/app/shared/directives/control-extensions.directive.ts
index 040fd923..6dad993d 100644
--- a/wowskarma.app/src/app/shared/directives/control-extensions.directive.ts
+++ b/wowskarma.app/src/app/shared/directives/control-extensions.directive.ts
@@ -2,6 +2,7 @@ import { Directive, ElementRef, Host, HostBinding, HostListener, Input } from "@
import { FormControl, FormControlDirective } from "@angular/forms";
@Directive({
+ standalone: true,
selector: '[formControlExtensions]'
})
export class ControlExtensionsDirective {
diff --git a/wowskarma.app/src/app/shared/form-errors/form-errors.component.html b/wowskarma.app/src/app/shared/form-errors/form-errors.component.html
index 289ad712..6ae87dae 100644
--- a/wowskarma.app/src/app/shared/form-errors/form-errors.component.html
+++ b/wowskarma.app/src/app/shared/form-errors/form-errors.component.html
@@ -1,17 +1,17 @@
@if (control()?.dirty) {
- @if (control()?.errors; as errors) {
-
- This field is required.
- The value must be at least {{e['requiredLength']}} characters long.
- The value must be at most {{e['requiredLength']}} characters long.
- The value doesn't follow the required pattern.
+ @if (control()?.errors; as errors) {
+
+ This field is required.
+ The value must be at least {{ e['requiredLength'] }} characters long.
+ The value must be at most {{ e['requiredLength'] }} characters long.
+ The value doesn't follow the required pattern.
-
- This field is required.
- The file size must be at most {{formatBytesSize(maxsize)}}.
- The format of the specified file is not supported.
- The file extension must be {{extension}}.
-
-
- }
+
+ This field is required.
+ The file size must be at most {{ formatBytesSize(maxsize) }}.
+ The format of the specified file is not supported.
+ The file extension must be {{ extension }}.
+
+
+ }
}
diff --git a/wowskarma.app/src/app/shared/form-errors/form-errors.component.ts b/wowskarma.app/src/app/shared/form-errors/form-errors.component.ts
index 0700567f..abae716e 100644
--- a/wowskarma.app/src/app/shared/form-errors/form-errors.component.ts
+++ b/wowskarma.app/src/app/shared/form-errors/form-errors.component.ts
@@ -1,15 +1,20 @@
import { Component, input, Input } from "@angular/core";
import { FormControl } from "@angular/forms";
import { formatBytesSize } from "../../services/helpers";
+import { NgIf } from "@angular/common";
@Component({
- selector: "form-errors",
- templateUrl: "./form-errors.component.html",
+ standalone: true,
+ selector: "form-errors",
+ templateUrl: "./form-errors.component.html",
+ imports: [
+ NgIf
+ ]
})
export class FormErrorsComponent {
- control = input();
+ control = input();
- formatBytesSize(bytesSize: number) {
- return formatBytesSize(bytesSize);
- }
-}
\ No newline at end of file
+ formatBytesSize(bytesSize: number) {
+ return formatBytesSize(bytesSize);
+ }
+}
diff --git a/wowskarma.app/src/app/shared/layout/footer/footer.component.scss b/wowskarma.app/src/app/shared/layout/footer/footer.component.scss
deleted file mode 100644
index e69de29b..00000000
diff --git a/wowskarma.app/src/app/shared/layout/footer/footer.component.ts b/wowskarma.app/src/app/shared/layout/footer/footer.component.ts
index ef9da2ed..b157659d 100644
--- a/wowskarma.app/src/app/shared/layout/footer/footer.component.ts
+++ b/wowskarma.app/src/app/shared/layout/footer/footer.component.ts
@@ -5,11 +5,15 @@ import { anyTrue, shareReplayRefCount } from 'src/app/shared/rxjs-operators';
import { environment } from "src/environments/environment";
import { ApiRegion } from "src/app/models/ApiRegion";
import { AppConfigService } from "src/app/services/app-config.service";
+import { RouterLink } from "@angular/router";
@Component({
+ standalone: true,
selector: "app-footer",
templateUrl: "./footer.component.html",
- styleUrls: ["./footer.component.scss"],
+ imports: [
+ RouterLink
+ ]
})
export class FooterComponent {
diff --git a/wowskarma.app/src/app/shared/layout/layout.component.html b/wowskarma.app/src/app/shared/layout/layout.component.html
index 38ff9f05..3b3c667c 100644
--- a/wowskarma.app/src/app/shared/layout/layout.component.html
+++ b/wowskarma.app/src/app/shared/layout/layout.component.html
@@ -1,16 +1,16 @@
-
+
-
+
diff --git a/wowskarma.app/src/app/shared/layout/layout.component.ts b/wowskarma.app/src/app/shared/layout/layout.component.ts
index 4ee88a92..6ec2679f 100644
--- a/wowskarma.app/src/app/shared/layout/layout.component.ts
+++ b/wowskarma.app/src/app/shared/layout/layout.component.ts
@@ -1,10 +1,22 @@
import {Component, inject, OnInit} from '@angular/core';
import { AppConfigService } from "../../services/app-config.service";
+import { NavbarComponent } from "./navbar/navbar.component";
+import { HtmlLoaderComponent } from "../components/html-loader/html-loader.component";
+import { RouterOutlet } from "@angular/router";
+import { FooterComponent } from "./footer/footer.component";
@Component({
+ standalone: true,
selector: 'app-layout',
templateUrl: './layout.component.html',
- styleUrls: ['./layout.component.scss']
+ styleUrls: ['./layout.component.scss'],
+ imports: [
+ NavbarComponent,
+ HtmlLoaderComponent,
+ RouterOutlet,
+ FooterComponent
+
+ ]
})
export class LayoutComponent {
private appConfigService: AppConfigService = inject(AppConfigService);
diff --git a/wowskarma.app/src/app/shared/layout/navbar/nav-auth/nav-auth.component.html b/wowskarma.app/src/app/shared/layout/navbar/nav-auth/nav-auth.component.html
index f64f27a6..b475db92 100644
--- a/wowskarma.app/src/app/shared/layout/navbar/nav-auth/nav-auth.component.html
+++ b/wowskarma.app/src/app/shared/layout/navbar/nav-auth/nav-auth.component.html
@@ -3,7 +3,7 @@
Welcome, {{user.username}}.
- Profile
+ Profile
Settings
diff --git a/wowskarma.app/src/app/shared/layout/navbar/nav-auth/nav-auth.component.ts b/wowskarma.app/src/app/shared/layout/navbar/nav-auth/nav-auth.component.ts
index d1c87ccd..bda6a57a 100644
--- a/wowskarma.app/src/app/shared/layout/navbar/nav-auth/nav-auth.component.ts
+++ b/wowskarma.app/src/app/shared/layout/navbar/nav-auth/nav-auth.component.ts
@@ -1,13 +1,20 @@
import {ChangeDetectionStrategy, Component, inject} from "@angular/core";
-import { NavigationEnd, Router } from "@angular/router";
+import { NavigationEnd, Router, RouterLink, RouterLinkActive } from "@angular/router";
import { shareReplay, startWith } from "rxjs";
import { filter, map } from "rxjs/operators";
import { AuthService } from "src/app/services/auth.service";
+import { AsyncPipe } from "@angular/common";
@Component({
+ standalone: true,
selector: "navbar-auth",
templateUrl: "./nav-auth.component.html",
changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ AsyncPipe,
+ RouterLink,
+ RouterLinkActive
+ ]
})
export class NavAuthComponent {
public authService: AuthService = inject(AuthService);
diff --git a/wowskarma.app/src/app/shared/layout/navbar/navbar.component.html b/wowskarma.app/src/app/shared/layout/navbar/navbar.component.html
index 3d74f906..227cab02 100644
--- a/wowskarma.app/src/app/shared/layout/navbar/navbar.component.html
+++ b/wowskarma.app/src/app/shared/layout/navbar/navbar.component.html
@@ -40,7 +40,7 @@
-->
-
+
diff --git a/wowskarma.app/src/app/shared/layout/navbar/navbar.component.scss b/wowskarma.app/src/app/shared/layout/navbar/navbar.component.scss
deleted file mode 100644
index e69de29b..00000000
diff --git a/wowskarma.app/src/app/shared/layout/navbar/navbar.component.ts b/wowskarma.app/src/app/shared/layout/navbar/navbar.component.ts
index 01244b6d..5d561ce6 100644
--- a/wowskarma.app/src/app/shared/layout/navbar/navbar.component.ts
+++ b/wowskarma.app/src/app/shared/layout/navbar/navbar.component.ts
@@ -1,11 +1,25 @@
import { Component, inject } from "@angular/core";
import { AuthService } from "src/app/services/auth.service";
import { environment } from "../../../../environments/environment";
+import { RouterLink, RouterLinkActive } from "@angular/router";
+import { AsyncPipe, NgIf } from "@angular/common";
+import { NgbCollapse } from "@ng-bootstrap/ng-bootstrap";
+import { NavAuthComponent } from "./nav-auth/nav-auth.component";
+import { NotificationsButtonComponent } from "./notifications-button/notifications-button.component";
@Component({
+ standalone: true,
selector: "app-navbar",
templateUrl: "./navbar.component.html",
- styleUrls: ["./navbar.component.scss"],
+ imports: [
+ RouterLink,
+ RouterLinkActive,
+ AsyncPipe,
+ NgbCollapse,
+ NavAuthComponent,
+ NotificationsButtonComponent,
+ NgIf
+ ]
})
export class NavbarComponent {
public isCollapsed = true;
diff --git a/wowskarma.app/src/app/shared/layout/navbar/notifications-button/notifications-button.component.html b/wowskarma.app/src/app/shared/layout/navbar/notifications-button/notifications-button.component.html
index d72e9506..32f5dc3b 100644
--- a/wowskarma.app/src/app/shared/layout/navbar/notifications-button/notifications-button.component.html
+++ b/wowskarma.app/src/app/shared/layout/navbar/notifications-button/notifications-button.component.html
@@ -1,6 +1,6 @@
-