@datagouv/components-next 1.4.1-dev.1373.g379aceb6 → 1.4.1-dev.1374.g4dfe0257

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/assets/main.css +4 -0
  2. package/dist/{Datafair.client-Ci2WOgAS.js → Datafair.client-LChXlMI3.js} +1 -1
  3. package/dist/{ImagePreview.client-B4RtxuiJ.js → ImagePreview.client-DWNGZghK.js} +1 -1
  4. package/dist/{JsonPreview.client-r7swv2fp.js → JsonPreview.client-DCklbUyJ.js} +2 -2
  5. package/dist/{MapContainer.client-CxH1a8Tn.js → MapContainer.client-B-aQhH35.js} +6 -6
  6. package/dist/{PdfPreview.client-BjeMcqcy.js → PdfPreview.client-1WFiBcXh.js} +3 -3
  7. package/dist/{PdfSkeleton-CVZxJaeL.js → PdfSkeleton-BvU7ERD1.js} +1 -1
  8. package/dist/{Pmtiles.client-D8idR2l7.js → Pmtiles.client-BlbOlwyy.js} +2 -2
  9. package/dist/{PreviewError-Cx7CItT_.js → PreviewError-BfBCBDEx.js} +6873 -6871
  10. package/dist/{PreviewWrapper-Cd1RSmS-.js → PreviewWrapper-DvycGC7l.js} +1 -1
  11. package/dist/{XmlPreview.client-cSebx8br.js → XmlPreview.client-ClFD8R3a.js} +2 -2
  12. package/dist/components-next.css +1 -1
  13. package/dist/components-next.js +11924 -11677
  14. package/dist/components.css +1 -1
  15. package/dist/{france-DPcdJc84.js → france-JfC0dOuE.js} +1 -1
  16. package/package.json +1 -1
  17. package/src/components/CardMedia.vue +42 -0
  18. package/src/components/ChartCard.vue +53 -59
  19. package/src/components/DataserviceCard.vue +69 -85
  20. package/src/components/DataserviceQualityInline.vue +4 -20
  21. package/src/components/DataserviceQualityTooltipContent.vue +57 -65
  22. package/src/components/DatasetCard.vue +80 -93
  23. package/src/components/DatasetQualityInline.vue +4 -20
  24. package/src/components/DatasetQualityTooltipContent.vue +60 -62
  25. package/src/components/DiscussionMessageCard.vue +19 -22
  26. package/src/components/ObjectCard.vue +89 -18
  27. package/src/components/ObjectCardBadge.vue +27 -16
  28. package/src/components/ObjectCardMeta.vue +15 -0
  29. package/src/components/ObjectCardMetric.vue +23 -0
  30. package/src/components/ObjectCardMetrics.vue +6 -0
  31. package/src/components/ObjectCardOwner.vue +170 -17
  32. package/src/components/ObjectCardQuality.vue +32 -0
  33. package/src/components/ObjectCardShortDescription.vue +1 -1
  34. package/src/components/OrganizationCard.vue +101 -69
  35. package/src/components/OrganizationNameInline.vue +49 -0
  36. package/src/components/OrganizationTypeBadge.vue +21 -0
  37. package/src/components/OwnerType.vue +1 -1
  38. package/src/components/OwnerTypeIcon.vue +7 -3
  39. package/src/components/PostCard.vue +31 -35
  40. package/src/components/ProgressBar.vue +6 -3
  41. package/src/components/QualityItem.vue +9 -18
  42. package/src/components/QualityScore.vue +7 -1
  43. package/src/components/ReuseCard.vue +114 -95
  44. package/src/components/ReuseDetails.vue +19 -29
  45. package/src/components/SchemaCard.vue +30 -27
  46. package/src/components/Search/GlobalSearch.vue +7 -4
  47. package/src/components/Toggletip.vue +24 -12
  48. package/src/components/Tooltip.vue +113 -29
  49. package/src/components/TopicCard.vue +69 -78
  50. package/src/main.ts +0 -4
  51. package/src/components/ObjectCardHeader.vue +0 -42
  52. package/src/components/OrganizationHorizontalCard.vue +0 -87
  53. package/src/components/ReuseHorizontalCard.vue +0 -81
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <!-- Without an image, the placeholder stands for it: it carries the same text alternative. -->
3
+ <div
4
+ class="grid place-items-center size-full min-w-0 overflow-hidden bg-gray-some text-gray-secondary"
5
+ :role="hasImage ? undefined : 'img'"
6
+ :aria-label="hasImage ? undefined : alt"
7
+ >
8
+ <img
9
+ v-if="hasImage"
10
+ :src="src!"
11
+ :alt="alt || ''"
12
+ loading="lazy"
13
+ class="block size-full object-cover"
14
+ @error="failed = true"
15
+ >
16
+ <component
17
+ :is="icon"
18
+ v-else
19
+ class="size-12 flex-none pointer-events-none"
20
+ aria-hidden="true"
21
+ />
22
+ </div>
23
+ </template>
24
+
25
+ <script setup lang="ts">
26
+ import { computed, ref, watch } from 'vue'
27
+ import { RiArticleLine, RiBarChartBoxLine, RiLineChartLine } from '@remixicon/vue'
28
+
29
+ const props = defineProps<{
30
+ src?: string | null
31
+ alt?: string
32
+ kind: 'post' | 'reuse' | 'chart'
33
+ }>()
34
+
35
+ // A broken image falls back to the placeholder instead of the browser's broken image icon.
36
+ const failed = ref(false)
37
+ watch(() => props.src, () => {
38
+ failed.value = false
39
+ })
40
+ const hasImage = computed(() => !!props.src?.trim() && !failed.value)
41
+ const icon = computed(() => ({ post: RiArticleLine, reuse: RiLineChartLine, chart: RiBarChartBoxLine })[props.kind])
42
+ </script>
@@ -1,57 +1,49 @@
1
1
  <template>
