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/layouts/default.vue | 45 +++++++++++++++++++------------------------- 1 file changed, 19 insertions(+), 26 deletions(-) (limited to 'src/site/layouts/default.vue') diff --git a/src/site/layouts/default.vue b/src/site/layouts/default.vue index 1642980..744285c 100644 --- a/src/site/layouts/default.vue +++ b/src/site/layouts/default.vue @@ -1,15 +1,11 @@ @@ -17,7 +13,10 @@ import Navbar from '~/components/navbar/Navbar.vue'; import Footer from '~/components/footer/Footer'; export default { - components: { Navbar, Footer }, + components: { + Navbar, + Footer + }, computed: { config() { return this.$store.state.config; @@ -49,25 +48,19 @@ export default { -- cgit v1.2.3 From c8ad345d1287d9078075cb92956ac9bbd554f022 Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Mon, 29 Jun 2020 22:18:18 +0300 Subject: fix: heigh issues where the parent is smaller than the child --- src/site/layouts/default.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/site/layouts/default.vue') diff --git a/src/site/layouts/default.vue b/src/site/layouts/default.vue index 744285c..61a257e 100644 --- a/src/site/layouts/default.vue +++ b/src/site/layouts/default.vue @@ -13,7 +13,7 @@ import Navbar from '~/components/navbar/Navbar.vue'; import Footer from '~/components/footer/Footer'; export default { - components: { + components: { Navbar, Footer }, @@ -48,7 +48,10 @@ export default { -- cgit v1.2.3 From ac1d6eec5b5ec3093ac97e179d2573b5a225ea0e Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Sat, 4 Jul 2020 03:28:05 +0300 Subject: fix: change watcher from a component watcher to a store watcher --- src/site/layouts/default.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/site/layouts/default.vue') diff --git a/src/site/layouts/default.vue b/src/site/layouts/default.vue index 08d733f..579a73e 100644 --- a/src/site/layouts/default.vue +++ b/src/site/layouts/default.vue @@ -19,21 +19,22 @@ export default { Navbar, Footer }, - computed: mapState(['config', 'alert']), - watch: { - 'alert.text'() { - console.log('aaaaaaaa'); - if (!this.alert.text) return; + computed: mapState(['config']), + created() { + this.$store.watch(state => state.alert.text, () => { + const { text, error } = this.$store.state.alert; + + if (!text) return; this.$buefy.toast.open({ duration: 3500, - message: this.alert.text, + message: text, position: 'is-bottom', - type: this.alert.error ? 'is-danger' : 'is-success' + type: error ? 'is-danger' : 'is-success' }); this.$store.dispatch('alert/clear', null); - } + }) }, mounted() { console.log( -- cgit v1.2.3 From ad852de51a0d2dd5d29c08838d5a430c58849e74 Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Wed, 8 Jul 2020 04:00:12 +0300 Subject: chore: linter the entire project using the new rules --- src/site/layouts/default.vue | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/site/layouts/default.vue') diff --git a/src/site/layouts/default.vue b/src/site/layouts/default.vue index 579a73e..13a56c0 100644 --- a/src/site/layouts/default.vue +++ b/src/site/layouts/default.vue @@ -1,27 +1,29 @@ -- cgit v1.2.3 From 495a23c3a53b8f1e9f885163129d962cbd3e8c2b Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Thu, 9 Jul 2020 02:21:35 +0300 Subject: =?UTF-8?q?feat:=20add=20notifier=20plugin=20for=20=F0=9F=90=8D=20?= =?UTF-8?q?and=20=F0=9F=8D=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/site/layouts/default.vue | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'src/site/layouts/default.vue') diff --git a/src/site/layouts/default.vue b/src/site/layouts/default.vue index 13a56c0..0049b88 100644 --- a/src/site/layouts/default.vue +++ b/src/site/layouts/default.vue @@ -21,19 +21,28 @@ export default { Navbar, Footer, }, - computed: mapState(['config']), + computed: mapState(['config', 'alert']), created() { - this.$store.watch((state) => state.alert.text, () => { - const { text, error } = this.$store.state.alert; + this.$store.watch((state) => state.alert.message, () => { + const { message, type, snackbar } = this.alert; - if (!text) return; + if (!message) return; - this.$buefy.toast.open({ - duration: 3500, - message: text, - position: 'is-bottom', - type: error ? 'is-danger' : 'is-success', - }); + if (snackbar) { + this.$buefy.snackbar.open({ + duration: 3500, + position: 'is-bottom', + message, + type, + }); + } else { + this.$buefy.toast.open({ + duration: 3500, + position: 'is-bottom', + message, + type, + }); + } this.$store.dispatch('alert/clear', null); }); -- cgit v1.2.3 From 90001c2df56d58e69fd199a518ae7f3e4ed327fc Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Thu, 24 Dec 2020 10:40:50 +0200 Subject: chore: remove trailing commas --- src/site/layouts/default.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/site/layouts/default.vue') diff --git a/src/site/layouts/default.vue b/src/site/layouts/default.vue index 0049b88..3fa7ebd 100644 --- a/src/site/layouts/default.vue +++ b/src/site/layouts/default.vue @@ -19,7 +19,7 @@ import Footer from '~/components/footer/Footer.vue'; export default { components: { Navbar, - Footer, + Footer }, computed: mapState(['config', 'alert']), created() { @@ -33,14 +33,14 @@ export default { duration: 3500, position: 'is-bottom', message, - type, + type }); } else { this.$buefy.toast.open({ duration: 3500, position: 'is-bottom', message, - type, + type }); } @@ -53,9 +53,9 @@ export default { `%c lolisafe %c v${this.config.version} %c`, 'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff', 'background:#ff015b; padding: 1px; border-radius: 0 3px 3px 0; color: #fff', - 'background:transparent', + 'background:transparent' ); - }, + } }; -- cgit v1.2.3