-
Notifications
You must be signed in to change notification settings - Fork 0
/
structure.js
152 lines (151 loc) · 4.56 KB
/
structure.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
import React from 'react';
import S from '@sanity/desk-tool/structure-builder';
import { FaCogs } from 'react-icons/fa';
import {
MdMap,
MdReceipt,
MdHome,
MdVideoLibrary,
MdViewAgenda,
MdCollectionsBookmark,
MdInsertDriveFile
} from 'react-icons/md';
import {
FaLock
} from 'react-icons/fa'
export default () => {
return S.list()
.title('Website Content and Settings')
.items([
S.listItem()
.title('Home and Menu')
.icon(MdHome)
.child(
S.editor()
.title('Home and Menu')
.id('global-main')
.schemaType('main')
.documentId('global-main')
),
S.listItem()
.title('Segments')
.icon(MdViewAgenda)
.child(
S.list()
.title('Segments')
.items([
S.listItem()
.title('Normal segments')
.icon(MdReceipt)
.child(S.documentTypeList('LayoutHome').title('Segments')),
S.listItem()
.title('Gallery segments')
.icon(MdReceipt)
.child(S.documentTypeList('GalleryHome').title('Segments')),
S.listItem()
.title('Map segments')
.icon(MdMap)
.child(S.documentTypeList('LayoutMap').title('Segments'))
])
),
S.listItem()
.title('Pages')
.icon(MdInsertDriveFile)
.child(S.documentTypeList('page').title('Pages')),
S.listItem()
.title('Restricted Pages')
.icon(FaLock)
.child(S.documentTypeList('restrictedPage').title('Restricted Pages')),
S.listItem()
.title('Body content blocks')
.icon(MdCollectionsBookmark)
.child(
S.list()
.title('Body content blocks')
.items([
S.listItem()
.title('Forms')
.child(S.documentTypeList('form').title('Forms')),
S.listItem()
.title('Grid block')
.child(S.documentTypeList('gridblock').title('Grid block')),
S.listItem()
.title('Banners and Popovers')
.child(
S.documentTypeList('bannerblock')
.title('Banners and Popovers')
.defaultOrdering([{ field: 'title', direction: 'asc' }])
)
])
),
S.listItem()
.title('Categories and classes')
.icon(MdCollectionsBookmark)
.child(
S.list()
.title('Categories and classes')
.items([
S.listItem()
.title('Addresses')
.child(S.documentTypeList('address').title('Addresses')),
S.listItem()
.title('Author')
.child(S.documentTypeList('author').title('Author')),
S.listItem()
.title('Categories')
.child(S.documentTypeList('category').title('Categories')),
S.listItem()
.title('Speakers')
.child(S.documentTypeList('speaker').title('Speakers')),
S.listItem()
.title('Series')
.child(
S.documentTypeList('series')
.title('Series')
.defaultOrdering([{ field: '_updatedAt', direction: 'desc' }])
)
])
),
S.listItem()
.title('Sermons')
.icon(MdVideoLibrary)
.child(
S.documentTypeList('sermons')
.title('Sermons')
.defaultOrdering([{ field: '_updatedAt', direction: 'desc' }])
),
S.divider(),
S.listItem()
.title('Events')
.child(
S.documentTypeList('event')
.title('Events')
.defaultOrdering([{ field: '_updatedAt', direction: 'desc' }])
),
S.listItem()
.title('Articles')
.child(
S.documentTypeList('article')
.title('Article')
.defaultOrdering([{ field: '_updatedAt', direction: 'desc' }])
),
S.listItem()
.title('Videos')
.child(
S.documentTypeList('video')
.title('Videos')
.defaultOrdering([{ field: '_updatedAt', direction: 'desc' }])
),
S.divider(),
S.listItem()
.title('Config')
.icon(FaCogs)
.child(
S.editor()
.id('config')
.title('Config')
.schemaType('config')
.documentId('global-config')
)
]);
};