/
static_section.json
189 lines (188 loc) · 7.39 KB
/
static_section.json
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"title": "Static Section",
"$id": "/profiles/static_section.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["name"],
"additionalProperties": false,
"identifyingProperties": ["uuid", "name", "aliases"],
"mixinProperties": [
{ "$ref": "mixins.json#/schema_version" },
{ "$ref": "mixins.json#/uuid" },
{ "$ref": "mixins.json#/aliases" },
{ "$ref": "mixins.json#/submitted" },
{ "$ref": "mixins.json#/modified" },
{ "$ref": "user_content.json#/properties" }
],
"properties": {
"schema_version": {
"default": "2"
},
"body":{
"title": "Raw Body",
"type": "string",
"comment" : "There should be no 'file' if this is set.",
"description": "Plain html or text content of this section.",
"formInput": "code",
"lookup" : 6
},
"file": {
"title": "Source File Location",
"type": "string",
"comment" : "There should be no 'body' if this is set.",
"description": "Source file to use for populating content. Is superceded by contents of 'body', if one present.",
"lookup" : 7
},
"section_type": {
"title": "Section Type",
"type": "string",
"description": "What this section is used for. Defaults to 'Page Section'.",
"permission" : "import_items",
"default": "Page Section",
"enum" : [
"Page Section",
"Announcement",
"Search Info Header",
"Item Page Header",
"Home Page Slide"
],
"lookup" : 10
},
"options": {
"title": "Options",
"type": "object",
"description": "Options for section display.",
"properties" : {
"filetype" : {
"title" : "File Type",
"description": "What type of file or content is contained. If not set, HTML or format of file (if any) is used.",
"type" : "string",
"lookup" : 1,
"enum" : [ "md", "html", "txt", "csv", "jsx" , "rst"]
},
"convert_ext_links" : {
"title": "Convert External Links",
"type": "boolean",
"description": "For true, force external links to be opened in a new tab. Otherwise, leave it as is.",
"default": true
},
"initial_header_level": {
"title": "Initial Header Level",
"description": "The initial level for section header elements (H1 to H6, and only valid for RST content)",
"type": "number",
"minimum": 1,
"maximum": 6
},
"collapsible" : {
"title" : "Is Collapsible",
"type" : "boolean",
"description": "Whether this StaticSection should be collapsible (wherever collapsibility is an option). This property is ignored in some places, e.g. lists where all sections are explicitly collapsible.",
"lookup": 2,
"default" : false
},
"default_open" : {
"title" : "Is Expanded by Default",
"type" : "boolean",
"description": "Whether this StaticSection should appear as expanded by default (in places where it may be collapsible). Does not necessarily depend on 'collapsible' being true, e.g. in lists where all sections are explicitly collapsible.",
"lookup": 3,
"default": true
},
"title_icon" : {
"title" : "Title Icon",
"description": "Icon to be showed next to title in selected places.",
"type" : "string",
"lookup" : 5
},
"link" : {
"title" : "Link/URI",
"description": "Another link with which this resource is associated with or should redirect to.",
"type" : "string",
"lookup" : 6
},
"image" : {
"title" : "Preview Image",
"description": "Image or screenshot URL for this Item to use as a preview.",
"type" : "string",
"lookup" : 7
},
"startCell" : {
"type" : "array",
"title" : "(CSV) First Table Cell",
"description" : "For filetype:csv, from which [row integer, column integer] to start parsing table.",
"lookup" : 20,
"items" : {
"type" : "integer"
}
},
"yaxisCols" : {
"type" : "array",
"title" : "(CSV) Columns for Y-Axis",
"description" : "For filetype:csv, which columns (ints) should be used for Y-axis.",
"lookup" : 21,
"items" : {
"type" : "integer"
}
},
"yaxisTitle" : {
"type" : "string",
"title" : "(CSV) Title for Y-Axis",
"lookup" : 22
},
"xaxisRows" : {
"type" : "array",
"title" : "(CSV) Rows for X-Axis",
"description" : "For filetype:csv, which rows (ints) should be used for X-Axis.",
"lookup" : 23,
"items" : {
"type" : "integer"
}
},
"xaxisTitle" : {
"type" : "string",
"title" : "(CSV) Title for X-Axis",
"lookup" : 24
},
"titleCell" : {
"type" : "array",
"title" : "(CSV) Title Cell",
"description" : "For filetype:csv, which table cell [row int, column int] to use to grab title of section/table.",
"lookup" : 25,
"items" : {
"type" : "integer"
}
},
"skipRows" : {
"type" : "array",
"title" : "(CSV) Rows Skipped",
"description" : "For filetype:csv, which table rows (ints) to skip in table (e.g. due to blank rows).",
"lookup" : 26,
"items" : {
"type" : "integer"
}
}
},
"lookup" : 25
}
},
"facets" : {
"section_type" : {
"title" : "Type"
},
"filetype" : {
"title" : "File Type"
}
},
"columns" : {
"name" : {
"title" : "Name / ID"
},
"section_type" : {
"title" : "Type"
},
"filetype" : {
"title" : "File Type",
"width" : 100
}
},
"excludedColumns" : ["lab.display_title"]
}