Skip to content

Commit 2f8f46a

Browse files
committed
Update webapp-library example to new dependencies and new setCallback style
The setCallback style isn't a large change but it separates the callbacks from the apis and it is defined at the API and type level so that callbacks can be set at either level.
1 parent 4455146 commit 2f8f46a

File tree

84 files changed

+8962
-9465
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+8962
-9465
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
2-
"main.css": "./static/css/main.dfffca15.chunk.css",
3-
"main.js": "./static/js/main.8251c9b9.chunk.js",
4-
"main.js.map": "./static/js/main.8251c9b9.chunk.js.map",
5-
"runtime~main.js": "./static/js/runtime~main.d653cc00.js",
6-
"runtime~main.js.map": "./static/js/runtime~main.d653cc00.js.map",
7-
"static/js/2.cbbf7af4.chunk.js": "./static/js/2.cbbf7af4.chunk.js",
8-
"static/js/2.cbbf7af4.chunk.js.map": "./static/js/2.cbbf7af4.chunk.js.map",
9-
"index.html": "./index.html",
10-
"precache-manifest.4a407cff3ed8a6bbd9bebb56736c6ced.js": "./precache-manifest.4a407cff3ed8a6bbd9bebb56736c6ced.js",
11-
"service-worker.js": "./service-worker.js",
12-
"static/css/main.dfffca15.chunk.css.map": "./static/css/main.dfffca15.chunk.css.map"
2+
"files": {
3+
"main.css": "./static/css/main.a532201e.chunk.css",
4+
"main.js": "./static/js/main.b0d7b0af.chunk.js",
5+
"main.js.map": "./static/js/main.b0d7b0af.chunk.js.map",
6+
"runtime~main.js": "./static/js/runtime~main.962b2c08.js",
7+
"runtime~main.js.map": "./static/js/runtime~main.962b2c08.js.map",
8+
"static/js/2.0e4a7e47.chunk.js": "./static/js/2.0e4a7e47.chunk.js",
9+
"static/js/2.0e4a7e47.chunk.js.map": "./static/js/2.0e4a7e47.chunk.js.map",
10+
"index.html": "./index.html",
11+
"precache-manifest.48fbc9b2c75a260daa41ab421f07e489.js": "./precache-manifest.48fbc9b2c75a260daa41ab421f07e489.js",
12+
"service-worker.js": "./service-worker.js",
13+
"static/css/main.a532201e.chunk.css.map": "./static/css/main.a532201e.chunk.css.map"
14+
}
1315
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./manifest.json"/><title>React App</title><link href="./static/css/main.dfffca15.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={1:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="./";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="./static/js/2.cbbf7af4.chunk.js"></script><script src="./static/js/main.8251c9b9.chunk.js"></script></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./manifest.json"/><title>React App</title><link href="./static/css/main.a532201e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(p){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],l=0,a=[];l<n.length;l++)t=n[l],Object.prototype.hasOwnProperty.call(i,t)&&i[t]&&a.push(i[t][0]),i[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(p[r]=o[r]);for(s&&s(e);a.length;)a.shift()();return c.push.apply(c,u||[]),f()}function f(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==i[u]&&(n=!1)}n&&(c.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},i={1:0},c=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return p[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=p,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)l.d(t,n,function(e){return r[e]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="./";var r=window.webpackJsonpparent=window.webpackJsonpparent||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;f()}([])</script><script src="./static/js/2.0e4a7e47.chunk.js"></script><script src="./static/js/main.b0d7b0af.chunk.js"></script></body></html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
self.__precacheManifest = (self.__precacheManifest || []).concat([
2+
{
3+
"revision": "e4bc806b88756ce3248b691712dd962b",
4+
"url": "./index.html"
5+
},
6+
{
7+
"revision": "8917e6b452a8c8ed18e8",
8+
"url": "./static/css/main.a532201e.chunk.css"
9+
},
10+
{
11+
"revision": "4fba93dc2137df69b944",
12+
"url": "./static/js/2.0e4a7e47.chunk.js"
13+
},
14+
{
15+
"revision": "8917e6b452a8c8ed18e8",
16+
"url": "./static/js/main.b0d7b0af.chunk.js"
17+
},
18+
{
19+
"revision": "574894ead2dabc320a02",
20+
"url": "./static/js/runtime~main.962b2c08.js"
21+
}
22+
]);

examples/webapp-library/parent/build/precache-manifest.4a407cff3ed8a6bbd9bebb56736c6ced.js

-22
This file was deleted.

examples/webapp-library/parent/build/service-worker.js

+11-6
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,29 @@
1111
* See https://goo.gl/2aRDsh
1212
*/
1313

14-
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
14+
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
1515

1616
importScripts(
17-
"./precache-manifest.4a407cff3ed8a6bbd9bebb56736c6ced.js"
17+
"./precache-manifest.48fbc9b2c75a260daa41ab421f07e489.js"
1818
);
1919

20-
workbox.clientsClaim();
20+
self.addEventListener('message', (event) => {
21+
if (event.data && event.data.type === 'SKIP_WAITING') {
22+
self.skipWaiting();
23+
}
24+
});
25+
26+
workbox.core.clientsClaim();
2127

2228
/**
2329
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
2430
* requests for URLs in the manifest.
2531
* See https://goo.gl/S9QRab
2632
*/
2733
self.__precacheManifest = [].concat(self.__precacheManifest || []);
28-
workbox.precaching.suppressWarnings();
2934
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
3035

31-
workbox.routing.registerNavigationRoute("./index.html", {
36+
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"), {
3237

33-
blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/],
38+
blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
3439
});

examples/webapp-library/parent/build/static/css/main.dfffca15.chunk.css examples/webapp-library/parent/build/static/css/main.a532201e.chunk.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/webapp-library/parent/build/static/css/main.a532201e.chunk.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/webapp-library/parent/build/static/css/main.dfffca15.chunk.css.map

-1
This file was deleted.

examples/webapp-library/parent/build/static/js/2.0e4a7e47.chunk.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/webapp-library/parent/build/static/js/2.0e4a7e47.chunk.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/webapp-library/parent/build/static/js/2.cbbf7af4.chunk.js

-2
This file was deleted.

examples/webapp-library/parent/build/static/js/2.cbbf7af4.chunk.js.map

-1
This file was deleted.

examples/webapp-library/parent/build/static/js/main.8251c9b9.chunk.js

-2
This file was deleted.

0 commit comments

Comments
 (0)