From 5f4aedff31abae9cd762e4f185a7766becf1b0a2 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Wed, 6 Nov 2024 08:59:07 +0100 Subject: [PATCH] responsive and config --- app.vue | 9 ++++++ components/CollectionDetail.vue | 12 ++++---- components/Footer.vue | 6 ++-- components/base/ListImageItem.vue | 34 ++++++++++------------ components/dynamicZone/ColumnImageText.vue | 2 +- components/dynamicZone/FullImage.vue | 2 +- components/dynamicZone/Gallery.vue | 4 +-- components/field/Content.vue | 7 +++++ nuxt.config.ts | 14 +++------ types/field/content.ts | 5 ++++ 10 files changed, 54 insertions(+), 41 deletions(-) diff --git a/app.vue b/app.vue index 8f62b8b..312c09f 100644 --- a/app.vue +++ b/app.vue @@ -1,3 +1,12 @@ + + diff --git a/components/CollectionDetail.vue b/components/CollectionDetail.vue index 2475320..841f470 100644 --- a/components/CollectionDetail.vue +++ b/components/CollectionDetail.vue @@ -1,5 +1,5 @@ diff --git a/components/dynamicZone/ColumnImageText.vue b/components/dynamicZone/ColumnImageText.vue index 8cdedab..8652d12 100644 --- a/components/dynamicZone/ColumnImageText.vue +++ b/components/dynamicZone/ColumnImageText.vue @@ -2,7 +2,7 @@
diff --git a/components/dynamicZone/Gallery.vue b/components/dynamicZone/Gallery.vue index d05e9b2..8afdac8 100644 --- a/components/dynamicZone/Gallery.vue +++ b/components/dynamicZone/Gallery.vue @@ -3,9 +3,9 @@
diff --git a/components/field/Content.vue b/components/field/Content.vue index c5d5c6a..f445084 100644 --- a/components/field/Content.vue +++ b/components/field/Content.vue @@ -21,6 +21,13 @@ + {{ item.children[0].text.split("->")[1] }} diff --git a/nuxt.config.ts b/nuxt.config.ts index 323e413..ddcf532 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,7 +3,7 @@ export default defineNuxtConfig({ app: { baseURL: "/", head: { - title: process.env.APP_TITLE, + title: "Feuerwehr", htmlAttrs: { lang: "de", }, @@ -31,24 +31,18 @@ export default defineNuxtConfig({ modules: ["@nuxtjs/strapi", "@nuxt/image"], strapi: { - url: process.env.STRAPI_URL, + url: process.env.PUBLIC_STRAPI_URL, prefix: "/api", version: "v5", }, runtimeConfig: { - strapi: { - url: process.env.STRAPI_URL ?? "localhost:1337", - }, - app: { - title: process.env.APP_TITLE ?? "Feuerwehr", - }, public: { strapi: { - url: process.env.STRAPI_URL ?? "localhost:1337", + url: process.env.PUBLIC_STRAPI_URL ?? "localhost:1337", }, app: { - title: process.env.APP_TITLE ?? "Feuerwehr", + title: process.env.PUBLIC_APP_TITLE ?? "Feuerwehr", }, }, }, diff --git a/types/field/content.ts b/types/field/content.ts index 11273a2..ed11643 100644 --- a/types/field/content.ts +++ b/types/field/content.ts @@ -10,6 +10,11 @@ export default interface ContentField format: "unordered" | "ordered"; children: Array<{ type: "list-item"; children: Array }>; } + | { + type: "code"; + children: Array<{ type: "list-item"; children: Array }>; + language: "plaintext"; + } > {} export type TypeField = TextField | { type: "link"; url: string; children: Array };