forked from narr07/websdteja2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.schema.ts
44 lines (43 loc) · 1.22 KB
/
nuxt.schema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { field, group } from '@nuxthq/studio/theme'
export default defineNuxtSchema({
appConfig: {
socialIcons: group({
title: 'Social Media',
description: 'Customize social media icons and links',
icon: 'i-hugeicons-folder-shared-02',
fields: {
items: field({
type: 'array',
title: 'Icons',
description: 'Add or edit social media icons and links',
default: [
{ name: '', icon: '', href: '#' },
],
schema: {
type: 'object',
fields: {
name: field({
type: 'string',
title: 'Social Media Name',
description: 'Name of the social media platform',
default: '',
}),
icon: field({
type: 'icon',
title: 'Icon',
description: 'Select an icon for the platform',
default: '',
}),
href: field({
type: 'string',
title: 'Link',
description: 'URL to the social media profile',
default: '#',
}),
},
},
}),
},
}),
},
})