From b1aa559fee04e216eadd77f386c38b487081ed4a Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 22 Jul 2019 13:16:48 +1000 Subject: [PATCH 1/2] pubsub logging --- server/src/pubsub.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/pubsub.rs b/server/src/pubsub.rs index eafa1eb8..6a4cd90b 100644 --- a/server/src/pubsub.rs +++ b/server/src/pubsub.rs @@ -53,11 +53,12 @@ fn handle_notification(n: Notification, db: &Db, pss: &Sender) -> Resul let msg = match n.action { Action::Delete => return Err(format_err!("unimplemented delete notification {:?}", n)), - _ => match n.table { + Action::Insert => return Err(format_err!("unimplemented insert notification {:?}", n)), + Action::Update => match n.table { Table::Accounts => Message::Account(account::select(db, n.id)?), Table::Instances => Message::Instance(instance::instance_get(&mut tx, n.id)?), Table::Games => Message::Game(game::game_get(&mut tx, n.id)?), - _ => return Err(format_err!("unimplemented notification {:?}", n)), + _ => return Err(format_err!("unimplemented update notification {:?}", n)), }, }; From 5275c26ac8253b5761ba7a21cd9b557f55659dfa Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 22 Jul 2019 13:29:12 +1000 Subject: [PATCH 2/2] shapes --- client/src/components/shapes.jsx | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/client/src/components/shapes.jsx b/client/src/components/shapes.jsx index 954bcb46..3f70c894 100644 --- a/client/src/components/shapes.jsx +++ b/client/src/components/shapes.jsx @@ -36,26 +36,26 @@ module.exports = { // Speed, // Lifes Upgrades - LifeGGI: () => square(['green']), - LifeRRI: () => square(['red']), - LifeBBI: () => square(['blue']), - LifeRGI: () => square(['red', 'green']), - LifeGBI: () => square(['green', 'blue']), - LifeRBI: () => square(['red', 'blue']), + LifeGG: () => square(['green']), + LifeRR: () => square(['red']), + LifeBB: () => square(['blue']), + LifeRG: () => square(['red', 'green']), + LifeGB: () => square(['green', 'blue']), + LifeRB: () => square(['red', 'blue']), // Power Upgrades - PowerGGI: () => circle(['green']), - PowerRRI: () => circle(['red']), - PowerBBI: () => circle(['blue']), - PowerRGI: () => circle(['red', 'green']), - PowerGBI: () => circle(['green', 'blue']), - PowerRBI: () => circle(['red', 'blue']), + PowerGG: () => circle(['green']), + PowerRR: () => circle(['red']), + PowerBB: () => circle(['blue']), + PowerRG: () => circle(['red', 'green']), + PowerGB: () => circle(['green', 'blue']), + PowerRB: () => circle(['red', 'blue']), // Speed Upgrades - SpeedGGI: () => triangle(['green']), - SpeedRRI: () => triangle(['red']), - SpeedBBI: () => triangle(['blue']), - SpeedRGI: () => triangle(['red', 'green']), - SpeedGBI: () => triangle(['green', 'blue']), - SpeedRBI: () => triangle(['red', 'blue']), + SpeedGG: () => triangle(['green']), + SpeedRR: () => triangle(['red']), + SpeedBB: () => triangle(['blue']), + SpeedRG: () => triangle(['red', 'green']), + SpeedGB: () => triangle(['green', 'blue']), + SpeedRB: () => triangle(['red', 'blue']), };