create visits count, hidden/visible sidebar on button
This commit is contained in:
1 parent
52a60428b2
commit
3a9238f295
2 files changed
+38
-14
No files matched your search
BIN
Binary file not shown.
@@ -122,16 +122,36 @@
|
||||
</template>
|
||||
</template>
|
||||
</v-app-bar>
|
||||
<v-navigation-drawer v-model="drawer" class="flex-column">
|
||||
<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)"
|
||||
@@ -192,17 +212,19 @@
|
||||
/>
|
||||
</template>
|
||||
</v-list-item>
|
||||
|
||||
</v-list> </v-col>
|
||||
</v-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="flex-grow-0">
|
||||
|
||||
<v-row class="flex-grow-0 text-caption mb-1 font-weight-bold text-truncate">
|
||||
<v-col>
|
||||
<v-divider></v-divider>
|
||||
<v-list >
|
||||
<v-list-item >
|
||||
Посещений всего: {{ appStore.countvisitor.totalvisit }}
|
||||
Посещений сегодня: {{ appStore.countvisitor.visittoday }}
|
||||
Уникальных посещений: {{ appStore.countvisitor.uniqtoday }}
|
||||
<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>
|
||||
@@ -293,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'
|
||||
@@ -374,7 +397,8 @@
|
||||
menuGetUserDialog,
|
||||
LikeDialog,
|
||||
// userlinks,
|
||||
appStore
|
||||
appStore,
|
||||
rail
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user