This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/routes/calendarWide.vue

44 lines
1.2 KiB
Vue
Raw Normal View History

2021-08-18 05:39:08 -07:00
<template>
<div>
<h2 class="d-flex justify-content-between">
<span>
<Icon v="calendar-star"/>
<T>calendar.headerLong</T> ({{year}})
</span>
<span class="h4 mt-2">
<nuxt-link to="/">
<Icon v="tags"/>
<T>domain</T>/{{ config.calendar.route }}
2021-08-18 05:39:08 -07:00
</nuxt-link>
</span>
</h2>
<section class="row pb-4">
<div v-for="i in 12" class="col-12 col-lg-3 py-3">
<h3 class="text-center"><T>calendar.months.{{i}}</T></h3>
2021-08-18 11:19:24 -07:00
<CalendarMonthEvents v-if="labels" :year="year" :month="i" class="small my-3"/>
<Calendar v-else :year="year" :month="i"/>
2021-08-18 05:39:08 -07:00
</div>
</section>
</div>
</template>
<script>
import { head } from "../src/helpers";
export default {
layout: 'basic',
data() {
return {
year: new Date().getFullYear(),
2021-08-18 11:19:24 -07:00
labels: this.$route.query.labels === 'true',
2021-08-18 05:39:08 -07:00
}
},
head() {
return head({
title: this.$t('calendar.headerLong'),
});
},
}
</script>