create visits count, hidden/visible sidebar on button
This commit is contained in:
1 parent
52a60428b2
commit
3a9238f295
2 files changed
+37
-13
No files matched your search
BIN
Binary file not shown.
@@ -122,16 +122,36 @@
|
|||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</v-app-bar>
|
</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">
|
<div class="d-flex flex-column h-100">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-divider/>
|
<v-divider/>
|
||||||
<v-list
|
<v-list
|
||||||
nav
|
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">
|
<template v-for="(x, key) in navigations">
|
||||||
<v-list-item
|
<v-list-item
|
||||||
v-if="!('submenu' in x)"
|
v-if="!('submenu' in x)"
|
||||||
@@ -192,17 +212,19 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
</v-list>
|
||||||
</v-list> </v-col>
|
</v-col>
|
||||||
</v-row>
|
</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-col>
|
||||||
<v-divider></v-divider>
|
<v-divider v-show="!rail"></v-divider>
|
||||||
<v-list>
|
<v-list>
|
||||||
<v-list-item >
|
<v-list-item v-show="!rail">
|
||||||
Посещений всего: {{ appStore.countvisitor.totalvisit }}
|
<p class="pb-2">Посещений всего: {{ appStore.countvisitor.totalvisit }}</p>
|
||||||
Посещений сегодня: {{ appStore.countvisitor.visittoday }}
|
<p class="pb-2">Посещений сегодня: {{ appStore.countvisitor. visittoday }}</p>
|
||||||
Уникальных посещений: {{ appStore.countvisitor.uniqtoday }}
|
<p class="pb-2">Уникальных посещений: {{ appStore.countvisitor.uniqtoday }}</p>
|
||||||
|
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -293,6 +315,7 @@
|
|||||||
const drawer_right=ref(true)
|
const drawer_right=ref(true)
|
||||||
const menuGetUserDialog=ref(false)
|
const menuGetUserDialog=ref(false)
|
||||||
const LikeDialog=ref(false)
|
const LikeDialog=ref(false)
|
||||||
|
const rail = ref(true)
|
||||||
|
|
||||||
const toggleTheme = () => {
|
const toggleTheme = () => {
|
||||||
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
||||||
@@ -374,7 +397,8 @@
|
|||||||
menuGetUserDialog,
|
menuGetUserDialog,
|
||||||
LikeDialog,
|
LikeDialog,
|
||||||
// userlinks,
|
// userlinks,
|
||||||
appStore
|
appStore,
|
||||||
|
rail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user