Lint fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
74581912f3
commit
c23c2bdba6
@ -55,7 +55,7 @@
|
|||||||
import { LocationType } from "../../types/user-location.model";
|
import { LocationType } from "../../types/user-location.model";
|
||||||
import MoreContent from "./MoreContent.vue";
|
import MoreContent from "./MoreContent.vue";
|
||||||
import CloseContent from "./CloseContent.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 { SEARCH_EVENTS } from "@/graphql/search";
|
||||||
import { IEvent } from "@/types/event.model";
|
import { IEvent } from "@/types/event.model";
|
||||||
import { useLazyQuery } from "@vue/apollo-composable";
|
import { useLazyQuery } from "@vue/apollo-composable";
|
||||||
|
@ -218,7 +218,7 @@ import Underline from "@tiptap/extension-underline";
|
|||||||
import Link from "@tiptap/extension-link";
|
import Link from "@tiptap/extension-link";
|
||||||
import { AutoDir } from "./Editor/Autodir";
|
import { AutoDir } from "./Editor/Autodir";
|
||||||
// import sanitizeHtml from "sanitize-html";
|
// 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 { Dialog } from "@/plugins/dialog";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useMutation } from "@vue/apollo-composable";
|
import { useMutation } from "@vue/apollo-composable";
|
||||||
|
@ -451,22 +451,6 @@ onFetchEventError(({ graphQLErrors }) =>
|
|||||||
handleErrors(graphQLErrors as AbsintheGraphQLErrors)
|
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<string, string> = {
|
const metadataToComponent: Record<string, string> = {
|
||||||
"mz:live:twitch:url": "IntegrationTwitch",
|
"mz:live:twitch:url": "IntegrationTwitch",
|
||||||
"mz:live:peertube:url": "IntegrationPeertube",
|
"mz:live:peertube:url": "IntegrationPeertube",
|
||||||
|
Loading…
Reference in New Issue
Block a user