-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WV-2130: Implement Service Worker (#3803) * WV-2128 Adding files to make app pass basic PWA audit to make it 'installable' * WV-2128 added entry for SW.js to .eslintignore * WV-2128 -Added theme color to index.html * Added 'workbox-webpack-plugin' to devDependencies in package.json. Also added plugin to webpack.config.js. The plugin generates a new SW.js file and defines image caching limits * WV-2128 - WIP: Some changes to manifest.json. Still testing these out so WIP. * WV-2128 -Added '/web/sw.js' and 'web/sw.js.map' to .gitignore. * Added workbox JS file to .eslintignore * WV-2128: - Added "swDest: '../sw.js'" to GenerateSW so it creates a sw.js file at the web root. - Added expiratation for 24 hours for images and max entries to 30 for cache database * WV-2128: - Corrected location of 'sw.js'. -Updated theme color to NASA logo blue. * WV-2128. -Corrected location of icon and screenshots. -Added 'scope'. -Changed background_color to gray and theme to NASA logo bluue. * WV-2128: -Removed web/sw.js from git repo and added them to .gitignore * WV-2128: -Removed 'workbox-config.js' since the config now lives in webpack.config.js. -Created web/images/wv-logo-mobile.png * WV-2128 -Removed Workbox plugin from webpack.config.js. Added workbox-config.js * WV-2128 -Updated index.html to point to manifest file name. -Updated code that registers service worker JS file * Added 'workbox-cli' to devDependencies * WV-2130 -Removed all Workbox packages and config files * WV-2130 -Simplified service-worker.js file to meet minimum Lighthouse install requirements. -Updated index.html to point to new service-worker.js filename * WV-2130 -Updated manifest.webmanifest to use '/' for 'start_url' and 'scope'. -Updated display to 'fullscreen' to the mobile app fills device's available screen. 'Standalone' still displayed notification bar and other system navigation controls * WV-2130 -Added ESLint exception for service-worker.js: 'eslint-disable no restricted-globals' * WV-2130 -Removed console.log from index.html * WV-2130 -Removed Async function from service worker registration. Was only used for console logging * WV-2130 -Removed Workbox and Service Worker stuff from .gitignore and .eslintignore * WV-2130 - update pathing for manifest and service worker for dist deploy * WV-2130 - correct start_url and scope - remove less attractive screenshot * WV-2130 -Changed manifest variables to actual name of app * WV-2130 -Removed <script> tag from web/index.html and moved the JS code to web/js/main.js * WV-2130 -Updated tasks/dist.js to translate variables in build/worldview/manifest.webmanifest * WV-2130 -Updated manifest.webmanifest to use variables for 'short_name' and 'name' Co-authored-by: Jason Kent <[email protected]> * PWA: Theme Color, Apple Touch Icon, Maskable Icon (#3826) * pwa-icons-theme: - Added <link> tag to index.html for apple-touch-icon.png. - Added maskable icon code to manifest.webmanifest * Updated theme and background so they match. Darker, cobalt blue * WV-2198: -Added newly design WorldView icons for PWA app * -Replaced icons with white versions. -Updated manifest so that background and theme color is white * -Fixed webmanifest colors not set to white * -Fixed index.html theme-color so that it is set to white * Update mobile styles - Improve sidebar tab sizes on mobile - Move bottom buttons up to prevent obfuscation by phone bezels * fix mobile anim and compare positions * use vars for media query breakpoint sizes * fix more sidebar sizes - make sure group headers are mobile sized in landscape - make sure layer list takes up max avail space * fix embed sidebar collapsed button * fix orientation change for PWA * fix rotate button sizes Co-authored-by: Jason Kent <[email protected]>
- Loading branch information
Showing
40 changed files
with
312 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,3 @@ web/dist/* | |
web/build/* | ||
test/* | ||
web/js/lib/* | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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,31 @@ | ||
{ | ||
"short_name": "@NAME@", | ||
"name": "@LONG_NAME@", | ||
"icons": [ | ||
{ | ||
"src": "images/wv-logo-mobile.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
}, | ||
{ | ||
"src": "images/maskable_icon.png", | ||
"type": "image/png", | ||
"sizes": "512x512", | ||
"purpose": "any maskable" | ||
} | ||
], | ||
"start_url": ".", | ||
"scope": ".", | ||
"id":"/", | ||
"background_color": "#FFFFFF", | ||
"display": "fullscreen", | ||
"theme_color": "#FFFFFF", | ||
"description": "@DESCRIPTION@", | ||
"screenshots": [ | ||
{ | ||
"src": "images/readme-preview.jpg", | ||
"type": "image/jpg", | ||
"sizes": "1200x800" | ||
} | ||
] | ||
} |
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
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
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.