mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-26 09:49:12 +00:00
Lint fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
74581912f3
commit
c23c2bdba6
3 changed files with 2 additions and 18 deletions
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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<string, string> = {
|
||||
"mz:live:twitch:url": "IntegrationTwitch",
|
||||
"mz:live:peertube:url": "IntegrationPeertube",
|
||||
|
|
Loading…
Reference in a new issue