Skip to content

Commit

Permalink
gh-pages fix
Browse files Browse the repository at this point in the history
  • Loading branch information
osydoo committed Apr 14, 2021
1 parent 8bc43ed commit f394131
Show file tree
Hide file tree
Showing 16 changed files with 113 additions and 35 deletions.
44 changes: 44 additions & 0 deletions build/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Single Page Apps for GitHub Pages</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ---------------------------------------------- ------------------------
// This script takes the current url and converts the path and query
// string into just a query string, and then redirects the browser
// to the new url with only a query string and hash fragment,
// e.g. http://www.foo.tld/one/two?a=b& c=d#qwe, becomes
// http://www.foo.tld/?p=/one/two& q=a=b~and~c=d#qwe
// Note: this 404.html file must be at least 512 bytes for it to work
// with Internet Explorer (it is currently > 512 bytes)

// If you're creating a Project Pages site and NOT using a custom domain,
// then set segmentCount to 1 (enterprise users may need to set it to > 1).
// This way the code will only replace the route part of the path, and not
// the real directory in which the app resides, for example:
// https://username.github.io/repo-name/one/two? a=b&c=d#qwe becomes
// https://username.github.io/repo-name/? p=/one/two&q=a=b~and~c=d#qwe
// Otherwise, leave segmentCount as 0.
var segmentCount = 1;

var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + segmentCount).join('/') + '/?p=/' +
l.pathname.slice(1).split('/').slice(segmentCount).join('/').replace(/&/g, '~and~') +
(l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);

</script>
</head>

<body>
</body>

