Merge remote-tracking branch 'origin/feature/create_app' into razrab

This commit is contained in:
iriska-gri committed 2023-10-05 08:15:36 +03:00
commit 23b1affabb
1 file changed
+53 -16
+53 -16
View File
@@ -122,13 +122,36 @@
</template>
</template>
</v-app-bar>
<v-navigation-drawer v-model="drawer">
<v-divider/>
<v-navigation-drawer
:rail="rail"
permanent
@click="rail = false"
v-model="drawer"
class="flex-column">
<div class="d-flex flex-column h-100">
<v-row>
<v-col>
<v-divider/>
<v-list
nav
density="compact"
>
density="compact">
<v-list-item>
<template v-slot:prepend v-if="rail">
<v-btn
variant="plain"
icon="mdi-chevron-right"
@click.stop="rail = !rail"
class="justify-start"
></v-btn>
</template>
<template v-slot:prepend v-else>
<v-btn
variant="plain"
icon="mdi-chevron-left"
@click.stop="rail = !rail"
></v-btn>
</template>
</v-list-item>
<template v-for="(x, key) in navigations">
<v-list-item
v-if="!('submenu' in x)"
@@ -150,8 +173,6 @@
v-else
:key="key"
:value="x.name"
>
<template v-slot:activator="{ props }">
<v-list-item
@@ -173,11 +194,9 @@
</template>
</v-list>
<v-list
nav
density="compact"
>
<v-list-item v-for="x of mainmenuStore.portallinks"
:key="x.name"
:title="x.name"
@@ -193,9 +212,24 @@
/>
</template>
</v-list-item>
</v-list>
</v-col>
</v-row>
<v-row class="flex-grow-0 text-caption mb-1 font-weight-bold text-truncate">
<v-col>
<v-divider v-show="!rail"></v-divider>
<v-list>
<v-list-item v-show="!rail">
<p class="pb-2">Посещений всего: {{ appStore.countvisitor.totalvisit }}</p>
<p class="pb-2">Посещений сегодня: {{ appStore.countvisitor. visittoday }}</p>
<p class="pb-2">Уникальных посещений: {{ appStore.countvisitor.uniqtoday }}</p>
</v-list-item>
</v-list>
</v-col>
</v-row>
</div>
</v-navigation-drawer>
<v-main class="d-flex bg-main_theme">
@@ -243,8 +277,9 @@
</v-list>
</template> -->
</v-navigation-drawer>
</v-app>
@@ -263,6 +298,7 @@
import OnlineUsers from '@/components/onlineUsers.vue'
import CardUsers from '@/components/cardUsers.vue'
import CardLike from '@/components/cardLike.vue'
import { pagecounter } from '@/utils/universal_functions'
export default {
components: { AuthForm, OnlineUsers, CardUsers, CardLike},
@@ -270,6 +306,7 @@
mixins:[uf],
setup(){
pagecounter()
const appStore = useAppStore()
const theme = useTheme();
const mainmenuStore= useMainmenuStore()
@@ -278,6 +315,7 @@
const drawer_right=ref(true)
const menuGetUserDialog=ref(false)
const LikeDialog=ref(false)
const rail = ref(true)
const toggleTheme = () => {
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
@@ -344,9 +382,7 @@
menuGetUserDialog.value = true
}
return {
theme,
@@ -361,7 +397,8 @@
menuGetUserDialog,
LikeDialog,
// userlinks,
appStore
appStore,
rail
}
}