Publish from private repository

This commit is contained in:
Gitea Actions
2026-08-01 12:08:49 +00:00
commit 6f7fd61ee9
695 changed files with 69563 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import { Component, DestroyRef, inject } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { Event, Router, RouterOutlet, NavigationStart, NavigationEnd } from '@angular/router';
import { PageLoaderComponent } from './layout/page-loader/page-loader.component';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
standalone: true,
imports: [RouterOutlet, PageLoaderComponent],
})
export class AppComponent {
currentUrl!: string;
private readonly destroyRef = inject(DestroyRef);
constructor(public _router: Router) {
this._router.events.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((routerEvent: Event) => {
if (routerEvent instanceof NavigationStart) {
this.currentUrl = routerEvent.url.substring(
routerEvent.url.lastIndexOf('/') + 1
);
}
if (routerEvent instanceof NavigationEnd) {
/* empty */
}
window.scrollTo(0, 0);
});
}
}