Skip to content

Commit e24ff29

Browse files
committed
updated examples
1 parent f9482f7 commit e24ff29

File tree

207 files changed

+1101
-800
lines changed

Some content is hidden

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

207 files changed

+1101
-800
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/lib/**
2+
/node_modules/**
3+
/docs/**
Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
{
2-
"main.css": "./static/css/main.04e3263f.chunk.css",
3-
"main.js": "./static/js/main.b683b5a4.chunk.js",
4-
"main.js.map": "./static/js/main.b683b5a4.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.10d73631.chunk.js": "./static/js/2.10d73631.chunk.js",
8-
"static/js/2.10d73631.chunk.js.map": "./static/js/2.10d73631.chunk.js.map",
9-
"index.html": "./index.html",
10-
"precache-manifest.eeb1e4ba8e4ad968ea79c13468589d84.js": "./precache-manifest.eeb1e4ba8e4ad968ea79c13468589d84.js",
11-
"service-worker.js": "./service-worker.js",
12-
"static/css/main.04e3263f.chunk.css.map": "./static/css/main.04e3263f.chunk.css.map"
2+
"files": {
3+
"main.css": "./static/css/main.76ff40f4.chunk.css",
4+
"main.js": "./static/js/main.36e0ff5d.chunk.js",
5+
"main.js.map": "./static/js/main.36e0ff5d.chunk.js.map",
6+
"runtime-main.js": "./static/js/runtime-main.82bce8ad.js",
7+
"runtime-main.js.map": "./static/js/runtime-main.82bce8ad.js.map",
8+
"static/js/2.27d9e5dc.chunk.js": "./static/js/2.27d9e5dc.chunk.js",
9+
"static/js/2.27d9e5dc.chunk.js.map": "./static/js/2.27d9e5dc.chunk.js.map",
10+
"index.html": "./index.html",
11+
"precache-manifest.3c123556b6a78b2dc4e7304820582e56.js": "./precache-manifest.3c123556b6a78b2dc4e7304820582e56.js",
12+
"service-worker.js": "./service-worker.js",
13+
"static/css/main.76ff40f4.chunk.css.map": "./static/css/main.76ff40f4.chunk.css.map",
14+
"static/js/2.27d9e5dc.chunk.js.LICENSE.txt": "./static/js/2.27d9e5dc.chunk.js.LICENSE.txt"
15+
},
16+
"entrypoints": [
17+
"static/js/runtime-main.82bce8ad.js",
18+
"static/js/2.27d9e5dc.chunk.js",
19+
"static/css/main.76ff40f4.chunk.css",
20+
"static/js/main.36e0ff5d.chunk.js"
21+
]
1322
}
Lines changed: 1 addition & 1 deletion
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.04e3263f.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.10d73631.chunk.js"></script><script src="./static/js/main.b683b5a4.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.76ff40f4.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,a=r[0],p=r[1],f=r[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var p=t[a];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,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(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.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 a=this.webpackJsonpparent=this.webpackJsonpparent||[],p=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var i=p;t()}([])</script><script src="./static/js/2.27d9e5dc.chunk.js"></script><script src="./static/js/main.36e0ff5d.chunk.js"></script></body></html>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
self.__precacheManifest = (self.__precacheManifest || []).concat([
2+
{
3+
"revision": "e5c3234385cbbb17d32a50d83baab029",
4+
"url": "./index.html"
5+
},
6+
{
7+
"revision": "5488eb4831ba5620bfe4",
8+
"url": "./static/css/main.76ff40f4.chunk.css"
9+
},
10+
{
11+
"revision": "af1dcc8bab37d9a1ae21",
12+
"url": "./static/js/2.27d9e5dc.chunk.js"
13+
},
14+
{
15+
"revision": "e88a3e95b5364d46e95b35ae8c0dc27d",
16+
"url": "./static/js/2.27d9e5dc.chunk.js.LICENSE.txt"
17+
},
18+
{
19+
"revision": "5488eb4831ba5620bfe4",
20+
"url": "./static/js/main.36e0ff5d.chunk.js"
21+
},
22+
{
23+
"revision": "0470096c58cb3d4dcbb1",
24+
"url": "./static/js/runtime-main.82bce8ad.js"
25+
}
26+
]);

examples/react-iframe/parent/build/precache-manifest.eeb1e4ba8e4ad968ea79c13468589d84.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/react-iframe/parent/build/service-worker.js

Lines changed: 11 additions & 6 deletions
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.eeb1e4ba8e4ad968ea79c13468589d84.js"
17+
"./precache-manifest.3c123556b6a78b2dc4e7304820582e56.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/react-iframe/parent/build/static/css/main.04e3263f.chunk.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/react-iframe/parent/build/static/css/main.04e3263f.chunk.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/react-iframe/parent/build/static/css/main.76ff40f4.chunk.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/react-iframe/parent/build/static/css/main.76ff40f4.chunk.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)