Skip to content

Commit 02fbe32

Browse files
committed
[ADD]🚀 index hooks and cleanTitle added
1 parent c8c9bd7 commit 02fbe32

20 files changed

+375
-47
lines changed

‎README.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
### Project Structure
1818

19-
> run `tree -I "node_modules|public"`
19+
> run `tree -I "node_modules|public|build|docs"`
2020
```shell
2121
.
2222
├── Dockerfile
@@ -35,13 +35,14 @@
3535
│   │   ├── getGifs.js
3636
│   │   └── index.js
3737
│   ├── hooks
38+
│   │   ├── index.js
3839
│   │   └── useFetchGifs.js
3940
│   ├── index.css
4041
│   ├── index.js
4142
│   └── setupTests.js
4243
└── yarn.lock
4344

44-
4 directories, 17 files
45+
4 directories, 18 files
4546
```
4647

4748
### Scripts
@@ -59,3 +60,7 @@
5960
> run `docker-compose run app yarn build`, install `yarn global http-server` to test.
6061
> run `http-server build`
6162
63+
### GitHub Pages
64+
65+
rename the `build` directory to `docs`, and rename the root paths `/` to `./` to search the some path.
66+

‎docs/asset-manifest.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
22
"files": {
33
"main.css": "/static/css/main.c192a033.chunk.css",
4-
"main.js": "/static/js/main.5c990fd1.chunk.js",
5-
"main.js.map": "/static/js/main.5c990fd1.chunk.js.map",
4+
"main.js": "/static/js/main.c13b971e.chunk.js",
5+
"main.js.map": "/static/js/main.c13b971e.chunk.js.map",
66
"runtime-main.js": "/static/js/runtime-main.c8ba4116.js",
77
"runtime-main.js.map": "/static/js/runtime-main.c8ba4116.js.map",
8-
"static/js/2.637c77a8.chunk.js": "/static/js/2.637c77a8.chunk.js",
9-
"static/js/2.637c77a8.chunk.js.map": "/static/js/2.637c77a8.chunk.js.map",
8+
"static/js/2.230fb7e3.chunk.js": "/static/js/2.230fb7e3.chunk.js",
9+
"static/js/2.230fb7e3.chunk.js.map": "/static/js/2.230fb7e3.chunk.js.map",
1010
"index.html": "/index.html",
11-
"precache-manifest.72e6a006b885a677a0aed9add157414c.js": "/precache-manifest.72e6a006b885a677a0aed9add157414c.js",
11+
"precache-manifest.ff9f33f94adf9c2cdb65f4dac3e6a3a8.js": "/precache-manifest.ff9f33f94adf9c2cdb65f4dac3e6a3a8.js",
1212
"service-worker.js": "/service-worker.js",
1313
"static/css/main.c192a033.chunk.css.map": "/static/css/main.c192a033.chunk.css.map",
14-
"static/js/2.637c77a8.chunk.js.LICENSE.txt": "/static/js/2.637c77a8.chunk.js.LICENSE.txt"
14+
"static/js/2.230fb7e3.chunk.js.LICENSE.txt": "/static/js/2.230fb7e3.chunk.js.LICENSE.txt"
1515
},
1616
"entrypoints": [
1717
"static/js/runtime-main.c8ba4116.js",
18-
"static/js/2.637c77a8.chunk.js",
18+
"static/js/2.230fb7e3.chunk.js",
1919
"static/css/main.c192a033.chunk.css",
20-
"static/js/main.5c990fd1.chunk.js"
20+
"static/js/main.c13b971e.chunk.js"
2121
]
2222
}