2
- <ObjectCard media-size="xl">
3
- <template #badge>
2
+ <ObjectCard
3
+ :url="chartUrl || chart.page"
4
+ :icon="chartIcon"
5
+ media-size="xl"
6
+ >
7
+ <template #media>
8
+ <CardMedia
9
+ :src="chart.image"
10
+ :alt="chart.title"
11
+ kind="chart"
12
+ />
13
+ </template>
14
+ <template #title>
15
+ {{ chart.title }}
16
+ </template>
17
+ <template
18
+ v-if="chart.deleted_at || chart.private"
19
+ #badge
20
+ >
4
21
  <ObjectCardBadge
5
22
  v-if="chart.deleted_at"
6
23
  :icon="RiDeleteBinLine"
24
+ tone="danger"
7
25
  >
8
26
  {{ t('Supprimé') }}
9
27
  </ObjectCardBadge>
10
28
  <ObjectCardBadge
11
- v-else-if="chart.private"
29
+ v-else
12
30
  :icon="RiLockLine"
13
31
  >
14
32
  {{ t('Brouillon') }}
15
33
  </ObjectCardBadge>
16
34
  </template>
17
35
 
18
- <template #media>
19
- <img
20
- v-if="chart.image"
21
- :src="chart.image"
22
- class="w-full h-full object-cover"
23
- :alt="chart.title"
24
- >
25
- <Placeholder
26
- v-else
27
- type="Chart"
28
- class="w-full h-full"
29
- />
30
- </template>
31
-
32
- <ObjectCardHeader
33
- :icon="chartIcon"
34
- :url="chartUrl || chart.page"
35
- >
36
- {{ chart.title }}
37
- </ObjectCardHeader>
38
-
39
- <div
36
+ <ObjectCardOwner
40
37
  v-if="chart.organization || chart.owner"
