From 9a70c1f34e472dd5c10451e7532e941dd08b44b7 Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 12 Sep 2019 11:41:53 +1000 Subject: [PATCH] remove code, fix animation reset --- client/src/components/welcome.jsx | 20 +++++++++++++------- client/src/components/welcome.register.jsx | 17 ++++------------- client/src/events.jsx | 1 + server/src/account.rs | 6 +----- server/src/http.rs | 6 +----- 5 files changed, 20 insertions(+), 30 deletions(-) diff --git a/client/src/components/welcome.jsx b/client/src/components/welcome.jsx index f2018d30..80ce32a5 100644 --- a/client/src/components/welcome.jsx +++ b/client/src/components/welcome.jsx @@ -53,13 +53,19 @@ function Welcome() {

mnml.gg

-

mnml is a turn-based 1v1 strategy game in an abstract setting.

-

outplay your opponents by building your team of 3 constructs from a shifting meta of skills, effects and specialisations.

-

simple rules, complex interactions, simultaneous turns to increase the pace, and a unique speed mechanic;

-

mnml is a tactical game unlike any other.

-

free to play

-

no email required

-

glhf

+

+ mnml is a turn-based 1v1 strategy game in an abstract setting.
+ outplay your opponents by building your team of 3 constructs from a shifting meta of skills, effects and specialisations.
+

+

+ simple rules, complex interactions, simultaneous turns to increase the pace, and a unique speed mechanic;
+ mnml is a tactical game unlike any other. +

+

+ free to play
+ no email required
+ glhf +

{pageEl()}
diff --git a/client/src/components/welcome.register.jsx b/client/src/components/welcome.register.jsx index 7051a8ce..899c8ef6 100644 --- a/client/src/components/welcome.register.jsx +++ b/client/src/components/welcome.register.jsx @@ -12,8 +12,8 @@ const addState = connect( ws } = state; - function submitRegister(name, password, code) { - postData('/account/register', { name, password, code }) + function submitRegister(name, password) { + postData('/account/register', { name, password }) .then(res => res.json()) .then(data => { if (data.error) return errorToast(data.error); @@ -34,12 +34,11 @@ function Register(args) { submitRegister, } = args; - const { password, confirm, name, code } = this.state; + const { password, confirm, name } = this.state; const registerSubmit = (event) => { event.preventDefault(); - submitRegister(name, password, code); - // this.setState({ name: '', password: '', confirm: '', code: ''}); + submitRegister(name, password); } const registerConfirm = () => @@ -75,14 +74,6 @@ function Register(args) { value={this.state.confirm} onInput={linkState(this, 'confirm')} /> - -