diff --git a/package-lock.json b/package-lock.json index 61094ea..ca2922a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2532,6 +2532,11 @@ "@fullcalendar/interaction": "^5.0.0" } }, + "svelte-simple-modal": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/svelte-simple-modal/-/svelte-simple-modal-1.3.1.tgz", + "integrity": "sha512-xBeK7VkGBuvqIm1J5eqnLqGIRKDtnsYzu8yVCLuO4rIuv4BMj4S6r0PGMgd4EFMgZwhmmqZPdrsPCDlDC6HUCw==" + }, "svgo": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", diff --git a/package.json b/package.json index e208354..0db9e78 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@nextcloud/cdav-library": "^1.0.0", "ical.js": "^1.5.0", "rrule": "^2.6.8", - "sirv-cli": "^1.0.0" + "sirv-cli": "^1.0.0", + "svelte-simple-modal": "^1.3.1" } } diff --git a/rollup.config.js b/rollup.config.js index 7e102dc..2143d6d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -60,7 +60,7 @@ export default { // https://github.com/rollup/plugins/tree/master/packages/commonjs resolve({ browser: true, - dedupe: ['svelte'] + dedupe: ['svelte', 'svelte/transition', 'svelte/internal'] }), commonjs(), diff --git a/src/App.svelte b/src/App.svelte index fe6919f..1a553c6 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,12 +1,17 @@ + +

{event.title}

+
+{#if event.extendedProps.description} + {#each event.extendedProps.description.split("\n") as line} +

{line}

+ {/each} +{/if} diff --git a/src/calendar.js b/src/calendar.js index 760c5a5..83383da 100644 --- a/src/calendar.js +++ b/src/calendar.js @@ -52,6 +52,7 @@ function fcEventFromjCalEvent(cal) { const fcEvent = { title: `${cal.name}: ${evt.summary}`, start, + end, color: cal.color, duration: end - start // in ms };