From b0170d8cbb14a05d791ae5560c6e15da3fabfd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 15 Nov 2021 00:47:37 +0100 Subject: cleanup --- static/.gitignore | 3 +++ static/script.ts | 18 ------------------ static/style.scss | 2 ++ static/vevent.ts | 3 ++- 4 files changed, 7 insertions(+), 19 deletions(-) (limited to 'static') diff --git a/static/.gitignore b/static/.gitignore index 9e9b559e..78268647 100644 --- a/static/.gitignore +++ b/static/.gitignore @@ -13,3 +13,6 @@ types.js vevent.js *.out.js node_modules +elements.js +event-creator.js +deps.svg diff --git a/static/script.ts b/static/script.ts index 2a339e77..21cb8302 100644 --- a/static/script.ts +++ b/static/script.ts @@ -40,24 +40,6 @@ window.addEventListener('load', function() { } } - /* - - .popup - - .block - - .list - */ - /* - let vevent_els = document.getElementsByClassName('vevent') - for (let el of vevent_els) { - try { - vcal_objects[el.dataset.uid].register(el); - } catch { - console.error("Invalid something, uid = ", el.dataset.uid, - "el = ", el - ); - } - } - */ - initialize_components(); diff --git a/static/style.scss b/static/style.scss index 4c645ff7..9833a77a 100644 --- a/static/style.scss +++ b/static/style.scss @@ -568,6 +568,8 @@ vevent-block, .event { &.generated { opacity: 40%; + /* TODO only disable transitions for top/botom, and only + * when dragging (not when updating through other means) */ transition: none; } diff --git a/static/vevent.ts b/static/vevent.ts index 4f47f8e3..307c572f 100644 --- a/static/vevent.ts +++ b/static/vevent.ts @@ -236,7 +236,8 @@ function xml_to_vcal(xml: Element): VEvent { let property_map = new Map() if (properties) { - property_loop: for (var i = 0; i < properties.childElementCount; i++) { + property_loop: + for (var i = 0; i < properties.childElementCount; i++) { let tag = properties.childNodes[i]; if (!(tag instanceof Element)) continue; let parameters = {}; -- cgit v1.2.3