feat(spa): scaffold Angular app shell with host/player routes

This commit is contained in:
2026-03-01 11:06:33 +00:00
parent 37b86d7065
commit 7180cc9b0d
16 changed files with 7383 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { Component, inject } from '@angular/core';
import { Router, RouterLink, RouterOutlet } from '@angular/router';
@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet, RouterLink],
templateUrl: './app.component.html',
styleUrl: './app.component.css',
})
export class AppComponent {
private readonly router = inject(Router);
constructor() {
const shellRoute = document.body.dataset['wppShellRoute'];
if (shellRoute === '/host' || shellRoute === '/player') {
void this.router.navigateByUrl(shellRoute);
}
}
}