2024-01-31 07:05:03 +03:00
|
|
|
<template>
|
2024-03-01 11:39:35 +03:00
|
|
|
<v-sheet class="mt-5 mb-5 rounded-lg w-75">
|
2024-04-10 06:53:43 +03:00
|
|
|
<p class="text-xl-h3 text-lg-h3 text-md-h4 text-sm-h4 text-h5 ma-5">Расписание стримов</p>
|
2024-03-07 07:35:07 +03:00
|
|
|
<v-skeleton-loader v-if="fetching" type="text" />
|
2024-04-10 06:53:43 +03:00
|
|
|
<p v-else class="ma-5 text-xl-h3 text-lg-h3 text-md-h4 text-sm-h4 text-h5"> {{ parseDate(dates[0].current_date) }} - {{ parseDate(dates[1].current_date) }}</p>
|
2024-03-01 11:39:35 +03:00
|
|
|
<ScheduleTable/>
|
2024-04-10 06:53:43 +03:00
|
|
|
<p class="text-xl-h3 text-lg-h3 text-md-h4 text-sm-h4 text-h5 ma-5">Ссылочки</p>
|
2024-03-01 11:39:35 +03:00
|
|
|
<Links/>
|
2024-01-31 07:05:03 +03:00
|
|
|
</v-sheet>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import axios from "axios";
|
2024-02-27 17:11:25 +03:00
|
|
|
import ScheduleTable from "./Schedule/ScheduleTable.vue";
|
|
|
|
import Links from "./Schedule/Links.vue";
|
2024-01-31 07:05:03 +03:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: "Schedule",
|
2024-02-27 17:11:25 +03:00
|
|
|
components: {Links, ScheduleTable},
|
2024-01-31 07:05:03 +03:00
|
|
|
data: () => ({
|
2024-03-07 07:35:07 +03:00
|
|
|
dates: [],
|
|
|
|
fetching: true
|
2024-01-31 07:05:03 +03:00
|
|
|
}),
|
|
|
|
methods: {
|
|
|
|
parseDate(date){
|
|
|
|
let dateArr = date.split("-");
|
|
|
|
return dateArr[2] + "." + dateArr[1];
|
2024-03-07 07:35:07 +03:00
|
|
|
},
|
|
|
|
async getDates(){
|
|
|
|
await axios
|
|
|
|
.get('/api/v1/dates')
|
|
|
|
.then(response => {
|
|
|
|
this.dates = response.data;
|
|
|
|
this.fetching = false;
|
|
|
|
});
|
2024-01-31 07:05:03 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
2024-03-07 07:35:07 +03:00
|
|
|
this.getDates();
|
2024-01-31 07:05:03 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
@keyframes gradient {
|
|
|
|
0% {
|
|
|
|
background-position: 0 50%;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
background-position: 100% 50%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background-position: 0 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|