Compare commits

..

2 Commits

Author SHA1 Message Date
2868fc3324 Use luxon to set title format 2022-10-06 13:05:54 -04:00
1eac113a16 Bump dependencies 2022-10-06 12:56:40 -04:00
3 changed files with 766 additions and 743 deletions

View File

@ -10,27 +10,29 @@
"serve": "webpack serve"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/core": "^7.19.3",
"@babel/plugin-transform-runtime": "^7.19.1",
"@babel/preset-env": "^7.19.3",
"@types/intl": "^1.2.0",
"babel-loader": "^8.2.5",
"css-loader": "^6.7.1",
"file-loader": "^6.2.0",
"style-loader": "^3.3.1",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"ts-loader": "^9.4.1",
"typescript": "^4.8.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.2"
"webpack-dev-server": "^4.11.1"
},
"dependencies": {
"@babel/runtime": "^7.18.6",
"@fullcalendar/core": "^5.11.0",
"@fullcalendar/icalendar": "^5.11.0",
"@fullcalendar/resource-timegrid": "^5.11.0",
"core-js": "^3.23.3",
"@babel/runtime": "^7.19.0",
"@fullcalendar/core": "^5.11.3",
"@fullcalendar/icalendar": "^5.11.3",
"@fullcalendar/luxon2": "^5.11.3",
"@fullcalendar/resource-timegrid": "^5.11.3",
"core-js": "^3.25.5",
"intl": "^1.2.5",
"luxon": "^3.0.4",
"unique-colors": "^1.0.1"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@ window.Intl = Intl;
import { Calendar, CalendarOptions } from '@fullcalendar/core';
import iCalendarPlugin from '@fullcalendar/icalendar';
import luxon2Plugin from '@fullcalendar/luxon2';
import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid';
import { unique_colors } from 'unique-colors';
@ -31,10 +32,11 @@ const toolFilter: string[] | undefined = urlParams.get('tool')?.split(';');
const calendarOptions: CalendarOptions = {
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
plugins: [iCalendarPlugin, resourceTimeGridPlugin],
plugins: [iCalendarPlugin, luxon2Plugin, resourceTimeGridPlugin],
allDaySlot: false,
nowIndicator: true,
headerToolbar: { start: '', center: 'title', end: '' },
titleFormat: "'Reservations for ' cccc LLLL d, yyyy",
initialView: 'resourceTimeGrid',
height: 'auto',
slotMinTime: '8:00',