69
69
"{numberOfStories} histoires trouvées avec ces mots-clés",
70
70
{
71
71
numberOfStories: pages[0].aiOcrPossibleStories.length,
72
- },
72
+ }
73
73
)
74
74
}}
75
75
<table-tooltip
133
133
  ; <a
134
134
v-if =" urlEncodedStorycode"
135
135
target =" _blank"
136
- :href =" `https://coa. inducks.org/story.php?c=${urlEncodedStorycode}`"
136
+ :href =" `https://inducks.org/story.php?c=${urlEncodedStorycode}`"
137
137
>
138
138
{{ $t("Détails de l'histoire") }}
139
139
</a >
@@ -164,10 +164,10 @@ const { indexation, acceptedStories, acceptedStoryKinds, entriesFirstPages } =
164
164
165
165
const pages = computed (() => {
166
166
const { startsAtPage, endsAtPage } = entriesFirstPages .value .find (
167
- ({ entryId }) => entry .value .id === entryId ,
167
+ ({ entryId }) => entry .value .id === entryId
168
168
)! ;
169
169
return indexation .value ! .pages .filter (
170
- ({ pageNumber }) => pageNumber >= startsAtPage && pageNumber <= endsAtPage ,
170
+ ({ pageNumber }) => pageNumber >= startsAtPage && pageNumber <= endsAtPage
171
171
);
172
172
});
173
173
@@ -177,16 +177,16 @@ const acceptedStory = computed(() => acceptedStories.value[props.entry.id]);
177
177
178
178
const storyKindAiSuggestion = computed (() =>
179
179
entry .value .storyKindSuggestions .find (
180
- ({ aiSourcePageId }) => aiSourcePageId !== null ,
181
- ),
180
+ ({ aiSourcePageId }) => aiSourcePageId !== null
181
+ )
182
182
);
183
183
184
184
const storyAiSuggestions = computed (() =>
185
- entry .value .storySuggestions .filter (({ ocrDetailsId }) => ocrDetailsId ),
185
+ entry .value .storySuggestions .filter (({ ocrDetailsId }) => ocrDetailsId )
186
186
);
187
187
188
188
const acceptedStoryKind = computed (
189
- () => acceptedStoryKinds .value [props .entry .id ],
189
+ () => acceptedStoryKinds .value [props .entry .id ]
190
190
);
191
191
192
192
const storycode = computed (() => acceptedStory .value ?.storyversion .storycode );
@@ -195,15 +195,15 @@ const title = computed(() => entry.value.title || $t("Sans titre"));
195
195
const comment = computed (() => entry .value .entrycomment );
196
196
197
197
const urlEncodedStorycode = computed (
198
- () => storycode .value && encodeURIComponent (storycode .value ),
198
+ () => storycode .value && encodeURIComponent (storycode .value )
199
199
);
200
200
201
201
const getStoryKind = (storyKind : storyKind ) =>
202
202
storyKinds .find (({ code }) => code === storyKind )?.label ;
203
203
204
204
const acceptStoryKindSuggestion = (kind : storyKind ) => {
205
205
getIndexationSocket (
206
- entry .value .indexationId ,
206
+ entry .value .indexationId
207
207
).services .acceptStoryKindSuggestion ({
208
208
entryId: entry .value .id ,
209
209
kind ,
0 commit comments