41
- class="text-sm flex flex-wrap gap-y-1 items-center truncate"
42
- >
43
- <ObjectCardOwner
44
- :organization="chart.organization"
45
- :owner="chart.owner"
46
- :organization-url="organizationUrl"
47
- />
48
- <RiSubtractLine
49
- aria-hidden="true"
50
- class="size-4 flex-none fill-gray-medium"
51
- />
38
+ show-details
39
+ :organization="chart.organization"
40
+ :owner="chart.owner"
41
+ :organization-url="organizationUrl"
42
+ />
43
+ <ObjectCardMeta>
52
44
  <TranslationT
53
- tag="p"
54
- class="text-sm whitespace-nowrap mb-0 text-gray-medium"
45
+ tag="span"
46
+ class="tabular-nums"
55
47
  keypath="Mis à jour {date}"
56
48
  >
57
49
  <template #date>
@@ -62,40 +54,42 @@
62
54
  />
63
55
  </template>
64
56
  </TranslationT>
65
- </div>
66
-
67
- <div class="mx-0 -mb-1 flex flex-wrap items-center text-sm text-gray-medium mt-1">
68
- <p
69
- class="text-sm mb-0 flex items-center gap-0.5"
70
- :aria-label="t('{n} vues | {n} vue | {n} vues', chart.metrics.views)"
71
- >
72
- <RiEyeLine
73
- aria-hidden="true"
74
- class="size-3.5"
75
- />{{ summarize(chart.metrics.views) }}
76
- </p>
77
- </div>
78
-
79
- <ObjectCardShortDescription :text="chart.description" />
80
-
57
+ </ObjectCardMeta>
58
+ <ObjectCardMeta class="mt-1 max-[480px]:hidden">
59
+ <ObjectCardMetric
60
+ :icon="RiEyeLine"
61
+ :value="chart.metrics.views"
62
+ :label="t('{n} vues | {n} vue | {n} vues', chart.metrics.views)"
63
+ />
64
+ </ObjectCardMeta>
65
+ <ObjectCardShortDescription
66
+ :text="chart.description"
67
+ class="max-md:hidden"
68
+ />
81
69
  <slot />
82
70
  </ObjectCard>
83
71
  </template>
84
72
 
85
73
  <script setup lang="ts">
86
74
  import { computed } from 'vue'
87
- import { RiBarChartBoxLine, RiDeleteBinLine, RiEyeLine, RiLineChartLine, RiLockLine, RiSubtractLine } from '@remixicon/vue'
75
+ import {
76
+ RiBarChartBoxLine,
77
+ RiDeleteBinLine,
78
+ RiEyeLine,
79
+ RiLineChartLine,
80
+ RiLockLine,
81
+ } from '@remixicon/vue'
88
82
  import type { RouteLocationRaw } from 'vue-router'
89
83
  import type { Chart } from '../types/visualizations'
90
- import { summarize } from '../functions/helpers'
91
84
  import { useTranslation } from '../composables/useTranslation'
92
- import Placeholder from './Placeholder.vue'
85
+ import CardMedia from './CardMedia.vue'
93
86
  import FormattedDate from './FormattedDate.vue'
94
87
  import ObjectCard from './ObjectCard.vue'
95
88
  import ObjectCardBadge from './ObjectCardBadge.vue'
96
- import ObjectCardHeader from './ObjectCardHeader.vue'
97
- import ObjectCardOwner from './ObjectCardOwner.vue'
98
89
  import ObjectCardShortDescription from './ObjectCardShortDescription.vue'
90
+ import ObjectCardMeta from './ObjectCardMeta.vue'
91
+ import ObjectCardMetric from './ObjectCardMetric.vue'
92
+ import ObjectCardOwner from './ObjectCardOwner.vue'
99
93
  import TranslationT from './TranslationT.vue'
100
94
 
