Files
PORTAL_COD2/src/front/src/views/HomePage.vue
T
2023-11-10 12:47:33 +03:00

250 lines
5.0 KiB
Vue

<template>
<v-container fluid class="d-flex mx-0">
<v-row>
<v-col class="d-flex flex-column" lg=7>
<v-row class="flex-grow-0">
<v-col class="pr-0 pb-0">
<Carousel-list/>
</v-col>
</v-row>
<v-row>
<v-col class="pr-0 pt-0 flex-column">
<v-card class="h-100 bg-transparent pa-2 d-flex flex-column">
<v-row class="d-flex">
<v-col class="flex-column d-flex">
<!-- <Calendar-full/>
</v-col>
<v-col> -->
<event-calendar/>
</v-col>
</v-row>
</v-card>
</v-col>
</v-row>
</v-col>
<v-col class="flex-column d-flex ma-3">
<v-row >
<v-col class="flex-grow-0 pa-0 pb-3"> <digital-letna/></v-col>
<v-col class="flex-column d-flex pr-0 pt-0 pb-0">
<v-card class=" flex-column pik overflow-auto">
<News-list-home />
</v-card>
</v-col>
</v-row>
<v-row class=" flex-grow-0">
<v-col class="pa-0">
<v-card class=" flex-colmn">
<v-btn-toggle
v-model="toggle"
divided
variant="outlined"
>
<v-tooltip
v-for="x in favorit"
:key="x"
:text="x.page"
location="top"
>
<template v-slot:activator="{ props }">
<v-btn
v-bind="props"
:icon="x.ico"
:to="x.fullPath"
/>
</template>
</v-tooltip>
</v-btn-toggle>
</v-card>
</v-col>
</v-row>
</v-col>
<!-- <v-col class="flex-column d-flex flex-grow-0 px-0" >
<v-row class="flex-grow-1 ma-0 mx-1">
<v-col class="pt-0 flex-column ">
<digital-letna/>
</v-col>
</v-row>
<v-row class="flex-grow-0 ma-0 mx-1">
<v-col class="py-0">
<v-card class="h-100 flex-colmn">
<v-row class="ma-3">
<v-col
class="pa-1 text-center"
>
<v-btn-toggle
v-model="toggle"
divided
variant="outlined"
>
<v-tooltip
v-for="x in favorit"
:key="x"
:text="x.page"
location="top"
>
<template v-slot:activator="{ props }">
<v-btn
v-bind="props"
:icon="x.ico"
:to="x.fullPath"
/>
</template>
</v-tooltip>
</v-btn-toggle>
</v-col>
</v-row>
</v-card>
</v-col>
</v-row>
</v-col>
<v-col class="d-flex flex-column pl-0 justify-space-between" >
<v-card
class="h-100 bg-transparent flex-column d-flex "
elevation="1"
>
<v-row >
<v-col cols="auto" class="pa-0">
<v-card height="93vh" class="overflow-auto ">
<News-list-home />
</v-card>
</v-col>
</v-row>
</v-card>
</v-col> -->
</v-row>
</v-container>
</template>
<script>
import { ref, onMounted } from 'vue'
import {useAppStore} from '@/store/app'
import {useAccountStore} from '@/store/AccountStore'
import {pagecounter} from '@/utils/universal_functions'
import NewsList from '@/components/news-list.vue'
import CarouselList from '@/components/carousel-list.vue'
import CarouselNumbers from '@/components/carousel-numbers.vue'
import CalendarFull from '@/components/UI/Calendar-full.vue'
import NewsListHome from '@/components/news-list-home.vue'
import LoadRound from '@/components/load-round.vue'
import DigitalLetna from '@/components/digital-letna.vue'
import { axiosApiInstance } from '@/utils/axios-api'
import EventCalendar from '@/components/UI/event-calendar.vue'
export default {
components: {
NewsList,
CarouselList,
CarouselNumbers,
CalendarFull,
NewsListHome,
LoadRound,
DigitalLetna,
EventCalendar
},
setup(){
const appStore = useAppStore()
const favorit = ref([])
const toggle = ref(null)
pagecounter()
const accountStore = useAccountStore()
onMounted(() => {
favoritLinks()
})
const favoritLinks = () => {
axiosApiInstance.get(`api/watcher/selectedlinks/`)
.then(data => {
favorit.value = data.data
})
}
return {
accountStore,
appStore,
favoritLinks,
favorit,
toggle
}
}
}
</script>
<style lang="scss">
.v-picker-title, .v-picker__header, .v-picker__actions {
display: none;
}
.pik {
height: 85.3vh;
}
.hicard {
height: 40%!important;
overflow: auto;
}
.fg {
height: 240px;
overflow: auto;
}
.fixed-bar {
position: sticky;
position: -webkit-sticky; /* for Safari */
top: 0em;
z-index: 2;
}
</style>