Skip to content

Commit

Permalink
Merge pull request #7 from Popovkov57/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Popovkov57 authored Sep 30, 2022
2 parents 7b4b67b + 6fa98db commit 926850b
Show file tree
Hide file tree
Showing 25 changed files with 1,369 additions and 391 deletions.
10 changes: 7 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
"src/assets",
"src/manifest.webmanifest"
],
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/font-awesome/css/font-awesome.min.css"
],
"scripts": []
"scripts": [],
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
},
"configurations": {
"production": {
Expand Down Expand Up @@ -89,7 +92,8 @@
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
"src/assets",
"src/manifest.webmanifest"
],
"styles": [
"src/styles.css"
Expand Down
3 changes: 1 addition & 2 deletions data.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = function() {
{ id: 8, name: "Human Chess Board", category: "Chess", description: "A fun game for the family", price: 75 },
{ id: 9, name: "Bling Bling King", category: "Chess", description: "Gold-plated, diamond-studded King", price: 1200 }
],
orders: [],
categories: ["Watersports", "Soccer", "Chess"]
orders: []
}
}
42 changes: 42 additions & 0 deletions ngsw-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js"
]
}
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)",
"/font/"
]
}
}
],
"dataGroups": [
{
"name": "api-product",
"urls": ["/api/products"],
"cacheConfig": {
"maxSize": 100,
"maxAge": "5d"
}
}
],
"navigationUrls": ["/**"]
}
Loading

0 comments on commit 926850b

Please sign in to comment.