101
95
  const props = defineProps<{
@@ -1,11 +1,34 @@
1
1
  <template>
2
2
  <ObjectCard
3
- :article-class="{
4
- 'border-tabular-api': isTabularApi,
5
- 'border-gray-default': !isTabularApi,
6
- }"
3
+ :url="dataserviceUrl || dataservice.self_web_url"
4
+ :icon="isTabularApi ? RiSparklingLine : RiTerminalLine"
5
+ :title-tag
6
+ :highlighted="isTabularApi"
7
7
  >
8
- <template #badge>
8
+ <template #media>
9
+ <OrganizationLogo
10
+ v-if="dataservice.organization"
11
+ :organization="dataservice.organization"
12
+ size-class="size-12 p-1"
13
+ />
14
+ <Avatar
15
+ v-else-if="dataservice.owner"
16
+ :user="dataservice.owner"
17
+ :size="48"
18
+ />
19
+ <Placeholder
20
+ v-else
21
+ type="Dataservice"
22
+ class="size-12"
23
+ />
24
+ </template>
25
+ <template #title>
26
+ {{ dataservice.title }}
27
+ </template>
28
+ <template
29
+ v-if="dataservice.private || dataservice.archived_at || dataservice.access_type === 'restricted' || dataservice.access_type === 'open_with_account'"
30
+ #badge
31
+ >
9
32
  <ObjectCardBadge
10
33
  v-if="dataservice.private"
11
34
  :icon="RiLockLine"
@@ -21,59 +44,29 @@
21
44
  <ObjectCardBadge
22
45
  v-else-if="dataservice.access_type === 'restricted'"
23
46
  :icon="RiLockLine"
47
+ tone="warning"
24
48
  >
25
49
  {{ t('Accès restreint') }}
26
50
  </ObjectCardBadge>
27
51
  <ObjectCardBadge
28
52
  v-else-if="dataservice.access_type === 'open_with_account'"
29
53
  :icon="RiPassValidLine"
54
+ tone="yellow"
30
55
  >
31
56
  {{ t('Ouvert avec un compte') }}
32
57
  </ObjectCardBadge>
33
58
  </template>
34
59
 
35
- <template #media>
36
- <OrganizationLogo
37
- v-if="dataservice.organization"
38
- :organization="dataservice.organization"
39
- size-class="size-12"
40
- />
41
- <Avatar
42
- v-else-if="dataservice.owner"
43
- :user="dataservice.owner"
44
- :size="48"
45
- />
46
- <Placeholder
47
- v-else
48
- type="Dataservice"
49
- class="size-12"
50
- />
51
- </template>
52
-
53
- <ObjectCardHeader
54
- :icon="isTabularApi ? RiSparklingLine : RiTerminalLine"
55
- :url="dataserviceUrl || dataservice.self_web_url"
56
- :title-tag="titleTag"
57
- >
58
- {{ dataservice.title }}
59
- </ObjectCardHeader>
60
- <div
61
- v-if="dataservice.organization || dataservice.owner"
62
- class="text-sm flex flex-wrap md:flex-nowrap gap-y-1 items-center truncate"
63
- >
64
- <ObjectCardOwner
65
- :organization="dataservice.organization"
66
- :owner="dataservice.owner"
67
- :organization-url="organizationUrl"
68
- />
69
- <RiSubtractLine
70
- aria-hidden="true"
71
- class="size-4 flex-none fill-gray-medium"
72
- />
73
- <!-- https://github.com/datagouv/cdata/issues/653 -->
60
+ <ObjectCardOwner
61
+ show-details
62
+ :organization="dataservice.organization"
63
+ :owner="dataservice.owner"
64
+ :organization-url="organizationUrl"
65
+ />
66
+ <ObjectCardMeta>
74
67
  <TranslationT
75
- tag="p"
76
- class="text-sm whitespace-nowrap mb-0 text-gray-medium"
68
+ tag="span"
69
+ class="tabular-nums"
77
70
  keypath="Mis à jour {date}"
