Fixed service workers
Some checks failed
Build Website / Build NPM Project (push) Successful in 27s
Build Website / Tag Version (push) Successful in 3s
Build Website / Build & Push Dockerfile (push) Failing after 6s

This commit is contained in:
Zakary Timson 2023-12-11 22:21:59 -05:00
parent 30e4e5292d
commit eed553d866
6 changed files with 20535 additions and 20550 deletions

View File

@ -26,7 +26,6 @@
"assets": [
"src/assets",
"src/manifest.json"
],
"styles": [
"./node_modules/bootstrap-scss/bootstrap.scss",
@ -59,7 +58,8 @@
"maximumError": "1mb"
}
],
"outputHashing": "all"
"outputHashing": "all",
"serviceWorker": "ngsw-config.json"
},
"development": {
"optimization": false,

View File

@ -7,20 +7,21 @@
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/assets/images/logo.png",
"/index.html",
"/manifest.json",
"/*.css",
"/*.js"
]
}
}, {
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
"/assets/**"
]
}
}

41046
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,8 +9,8 @@
},
"private": true,
"dependencies": {
"@angular/cdk": "^17.0.0",
"@angular/animations": "^17.0.0",
"@angular/cdk": "^17.0.0",
"@angular/common": "^17.0.0",
"@angular/compiler": "^17.0.0",
"@angular/core": "^17.0.0",

View File

@ -1,11 +1,11 @@
import {NgModule} from "@angular/core";
import {isDevMode, NgModule} from "@angular/core";
import {FormsModule} from "@angular/forms";
import {BrowserModule} from "@angular/platform-browser";
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
import {ServiceWorkerModule} from "@angular/service-worker";
import {ClickOutsideModule} from "ng-click-outside";
import {ColorPickerModule} from "ngx-color-picker";
import {environment} from '../environments/environment';
import {AppComponent} from './app.component';
import {AppRouting} from './app.routing';
import {CalibrateComponent} from "./components/calibrate/calibrate.component";
import {ColorPickerDialogComponent} from "./components/colorPickerDialog/colorPickerDialog.component";
@ -16,7 +16,6 @@ import {PermissionsComponent} from "./components/permissions/permissions.compone
import {StarrySkyComponent} from "./components/starrySky/starrySky.component";
import {ToolbarComponent} from "./components/toolbar/toolbar.component";
import {MaterialModule} from "./material.module";
import {AppComponent} from './app.component';
import {HomeComponent} from "./views/home/home.component";
import {MapComponent} from "./views/map/map.component";
@ -42,8 +41,11 @@ import {MapComponent} from "./views/map/map.component";
ClickOutsideModule,
ColorPickerModule,
MaterialModule,
ServiceWorkerModule.register('ngsw-worker.js', {enabled: environment.production}),
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: !isDevMode(),
registrationStrategy: 'registerWhenStable:30000' // when stable or after 30 seconds
})
],
bootstrap: [AppComponent]
})
export class AppModule { }
export class AppModule {}

View File

@ -8,28 +8,30 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="theme-color" content="#000000">
<meta name="description" content="View & edit maps collaborative with real time GPS positioning.">
<meta name="description" content="View &amp; edit maps collaborative with real time GPS positioning.">
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="Map Alliance">
<meta itemprop="description" content="View & edit maps collaborative with real time GPS positioning.">
<meta itemprop="description" content="View &amp; edit maps collaborative with real time GPS positioning.">
<meta itemprop="image" content="/assets/icons/icon-512x512.png">
<!-- Facebook Meta Tags -->
<meta property="og:type" content="website">
<meta property="og:title" content="Map Alliance">
<meta property="og:description" content="View & edit maps collaborative with real time GPS positioning.">
<meta property="og:description" content="View &amp; edit maps collaborative with real time GPS positioning.">
<meta property="og:image" content="/assets/icons/icon-512x512.png">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Map Alliance">
<meta name="twitter:description" content="View & edit maps collaborative with real time GPS positioning.">
<meta name="twitter:description" content="View &amp; edit maps collaborative with real time GPS positioning.">
<meta name="twitter:image" content="/assets/icons/icon-512x512.png">
<link rel="icon" type="image/x-icon" href="/assets/images/logo.png">
<link rel="manifest" href="manifest.json">
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDFtvCY6nH_HUoTBNf_5b-E8nRweSLYtxE" async defer></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDFtvCY6nH_HUoTBNf_5b-E8nRweSLYtxE"></script>
<meta name="theme-color" content="#1976d2">
</head>
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>
</html>