Skip to content

Commit

Permalink
fix: 大咪咪程序员司个🐴
Browse files Browse the repository at this point in the history
  • Loading branch information
UeidaNuima committed Apr 9, 2020
1 parent 0df47bb commit deaef10
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.bf5b162e.chunk.css",
"main.js": "/static/js/main.84e11495.chunk.js",
"main.js.map": "/static/js/main.84e11495.chunk.js.map",
"main.js": "/static/js/main.1e9375cd.chunk.js",
"main.js.map": "/static/js/main.1e9375cd.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.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.75f9619074b383c503e0b942fc5250bb.js": "/precache-manifest.75f9619074b383c503e0b942fc5250bb.js",
"precache-manifest.a710b19d3c8707646d40bea2b63a19e3.js": "/precache-manifest.a710b19d3c8707646d40bea2b63a19e3.js",
"service-worker.js": "/service-worker.js",
"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",
Expand All @@ -22,6 +22,6 @@
"static/css/2.3012c0eb.chunk.css",
"static/js/2.4a1157fe.chunk.js",
"static/css/main.bf5b162e.chunk.css",
"static/js/main.84e11495.chunk.js"
"static/js/main.1e9375cd.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.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>
<!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.1e9375cd.chunk.js"></script></body></html>
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "bf0b4bbe7908f171e84542011db7f5b4",
"revision": "26c489a964bdeadd5becbba72a276b10",
"url": "/index.html"
},
{
"revision": "f3dde1385863c11aefc6",
"url": "/static/css/2.3012c0eb.chunk.css"
},
{
"revision": "8ada0b43c6d948673630",
"revision": "a62eeda20294b778c0b8",
"url": "/static/css/main.bf5b162e.chunk.css"
},
{
Expand All @@ -20,8 +20,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/static/js/2.4a1157fe.chunk.js.LICENSE"
},
{
"revision": "8ada0b43c6d948673630",
"url": "/static/js/main.84e11495.chunk.js"
"revision": "a62eeda20294b778c0b8",
"url": "/static/js/main.1e9375cd.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.75f9619074b383c503e0b942fc5250bb.js"
"/precache-manifest.a710b19d3c8707646d40bea2b63a19e3.js"
);

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/static/js/main.84e11495.chunk.js.map

This file was deleted.

26 changes: 13 additions & 13 deletions src/Components/Routes/Quest/EnemyTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const EnemyConfigTableRows: React.FC<{ config: EnemySpecialtyConfig }> = ({
}
`,
{
onCompleted: d => {
onCompleted: (d) => {
setValue(d?.EnemyConfigMeta?.Comment || '');
},
},
Expand Down Expand Up @@ -93,7 +93,7 @@ const EnemyConfigTableRows: React.FC<{ config: EnemySpecialtyConfig }> = ({
size="small"
ref={ref}
value={value}
onChange={e => setValue(e.target.value)}
onChange={(e) => setValue(e.target.value)}
onBlur={handleSave}
onPressEnter={handleSave}
/>
Expand Down Expand Up @@ -168,7 +168,7 @@ const EnemyTableRows: React.FC<EnemyTableRowsProps> = ({
e.EnemyType._EnemyTypeName,
e._Attribute,
]
.filter(st => st && st !== 'なし')
.filter((st) => st && st !== 'なし')
.join(' ');
const changeCondition = e.Param_ChangeParam
? ENEMY_CHANGE_COND[e.Param_ChangeCondition]
Expand All @@ -188,7 +188,7 @@ const EnemyTableRows: React.FC<EnemyTableRowsProps> = ({
className={styles.compact}
style={{ cursor: 'pointer' }}
onClick={() =>
setShowTable(st =>
setShowTable((st) =>
st.map((v, i) => {
if (i === index) return !v;
return v;
Expand All @@ -200,9 +200,9 @@ const EnemyTableRows: React.FC<EnemyTableRowsProps> = ({
{enemies.length > 1 && index === 0 && (
<Button
icon={expand ? 'minus' : 'plus'}
onClick={e => {
onClick={(e) => {
e.stopPropagation();
setExpand(e => !e);
setExpand((e) => !e);
}}
style={{
width: 20,
Expand Down Expand Up @@ -235,7 +235,7 @@ const EnemyTableRows: React.FC<EnemyTableRowsProps> = ({
<td>
{getAttackSpeed(e, dots)}
<br />
{Math.ceil(e.ATTACK_RANGE * e.DotRate)}
{Math.ceil((e.ATTACK_RANGE * e.DotRate) / 1.5)}
</td>
<td>{e.HP}</td>
<td
Expand Down Expand Up @@ -370,7 +370,7 @@ const EnemyTable: React.FC<EnemyTableProps> = ({ data }) => {
quest.Treasure3,
quest.Treasure4,
quest.Treasure5,
].map(treasure => `${ICO_URL}/0/${treasure}.png`);
].map((treasure) => `${ICO_URL}/0/${treasure}.png`);
const parsedEnemies: Array<Array<Enemy & MapEntry> | MapEntry> = [];
const parseEnemy = (entry: MapEntry, enemyID: number = entry.EnemyID - 1) => {
const enemy = { ...enemies[enemyID], ...entry, EnemyID: enemyID };
Expand All @@ -391,7 +391,7 @@ const EnemyTable: React.FC<EnemyTableProps> = ({ data }) => {
const enemyGroup = [enemy];
if (
parsedEnemies.find(
ea =>
(ea) =>
!showDuplicate &&
ea instanceof Array &&
ea[0].EnemyID === enemy.EnemyID,
Expand All @@ -403,7 +403,7 @@ const EnemyTable: React.FC<EnemyTableProps> = ({ data }) => {
while (enemyGroup[enemyGroup.length - 1].Param_ChangeParam) {
const changeFrom = enemyGroup[enemyGroup.length - 1];
const enemyID = changeFrom.Param_ChangeParam - 1;
if (enemyGroup.find(e => e.EnemyID === enemyID)) {
if (enemyGroup.find((e) => e.EnemyID === enemyID)) {
break;
}
const newEnemy = parseEnemy(entry, enemyID);
Expand All @@ -425,15 +425,15 @@ const EnemyTable: React.FC<EnemyTableProps> = ({ data }) => {
checkedChildren="显示"
unCheckedChildren="隐藏"
checked={showDuplicate}
onChange={value => setShowDuplicate(value)}
onChange={(value) => setShowDuplicate(value)}
/>
<Divider type="vertical" />
对话
<Switch
checkedChildren="显示"
unCheckedChildren="隐藏"
checked={showTalk}
onChange={value => setShowTalk(value)}
onChange={(value) => setShowTalk(value)}
/>
</td>
</tr>
Expand Down Expand Up @@ -493,7 +493,7 @@ const EnemyTable: React.FC<EnemyTableProps> = ({ data }) => {
return list.map((s, index) => {
const recordIndex = Number.parseInt(s, 10);
const talk = quest.Mission.BattleTalkEvents.find(
e => e.RecordIndex === recordIndex,
(e) => e.RecordIndex === recordIndex,
);
if (!talk) {
return null;
Expand Down

0 comments on commit deaef10

Please sign in to comment.