Skip to content

Commit 8de5233

Browse files
Add example
1 parent 8f7bf7e commit 8de5233

17 files changed

+111
-0
lines changed

example/asset-manifest.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"main.js": "/static/js/main.d9ed16c0.chunk.js",
3+
"main.js.map": "/static/js/main.d9ed16c0.chunk.js.map",
4+
"static/js/1.1aa0b7cc.chunk.js": "/static/js/1.1aa0b7cc.chunk.js",
5+
"static/js/1.1aa0b7cc.chunk.js.map": "/static/js/1.1aa0b7cc.chunk.js.map",
6+
"runtime~main.js": "/static/js/runtime~main.229c360f.js",
7+
"runtime~main.js.map": "/static/js/runtime~main.229c360f.js.map",
8+
"index.html": "/index.html",
9+
"precache-manifest.5ced1240f6c7cb8b4043ba68bbaf1226.js": "/precache-manifest.5ced1240f6c7cb8b4043ba68bbaf1226.js",
10+
"service-worker.js": "/service-worker.js"
11+
}

example/data/data.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

example/down-arrow.png

634 Bytes
Loading

example/down-arrow_1.png

470 Bytes
Loading

example/favicon.ico

3.78 KB
Binary file not shown.

example/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<link rel="shortcut icon" href="favicon.ico">
6+
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
7+
<meta name="theme-color" content="#000000">
8+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
9+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
10+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
12+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
13+
<link rel="manifest" href="manifest.json">
14+
<title>React App</title>
15+
</head>
16+
<body>
17+
<noscript>You need to enable JavaScript to run this app.</noscript>
18+
<div id="root"></div>
19+
<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={2: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>
20+
<script src="static/js/1.1aa0b7cc.chunk.js"></script>
21+
<script src="static/js/main.d9ed16c0.chunk.js"></script>
22+
</body>
23+
</html>

example/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
}
10+
],
11+
"start_url": ".",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
self.__precacheManifest = [
2+
{
3+
"revision": "229c360febb4351a89df",
4+
"url": "/static/js/runtime~main.229c360f.js"
5+
},
6+
{
7+
"revision": "d9ed16c0447a8163f0ab",
8+
"url": "/static/js/main.d9ed16c0.chunk.js"
9+
},
10+
{
11+
"revision": "1aa0b7cc411921afdd47",
12+
"url": "/static/js/1.1aa0b7cc.chunk.js"
13+
},
14+
{
15+
"revision": "1b4f1a045e0c055608297ce7f6023514",
16+
"url": "/index.html"
17+
}
18+
];

example/service-worker.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Welcome to your Workbox-powered service worker!
3+
*
4+
* You'll need to register this file in your web app and you should
5+
* disable HTTP caching for this file too.
6+
* See https://goo.gl/nhQhGp
7+
*
8+
* The rest of the code is auto-generated. Please don't update this file
9+
* directly; instead, make changes to your Workbox build configuration
10+
* and re-run your build process.
11+
* See https://goo.gl/2aRDsh
12+
*/
13+
14+
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
15+
16+
importScripts(
17+
"/precache-manifest.5ced1240f6c7cb8b4043ba68bbaf1226.js"
18+
);
19+
20+
workbox.clientsClaim();
21+
22+
/**
23+
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
24+
* requests for URLs in the manifest.
25+
* See https://goo.gl/S9QRab
26+
*/
27+
self.__precacheManifest = [].concat(self.__precacheManifest || []);
28+
workbox.precaching.suppressWarnings();
29+
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
30+
31+
workbox.routing.registerNavigationRoute("/index.html", {
32+
33+
blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/],
34+
});

example/static/js/1.1aa0b7cc.chunk.js

Lines changed: 2 additions & 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)