-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-upload.json
91 lines (86 loc) · 1.53 KB
/
example-upload.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
{
"application": {
"collections": [
{
"name": "files",
"type": "file_collection",
"storage_adapters": ["gridfs"]
},
{
"name": "gallery",
"type": "collection",
"fields": [
{
"name": "title",
"title": "Title",
"required": true
},
{
"name": "fileId",
"title": "File",
"input": "file",
"file_collection": "files",
"file_container": "file"
}
]
}
],
"queries": [
{
"name": "gallery",
"collection": "gallery",
"filter": {},
"options": {}
},
{
"name": "gallery_empty",
"collection": "gallery",
"filter": { "_id": null },
"options": {},
"find_one": true
}
],
"free_zone": {
"pages": [
{
"name": "home",
"components": [
{
"name": "gallery",
"title": "Example Gallery",
"type": "custom_component",
"custom_template": "files/gallery",
"query_name": "gallery"
}
],
"pages": [
{
"name": "insert",
"components": [
{
"name": "form",
"title": "Add new file",
"type": "form",
"mode": "insert",
"query_name": "gallery_empty",
"submit_route": "home",
"cancel_route": "home"
}
]
}
]
}
],
"components": [
{
"name": "main_menu",
"type": "menu",
"class": "nav navbar-nav",
"items": [
{ "title": "Example gallery", "route": "home", "icon_class": "fa fa-home" }
]
}
]
}
}
}