From ac037c773ef5f15372c6999445a2efe00034c0c0 Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Mon, 29 Jun 2020 20:02:47 +0300 Subject: fix: Remove hero and hero body and use sections and containers instead Hero is meant to be used as a full-width banner to showcare or present somethign, not to contain the entire content of the webpage --- src/site/pages/login.vue | 64 +++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 33 deletions(-) (limited to 'src/site/pages/login.vue') diff --git a/src/site/pages/login.vue b/src/site/pages/login.vue index 7a98aa4..514cbc5 100644 --- a/src/site/pages/login.vue +++ b/src/site/pages/login.vue @@ -1,38 +1,36 @@ -- cgit v1.2.3 From fd3f6de51a082dcd72c2ef557747e031ef7b9c4a Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Thu, 9 Jul 2020 02:24:40 +0300 Subject: refactor: refactor most of the admin pages to use the store instead of internal states --- src/site/pages/login.vue | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) (limited to 'src/site/pages/login.vue') diff --git a/src/site/pages/login.vue b/src/site/pages/login.vue index 9e5658d..569e9d9 100644 --- a/src/site/pages/login.vue +++ b/src/site/pages/login.vue @@ -25,20 +25,32 @@ @keyup.enter.native="login" /> -

- - Don't have an account? - - Registration is closed at the moment - -

+

+ +

+
+
+ + Don't have an account? + + Registration is closed at the moment +
+
+ +
+

+ + Login + +

+
+
@@ -99,10 +111,7 @@ export default { const { username, password } = this; if (!username || !password) { - this.$store.dispatch('alert/set', { - text: 'Please fill both fields before attempting to log in.', - error: true, - }); + this.$notifier.error('Please fill both fields before attempting to log in.'); return; } @@ -113,7 +122,7 @@ export default { this.redirect(); } } catch (e) { - this.$store.dispatch('alert/set', { text: e.message, error: true }, { root: true }); + this.$notifier.error(e.message); } finally { this.isLoading = false; } -- cgit v1.2.3 From b49017aafd8dd3206dc7f490f54e31474527e5b7 Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Sun, 19 Jul 2020 22:26:55 +0300 Subject: chore: add custom class to inputs until fix is released on buefy's master --- src/site/pages/login.vue | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/site/pages/login.vue') diff --git a/src/site/pages/login.vue b/src/site/pages/login.vue index 569e9d9..1f313e3 100644 --- a/src/site/pages/login.vue +++ b/src/site/pages/login.vue @@ -12,6 +12,7 @@ @@ -19,6 +20,7 @@ Date: Thu, 24 Dec 2020 10:40:50 +0200 Subject: chore: remove trailing commas --- src/site/pages/login.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/site/pages/login.vue') diff --git a/src/site/pages/login.vue b/src/site/pages/login.vue index 1f313e3..6403aa9 100644 --- a/src/site/pages/login.vue +++ b/src/site/pages/login.vue @@ -95,7 +95,7 @@ export default { password: null, mfaCode: null, isMfaModalActive: false, - isLoading: false, + isLoading: false }; }, computed: mapState(['config', 'auth']), @@ -150,7 +150,7 @@ export default { return; } this.$router.push('/dashboard'); - }, - }, + } + } }; -- cgit v1.2.3