Skip to content

Commit

Permalink
fix(Unit): fix evo class unexpected removed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
UeidaNuima committed Mar 5, 2020
1 parent d723572 commit 0df47bb
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
14 changes: 7 additions & 7 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"files": {
"main.css": "/static/css/main.bf5b162e.chunk.css",
"main.js": "/static/js/main.16242ec2.chunk.js",
"main.js.map": "/static/js/main.16242ec2.chunk.js.map",
"main.js": "/static/js/main.84e11495.chunk.js",
"main.js.map": "/static/js/main.84e11495.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.c42d8ef7.js",
"runtime-main.js.map": "/static/js/runtime-main.c42d8ef7.js.map",
"static/css/2.db4919ad.chunk.css": "/static/css/2.db4919ad.chunk.css",
"static/css/2.3012c0eb.chunk.css": "/static/css/2.3012c0eb.chunk.css",
"static/js/2.4a1157fe.chunk.js": "/static/js/2.4a1157fe.chunk.js",
"static/js/2.4a1157fe.chunk.js.map": "/static/js/2.4a1157fe.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.777cd4e732a860cbef6a85d3786938cd.js": "/precache-manifest.777cd4e732a860cbef6a85d3786938cd.js",
"precache-manifest.75f9619074b383c503e0b942fc5250bb.js": "/precache-manifest.75f9619074b383c503e0b942fc5250bb.js",
"service-worker.js": "/service-worker.js",
"static/css/2.db4919ad.chunk.css.map": "/static/css/2.db4919ad.chunk.css.map",
"static/css/2.3012c0eb.chunk.css.map": "/static/css/2.3012c0eb.chunk.css.map",
"static/css/main.bf5b162e.chunk.css.map": "/static/css/main.bf5b162e.chunk.css.map",
"static/js/2.4a1157fe.chunk.js.LICENSE": "/static/js/2.4a1157fe.chunk.js.LICENSE",
"static/media/logo.png": "/static/media/logo.509ca4a9.png",
"static/media/pay.png": "/static/media/pay.f5dab129.png"
},
"entrypoints": [
"static/js/runtime-main.c42d8ef7.js",
"static/css/2.db4919ad.chunk.css",
"static/css/2.3012c0eb.chunk.css",
"static/js/2.4a1157fe.chunk.js",
"static/css/main.bf5b162e.chunk.css",
"static/js/main.16242ec2.chunk.js"
"static/js/main.84e11495.chunk.js"
]
}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="zh"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="icon" type="image/png" href="/logo.png"/><link rel="manifest" href="/manifest.json"/><title>Naberius</title><link href="/static/css/2.db4919ad.chunk.css" rel="stylesheet"><link href="/static/css/main.bf5b162e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><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],Object.prototype.hasOwnProperty.call(p,t)&&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={1: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=this["webpackJsonpnaberius-frontend"]=this["webpackJsonpnaberius-frontend"]||[],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><script src="/static/js/2.4a1157fe.chunk.js"></script><script src="/static/js/main.16242ec2.chunk.js"></script></body></html>
<!doctype html><html lang="zh"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="icon" type="image/png" href="/logo.png"/><link rel="manifest" href="/manifest.json"/><title>Naberius</title><link href="/static/css/2.3012c0eb.chunk.css" rel="stylesheet"><link href="/static/css/main.bf5b162e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><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],Object.prototype.hasOwnProperty.call(p,t)&&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={1: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=this["webpackJsonpnaberius-frontend"]=this["webpackJsonpnaberius-frontend"]||[],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><script src="/static/js/2.4a1157fe.chunk.js"></script><script src="/static/js/main.84e11495.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": "429723b06ecd1c2dd9c4084302e46c9e",
"revision": "bf0b4bbe7908f171e84542011db7f5b4",
"url": "/index.html"
},
{
"revision": "6c9409aa7ae79e7a1e8f",
"url": "/static/css/2.db4919ad.chunk.css"
"revision": "f3dde1385863c11aefc6",
"url": "/static/css/2.3012c0eb.chunk.css"
},
{
"revision": "1b709cf20b020ca3d4cf",
"revision": "8ada0b43c6d948673630",
"url": "/static/css/main.bf5b162e.chunk.css"
},
{
"revision": "6c9409aa7ae79e7a1e8f",
"revision": "f3dde1385863c11aefc6",
"url": "/static/js/2.4a1157fe.chunk.js"
},
{
"revision": "d6a7472a13919fb2e347fd9298bef2a8",
"url": "/static/js/2.4a1157fe.chunk.js.LICENSE"
},
{
"revision": "1b709cf20b020ca3d4cf",
"url": "/static/js/main.16242ec2.chunk.js"
"revision": "8ada0b43c6d948673630",
"url": "/static/js/main.84e11495.chunk.js"
},
{
"revision": "8bd58515cb0081862933",
Expand Down
2 changes: 1 addition & 1 deletion docs/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(
"/precache-manifest.777cd4e732a860cbef6a85d3786938cd.js"
"/precache-manifest.75f9619074b383c503e0b942fc5250bb.js"
);

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/static/css/2.3012c0eb.chunk.css.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/static/css/2.db4919ad.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions docs/static/js/main.16242ec2.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/static/js/main.16242ec2.chunk.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions docs/static/js/main.84e11495.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/static/js/main.84e11495.chunk.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Components/Routes/Unit/Unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const getStatus = (card: Data['Card']) => {
const index = classes.findIndex(
cl => cl.Type === `Evo2${card._AwakePattern === 1 ? 'b' : 'a'}`,
);
classes.splice(index, 1);
if (classes.length >= 4) classes.splice(index, 1);
}

return classes.map(cl => classDataToUnit(cl, card, ranges));
Expand Down

0 comments on commit 0df47bb

Please sign in to comment.