From c001551405f4a9e7b4fa2705ecca768abb671f3d Mon Sep 17 00:00:00 2001 From: Bruno Perel Date: Sun, 29 Sep 2024 23:02:52 +0200 Subject: [PATCH] whattheduck,web: Fix Inducks story link --- apps/dumili/src/components/Entry.vue | 20 ++++++++++---------- apps/web/src/components/InducksStory.vue | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/dumili/src/components/Entry.vue b/apps/dumili/src/components/Entry.vue index 80a2d35d1..67703b2bb 100644 --- a/apps/dumili/src/components/Entry.vue +++ b/apps/dumili/src/components/Entry.vue @@ -69,7 +69,7 @@ "{numberOfStories} histoires trouvées avec ces mots-clés", { numberOfStories: pages[0].aiOcrPossibleStories.length, - }, + } ) }} {{ $t("Détails de l'histoire") }} @@ -164,10 +164,10 @@ const { indexation, acceptedStories, acceptedStoryKinds, entriesFirstPages } = const pages = computed(() => { const { startsAtPage, endsAtPage } = entriesFirstPages.value.find( - ({ entryId }) => entry.value.id === entryId, + ({ entryId }) => entry.value.id === entryId )!; return indexation.value!.pages.filter( - ({ pageNumber }) => pageNumber >= startsAtPage && pageNumber <= endsAtPage, + ({ pageNumber }) => pageNumber >= startsAtPage && pageNumber <= endsAtPage ); }); @@ -177,16 +177,16 @@ const acceptedStory = computed(() => acceptedStories.value[props.entry.id]); const storyKindAiSuggestion = computed(() => entry.value.storyKindSuggestions.find( - ({ aiSourcePageId }) => aiSourcePageId !== null, - ), + ({ aiSourcePageId }) => aiSourcePageId !== null + ) ); const storyAiSuggestions = computed(() => - entry.value.storySuggestions.filter(({ ocrDetailsId }) => ocrDetailsId), + entry.value.storySuggestions.filter(({ ocrDetailsId }) => ocrDetailsId) ); const acceptedStoryKind = computed( - () => acceptedStoryKinds.value[props.entry.id], + () => acceptedStoryKinds.value[props.entry.id] ); const storycode = computed(() => acceptedStory.value?.storyversion.storycode); @@ -195,7 +195,7 @@ const title = computed(() => entry.value.title || $t("Sans titre")); const comment = computed(() => entry.value.entrycomment); const urlEncodedStorycode = computed( - () => storycode.value && encodeURIComponent(storycode.value), + () => storycode.value && encodeURIComponent(storycode.value) ); const getStoryKind = (storyKind: storyKind) => @@ -203,7 +203,7 @@ const getStoryKind = (storyKind: storyKind) => const acceptStoryKindSuggestion = (kind: storyKind) => { getIndexationSocket( - entry.value.indexationId, + entry.value.indexationId ).services.acceptStoryKindSuggestion({ entryId: entry.value.id, kind, diff --git a/apps/web/src/components/InducksStory.vue b/apps/web/src/components/InducksStory.vue index 76aa0d04a..3d6b122e6 100644 --- a/apps/web/src/components/InducksStory.vue +++ b/apps/web/src/components/InducksStory.vue @@ -36,7 +36,7 @@ const tagName = computed(() => (showLink.value === "outer" ? "a" : "span")); const url = computed( () => storycode.value && - `https://coa.inducks.org/story.php?c=${encodeURIComponent(storycode.value)}`, + `https://inducks.org/story.php?c=${encodeURIComponent(storycode.value)}` ); const storyTypeText = computed(() => {