Skip to content

Commit

Permalink
Add hosted media field
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAurelius committed Jan 14, 2025
1 parent 6d0fec9 commit 7f47a47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions carbon-projects/schemas/objects/hostedFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default defineType({
},
{
type: "string",
title: "MIME Type",
title: "MIME Type (e.g. application/pdf)",
description: "Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types/Common_types",
name: "mimetype",
},
{
Expand All @@ -29,7 +30,7 @@ export default defineType({
},
{
type: "number",
title: "File size",
title: "File size (in bytes)",
name: "size",
},
],
Expand Down
9 changes: 8 additions & 1 deletion carbon-projects/schemas/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,18 @@ export default defineType({
}),
defineField({
name: "externalDocuments",
description: "External PDF documents associated with this project",
description: "External documents (e.g. PDFs, Word documents) associated with this project",
group: "media",
type: "array",
of: [{ type: "externalFile" }],
}),
defineField({
name: "hostedMedia",
description: "Media hosted in this CMS and associated captions",
group: "media",
type: "array",
of: [{ type: "captionImage" }],
}),
defineField({
name: "hostedDocuments",
description:
Expand Down

0 comments on commit 7f47a47

Please sign in to comment.