threads per ws maybe?

This commit is contained in:
ntr
2018-10-12 12:34:47 +11:00
parent a42ef53c6d
commit 67f62c659a
7 changed files with 21 additions and 11 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ function CrypPanel({ battle }) {
if (!battle) return <div>...</div>;
return (
<div className="">
{JSON.stringify(battle.a)}
{JSON.stringify(battle.b)}
<div>{JSON.stringify(battle.a)}</div>
<div>{JSON.stringify(battle.b)}</div>
<ul>
{battle.log.map((l, i) => (<li key={i} >{l}</li>))}
</ul>
+2 -2
View File
@@ -1,6 +1,6 @@
const preact = require('preact');
function CrypPanel({ cryps, sendCombatPve }) {
function CrypList({ cryps, sendCombatPve }) {
if (!cryps) return <div>not ready</div>;
const crypPanels = cryps.map(cryp => (
@@ -39,4 +39,4 @@ function CrypPanel({ cryps, sendCombatPve }) {
);
}
module.exports = CrypPanel;
module.exports = CrypList;