Added post component for events

This needs RLS disabled, will work on that later, I don't like postgre
This commit is contained in:
Alexis
2024-06-01 11:07:07 +02:00
parent f2d5277c5f
commit a92edd6215
12 changed files with 474 additions and 100 deletions

View File

@@ -36,6 +36,11 @@ export const useCalendar = defineStore('calendar', () => {
'century'
])
const calendarId = ref<number>(0)
function setCalendarId(data: number) {
calendarId.value = data
}
/**
* Month list (queried from API)
*/
@@ -178,7 +183,6 @@ export const useCalendar = defineStore('calendar', () => {
/**
* Moves the current date forward one month
*/
function incrementMonth(): void {
let newValue = Number(params.month) + 1
@@ -598,6 +602,8 @@ export const useCalendar = defineStore('calendar', () => {
}
return {
calendarId,
setCalendarId,
months,
setMonths,
sortedMonths,