-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
85 lines (82 loc) · 1.76 KB
/
app.vue
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<script setup>
const { isOnline } = useNetwork();
const route = useRoute();
const admin = useAdmin();
const user = useUser();
// for full screen
const app = ref();
useIsFullScreen(app);
onMounted(() => {
const admin_token = localStorage.getItem("admin_auth_token");
nextTick(() => {
if (admin_token) admin.checkAuth(admin_token);
if (process.server) {
// Code to execute on the server
console.log("this is");
}
});
});
</script>
<template>
<div ref="app">
<VitePwaManifest />
<NuxtLoadingIndicator color="rgb(var(--v-theme-primary))" />
<v-app>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<LazyLayoutOfflineBanner v-if="!isOnline" />
<LazyLayoutGoTop v-if="!route.fullPath.includes('/admin/')" />
<LazyLayoutSnackbar />
</v-app>
</div>
</template>
<style lang="scss">
.v-skeleton-loader__image {
height: 100% !important;
}
.v-img:not(.v-parallax) {
transition: all 0.2s;
}
.v-img:not(.v-parallax) .v-img__img {
transform: scale(1);
transition: all 0.2s;
}
.v-img:not(.v-parallax).zoom-image .v-img__img {
transform: scale(1.2);
}
// Utility classes
.right-0 {
right: 0;
}
.z-index-1 {
z-index: 1;
}
.z-index-11 {
z-index: 11;
}
.list-style-none {
list-style: none;
}
.line-clamp-1 {
display: -webkit-box !important;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
white-space: normal !important;
overflow: hidden !important;
}
.line-clamp-2 {
display: -webkit-box !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
white-space: normal !important;
overflow: hidden !important;
}
.line-clamp-3 {
display: -webkit-box !important;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
white-space: normal !important;
overflow: hidden !important;
}
</style>