fix astro schema config
This commit is contained in:
parent
e52081e1e2
commit
3ba1dd4625
2 changed files with 27 additions and 9 deletions
13
config.ts
13
config.ts
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { MediaType } from '@components/MediaGallery/types';
|
||||||
import { z, defineCollection } from 'astro:content';
|
import { z, defineCollection } from 'astro:content';
|
||||||
|
|
||||||
// AstroJS collection configuration
|
// AstroJS collection configuration
|
||||||
|
|
@ -17,6 +18,7 @@ const games = defineCollection({
|
||||||
'Wishlist',
|
'Wishlist',
|
||||||
'Want to Replay',
|
'Want to Replay',
|
||||||
'Always Playable',
|
'Always Playable',
|
||||||
|
'Tried',
|
||||||
]),
|
]),
|
||||||
times_played: z.number(),
|
times_played: z.number(),
|
||||||
}),
|
}),
|
||||||
|
|
@ -39,14 +41,19 @@ const portafolio = defineCollection({
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
draft: z.boolean().optional(),
|
draft: z.boolean().optional(),
|
||||||
tags: z.array(z.string()).optional(),
|
tags: z.array(z.string()).optional(),
|
||||||
|
technologies: z.array(z.string()),
|
||||||
published_at: z.coerce.date().optional(),
|
published_at: z.coerce.date().optional(),
|
||||||
updated_at: z.coerce.date().optional(),
|
updated_at: z.coerce.date().optional(),
|
||||||
media: z.array(
|
media: z
|
||||||
|
.array(
|
||||||
z.object({
|
z.object({
|
||||||
type: z.enum(['image', 'video']),
|
type: z.nativeEnum(MediaType),
|
||||||
url: z.string().url(),
|
url: z.string().url(),
|
||||||
|
alt: z.string(),
|
||||||
|
mime: z.string().optional(),
|
||||||
}),
|
}),
|
||||||
),
|
)
|
||||||
|
.catch([]),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,23 @@
|
||||||
title: Piloto Go
|
title: Piloto Go
|
||||||
draft: true
|
draft: true
|
||||||
media:
|
media:
|
||||||
|
- type: video
|
||||||
|
url: https://drive.google.com/file/d/198BB5RVjp2t1ExWhX0SfN20hEsW-Nk-l/view?usp=drive_link
|
||||||
|
alt: this an image
|
||||||
|
mime: video/mp4
|
||||||
|
- type: image
|
||||||
|
url: https://drive.google.com/file/d/1AuG0g4pugKE-GgwuOpb5eVvRPfR0S4D5/view?usp=drive_link
|
||||||
|
alt: this an image
|
||||||
|
- type: image
|
||||||
|
url: https://drive.google.com/file/d/1hfyHV2c58MVJLofnAy67rzsqhCV1V5u8/view?usp=drive_link
|
||||||
|
alt: this an image
|
||||||
|
- type: image
|
||||||
|
url: https://drive.google.com/file/d/1doIdGSVmyzlV4CwI0KbsOTOQpeZYt9YU/view?usp=drive_link
|
||||||
|
alt: this an image
|
||||||
technologies:
|
technologies:
|
||||||
- React
|
- React
|
||||||
- NodeJS
|
- NodeJS
|
||||||
- MySQL
|
- MySQL
|
||||||
---
|
---
|
||||||
|
|
||||||
# Piloto Go
|
|
||||||
|
|
||||||
This is a web application to manage the stock of product in a construction company and their usage across projects. It also allows to create budgets with the interaction of different actors.
|
This is a web application to manage the stock of product in a construction company and their usage across projects. It also allows to create budgets with the interaction of different actors.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue