From c23c2bdba6ec5d0004d02f8d4126cee809265668 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 11 Oct 2022 17:56:22 +0200 Subject: [PATCH] Lint fixes Signed-off-by: Thomas Citharel --- js/src/components/Local/CloseEvents.vue | 2 +- js/src/components/TextEditor.vue | 2 +- js/src/views/Event/EventView.vue | 16 ---------------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/js/src/components/Local/CloseEvents.vue b/js/src/components/Local/CloseEvents.vue index 8f1ed5f83..9c6747e66 100644 --- a/js/src/components/Local/CloseEvents.vue +++ b/js/src/components/Local/CloseEvents.vue @@ -55,7 +55,7 @@ import { LocationType } from "../../types/user-location.model"; import MoreContent from "./MoreContent.vue"; import CloseContent from "./CloseContent.vue"; -import { computed, onMounted, ref, useAttrs } from "vue"; +import { computed, onMounted, useAttrs } from "vue"; import { SEARCH_EVENTS } from "@/graphql/search"; import { IEvent } from "@/types/event.model"; import { useLazyQuery } from "@vue/apollo-composable"; diff --git a/js/src/components/TextEditor.vue b/js/src/components/TextEditor.vue index 62af70e5a..b29980d28 100644 --- a/js/src/components/TextEditor.vue +++ b/js/src/components/TextEditor.vue @@ -218,7 +218,7 @@ import Underline from "@tiptap/extension-underline"; import Link from "@tiptap/extension-link"; import { AutoDir } from "./Editor/Autodir"; // import sanitizeHtml from "sanitize-html"; -import { computed, inject, onBeforeUnmount, onMounted, ref, watch } from "vue"; +import { computed, inject, onBeforeUnmount, watch } from "vue"; import { Dialog } from "@/plugins/dialog"; import { useI18n } from "vue-i18n"; import { useMutation } from "@vue/apollo-composable"; diff --git a/js/src/views/Event/EventView.vue b/js/src/views/Event/EventView.vue index e7468e54e..3ff5ad6e5 100755 --- a/js/src/views/Event/EventView.vue +++ b/js/src/views/Event/EventView.vue @@ -451,22 +451,6 @@ onFetchEventError(({ graphQLErrors }) => handleErrors(graphQLErrors as AbsintheGraphQLErrors) ); -// const endDate = computed((): string | undefined => { -// return event.value?.endsOn && event.value.endsOn > event.value.beginsOn -// ? event.value.endsOn -// : event.value?.beginsOn; -// }); - -const organizer = computed((): IActor | null => { - if (event.value?.attributedTo?.id) { - return event.value.attributedTo; - } - if (event.value?.organizerActor) { - return event.value.organizerActor; - } - return null; -}); - const metadataToComponent: Record = { "mz:live:twitch:url": "IntegrationTwitch", "mz:live:peertube:url": "IntegrationPeertube",