From 1092fc7677a00af21ebef06bdccd43bd59480080 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 18 Aug 2022 13:47:10 +0200 Subject: [PATCH 1/2] login/register on enter --- src/components/LoginPage.vue | 3 +++ src/components/RegisterPage.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/components/LoginPage.vue b/src/components/LoginPage.vue index 549a7b95..d7d28753 100644 --- a/src/components/LoginPage.vue +++ b/src/components/LoginPage.vue @@ -11,6 +11,7 @@ autocomplete="username" :placeholder="$t('login.username')" :aria-label="$t('login.username')" + v-on:keyup.enter="login" />
@@ -21,6 +22,7 @@ autocomplete="password" :placeholder="$t('login.password')" :aria-label="$t('login.password')" + v-on:keyup.enter="login" />
@@ -49,6 +51,7 @@ export default { }, methods: { login() { + if (!this.username || !this.password) return; this.fetchJson(this.authApiUrl() + "/login", null, { method: "POST", body: JSON.stringify({ diff --git a/src/components/RegisterPage.vue b/src/components/RegisterPage.vue index a56653b8..4817a4ac 100644 --- a/src/components/RegisterPage.vue +++ b/src/components/RegisterPage.vue @@ -11,6 +11,7 @@ autocomplete="username" :placeholder="$t('login.username')" :aria-label="$t('login.username')" + v-on:keyup.enter="register" />
@@ -21,6 +22,7 @@ autocomplete="password" :placeholder="$t('login.password')" :aria-label="$t('login.password')" + v-on:keyup.enter="register" />
@@ -49,6 +51,7 @@ export default { }, methods: { register() { + if (!this.username || !this.password) return; this.fetchJson(this.authApiUrl() + "/register", null, { method: "POST", body: JSON.stringify({ From ad1f448daa20bbb1b13d21fbfe003ee00685275f Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 18 Aug 2022 13:53:22 +0200 Subject: [PATCH 2/2] fix hamburger color --- src/App.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 328b980e..25a13a04 100644 --- a/src/App.vue +++ b/src/App.vue @@ -206,6 +206,10 @@ h2 { } .line { - @apply px-2.5 py-0.25 my-0.45 rounded-xl bg-white; + @apply px-2.5 py-0.25 my-0.45 rounded-xl bg-dark-900; +} + +.dark .line { + @apply bg-white; }