mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-12 05:35:16 -05:00
lazy loading hot fix
This commit is contained in:
parent
b3d253580c
commit
8def6253e8
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"files": {
|
||||
"main.css": "/static/css/main.833d239f.chunk.css",
|
||||
"main.js": "/static/js/main.b850ba9b.chunk.js",
|
||||
"main.js.map": "/static/js/main.b850ba9b.chunk.js.map",
|
||||
"main.js": "/static/js/main.1d313506.chunk.js",
|
||||
"main.js.map": "/static/js/main.1d313506.chunk.js.map",
|
||||
"runtime~main.js": "/static/js/runtime~main.0f5215bb.js",
|
||||
"runtime~main.js.map": "/static/js/runtime~main.0f5215bb.js.map",
|
||||
"static/js/2.a22eaa35.chunk.js": "/static/js/2.a22eaa35.chunk.js",
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
"static/js/6.a6c678dd.chunk.js": "/static/js/6.a6c678dd.chunk.js",
|
||||
"static/js/6.a6c678dd.chunk.js.map": "/static/js/6.a6c678dd.chunk.js.map",
|
||||
"index.html": "/index.html",
|
||||
"precache-manifest.af80c61c209b2ff91c9ab84aac8d3562.js": "/precache-manifest.af80c61c209b2ff91c9ab84aac8d3562.js",
|
||||
"precache-manifest.fa0e65bec2fb6d371e82e8d276c76a83.js": "/precache-manifest.fa0e65bec2fb6d371e82e8d276c76a83.js",
|
||||
"service-worker.js": "/service-worker.js",
|
||||
"static/css/3.3b555af2.chunk.css.map": "/static/css/3.3b555af2.chunk.css.map",
|
||||
"static/css/main.833d239f.chunk.css.map": "/static/css/main.833d239f.chunk.css.map",
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="stylesheet" href="//cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>sendou.ink</title><link href="/static/css/3.3b555af2.chunk.css" rel="stylesheet"><link href="/static/css/main.833d239f.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(c){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],i=0,a=[];i<n.length;i++)t=n[i],f[t]&&a.push(f[t][0]),f[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(c[r]=o[r]);for(d&&d(e);a.length;)a.shift()();return p.push.apply(p,u||[]),l()}function l(){for(var e,r=0;r<p.length;r++){for(var t=p[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==f[u]&&(n=!1)}n&&(p.splice(r--,1),e=s(s.s=t[0]))}return e}var t={},f={1:0},p=[];function s(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return c[e].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.e=function(u){var e=[],t=f[u];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=f[u]=[e,r]});e.push(t[2]=r);var n,i=document.createElement("script");i.charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.src=s.p+"static/js/"+({}[u]||u)+"."+{2:"a22eaa35",4:"b5800905",5:"d7c3833e",6:"a6c678dd"}[u]+".chunk.js",n=function(e){i.onerror=i.onload=null,clearTimeout(a);var r=f[u];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,o=new Error("Loading chunk "+u+" failed.\n("+t+": "+n+")");o.type=t,o.request=n,r[1](o)}f[u]=void 0}};var a=setTimeout(function(){n({type:"timeout",target:i})},12e4);i.onerror=i.onload=n,document.head.appendChild(i)}return Promise.all(e)},s.m=c,s.c=t,s.d=function(e,r,t){s.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(r,e){if(1&e&&(r=s(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)s.d(t,n,function(e){return r[e]}.bind(null,n));return t},s.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(r,"a",r),r},s.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},s.p="/",s.oe=function(e){throw console.error(e),e};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 d=n;l()}([])</script><script src="/static/js/3.bc71cd48.chunk.js"></script><script src="/static/js/main.b850ba9b.chunk.js"></script></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="stylesheet" href="//cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>sendou.ink</title><link href="/static/css/3.3b555af2.chunk.css" rel="stylesheet"><link href="/static/css/main.833d239f.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(c){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],i=0,a=[];i<n.length;i++)t=n[i],f[t]&&a.push(f[t][0]),f[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(c[r]=o[r]);for(d&&d(e);a.length;)a.shift()();return p.push.apply(p,u||[]),l()}function l(){for(var e,r=0;r<p.length;r++){for(var t=p[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==f[u]&&(n=!1)}n&&(p.splice(r--,1),e=s(s.s=t[0]))}return e}var t={},f={1:0},p=[];function s(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return c[e].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.e=function(u){var e=[],t=f[u];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=f[u]=[e,r]});e.push(t[2]=r);var n,i=document.createElement("script");i.charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.src=s.p+"static/js/"+({}[u]||u)+"."+{2:"a22eaa35",4:"b5800905",5:"d7c3833e",6:"a6c678dd"}[u]+".chunk.js",n=function(e){i.onerror=i.onload=null,clearTimeout(a);var r=f[u];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,o=new Error("Loading chunk "+u+" failed.\n("+t+": "+n+")");o.type=t,o.request=n,r[1](o)}f[u]=void 0}};var a=setTimeout(function(){n({type:"timeout",target:i})},12e4);i.onerror=i.onload=n,document.head.appendChild(i)}return Promise.all(e)},s.m=c,s.c=t,s.d=function(e,r,t){s.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(r,e){if(1&e&&(r=s(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)s.d(t,n,function(e){return r[e]}.bind(null,n));return t},s.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(r,"a",r),r},s.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},s.p="/",s.oe=function(e){throw console.error(e),e};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 d=n;l()}([])</script><script src="/static/js/3.bc71cd48.chunk.js"></script><script src="/static/js/main.1d313506.chunk.js"></script></body></html>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||
{
|
||||
"revision": "dd6fe1d991f73c97570e5539210a1caf",
|
||||
"revision": "1d2a6371c3a21de4cdf6a15e9ae320c7",
|
||||
"url": "/index.html"
|
||||
},
|
||||
{
|
||||
|
|
@ -8,7 +8,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||
"url": "/static/css/3.3b555af2.chunk.css"
|
||||
},
|
||||
{
|
||||
"revision": "2b0bdfd8a8a4340063f4",
|
||||
"revision": "02e837b9118e8825b4f8",
|
||||
"url": "/static/css/main.833d239f.chunk.css"
|
||||
},
|
||||
{
|
||||
|
|
@ -32,8 +32,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||
"url": "/static/js/6.a6c678dd.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "2b0bdfd8a8a4340063f4",
|
||||
"url": "/static/js/main.b850ba9b.chunk.js"
|
||||
"revision": "02e837b9118e8825b4f8",
|
||||
"url": "/static/js/main.1d313506.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "05986b8aedb76a810a94",
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.0/workbox-sw.js");
|
||||
|
||||
importScripts(
|
||||
"/precache-manifest.af80c61c209b2ff91c9ab84aac8d3562.js"
|
||||
"/precache-manifest.fa0e65bec2fb6d371e82e8d276c76a83.js"
|
||||
);
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
1
build/static/js/main.1d313506.chunk.js.map
Normal file
1
build/static/js/main.1d313506.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
39
react-ui/src/App.js
vendored
39
react-ui/src/App.js
vendored
|
|
@ -1,6 +1,6 @@
|
|||
import React, { useState, Suspense, lazy } from "react"
|
||||
import { Container } from "semantic-ui-react"
|
||||
import { Spin } from 'antd'
|
||||
import { Spin } from "antd"
|
||||
import Footer from "./components/Misc/Footer"
|
||||
import MainMenu from "./components/Misc/MainMenu"
|
||||
import NotFound from "./components/Misc/NotFound"
|
||||
|
|
@ -25,6 +25,11 @@ const PageMapPlanner = lazy(() => import("./components/Tools/PageMapPlanner"))
|
|||
|
||||
const App = () => {
|
||||
const [menuSelection, setMenuSelection] = useState("home")
|
||||
const suspenseFallback = () => (
|
||||
<div style={{ textAlign: "center" }}>
|
||||
<Spin />
|
||||
</div>
|
||||
)
|
||||
return (
|
||||
<Router>
|
||||
<Container>
|
||||
|
|
@ -104,24 +109,28 @@ const App = () => {
|
|||
path="/calendar"
|
||||
render={() => <Calendar setMenuSelection={setMenuSelection} />}
|
||||
/>
|
||||
<Route
|
||||
exact
|
||||
path="/plans"
|
||||
render={() => (
|
||||
<Suspense fallback={suspenseFallback}>
|
||||
<PageMapPlanner setMenuSelection={setMenuSelection} />
|
||||
</Suspense>
|
||||
)}
|
||||
/>
|
||||
<Route
|
||||
exact
|
||||
path="/trends"
|
||||
render={() => (
|
||||
<Suspense fallback={suspenseFallback}>
|
||||
<XTrends setMenuSelection={setMenuSelection} />
|
||||
</Suspense>
|
||||
)}
|
||||
/>
|
||||
<Route path="/about" render={() => <About />} />
|
||||
<Route path="/admin" render={() => <Admin />} />
|
||||
<Route path="/404" render={() => <NotFound />} />
|
||||
<Route path="*" render={() => <NotFound />} />
|
||||
<Suspense fallback={<div style={{textAlign: "center"}}><Spin /></div>}>
|
||||
<Route
|
||||
exact
|
||||
path="/plans"
|
||||
render={() => (
|
||||
<PageMapPlanner setMenuSelection={setMenuSelection} />
|
||||
)}
|
||||
/>
|
||||
<Route
|
||||
exact
|
||||
path="/trends"
|
||||
render={() => <XTrends setMenuSelection={setMenuSelection} />}
|
||||
/>
|
||||
</Suspense>
|
||||
</Switch>
|
||||
<Footer />
|
||||
</Container>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user