aboutsummaryrefslogtreecommitdiff
path: root/src/site/layouts/default.vue
blob: bd6f134c11c288c3540182f524bcc171febfd20f (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
<template>
	<div v-bar>
		<div>
			<div class="layout">
				<!--<Uploader />-->
				<nuxt-child id="app" />
			</div>
		</div>
	</div>
</template>
<script>
import Uploader from '~/components/uploader/Filepond.vue';
export default {
	components: { Uploader },
	computed: {
		config() {
			return this.$store.state.config;
		},
		alert() {
			return this.$store.state.alert;
		}
	},
	watch: {
		alert() {
			if (!this.alert) return;

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

			setTimeout(() => {
				this.$store.dispatch('alert', null);
			}, 3500);
		}
	},
	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; }
	.layout { height: 100vh; }
	@import "~/assets/styles/style.scss";
	@import "~/assets/styles/icons.min.css";
</style>