forked from Nault/Nault
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Basic PWA support * Theme color * Removed manifest reference added by angular cli * Added update notification * Basic install widget * Fixed annoying scrolling bug on mobile * Minor fixes * Minor tweaks * Better platform detection * iOS instructions * Success notification and viewport styling * Styling * Dark bg color * Another color change * Yet another color change * Small tweaks to update/install UX * Styling * Bugfix * Several Install widget fixes * Updated angular service-worker * Changed install widget * Caching strategies * Linting * Styling * PR comments
- Loading branch information
Showing
16 changed files
with
391 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$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/**", | ||
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" | ||
] | ||
} | ||
} | ||
], | ||
"dataGroups": [ | ||
{ | ||
"name": "coingecko", | ||
"urls": ["https://api.coingecko.com/**"], | ||
"cacheConfig": { | ||
"maxSize": 3, | ||
"maxAge": "60d", | ||
"strategy": "freshness" | ||
} | ||
}, | ||
{ | ||
"name": "ninja", | ||
"urls": ["https://mynano.ninja/api/**"], | ||
"cacheConfig": { | ||
"maxSize": 50, | ||
"maxAge": "60d", | ||
"strategy": "freshness" | ||
} | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.