mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
basic structure for using modules in stores and convert to TS
This commit is contained in:
5
src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/api.d.ts
vendored
Normal file
5
src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/api.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export function whoami(): import('ChillCalendarAssets/types').User;
|
||||
|
||||
export function fetchCalendarRangeForUser(user: import('ChillCalendarAssets/types').User, start: Date, end: Date): import('ChillCalendarAssets/types').CalendarRange[];
|
||||
|
||||
export function fetchCalendarRemoteForUser(user: import('ChillCalendarAssets/types').User, start: Date, end: Date): import('ChillCalendarAssets/types').Calendar[];
|
2
src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/utils.d.ts
vendored
Normal file
2
src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/utils.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
export function calendarRangeToFullCalendarEvent(entity: import('ChillCalendarAssets/types').CalendarRange): import('@fullcalendar/vue3').EventInput;
|
@@ -50,6 +50,7 @@ const createUserData = (user, colorIndex) => {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO move this function to a more global namespace, as it is in use in MyCalendarRange app
|
||||
const calendarRangeToFullCalendarEvent = (entity) => {
|
||||
return {
|
||||
id: `range_${entity.id}`,
|
||||
|
Reference in New Issue
Block a user