Skip to content

Commit 20acc85

Browse files
committed
Fixed demo gh-pages links
1 parent 18670c5 commit 20acc85

14 files changed

+72
-138
lines changed

demo/README.md

Lines changed: 2 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,3 @@
1-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
1+
## React-prefetcher Demo App
22

3-
## Available Scripts
4-
5-
In the project directory, you can run:
6-
7-
### `npm start`
8-
9-
Runs the app in the development mode.<br>
10-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11-
12-
The page will reload if you make edits.<br>
13-
You will also see any lint errors in the console.
14-
15-
### `npm test`
16-
17-
Launches the test runner in the interactive watch mode.<br>
18-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19-
20-
### `npm run build`
21-
22-
Builds the app for production to the `build` folder.<br>
23-
It correctly bundles React in production mode and optimizes the build for the best performance.
24-
25-
The build is minified and the filenames include the hashes.<br>
26-
Your app is ready to be deployed!
27-
28-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29-
30-
### `npm run eject`
31-
32-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33-
34-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35-
36-
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37-
38-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39-
40-
## Learn More
41-
42-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43-
44-
To learn React, check out the [React documentation](https://reactjs.org/).
45-
46-
### Code Splitting
47-
48-
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49-
50-
### Analyzing the Bundle Size
51-
52-
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53-
54-
### Making a Progressive Web App
55-
56-
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57-
58-
### Advanced Configuration
59-
60-
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61-
62-
### Deployment
63-
64-
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65-
66-
### `npm run build` fails to minify
67-
68-
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
3+
This app can be previewed here: https://manojvivek.github.io/react-prefetcher/

demo/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"name": "demo",
2+
"name": "react-prefetcher-demo",
33
"version": "0.1.0",
44
"private": true,
5+
"homepage": "https://manojvivek.github.io/react-prefetcher/",
56
"dependencies": {
67
"react": "^16.8.6",
78
"react-dom": "^16.8.6",
@@ -10,7 +11,7 @@
1011
},
1112
"scripts": {
1213
"start": "react-scripts start",
13-
"build": "react-scripts build",
14+
"build": "react-scripts build && rm -rf ../docs && mv build ../docs",
1415
"test": "react-scripts test",
1516
"eject": "react-scripts eject"
1617
},

demo/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
work correctly both with client-side routing and a non-root public URL.
2020
Learn how to configure a non-root public URL by running `npm run build`.
2121
-->
22-
<title>React App</title>
22+
<title>React-prefetcher Demo App</title>
2323
</head>
2424
<body>
2525
<noscript>You need to enable JavaScript to run this app.</noscript>

demo/src/logo.svg

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

docs/asset-manifest.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"files": {
3-
"main.css": "/static/css/main.0f84021f.chunk.css",
4-
"main.js": "/static/js/main.d535fa37.chunk.js",
5-
"main.js.map": "/static/js/main.d535fa37.chunk.js.map",
6-
"runtime~main.js": "/static/js/runtime~main.a8a9905a.js",
7-
"runtime~main.js.map": "/static/js/runtime~main.a8a9905a.js.map",
8-
"static/js/2.dcc8df9a.chunk.js": "/static/js/2.dcc8df9a.chunk.js",
9-
"static/js/2.dcc8df9a.chunk.js.map": "/static/js/2.dcc8df9a.chunk.js.map",
10-
"index.html": "/index.html",
11-
"precache-manifest.aca38ba11f31377b25f164810bfe6bcd.js": "/precache-manifest.aca38ba11f31377b25f164810bfe6bcd.js",
12-
"service-worker.js": "/service-worker.js",
13-
"static/css/main.0f84021f.chunk.css.map": "/static/css/main.0f84021f.chunk.css.map"
3+
"main.css": "/react-prefetcher/static/css/main.0f84021f.chunk.css",
4+
"main.js": "/react-prefetcher/static/js/main.c19cf8e1.chunk.js",
5+
"main.js.map": "/react-prefetcher/static/js/main.c19cf8e1.chunk.js.map",
6+
"runtime~main.js": "/react-prefetcher/static/js/runtime~main.d090f32f.js",
7+
"runtime~main.js.map": "/react-prefetcher/static/js/runtime~main.d090f32f.js.map",
8+
"static/js/2.dcc8df9a.chunk.js": "/react-prefetcher/static/js/2.dcc8df9a.chunk.js",
9+
"static/js/2.dcc8df9a.chunk.js.map": "/react-prefetcher/static/js/2.dcc8df9a.chunk.js.map",
10+
"index.html": "/react-prefetcher/index.html",
11+
"precache-manifest.a9f226597b0d489b6806d532478b83cc.js": "/react-prefetcher/precache-manifest.a9f226597b0d489b6806d532478b83cc.js",
12+
"service-worker.js": "/react-prefetcher/service-worker.js",
13+
"static/css/main.0f84021f.chunk.css.map": "/react-prefetcher/static/css/main.0f84021f.chunk.css.map"
1414
}
1515
}