‎docs/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<body><noscript>You need to enable JavaScript to run this app.</noscript>
1818
<div id="root"></div>
1919
<script>!function (e) { function r(r) { for (var n, p, f = r[0], i = r[1], l = r[2], c = 0, s = []; c < f.length; c++)p = f[c], Object.prototype.hasOwnProperty.call(o, p) && o[p] && s.push(o[p][0]), o[p] = 0; for (n in i) Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]); for (a && a(r); s.length;)s.shift()(); return u.push.apply(u, l || []), t() } function t() { for (var e, r = 0; r < u.length; r++) { for (var t = u[r], n = !0, f = 1; f < t.length; f++) { var i = t[f]; 0 !== o[i] && (n = !1) } n && (u.splice(r--, 1), e = p(p.s = t[0])) } return e } var n = {}, o = { 1: 0 }, u = []; function p(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, p), t.l = !0, t.exports } p.m = e, p.c = n, p.d = function (e, r, t) { p.o(e, r) || Object.defineProperty(e, r, { enumerable: !0, get: t }) }, p.r = function (e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }) }, p.t = function (e, r) { if (1 & r && (e = p(e)), 8 & r) return e; if (4 & r && "object" == typeof e && e && e.__esModule) return e; var t = Object.create(null); if (p.r(t), Object.defineProperty(t, "default", { enumerable: !0, value: e }), 2 & r && "string" != typeof e) for (var n in e) p.d(t, n, function (r) { return e[r] }.bind(null, n)); return t }, p.n = function (e) { var r = e && e.__esModule ? function () { return e.default } : function () { return e }; return p.d(r, "a", r), r }, p.o = function (e, r) { return Object.prototype.hasOwnProperty.call(e, r) }, p.p = "/"; var f = this["webpackJsonpgif-expert-app"] = this["webpackJsonpgif-expert-app"] || [], i = f.push.bind(f); f.push = r, f = f.slice(); for (var l = 0; l < f.length; l++)r(f[l]); var a = i; t() }([])</script>
20-
<script src="./static/js/2.637c77a8.chunk.js"></script>
21-
<script src="./static/js/main.5c990fd1.chunk.js"></script>
20+
<script src="./static/js/2.230fb7e3.chunk.js"></script>
21+
<script src="./static/js/main.c13b971e.chunk.js"></script>
2222
</body>
2323

2424
</html>

docs/precache-manifest.72e6a006b885a677a0aed9add157414c.js renamed to docs/precache-manifest.ff9f33f94adf9c2cdb65f4dac3e6a3a8.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
self.__precacheManifest = (self.__precacheManifest || []).concat([
22
{
3-
"revision": "56ca930e2b558ef6f29757f2344b7278",
3+
"revision": "3f3002ee22f19c36a64af9ead315cd08",
44
"url": "/index.html"
55
},
66
{
7-
"revision": "46213b49fa99f5af9550",
7+
"revision": "f44a1ebc30bc1f9a0a4f",
88
"url": "/static/css/main.c192a033.chunk.css"
99
},
1010
{
11-
"revision": "3ec50c8fead662706b17",
12-
"url": "/static/js/2.637c77a8.chunk.js"
11+
"revision": "7e4f610a74e27287c487",
12+
"url": "/static/js/2.230fb7e3.chunk.js"
1313
},
1414
{
1515
"revision": "e88a3e95b5364d46e95b35ae8c0dc27d",
16-
"url": "/static/js/2.637c77a8.chunk.js.LICENSE.txt"
16+
"url": "/static/js/2.230fb7e3.chunk.js.LICENSE.txt"
1717
},
1818
{
19-
"revision": "46213b49fa99f5af9550",
20-
"url": "/static/js/main.5c990fd1.chunk.js"
19+
"revision": "f44a1ebc30bc1f9a0a4f",
20+
"url": "/static/js/main.c13b971e.chunk.js"
2121
},
2222
{
2323
"revision": "2beaf3c9299542d4240e",

‎docs/service-worker.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
1515

1616
importScripts(
17-
"/precache-manifest.72e6a006b885a677a0aed9add157414c.js"
17+
"/precache-manifest.ff9f33f94adf9c2cdb65f4dac3e6a3a8.js"
1818
);
1919

2020
self.addEventListener('message', (event) => {

‎docs/static/js/2.230fb7e3.chunk.js‎

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

‎docs/static/js/2.230fb7e3.chunk.js.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.

‎docs/static/js/2.637c77a8.chunk.js‎

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

‎docs/static/js/2.637c77a8.chunk.js.map‎

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

0 commit comments

Comments
 (0)