-
Notifications
You must be signed in to change notification settings - Fork 0
/
structure.js
65 lines (63 loc) · 2.31 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
import S from "@sanity/desk-tool/structure-builder";
import {
MdAssignment,
MdHome,
MdVideoLibrary,
MdDescription,
MdCollectionsBookmark,
MdInsertDriveFile,
MdBorderBottom,
MdFileUpload
} from "react-icons/md";
import { FaCogs, FaWpforms } from "react-icons/fa";
export default () =>
S.list()
.title("WMPCA Admin")
.items([
S.listItem()
.title("Front Page and Menu")
.icon(MdHome)
.child(S.editor().title("Front Page and Menu").id("global-main").schemaType("main").documentId("global-main")),
S.listItem()
.title("Footer")
.icon(MdBorderBottom)
.child(S.editor().title("Footer").id("global-footer").schemaType("footer").documentId("global-footer")),
S.listItem().title("Blog Post").icon(MdAssignment).child(S.documentTypeList("blog_post").title("Blog Post")),
S.listItem().title("Pages").icon(MdInsertDriveFile).child(S.documentTypeList("page").title("Page")),
S.listItem().title("Newsletter").icon(MdDescription).child(S.documentTypeList("newsletter").title("Newsletter")),
S.listItem().title("Video").icon(MdVideoLibrary).child(S.documentTypeList("video").title("Video")),
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("Categories")
.icon(MdCollectionsBookmark)
.child(
S.list()
.title("Categories")
.items([
S.listItem().title("Author").child(S.documentTypeList("author").title("Author")),
S.listItem().title("Category").child(S.documentTypeList("category").title("Category")),
S.listItem().title("Speaker").child(S.documentTypeList("speaker").title("Speaker")),
S.listItem().title("Series").child(S.documentTypeList("videoseries").title("Video Series"))
])
),
S.listItem()
.title("Form Submissions")
.icon(FaWpforms)
.child(S.documentTypeList("submission").title("Form Submissions")),
S.listItem()
.title("File Uploads")
.icon(MdFileUpload)
.child(S.documentTypeList("fileUpload").title("File Uploads")),
S.divider(),
S.listItem()
.title("Config")
.icon(FaCogs)
.child(S.editor().title("Config").id("config").schemaType("config").documentId("global-config"))
]);