docs/index.html

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="shortcut icon" href="/favicon.ico" />
5+
<link rel="shortcut icon" href="/react-prefetcher/favicon.ico" />
66
<meta name="viewport" content="width=device-width,initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
8-
<link rel="manifest" href="/manifest.json" />
9-
<title>React App</title>
10-
<link href="/static/css/main.0f84021f.chunk.css" rel="stylesheet" />
8+
<link rel="manifest" href="/react-prefetcher/manifest.json" />
9+
<title>React-prefetcher Demo App</title>
10+
<link
11+
href="/react-prefetcher/static/css/main.0f84021f.chunk.css"
12+
rel="stylesheet"
13+
/>
1114
</head>
1215
<body>
1316
<noscript>You need to enable JavaScript to run this app.</noscript>
@@ -20,25 +23,25 @@
2023
f < n.length;
2124
f++
2225
)
23-
(t = n[f]), p[t] && i.push(p[t][0]), (p[t] = 0);
26+
(t = n[f]), c[t] && i.push(c[t][0]), (c[t] = 0);
2427
for (r in o)
2528
Object.prototype.hasOwnProperty.call(o, r) && (l[r] = o[r]);
2629
for (s && s(e); i.length; ) i.shift()();
27-
return c.push.apply(c, u || []), a();
30+
return p.push.apply(p, u || []), a();
2831
}
2932
function a() {
30-
for (var e, r = 0; r < c.length; r++) {
31-
for (var t = c[r], n = !0, o = 1; o < t.length; o++) {
33+
for (var e, r = 0; r < p.length; r++) {
34+
for (var t = p[r], n = !0, o = 1; o < t.length; o++) {
3235
var u = t[o];
33-
0 !== p[u] && (n = !1);
36+
0 !== c[u] && (n = !1);
3437
}
35-
n && (c.splice(r--, 1), (e = f((f.s = t[0]))));
38+
n && (p.splice(r--, 1), (e = f((f.s = t[0]))));
3639
}
3740
return e;
3841
}
3942
var t = {},
40-
p = { 1: 0 },
41-
c = [];
43+
c = { 1: 0 },
44+
p = [];
4245
function f(e) {
4346
if (t[e]) return t[e].exports;
4447
var r = (t[e] = { i: e, l: !1, exports: {} });
@@ -89,15 +92,15 @@
8992
(f.o = function(e, r) {
9093
return Object.prototype.hasOwnProperty.call(e, r);
9194
}),
92-
(f.p = '/');
95+
(f.p = '/react-prefetcher/');
9396
var r = (window.webpackJsonp = window.webpackJsonp || []),
9497
n = r.push.bind(r);
9598
(r.push = e), (r = r.slice());
9699
for (var o = 0; o < r.length; o++) e(r[o]);
97100
var s = n;
98101
a();
99102
})([]);</script
100-
><script src="/static/js/2.dcc8df9a.chunk.js"></script
101-
><script src="/static/js/main.d535fa37.chunk.js"></script>
103+
><script src="/react-prefetcher/static/js/2.dcc8df9a.chunk.js"></script
104+
><script src="/react-prefetcher/static/js/main.c19cf8e1.chunk.js"></script>
102105
</body>
103106
</html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
self.__precacheManifest = (self.__precacheManifest || []).concat([
2+
{
3+
revision: 'd503a583e52a32cd1a0b3d26c41d595e',
4+
url: '/react-prefetcher/index.html',
5+
},
6+
{
7+
revision: 'a4965563f06d2d1f1717',
8+
url: '/react-prefetcher/static/css/main.0f84021f.chunk.css',
9+
},
10+
{
11+
revision: 'f295713939b9d62a5fc3',
12+
url: '/react-prefetcher/static/js/2.dcc8df9a.chunk.js',
13+
},
14+
{
15+
revision: 'a4965563f06d2d1f1717',
16+
url: '/react-prefetcher/static/js/main.c19cf8e1.chunk.js',
17+
},
18+
{
19+
revision: 'cc9c770d06d07a7894d7',
20+
url: '/react-prefetcher/static/js/runtime~main.d090f32f.js',
21+
},
22+
]);

docs/precache-manifest.aca38ba11f31377b25f164810bfe6bcd.js

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

docs/service-worker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ importScripts(
1515
'https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js'
1616
);
1717

18-
importScripts('/precache-manifest.aca38ba11f31377b25f164810bfe6bcd.js');
18+
importScripts(
19+
'/react-prefetcher/precache-manifest.a9f226597b0d489b6806d532478b83cc.js'
20+
);
1921

2022
self.addEventListener('message', event => {
2123
if (event.data && event.data.type === 'SKIP_WAITING') {
@@ -34,7 +36,7 @@ self.__precacheManifest = [].concat(self.__precacheManifest || []);
3436
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
3537

3638
workbox.routing.registerNavigationRoute(
37-
workbox.precaching.getCacheKeyForURL('/index.html'),
39+
workbox.precaching.getCacheKeyForURL('/react-prefetcher/index.html'),
3840
{
3941
blacklist: [/^\/_/, /\/[^\/]+\.[^\/]+$/],
4042
}
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)