From 114ec98aba346e67d3cd47e8f39a9bddf33efd8e Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 6 Jun 2019 11:53:06 +1000 Subject: [PATCH] classname -> class --- client/src/animations.jsx | 4 ++-- client/src/components/construct.jsx | 4 ++-- client/src/components/game.construct.jsx | 18 +++++++------- client/src/components/game.footer.jsx | 6 ++--- client/src/components/game.jsx | 6 ++--- client/src/components/header.jsx | 8 +++---- client/src/components/info.component.jsx | 24 +++++++++---------- client/src/components/instance.component.jsx | 6 ++--- client/src/components/instance.constructs.jsx | 18 +++++++------- .../src/components/instance.create.form.jsx | 4 ++-- client/src/components/instance.equip.jsx | 10 ++++---- client/src/components/instance.footer.jsx | 6 ++--- client/src/components/list.jsx | 12 +++++----- client/src/components/login.jsx | 12 +++++----- client/src/components/mnml.jsx | 2 +- client/src/components/molecule.jsx | 2 +- client/src/components/nav.jsx | 8 +++---- client/src/components/skill.btn.jsx | 4 ++-- client/src/components/spawn.button.jsx | 6 ++--- client/src/components/svgs/colour.jsx | 2 +- client/src/components/svgs/diamond.jsx | 2 +- client/src/components/svgs/hexagon.jsx | 2 +- client/src/components/svgs/pentagon.jsx | 2 +- client/src/components/svgs/saw.jsx | 4 ++-- client/src/components/svgs/squircle.jsx | 2 +- client/src/components/targeting.arrows.jsx | 2 +- client/src/components/team.jsx | 4 ++-- client/src/components/vbox.component.jsx | 24 +++++++++---------- 28 files changed, 102 insertions(+), 102 deletions(-) diff --git a/client/src/animations.jsx b/client/src/animations.jsx index c94b47d0..b2e01552 100644 --- a/client/src/animations.jsx +++ b/client/src/animations.jsx @@ -2,8 +2,8 @@ const preact = require('preact'); function animationDivs(classes) { switch (classes) { - case 'blast-cast': return Array.from({ length: 100 }).map(j =>
); - case 'blast-hit': return Array.from({ length: 100 }).map(j =>
); + case 'blast-cast': return Array.from({ length: 100 }).map(j =>
); + case 'blast-hit': return Array.from({ length: 100 }).map(j =>
); default: return
 
; } } diff --git a/client/src/components/construct.jsx b/client/src/components/construct.jsx index 974b14b6..410c04d2 100644 --- a/client/src/components/construct.jsx +++ b/client/src/components/construct.jsx @@ -42,7 +42,7 @@ class ConstructAvatar extends Component { render() { return (
@@ -62,7 +62,7 @@ class ConstructImg extends Component { render() { return ( (
{shapes[s]()} -
{construct[STATS[s].stat].value} / {construct[STATS[s].stat].max}
-
{construct[STATS[s].stat].value}
+
{construct[STATS[s].stat].value} / {construct[STATS[s].stat].max}
+
{construct[STATS[s].stat].value}
)); @@ -71,12 +71,12 @@ function GameConstruct(props) { .map(j => ); let crypSkills =
 
; - if (player) crypSkills = (
{skills}
); + if (player) crypSkills = (
{skills}
); const [combatText, combatClass] = getCombatText(construct, resolution); const combatTextClass = `combat-text ${combatClass}`; const combatTextEl = combatText - ?
{combatText}
+ ?
{combatText}
: null; const effects = construct.effects.length @@ -87,7 +87,7 @@ function GameConstruct(props) { const playerTeamIds = playerTeam.constructs.map(c => c.id); const anim = ( -
+
{animationDivs(combatClass)}
); @@ -96,13 +96,13 @@ function GameConstruct(props) {
selectSkillTarget(construct.id)} style={ activeSkill ? { cursor: 'pointer' } : {}} - className={`game-construct ${ko} ${classes}`} > -

{construct.name}

+ class={`game-construct ${ko} ${classes}`} > +

{construct.name}

{crypSkills} -
{stats}
+
{stats}
{combatTextEl} -
{effects}
+
{effects}
); } diff --git a/client/src/components/game.footer.jsx b/client/src/components/game.footer.jsx index 287b0eab..69925fb8 100644 --- a/client/src/components/game.footer.jsx +++ b/client/src/components/game.footer.jsx @@ -98,7 +98,7 @@ function GameFooter(props) { const readyBtn = ( @@ -124,8 +124,8 @@ function GameFooter(props) { }; const timer = ( -
-
 
+
+
 
); diff --git a/client/src/components/game.jsx b/client/src/components/game.jsx index 0c681863..eddde654 100644 --- a/client/src/components/game.jsx +++ b/client/src/components/game.jsx @@ -72,7 +72,7 @@ function Game(props) { const constructs = team.constructs.map((c, i) => ); return ( -
+
{constructs}
); @@ -82,7 +82,7 @@ function Game(props) { const constructs = team.constructs.map((c, i) => ); return ( -
+
{constructs}
); @@ -96,7 +96,7 @@ function Game(props) { } return ( -
+
{otherTeams.map(OpponentTeam)} {PlayerTeam(playerTeam, setActiveSkill)} diff --git a/client/src/components/header.jsx b/client/src/components/header.jsx index d2ffdedc..5562502b 100644 --- a/client/src/components/header.jsx +++ b/client/src/components/header.jsx @@ -21,16 +21,16 @@ function renderHeader(args) { const { account, ping } = args; const accountStatus = account - ? (
-

{account.name}

+ ? (
+

{account.name}

{saw(pingColour(ping))} -
{ping}ms
+
{ping}ms
) : ''; return (
-

mnml.gg

+

mnml.gg

{accountStatus}
); diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index d94b6597..ba9dadb7 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -23,7 +23,7 @@ function InfoComponent(args) { if (isSkill) { return ( -
+

{fullInfo.item}

{fullInfo.description}
@@ -61,7 +61,7 @@ function InfoComponent(args) { : ''; return ( -
+
{shapes.square([c])}
); @@ -81,11 +81,11 @@ function InfoComponent(args) { : 'unmet'; return ( -
-
+
+
{colourGoals}
-
+
+ {bonus.bonus}
@@ -94,10 +94,10 @@ function InfoComponent(args) { }); return ( -
+

{info}

{fullInfo.description}
-
+
{thresholds}
@@ -105,7 +105,7 @@ function InfoComponent(args) { } return ( -
+

{fullInfo.item}

{fullInfo.description}
@@ -126,7 +126,7 @@ function InfoComponent(args) { {filteredCombos.map((c, i) => - {convertItem(c.item)} + {convertItem(c.item)} {c.components.map((u, j) => {convertItem(u)})} )} @@ -139,11 +139,11 @@ function InfoComponent(args) { const vboxCombos = itemInfo.combos.filter(c => c.components.includes(info)); if (vboxCombos.length > 6) return false; return ( - +
{vboxCombos.map((c, i) => - + {c.components.map((u, j) => )} )} @@ -157,7 +157,7 @@ function InfoComponent(args) { // : null; return ( -
+
diff --git a/client/src/components/instance.component.jsx b/client/src/components/instance.component.jsx index bb9aed6b..9b18ec0f 100644 --- a/client/src/components/instance.component.jsx +++ b/client/src/components/instance.component.jsx @@ -63,7 +63,7 @@ function Instance(args) { const pText = playerText(p); return (
+ class={p.ready ? 'ready' : ''}> @@ -72,7 +72,7 @@ function Instance(args) { }); return ( -
{convertItem(c.item)}{convertItem(c.item)}{convertItem(u)}
{p.name} {p.wins} / {p.losses} {pText}
+
{players} @@ -83,7 +83,7 @@ function Instance(args) { const instanceClasses = `instance ${nav === 'constructs' ? 'constructs-visible' : ''}`; return ( -
setInfo(null)} > +
setInfo(null)} > diff --git a/client/src/components/instance.constructs.jsx b/client/src/components/instance.constructs.jsx index a26a256d..cc7c1dc7 100644 --- a/client/src/components/instance.constructs.jsx +++ b/client/src/components/instance.constructs.jsx @@ -104,7 +104,7 @@ function Construct(props) { const skill = construct.skills[i]; const s = skill ? skill.skill - : (+); + : (+); function skillClick(e) { if (!skill) return false; @@ -131,7 +131,7 @@ function Construct(props) {
@@ -76,7 +76,7 @@ function List(args) { }); return ( -
+
{instance.name} {instance.players.length} / {instance.max_players}
@@ -88,7 +88,7 @@ function List(args) { {instancePanels} - sendInstanceList()}> + sendInstanceList()}> @@ -104,15 +104,15 @@ function List(args) { .map(construct =>
+ class="menu-construct" >

{construct.name}

); return ( -
-
+
+
{constructPanels}
{listElements()} diff --git a/client/src/components/login.jsx b/client/src/components/login.jsx index 18707013..f2f32bca 100644 --- a/client/src/components/login.jsx +++ b/client/src/components/login.jsx @@ -56,31 +56,31 @@ class Login extends Component { render() { return (
-
+
vboxTouchStart(e, i, j)} onTouchEnd={e => vboxTouchEnd(e, i, j)} onTouchMove={e => vboxTouchMove(e)} @@ -218,7 +218,7 @@ function Vbox(args) { return ( vboxHover(e, value)} onClick={e => boundClick(e, i, highlighted) }> {convertItem(value)} @@ -252,7 +252,7 @@ function Vbox(args) { return combinerChange(combiner); } const combinerElement = ( - +
combinerRmv(0)}> @@ -287,38 +287,38 @@ function Vbox(args) { const reclaimClass = `vbox-btn reclaim ${reclaiming ? 'reclaiming' : ''}`; return ( -
-
setReclaiming(false)} onMouseOver={e => hoverInfo(e, 'vbox')} > -
+
+
setReclaiming(false)} onMouseOver={e => hoverInfo(e, 'vbox')} > +

e.target.scrollIntoView(true)}>VBOX

-
hoverInfo(e, 'bits')} >{vbox.bits}b
+
hoverInfo(e, 'bits')} >{vbox.bits}b
- +
{freeRows}
-
setReclaiming(false)} onMouseOver={e => hoverInfo(e, 'inventory')} > +
setReclaiming(false)} onMouseOver={e => hoverInfo(e, 'inventory')} >

e.target.scrollIntoView(true)}>INVENTORY

- +
{boundRows}
-
hoverInfo(e, 'combiner')} > +
hoverInfo(e, 'combiner')} >

e.target.scrollIntoView(true)}>I-COMBINATOR