mirror of
https://github.com/ArthurDanjou/artapi.git
synced 2026-01-14 16:24:22 +01:00
Merge socials into contact resource to eliminate duplication
Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
@@ -80,7 +80,8 @@ export default defineContentConfig({
|
||||
body: z.array(z.object({
|
||||
name: z.string(),
|
||||
icon: z.string().optional(),
|
||||
value: z.string().url()
|
||||
value: z.string().url(),
|
||||
username: z.string().optional()
|
||||
}))
|
||||
})
|
||||
}),
|
||||
@@ -136,33 +137,6 @@ export default defineContentConfig({
|
||||
}),
|
||||
achievements: z.array(z.string())
|
||||
})
|
||||
}),
|
||||
socials: defineCollection({
|
||||
type: 'page',
|
||||
source: 'socials.json',
|
||||
schema: z.object({
|
||||
github: z.object({
|
||||
username: z.string(),
|
||||
url: z.string().url(),
|
||||
stats: z.object({
|
||||
note: z.string()
|
||||
})
|
||||
}),
|
||||
linkedin: z.object({
|
||||
url: z.string().url()
|
||||
}),
|
||||
twitter: z.object({
|
||||
url: z.string().url()
|
||||
}),
|
||||
discord: z.object({
|
||||
url: z.string().url()
|
||||
}),
|
||||
website: z.object({
|
||||
personal: z.string().url(),
|
||||
mcp: z.string().url(),
|
||||
status: z.string().url()
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user