From 67709b19b8fbf07552800235cd2cc500f0c23711 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Tue, 1 Aug 2023 20:04:23 -0400 Subject: [PATCH] Remove file util, start on cardgroup --- components/Base/Panel.vue | 6 ++---- components/Block/CardGroup.vue | 17 ++++++++++++---- components/Block/Showcase.vue | 4 ++-- components/Comp/Media.vue | 8 +++++--- components/Comp/Quote.vue | 4 ++-- components/Nav/Header.vue | 2 +- types/schema/blocks/block-cardgroup.ts | 13 +++++++----- types/schema/content/resource.ts | 28 ++++++++++++++++---------- types/schema/schema.ts | 3 ++- utils/getFileUrl.ts | 11 ---------- utils/resourcePermalink.ts | 7 +++++++ 11 files changed, 59 insertions(+), 44 deletions(-) delete mode 100644 utils/getFileUrl.ts create mode 100644 utils/resourcePermalink.ts diff --git a/components/Base/Panel.vue b/components/Base/Panel.vue index 0feec85e..6969f9b7 100644 --- a/components/Base/Panel.vue +++ b/components/Base/Panel.vue @@ -8,15 +8,13 @@ export interface CardGrayProps { button?: Pick; } -const props = defineProps(); - -const fileUrl = computed(() => getFileUrl(props.image)); +defineProps();