78
71
  >
79
72
  <template #date>
@@ -84,41 +77,29 @@
84
77
  />
85
78
  </template>
86
79
  </TranslationT>
87
- <RiSubtractLine
88
- aria-hidden="true"
89
- class="size-4 flex-none fill-gray-medium"
80
+ <DataserviceQualityInline
81
+ v-if="dataservice.quality"
82
+ :quality="dataservice.quality"
83
+ class="max-[480px]:hidden"
90
84
  />
91
- <div class="flex items-center gap-1 text-gray-medium">
92
- <p
93
- class="text-sm mb-0 flex items-center gap-0.5"
94
- :aria-label="t('{n} vues | {n} vue | {n} vues', dataservice.metrics.views)"
95
- >
96
- <RiEyeLine
97
- aria-hidden="true"
98
- class="size-3.5"
99
- />{{ summarize(dataservice.metrics.views) }}
100
- </p>
101
- <p
102
- class="text-sm mb-0 flex items-center gap-0.5"
103
- :aria-label="t('{n} abonnés | {n} abonné | {n} abonnés', dataservice.metrics.followers)"
104
- >
105
- <RiStarLine
106
- aria-hidden="true"
107
- class="size-3.5"
108
- />{{ summarize(dataservice.metrics.followers) }}
109
- </p>
110
- </div>
111
- </div>
112
- <DataserviceQualityInline
113
- v-if="dataservice.quality"
114
- :quality="dataservice.quality"
115
- />
116
-
85
+ <ObjectCardMetrics class="max-[480px]:hidden">
86
+ <ObjectCardMetric
87
+ :icon="RiEyeLine"
88
+ :value="dataservice.metrics.views"
89
+ :label="t('{n} vues | {n} vue | {n} vues', dataservice.metrics.views)"
90
+ />
91
+ <ObjectCardMetric
92
+ :icon="RiStarLine"
93
+ :value="dataservice.metrics.followers"
94
+ :label="t('{n} abonnés | {n} abonné | {n} abonnés', dataservice.metrics.followers)"
95
+ />
96
+ </ObjectCardMetrics>
97
+ </ObjectCardMeta>
117
98
  <ObjectCardShortDescription
118
99
  v-if="showDescription"
119
100
  :text="dataservice.description"
101
+ class="max-md:hidden"
120
102
  />
121
-
122
103
  <slot />
123
104
  </ObjectCard>
124
105
  </template>
@@ -126,9 +107,16 @@
126
107
  <script setup lang="ts">
127
108
  import { computed } from 'vue'
128
109
  import type { RouteLocationRaw } from 'vue-router'
129
- import { RiArchiveLine, RiEyeLine, RiLockLine, RiPassValidLine, RiSparklingLine, RiStarLine, RiSubtractLine, RiTerminalLine } from '@remixicon/vue'
110
+ import {
111
+ RiArchiveLine,
112
+ RiEyeLine,
113
+ RiLockLine,
114
+ RiPassValidLine,
115
+ RiSparklingLine,
116
+ RiStarLine,
117
+ RiTerminalLine,
118
+ } from '@remixicon/vue'
130
119
  import { useComponentsConfig } from '../config'
131
- import { summarize } from '../functions/helpers'
132
120
  import type { Dataservice } from '../types/dataservices'
133
121
  import type { TitleTag } from '../types/ui'
134
122
  import { useTranslation } from '../composables/useTranslation'
@@ -137,7 +125,9 @@ import Avatar from './Avatar.vue'
137
125
  import Placeholder from './Placeholder.vue'
138
126
  import ObjectCard from './ObjectCard.vue'
139
127
  import ObjectCardBadge from './ObjectCardBadge.vue'
