@datagouv/components-next 1.0.2-dev.110 → 1.0.2-dev.111

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.
@@ -1,4 +1,4 @@
1
- import { c as Ke } from "./main-Iz1ZCL6k.js";
1
+ import { c as Ke } from "./main-CQ9ZQG7n.js";
2
2
  import We from "vue";
3
3
  function Fe(I, K) {
4
4
  for (var V = 0; V < K.length; V++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datagouv/components-next",
3
- "version": "1.0.2-dev.110",
3
+ "version": "1.0.2-dev.111",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -417,7 +417,7 @@ const tabsOptions = computed(() => {
417
417
  options.push({ key: 'downloads', label: t('Téléchargements') })
418
418
 
419
419
  if (hasTabularData.value) {
420
- options.push({ key: 'swagger', label: t('Swagger') })
420
+ options.push({ key: 'api', label: t('API') })
421
421
  }
422
422
 
423
423
  return options
@@ -185,12 +185,15 @@
185
185
  :dataset="dataset"
186
186
  />
187
187
  </div>
188
- <div v-if="tab.key === 'swagger'">
188
+ <div v-if="tab.key === 'api'">
189
189
  <div class="fr-mb-4w">
190
190
  <p>{{ t("Cette API est générée automatiquement par {platform} à partir du fichier.", { platform: config.name }) }}</p>
191
191
  <p>{{ t("- Si le fichier est modifié, l'API sera mise à jour et sa structure pourra changer.") }}</p>
192
192
  <p>{{ t("- Si le fichier est supprimé, l'API sera également supprimée.") }}</p>
193
193
  <p>{{ t("Pour des usages pérennes, prévoyez que cette API dépend directement du fichier source.") }}</p>
194
+ <p v-if="config.tabularApiUrl">
195
+ {{ t("L'URL de base de l'API est {url}", { url: config.tabularApiUrl }) }}
196
+ </p>
194
197
  </div>
195
198
  <OpenApiViewer
196
199
  v-if="hasTabularData"
@@ -108,7 +108,7 @@ export function useResourceCapabilities(
108
108
  options.push({ key: 'downloads', label: t('Téléchargements') })
109
109
 
110
110
  if (hasTabularData.value) {
111
- options.push({ key: 'swagger', label: t('Swagger') })
111
+ options.push({ key: 'api', label: t('API') })
112
112
  }
113
113
 
114
114
  return options