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" "serve": "webpack serve"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.18.6", "@babel/core": "^7.19.3",
"@babel/plugin-transform-runtime": "^7.18.6", "@babel/plugin-transform-runtime": "^7.19.1",
"@babel/preset-env": "^7.18.6", "@babel/preset-env": "^7.19.3",
"@types/intl": "^1.2.0", "@types/intl": "^1.2.0",
"babel-loader": "^8.2.5", "babel-loader": "^8.2.5",
"css-loader": "^6.7.1", "css-loader": "^6.7.1",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"ts-loader": "^9.3.1", "ts-loader": "^9.4.1",
"typescript": "^4.7.4", "typescript": "^4.8.4",
"webpack": "^5.73.0", "webpack": "^5.74.0",
"webpack-cli": "^4.10.0", "webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.2" "webpack-dev-server": "^4.11.1"
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.18.6", "@babel/runtime": "^7.19.0",
"@fullcalendar/core": "^5.11.0", "@fullcalendar/core": "^5.11.3",
"@fullcalendar/icalendar": "^5.11.0", "@fullcalendar/icalendar": "^5.11.3",
"@fullcalendar/resource-timegrid": "^5.11.0", "@fullcalendar/luxon2": "^5.11.3",
"core-js": "^3.23.3", "@fullcalendar/resource-timegrid": "^5.11.3",
"core-js": "^3.25.5",
"intl": "^1.2.5", "intl": "^1.2.5",
"luxon": "^3.0.4",
"unique-colors": "^1.0.1" "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 { Calendar, CalendarOptions } from '@fullcalendar/core';
import iCalendarPlugin from '@fullcalendar/icalendar'; import iCalendarPlugin from '@fullcalendar/icalendar';
import luxon2Plugin from '@fullcalendar/luxon2';
import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid'; import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid';
import { unique_colors } from 'unique-colors'; import { unique_colors } from 'unique-colors';
@ -31,10 +32,11 @@ const toolFilter: string[] | undefined = urlParams.get('tool')?.split(';');
const calendarOptions: CalendarOptions = { const calendarOptions: CalendarOptions = {
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives', schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
plugins: [iCalendarPlugin, resourceTimeGridPlugin], plugins: [iCalendarPlugin, luxon2Plugin, resourceTimeGridPlugin],
allDaySlot: false, allDaySlot: false,
nowIndicator: true, nowIndicator: true,
headerToolbar: { start: '', center: 'title', end: '' }, headerToolbar: { start: '', center: 'title', end: '' },
titleFormat: "'Reservations for ' cccc LLLL d, yyyy",
initialView: 'resourceTimeGrid', initialView: 'resourceTimeGrid',
height: 'auto', height: 'auto',
slotMinTime: '8:00', slotMinTime: '8:00',