140
- import ObjectCardHeader from './ObjectCardHeader.vue'
128
+ import ObjectCardMeta from './ObjectCardMeta.vue'
129
+ import ObjectCardMetric from './ObjectCardMetric.vue'
130
+ import ObjectCardMetrics from './ObjectCardMetrics.vue'
141
131
  import ObjectCardOwner from './ObjectCardOwner.vue'
142
132
  import ObjectCardShortDescription from './ObjectCardShortDescription.vue'
143
133
  import DataserviceQualityInline from './DataserviceQualityInline.vue'
@@ -164,9 +154,3 @@ const isTabularApi = computed(() => {
164
154
  return config.tabularApiDataserviceId === props.dataservice.id
165
155
  })
166
156
  </script>
167
-
168
- <style scoped>
169
- .border-tabular-api {
170
- border-color: #373C42 !important;
171
- }
172
- </style>
@@ -1,31 +1,15 @@
1
1
  <template>
2
- <div class="m-0 text-sm text-gray-medium">
3
- <Toggletip
4
- :styled-button="false"
5
- button-class="border-transparent -outline-offset-2 inline-flex items-center justify-center hover:bg-gray-lower transition-colors"
6
- :button-props="{ class: 'relative z-2 gap-1 rounded-sm px-1 -mx-1 group/quality', title: t('Qualité des métadonnées') }"
7
- >
8
- <RiInformationLine class="size-3.5 shrink-0" />
9
- <span class="text-gray-medium text-sm group-hover/quality:underline">{{ t('Métadonnées :') }}</span>
10
- <QualityScore :score="quality.score" />
11
- <template #toggletip>
12
- <DataserviceQualityTooltipContent :quality />
13
- </template>
14
- </Toggletip>
15
- </div>
2
+ <ObjectCardQuality :score="quality.score">
3
+ <DataserviceQualityTooltipContent :quality />
4
+ </ObjectCardQuality>
16
5
  </template>
17
6
 
18
7
  <script setup lang="ts">
19
- import { RiInformationLine } from '@remixicon/vue'
20
8
  import type { DataserviceQuality } from '../types/dataservices'
21
- import QualityScore from './QualityScore.vue'
22
9
  import DataserviceQualityTooltipContent from './DataserviceQualityTooltipContent.vue'
23
- import Toggletip from './Toggletip.vue'
24
- import { useTranslation } from '../composables/useTranslation'
10
+ import ObjectCardQuality from './ObjectCardQuality.vue'
25
11
 
26
12
  defineProps<{
27
13
  quality: DataserviceQuality
28
14
  }>()
29
-
30
- const { t } = useTranslation()
31
15
  </script>
@@ -1,69 +1,61 @@
1
1
  <template>
