Compare commits

..

No commits in common. "662f36b3e2c19a34ec3a4eab2a115ad949713845" and "a7b8d95fa1d2de94a3cbf1fb3d534d700fb068d1" have entirely different histories.

6 changed files with 14 additions and 39 deletions

View file

@ -6,12 +6,7 @@
@contextmenu.prevent @contextmenu.prevent
> >
<!-- @click="closeModal" --> <!-- @click="closeModal" -->
<component <component :is="component_ref" :data="data" @click.stop class="p-4 bg-white rounded-lg" />
:is="component_ref"
:data="data"
@click.stop
class="p-4 bg-white rounded-lg max-h-[95%] overflow-y-auto"
/>
</div> </div>
</template> </template>

View file

@ -76,7 +76,7 @@
/> />
<label for="allDay">ganztägig</label> <label for="allDay">ganztägig</label>
</div> </div>
<div v-if="!allDay" class="flex flex-col sm:flex-row gap-2"> <div v-if="!allDay" class="flex flex-row gap-2">
<div class="w-full"> <div class="w-full">
<label for="starttime">Startzeit</label> <label for="starttime">Startzeit</label>
<input <input
@ -105,7 +105,7 @@
/> />
</div> </div>
</div> </div>
<div v-else class="flex flex-col sm:flex-row gap-2"> <div v-else class="flex flex-row gap-2">
<div class="w-full"> <div class="w-full">
<label for="startdate">Startdatum</label> <label for="startdate">Startdatum</label>
<input <input

View file

@ -78,7 +78,7 @@
<input type="checkbox" id="allDay" v-model="calendar.allDay" /> <input type="checkbox" id="allDay" v-model="calendar.allDay" />
<label for="allDay">ganztägig</label> <label for="allDay">ganztägig</label>
</div> </div>
<div v-if="!calendar.allDay" class="flex flex-col sm:flex-row gap-2"> <div v-if="!calendar.allDay" class="flex flex-row gap-2">
<div class="w-full"> <div class="w-full">
<label for="starttime">Startzeit</label> <label for="starttime">Startzeit</label>
<input <input
@ -113,7 +113,7 @@
/> />
</div> </div>
</div> </div>
<div v-else class="flex flex-col sm:flex-row gap-2"> <div v-else class="flex flex-row gap-2">
<div class="w-full"> <div class="w-full">
<label for="startdate">Startdatum</label> <label for="startdate">Startdatum</label>
<input <input

View file

@ -18,7 +18,7 @@
<textarea id="content" class="h-18" readonly :value="data.content"></textarea> <textarea id="content" class="h-18" readonly :value="data.content"></textarea>
</div> </div>
<div v-if="data.allDay" class="flex flex-row gap-2 items-center">Der Termin findet ganztägig statt.</div> <div v-if="data.allDay" class="flex flex-row gap-2 items-center">Der Termin findet ganztägig statt.</div>
<div v-if="data.allDay == false" class="flex flex-col sm:flex-row gap-2"> <div v-if="data.allDay == false" class="flex flex-row gap-2">
<div class="w-full"> <div class="w-full">
<label for="starttime">Startzeit</label> <label for="starttime">Startzeit</label>
<input type="datetime-local" id="starttime" readonly :value="formatForDateTimeLocalInput(data.starttime)" /> <input type="datetime-local" id="starttime" readonly :value="formatForDateTimeLocalInput(data.starttime)" />
@ -34,7 +34,7 @@
/> />
</div> </div>
</div> </div>
<div v-else class="flex flex-col sm:flex-row gap-2"> <div v-else class="flex flex-row gap-2">
<div class="w-full"> <div class="w-full">
<label for="startdate">Startdatum</label> <label for="startdate">Startdatum</label>
<input type="date" id="startdate" readonly :value="formatForDateInput(data.starttime)" /> <input type="date" id="startdate" readonly :value="formatForDateInput(data.starttime)" />

View file

@ -87,8 +87,7 @@ select {
input[readonly], input[readonly],
textarea[readonly], textarea[readonly],
select[readonly] { select[readonly] {
@apply select-none; @apply pointer-events-none;
/* pointer-events-none; */
} }
input[disabled], input[disabled],
@ -125,7 +124,7 @@ summary::-webkit-details-marker {
} }
.fc-button-primary { .fc-button-primary {
@apply !bg-primary !border-primary !outline-none !ring-0 hover:!bg-red-700 hover:!border-red-700 h-10 text-center; @apply !bg-primary !border-primary !outline-none !ring-0 hover:!bg-red-700 hover:!border-red-700;
} }
.fc-button-active { .fc-button-active {
@apply !bg-red-500 !border-red-500; @apply !bg-red-500 !border-red-500;
@ -133,19 +132,3 @@ summary::-webkit-details-marker {
.fc-toolbar { .fc-toolbar {
@apply flex-wrap; @apply flex-wrap;
} }
/* For screens between 850px and 768px */
@media (max-width: 850px) and (min-width: 768px) {
.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr > .fc-toolbar-chunk:nth-child(2) {
@apply !order-1;
}
/* Your styles for this range */
}
/* For screens between 525px and 0px */
@media (max-width: 525px) and (min-width: 0px) {
/* Your styles for this range */
.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr > .fc-toolbar-chunk:nth-child(2) {
@apply !order-1;
}
}

View file

@ -3,11 +3,8 @@
<template #topBar> <template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7"> <div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Kalender</h1> <h1 class="font-bold text-xl h-8">Kalender</h1>
<div class="flex flex-row gap-2">
<PlusIcon class="text-gray-500 h-5 w-5 cursor-pointer" @click="select" />
<LinkIcon class="text-gray-500 h-5 w-5 cursor-pointer" @click="openLinkModal" /> <LinkIcon class="text-gray-500 h-5 w-5 cursor-pointer" @click="openLinkModal" />
</div> </div>
</div>
</template> </template>
<template #diffMain> <template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-between px-7 overflow-hidden"> <div class="flex flex-col w-full h-full gap-2 justify-between px-7 overflow-hidden">
@ -29,7 +26,7 @@ import timeGridPlugin from "@fullcalendar/timegrid";
import interactionPlugin from "@fullcalendar/interaction"; import interactionPlugin from "@fullcalendar/interaction";
import { useCalendarStore } from "@/stores/admin/club/calendar"; import { useCalendarStore } from "@/stores/admin/club/calendar";
import { useAbilityStore } from "@/stores/ability"; import { useAbilityStore } from "@/stores/ability";
import { LinkIcon, PlusIcon } from "@heroicons/vue/24/outline"; import { LinkIcon } from "@heroicons/vue/24/outline";
</script> </script>
<script lang="ts"> <script lang="ts">
@ -79,9 +76,9 @@ export default defineComponent({
this.openModal( this.openModal(
markRaw(defineAsyncComponent(() => import("@/components/admin/club/calendar/CreateCalendarModal.vue"))), markRaw(defineAsyncComponent(() => import("@/components/admin/club/calendar/CreateCalendarModal.vue"))),
{ {
start: e?.startStr ?? new Date().toISOString(), start: e.startStr,
end: e?.endStr ?? new Date().toISOString(), end: e.endStr,
allDay: e?.allDay ?? false, allDay: e.allDay,
} }
); );
}, },