</html>
16 changes: 8 additions & 8 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"files": {
"main.css": "/egluu/static/css/main.0cf9a934.chunk.css",
"main.js": "/egluu/static/js/main.625b1b73.chunk.js",
"main.js.map": "/egluu/static/js/main.625b1b73.chunk.js.map",
"main.js": "/egluu/static/js/main.2960a729.chunk.js",
"main.js.map": "/egluu/static/js/main.2960a729.chunk.js.map",
"runtime-main.js": "/egluu/static/js/runtime-main.fd3febab.js",
"runtime-main.js.map": "/egluu/static/js/runtime-main.fd3febab.js.map",
"static/css/2.cab98286.chunk.css": "/egluu/static/css/2.cab98286.chunk.css",
"static/js/2.7997216a.chunk.js": "/egluu/static/js/2.7997216a.chunk.js",
"static/js/2.7997216a.chunk.js.map": "/egluu/static/js/2.7997216a.chunk.js.map",
"static/js/2.2e669e2b.chunk.js": "/egluu/static/js/2.2e669e2b.chunk.js",
"static/js/2.2e669e2b.chunk.js.map": "/egluu/static/js/2.2e669e2b.chunk.js.map",
"index.html": "/egluu/index.html",
"precache-manifest.9155e06ecfeffb3b4a6eb5011255d0ba.js": "/egluu/precache-manifest.9155e06ecfeffb3b4a6eb5011255d0ba.js",
"precache-manifest.4ef1f9734de4efdbabc224d05ec15422.js": "/egluu/precache-manifest.4ef1f9734de4efdbabc224d05ec15422.js",
"service-worker.js": "/egluu/service-worker.js",
"static/css/2.cab98286.chunk.css.map": "/egluu/static/css/2.cab98286.chunk.css.map",
"static/css/main.0cf9a934.chunk.css.map": "/egluu/static/css/main.0cf9a934.chunk.css.map",
"static/js/2.7997216a.chunk.js.LICENSE.txt": "/egluu/static/js/2.7997216a.chunk.js.LICENSE.txt",
"static/js/2.2e669e2b.chunk.js.LICENSE.txt": "/egluu/static/js/2.2e669e2b.chunk.js.LICENSE.txt",
"static/media/baseImg.png": "/egluu/static/media/baseImg.c40f4ed9.png"
},
"entrypoints": [
"static/js/runtime-main.fd3febab.js",
"static/css/2.cab98286.chunk.css",
"static/js/2.7997216a.chunk.js",
"static/js/2.2e669e2b.chunk.js",
"static/css/main.0cf9a934.chunk.css",
"static/js/main.625b1b73.chunk.js"
"static/js/main.2960a729.chunk.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="ko"><head><meta charset="utf-8"/><link rel="icon" href="/egluu/user.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/egluu/manifest.json"/><title>EGLUU</title><script type="text/javascript">!function(i){if(i.search){var a={};i.search.slice(1).split("&").forEach((function(i){var l=i.split("=");a[l[0]]=l.slice(1).join("=").replace(/~and~/g,"&")})),void 0!==a.p&&window.history.replaceState(null,null,i.pathname.slice(0,-1)+(a.p||"")+(a.q?"?"+a.q:"")+i.hash)}}(window.location)</script><link href="/egluu/static/css/2.cab98286.chunk.css" rel="stylesheet"><link href="/egluu/static/css/main.0cf9a934.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 t(t){for(var n,l,a=t[0],p=t[1],f=t[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(t);s.length;)s.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var p=r[a];0!==o[p]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/egluu/";var a=this.webpackJsonptempreact=this.webpackJsonptempreact||[],p=a.push.bind(a);a.push=t,a=a.slice();for(var f=0;f<a.length;f++)t(a[f]);var i=p;r()}([])</script><script src="/egluu/static/js/2.7997216a.chunk.js"></script><script src="/egluu/static/js/main.625b1b73.chunk.js"></script></body></html>
<!doctype html><html lang="ko"><head><meta charset="utf-8"/><link rel="icon" href="/egluu/user.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/egluu/manifest.json"/><title>EGLUU</title><script type="text/javascript">!function(i){if(i.search){var a={};i.search.slice(1).split("&").forEach((function(i){var l=i.split("=");a[l[0]]=l.slice(1).join("=").replace(/~and~/g,"&")})),void 0!==a.p&&window.history.replaceState(null,null,i.pathname.slice(0,-1)+(a.p||"")+(a.q?"?"+a.q:"")+i.hash)}}(window.location)</script><link href="/egluu/static/css/2.cab98286.chunk.css" rel="stylesheet"><link href="/egluu/static/css/main.0cf9a934.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 t(t){for(var n,l,a=t[0],p=t[1],f=t[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(t);s.length;)s.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var p=r[a];0!==o[p]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/egluu/";var a=this.webpackJsonptempreact=this.webpackJsonptempreact||[],p=a.push.bind(a);a.push=t,a=a.slice();for(var f=0;f<a.length;f++)t(a[f]);var i=p;r()}([])</script><script src="/egluu/static/js/2.2e669e2b.chunk.js"></script><script src="/egluu/static/js/main.2960a729.chunk.js"></script></body></html>
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "14fdad9beaf7cd5aaa591e9a46ac0f0f",
"revision": "85a2387f5a103e6c7fc9cad501f028b6",
"url": "/egluu/index.html"
},
{
"revision": "3aa760f44053501c88d2",
"revision": "cc5de2afa1d53a3957a2",
"url": "/egluu/static/css/2.cab98286.chunk.css"
},
{
"revision": "bcbbc100507ba470ecdd",
"revision": "16d44f370f6a0d030994",
"url": "/egluu/static/css/main.0cf9a934.chunk.css"
},
{
"revision": "3aa760f44053501c88d2",
"url": "/egluu/static/js/2.7997216a.chunk.js"
"revision": "cc5de2afa1d53a3957a2",
"url": "/egluu/static/js/2.2e669e2b.chunk.js"
},
{
"revision": "915326de05c592dc1e8b7670c85db1b9",
"url": "/egluu/static/js/2.7997216a.chunk.js.LICENSE.txt"
"url": "/egluu/static/js/2.2e669e2b.chunk.js.LICENSE.txt"
},
{
"revision": "bcbbc100507ba470ecdd",
"url": "/egluu/static/js/main.625b1b73.chunk.js"
"revision": "16d44f370f6a0d030994",
"url": "/egluu/static/js/main.2960a729.chunk.js"
},
{
"revision": "d1e5635da2b03476457d",
Expand Down
2 changes: 1 addition & 1 deletion build/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/egluu/precache-manifest.9155e06ecfeffb3b4a6eb5011255d0ba.js"
"/egluu/precache-manifest.4ef1f9734de4efdbabc224d05ec15422.js"
);

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/2.2e669e2b.chunk.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/static/js/2.7997216a.chunk.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions build/static/js/main.2960a729.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.2960a729.chunk.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions build/static/js/main.625b1b73.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/main.625b1b73.chunk.js.map

This file was deleted.

44 changes: 44 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Single Page Apps for GitHub Pages</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ---------------------------------------------- ------------------------
// This script takes the current url and converts the path and query
// string into just a query string, and then redirects the browser
// to the new url with only a query string and hash fragment,
// e.g. http://www.foo.tld/one/two?a=b& c=d#qwe, becomes
// http://www.foo.tld/?p=/one/two& q=a=b~and~c=d#qwe
// Note: this 404.html file must be at least 512 bytes for it to work
// with Internet Explorer (it is currently > 512 bytes)

// If you're creating a Project Pages site and NOT using a custom domain,
// then set segmentCount to 1 (enterprise users may need to set it to > 1).
// This way the code will only replace the route part of the path, and not
// the real directory in which the app resides, for example:
// https://username.github.io/repo-name/one/two? a=b&c=d#qwe becomes
// https://username.github.io/repo-name/? p=/one/two&q=a=b~and~c=d#qwe
// Otherwise, leave segmentCount as 0.
var segmentCount = 1;

var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + segmentCount).join('/') + '/?p=/' +
l.pathname.slice(1).split('/').slice(segmentCount).join('/').replace(/&/g, '~and~') +
(l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);

</script>
</head>

<body>
</body>

</html>
1 change: 0 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>EGLUU</title>

<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
Expand Down
9 changes: 0 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ function App() {
<Route path="/projectUpdate/:id" component={ProjectUpdate} />
<Route path="/peoples" component={PeopleList} />
<Route path="/profile/:userId" component={Profile} />
{/* <Route exact path="/" component={Root} />
<Route path="/projects" component={ProjectList} />
<Route path="/peoples" component={PeopleList} />
<Route path="/createProject" component={ProjectCreate} />
<Route path="/projectDetail/:id" component={ProjectDetail} />
<Route path="/projectUpdate/:id" component={ProjectUpdate} />
<Route path="/register" component={Register} />
<Route path="/login" component={Login} />
<Route path="/profile/:userId" component={Profile} /> */}
</Switch>
<AlertModal />
</Router>
Expand Down

0 comments on commit f394131

Please sign in to comment.