aboutsummaryrefslogtreecommitdiff
path: root/src/site/layouts/default.vue
blob: 08d733f577aea04b6c03a249650ce0e106c50a01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<template>
	<div v-bar
		class="scroll-area">
		<div class="default-body">
			<Navbar :isWhite="true" />
			<nuxt-child id="app"
				class="nuxt-app is-height-max-content" />
			<Footer />
		</div>
	</div>
</template>
<script>
import Navbar from '~/components/navbar/Navbar.vue';
import Footer from '~/components/footer/Footer';
import { mapState } from 'vuex';

export default {
	components: {
		Navbar,
		Footer
	},
	computed: mapState(['config', 'alert']),
	watch: {
		'alert.text'() {
			console.log('aaaaaaaa');
			if (!this.alert.text) return;

			this.$buefy.toast.open({
				duration: 3500,
				message: this.alert.text,
				position: 'is-bottom',
				type: this.alert.error ? 'is-danger' : 'is-success'
			});

			this.$store.dispatch('alert/clear', null);
		}
	},
	mounted() {
		console.log(
			`%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'
		);
	}
};
</script>

<style lang="scss">
html {
	overflow: hidden !important;
}
.is-fullheight {
	min-height: 100vh !important;
	height: max-content;
}
.nuxt-app > .section {
	min-height: auto !important;
	height: auto !important;
}
@import '~/assets/styles/style.scss';
@import '~/assets/styles/icons.min.css';
</style>
<style lang="scss" scoped>
.default-body {
	align-items: baseline !important;
}
.scroll-area {
	height: 100vh;
}
</style>