From f030aec06ea22037d4cbe4fee43e9aa28c028a9f Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Fri, 1 Jul 2022 16:00:26 +0200 Subject: [PATCH] Implement frontend for iMIP data Signed-off-by: Richard Steinmetz --- src/components/Imip.vue | 181 ++++++++++++++++++++++++ src/components/Message.vue | 12 ++ src/components/imip/EventData.vue | 222 ++++++++++++++++++++++++++++++ src/util/eventAttendee.js | 35 +++++ 4 files changed, 450 insertions(+) create mode 100644 src/components/Imip.vue create mode 100644 src/components/imip/EventData.vue create mode 100644 src/util/eventAttendee.js diff --git a/src/components/Imip.vue b/src/components/Imip.vue new file mode 100644 index 0000000000..c7ac715495 --- /dev/null +++ b/src/components/Imip.vue @@ -0,0 +1,181 @@ + + + + + + + diff --git a/src/components/Message.vue b/src/components/Message.vue index f20a174774..94afbbb677 100644 --- a/src/components/Message.vue +++ b/src/components/Message.vue @@ -27,6 +27,12 @@
+
+ +
diff --git a/src/components/imip/EventData.vue b/src/components/imip/EventData.vue new file mode 100644 index 0000000000..f56f63daad --- /dev/null +++ b/src/components/imip/EventData.vue @@ -0,0 +1,222 @@ + + + + + + + diff --git a/src/util/eventAttendee.js b/src/util/eventAttendee.js new file mode 100644 index 0000000000..1a672e416a --- /dev/null +++ b/src/util/eventAttendee.js @@ -0,0 +1,35 @@ +/** + * @copyright Copyright (c) 2022 Richard Steinmetz + * + * @author Richard Steinmetz + * + * @license AGPL-3.0-or-later + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +/* + * Remove the mailto prefix from a URI and return it + * + * @param {string} uri URI to remove the prefix from + * @return {string} URI without a mailto prefix + */ +export function removeMailtoPrefix(uri) { + if (uri.startsWith('mailto:')) { + return uri.substr(7) + } + + return uri +}