feat: started working on PWA app

This commit is contained in:
2024-07-04 16:05:48 +03:00
parent 1929760e82
commit f1cbd9267c
29 changed files with 1324 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { Component } from "@angular/core";
import { RouterModule } from "@angular/router";
import { AppService } from "./app.service";
import { NxWelcomeComponent } from "./nx-welcome.component";
@Component({
standalone: true,
imports: [NxWelcomeComponent, RouterModule],
selector: "app-root",
templateUrl: "./app.component.html",
styleUrl: "./app.component.less",
providers: [AppService],
})
export class AppComponent {
title = "NwaifuAnime";
constructor(private sw: AppService) {}
get hasUpdate() {
return this.sw.isUpdateAvailable;
}
update() {
this.sw.update();
}
}