Skip to content

Commit c001551

Browse files
committed
whattheduck,web: Fix Inducks story link
1 parent c507536 commit c001551

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

apps/dumili/src/components/Entry.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"{numberOfStories} histoires trouvées avec ces mots-clés",
7070
{
7171
numberOfStories: pages[0].aiOcrPossibleStories.length,
72-
},
72+
}
7373
)
7474
}}
7575
<table-tooltip
@@ -133,7 +133,7 @@
133133
&nbsp;<a
134134
v-if="urlEncodedStorycode"
135135
target="_blank"
136-
:href="`https://coa.inducks.org/story.php?c=${urlEncodedStorycode}`"
136+
:href="`https://inducks.org/story.php?c=${urlEncodedStorycode}`"
137137
>
138138
{{ $t("Détails de l'histoire") }}
139139
</a>
@@ -164,10 +164,10 @@ const { indexation, acceptedStories, acceptedStoryKinds, entriesFirstPages } =
164164
165165
const pages = computed(() => {
166166
const { startsAtPage, endsAtPage } = entriesFirstPages.value.find(
167-
({ entryId }) => entry.value.id === entryId,
167+
({ entryId }) => entry.value.id === entryId
168168
)!;
169169
return indexation.value!.pages.filter(
170-
({ pageNumber }) => pageNumber >= startsAtPage && pageNumber <= endsAtPage,
170+
({ pageNumber }) => pageNumber >= startsAtPage && pageNumber <= endsAtPage
171171
);
172172
});
173173
@@ -177,16 +177,16 @@ const acceptedStory = computed(() => acceptedStories.value[props.entry.id]);
177177
178178
const storyKindAiSuggestion = computed(() =>
179179
entry.value.storyKindSuggestions.find(
180-
({ aiSourcePageId }) => aiSourcePageId !== null,
181-
),
180+
({ aiSourcePageId }) => aiSourcePageId !== null
181+
)
182182
);
183183
184184
const storyAiSuggestions = computed(() =>
185-
entry.value.storySuggestions.filter(({ ocrDetailsId }) => ocrDetailsId),
185+
entry.value.storySuggestions.filter(({ ocrDetailsId }) => ocrDetailsId)
186186
);
187187
188188
const acceptedStoryKind = computed(
189-
() => acceptedStoryKinds.value[props.entry.id],
189+
() => acceptedStoryKinds.value[props.entry.id]
190190
);
191191
192192
const storycode = computed(() => acceptedStory.value?.storyversion.storycode);
@@ -195,15 +195,15 @@ const title = computed(() => entry.value.title || $t("Sans titre"));
195195
const comment = computed(() => entry.value.entrycomment);
196196
197197
const urlEncodedStorycode = computed(
198-
() => storycode.value && encodeURIComponent(storycode.value),
198+
() => storycode.value && encodeURIComponent(storycode.value)
199199
);
200200
201201
const getStoryKind = (storyKind: storyKind) =>
202202
storyKinds.find(({ code }) => code === storyKind)?.label;
203203
204204
const acceptStoryKindSuggestion = (kind: storyKind) => {
205205
getIndexationSocket(
206-
entry.value.indexationId,
206+
entry.value.indexationId
207207
).services.acceptStoryKindSuggestion({
208208
entryId: entry.value.id,
209209
kind,

apps/web/src/components/InducksStory.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const tagName = computed(() => (showLink.value === "outer" ? "a" : "span"));
3636
const url = computed(
3737
() =>
3838
storycode.value &&
39-
`https://coa.inducks.org/story.php?c=${encodeURIComponent(storycode.value)}`,
39+
`https://inducks.org/story.php?c=${encodeURIComponent(storycode.value)}`
4040
);
4141
4242
const storyTypeText = computed(() => {

0 commit comments

Comments
 (0)