From 7bb3bdcfdd8e7733b1dcbb04d3201fdd9f802858 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 12 Oct 2022 02:12:11 -0400 Subject: [PATCH] Revert "Use luxon to set title format" This reverts commit 2868fc3324e0716a076b8a9cf5b9ee7070e4ef55. --- package.json | 2 -- pnpm-lock.yaml | 19 ------------------- src/index.ts | 4 +--- 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/package.json b/package.json index 10b4a96..6c87065 100644 --- a/package.json +++ b/package.json @@ -28,11 +28,9 @@ "@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" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 877f2dd..59a72ac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,7 +7,6 @@ specifiers: '@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 '@types/intl': ^1.2.0 babel-loader: ^8.2.5 @@ -15,7 +14,6 @@ specifiers: css-loader: ^6.7.1 file-loader: ^6.2.0 intl: ^1.2.5 - luxon: ^3.0.4 style-loader: ^3.3.1 ts-loader: ^9.4.1 typescript: ^4.8.4 @@ -28,11 +26,9 @@ dependencies: '@babel/runtime': 7.19.0 '@fullcalendar/core': 5.11.3 '@fullcalendar/icalendar': 5.11.3 - '@fullcalendar/luxon2': 5.11.3_luxon@3.0.4 '@fullcalendar/resource-timegrid': 5.11.3 core-js: 3.25.5 intl: 1.2.5 - luxon: 3.0.4 unique-colors: 1.0.1 devDependencies: @@ -1250,16 +1246,6 @@ packages: tslib: 2.4.0 dev: false - /@fullcalendar/luxon2/5.11.3_luxon@3.0.4: - resolution: {integrity: sha512-facQYF87ovrw1dOaEDG/oQevV4sgrTWSAsV43upIY8FLKkgVQYT3JR6/aG99CL9ceMmOxdBiwF5pQEsVuGmb4A==} - peerDependencies: - luxon: ^2.0.0 - dependencies: - '@fullcalendar/common': 5.11.3 - luxon: 3.0.4 - tslib: 2.4.0 - dev: false - /@fullcalendar/premium-common/5.11.3: resolution: {integrity: sha512-fvMU8OmIReBXoY1iOkRO+zGwbUHA1YB9xtkYbSL3ZeMQ008P0Lj6ar7Jv/lB5XDRgh50TRfFIgfDjdszESAc4w==} dependencies: @@ -2767,11 +2753,6 @@ packages: yallist: 4.0.0 dev: true - /luxon/3.0.4: - resolution: {integrity: sha512-aV48rGUwP/Vydn8HT+5cdr26YYQiUZ42NM6ToMoaGKwYfWbfLeRkEu1wXWMHBZT6+KyLfcbbtVcoQFCbbPjKlw==} - engines: {node: '>=12'} - dev: false - /make-dir/3.1.0: resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} engines: {node: '>=8'} diff --git a/src/index.ts b/src/index.ts index 29f8659..7f69ac5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,6 @@ 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'; @@ -32,11 +31,10 @@ const toolFilter: string[] | undefined = urlParams.get('tool')?.split(';'); const calendarOptions: CalendarOptions = { schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives', - plugins: [iCalendarPlugin, luxon2Plugin, resourceTimeGridPlugin], + plugins: [iCalendarPlugin, resourceTimeGridPlugin], allDaySlot: false, nowIndicator: true, headerToolbar: { start: '', center: 'title', end: '' }, - titleFormat: "'Reservations for ' cccc LLLL d, yyyy", initialView: 'resourceTimeGrid', height: 'auto', slotMinTime: '8:00',