add custom image model, fetch alt text

This commit is contained in:
2024-05-15 04:42:42 +02:00
parent 5540040ea2
commit 71b0a87180
26 changed files with 358 additions and 132 deletions

11
web/src/lib/common.ts Normal file
View File

@ -0,0 +1,11 @@
import { graphql } from "@/gql";
const ImageFragmentDefinition = graphql(`
fragment Image on CustomImage {
url
width
height
alt
attribution
}
`);

View File

@ -38,9 +38,7 @@ const EventFragmentDefinition = graphql(`
}
}
featuredImage {
url
width
height
...Image
}
facebookUrl
ticketUrl