Skip to content

Commit

Permalink
❌ Remove deprecated calendar components
Browse files Browse the repository at this point in the history
Reduce calendar month to mini version only
  • Loading branch information
devmount committed May 29, 2024
1 parent 89d4328 commit 8ff95de
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 698 deletions.
281 changes: 0 additions & 281 deletions frontend/src/components/CalendarDay.vue

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@
v-for="h in isoWeekdays"
:key="h"
class="bg-gray-100 py-2 text-center text-gray-500 dark:bg-gray-600 dark:text-gray-300"
:class="{ 'font-bold': !mini}"
>
{{ h.min }}
</div>
<calendar-month-day
<calendar-mini-month-day
v-for="d in days"
:key="d.date"
:day="d.date"
:is-active="d.active"
:is-selected="d.date === date"
:is-today="d.date === today"
:mini="mini"
:placeholder="placeholder"
:events="eventsByDate(d.date)"
:show-details="!placeholder"
Expand All @@ -47,7 +45,7 @@
import {
ref, computed, inject, watch,
} from 'vue';
import CalendarMonthDay from '@/elements/CalendarMonthDay';
import CalendarMiniMonthDay from '@/elements/CalendarMiniMonthDay';
// icons
import {
Expand All @@ -64,7 +62,6 @@ const isoFirstDayOfWeek = inject('isoFirstDayOfWeek');
// component properties
const props = defineProps({
selected: Object, // currently active date (dayjs object)
mini: Boolean, // show small version of monthly calendar
nav: Boolean, // show month navigation
placeholder: Boolean, // format appointments as placeholder
minDate: Object, // minimum active date in view (dayjs object)
Expand Down
Loading

0 comments on commit 8ff95de

Please sign in to comment.