Merge remote-tracking branch 'origin/feature/create_app' into razrab
This commit is contained in:
commit
23b1affabb
1 file changed
+53
-16
@@ -122,13 +122,36 @@
|
|||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-navigation-drawer v-model="drawer">
|
<v-navigation-drawer
|
||||||
|
:rail="rail"
|
||||||
<v-divider/>
|
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
|
<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)"
|
||||||
@@ -150,8 +173,6 @@
|
|||||||
v-else
|
v-else
|
||||||
:key="key"
|
:key="key"
|
||||||
:value="x.name"
|
:value="x.name"
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-list-item
|
<v-list-item
|
||||||
@@ -173,11 +194,9 @@
|
|||||||
</template>
|
</template>
|
||||||
</v-list>
|
</v-list>
|
||||||
<v-list
|
<v-list
|
||||||
|
|
||||||
nav
|
nav
|
||||||
density="compact"
|
density="compact"
|
||||||
>
|
>
|
||||||
|
|
||||||
<v-list-item v-for="x of mainmenuStore.portallinks"
|
<v-list-item v-for="x of mainmenuStore.portallinks"
|
||||||
:key="x.name"
|
:key="x.name"
|
||||||
:title="x.name"
|
:title="x.name"
|
||||||
@@ -193,9 +212,24 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
</v-list>
|
</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-navigation-drawer>
|
||||||
<v-main class="d-flex bg-main_theme">
|
<v-main class="d-flex bg-main_theme">
|
||||||
|
|
||||||
@@ -243,8 +277,9 @@
|
|||||||
</v-list>
|
</v-list>
|
||||||
|
|
||||||
</template> -->
|
</template> -->
|
||||||
|
|
||||||
</v-navigation-drawer>
|
</v-navigation-drawer>
|
||||||
|
|
||||||
|
|
||||||
</v-app>
|
</v-app>
|
||||||
|
|
||||||
@@ -263,6 +298,7 @@
|
|||||||
import OnlineUsers from '@/components/onlineUsers.vue'
|
import OnlineUsers from '@/components/onlineUsers.vue'
|
||||||
import CardUsers from '@/components/cardUsers.vue'
|
import CardUsers from '@/components/cardUsers.vue'
|
||||||
import CardLike from '@/components/cardLike.vue'
|
import CardLike from '@/components/cardLike.vue'
|
||||||
|
import { pagecounter } from '@/utils/universal_functions'
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
components: { AuthForm, OnlineUsers, CardUsers, CardLike},
|
components: { AuthForm, OnlineUsers, CardUsers, CardLike},
|
||||||
@@ -270,6 +306,7 @@
|
|||||||
mixins:[uf],
|
mixins:[uf],
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
|
pagecounter()
|
||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const mainmenuStore= useMainmenuStore()
|
const mainmenuStore= useMainmenuStore()
|
||||||
@@ -278,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'
|
||||||
@@ -344,9 +382,7 @@
|
|||||||
menuGetUserDialog.value = true
|
menuGetUserDialog.value = true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
theme,
|
theme,
|
||||||
@@ -361,7 +397,8 @@
|
|||||||
menuGetUserDialog,
|
menuGetUserDialog,
|
||||||
LikeDialog,
|
LikeDialog,
|
||||||
// userlinks,
|
// userlinks,
|
||||||
appStore
|
appStore,
|
||||||
|
rail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user