2
- <p class="text-sm text-gray-plain font-bold mb-0">
3
- {{ t("Qualité des métadonnées :") }}
4
- </p>
5
- <ul class="list-none pl-0 space-y-2">
6
- <QualityItem
7
- :passed="quality.has_description"
8
- :message-passed="t('Description renseignée')"
9
- :message-failed="t('Description non renseignée')"
10
- class="pb-0"
11
- />
12
- <QualityItem
13
- :passed="quality.has_machine_documentation"
14
- :message-passed="t('Documentation machine (OpenAPI) disponible')"
15
- :message-failed="t('Documentation machine (OpenAPI) manquante')"
16
- class="pb-0"
17
- />
18
- <QualityItem
19
- :passed="quality.has_technical_documentation"
20
- :message-passed="t('Documentation technique renseignée')"
21
- :message-failed="t('Documentation technique manquante')"
22
- class="pb-0"
23
- />
24
- <QualityItem
25
- :passed="quality.has_business_documentation"
26
- :message-passed="t('Documentation métier renseignée')"
27
- :message-failed="t('Documentation métier manquante')"
28
- class="pb-0"
29
- />
30
- <QualityItem
31
- :passed="quality.license"
32
- :message-passed="t('Licence renseignée')"
33
- :message-failed="t('Licence non renseignée')"
34
- class="pb-0"
35
- />
36
- <QualityItem
37
- :passed="quality.has_contact_point"
38
- :message-passed="t('Point de contact renseigné')"
39
- :message-failed="t('Point de contact non renseigné')"
40
- class="pb-0"
41
- />
42
- <QualityItem
43
- :passed="quality.has_base_api_url"
44
- :message-passed="t(`URL de base de l'API renseignée`)"
45
- :message-failed="t(`URL de base de l'API non renseignée`)"
46
- class="pb-0"
47
- />
48
- <QualityItem
49
- :passed="quality.availability_documented"
50
- :message-passed="t('Disponibilité documentée')"
51
- :message-failed="t('Disponibilité non documentée')"
52
- class="pb-0"
53
- />
54
- <QualityItem
55
- :passed="quality.rate_limiting_documented"
56
- :message-passed="t(`Limite d'appels documentée`)"
57
- :message-failed="t(`Limite d'appels non documentée`)"
58
- class="pb-0"
59
- />
60
- <QualityItem
61
- :passed="quality.access_conditions_clear"
62
- :message-passed="t(`Conditions d'accès claires`)"
63
- :message-failed="t(`Conditions d'accès non précisées`)"
64
- class="pb-0"
65
- />
66
- </ul>
2
+ <section class="flex flex-col gap-3">
3
+ <p class="m-0 text-sm/[22px] font-semibold text-gray-title">
4
+ {{ t("Qualité des métadonnées :") }}
5
+ </p>
6
+ <ul class="list-none flex flex-col gap-2 m-0 p-0">
7
+ <QualityItem
8
+ :passed="quality.has_description"
9
+ :message-passed="t('Description renseignée')"
10
+ :message-failed="t('Description non renseignée')"
11
+ />
12
+ <QualityItem
13
+ :passed="quality.has_machine_documentation"
14
+ :message-passed="t('Documentation machine (OpenAPI) disponible')"
15
+ :message-failed="t('Documentation machine (OpenAPI) manquante')"
16
+ />
17
+ <QualityItem
18
+ :passed="quality.has_technical_documentation"
19
+ :message-passed="t('Documentation technique renseignée')"
20
+ :message-failed="t('Documentation technique manquante')"
21
+ />
22
+ <QualityItem
23
+ :passed="quality.has_business_documentation"
24
+ :message-passed="t('Documentation métier renseignée')"
25
+ :message-failed="t('Documentation métier manquante')"
26
+ />
27
+ <QualityItem
28
+ :passed="quality.license"
29
+ :message-passed="t('Licence renseignée')"
30
+ :message-failed="t('Licence non renseignée')"
31
+ />
32
+ <QualityItem
33
+ :passed="quality.has_contact_point"
34
+ :message-passed="t('Point de contact renseigné')"
35
+ :message-failed="t('Point de contact non renseigné')"
36
+ />
37
+ <QualityItem
38
+ :passed="quality.has_base_api_url"
39
+ :message-passed="t(`URL de base de l'API renseignée`)"
40
+ :message-failed="t(`URL de base de l'API non renseignée`)"
41
+ />
42
+ <QualityItem
43
+ :passed="quality.availability_documented"
44
+ :message-passed="t('Disponibilité documentée')"
45
+ :message-failed="t('Disponibilité non documentée')"
46
+ />
47
+ <QualityItem
48
+ :passed="quality.rate_limiting_documented"
49
+ :message-passed="t(`Limite d'appels documentée`)"
50
+ :message-failed="t(`Limite d'appels non documentée`)"
51
+ />
52
+ <QualityItem
53
+ :passed="quality.access_conditions_clear"
54
+ :message-passed="t(`Conditions d'accès claires`)"
55
+ :message-failed="t(`Conditions d'accès non précisées`)"
56
+ />
57
+ </ul>
58
+ </section>
67
59
  </template>
68
60
 
69
61
  <script setup lang="ts">