-
Notifications
You must be signed in to change notification settings - Fork 9
/
w20-core.w20.json
276 lines (271 loc) · 11.4 KB
/
w20-core.w20.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
{
"id": "w20-core",
"name": "W20 core",
"description": "W20 core modules",
"modules": {
"application": {
"path": "{w20-core}/modules/application",
"configSchema": {
"title": "Application module configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "The application unique identifier",
"type": "string",
"required": true,
"title": "Application identifier"
},
"home": {
"description": "The path of the home view",
"type": "string",
"title": "Home view path"
},
"blank": {
"description": "The path of the blank view",
"type": "string",
"title": "Blank view path"
},
"notFound": {
"description": "The path of the 'view not found' view",
"type": "string",
"title": "Missing view path"
},
"redirectAfterRouteError": {
"description": "Specify the path to go to after a route change error",
"type": "string",
"title": "Route error redirection"
},
"defaultSandboxPermissions": {
"description": "Specify the default iframe-based sandbox permissions (can be overridden by the sandboxPermissions attribute on a specific route)",
"type": "string",
"title": "Default sandbox permissions"
},
"defaultSandboxId": {
"description": "Specify the default identifier for the sandbox iframe",
"type": "string",
"title": "Default sandbox id"
},
"prettyUrls": {
"description": "Enable AngularJS HTML5 mode to prettify URLs (needs server-side support)",
"type": "boolean",
"title": "Pretty URLs"
}
}
}
},
"culture": {
"path": "{w20-core}/modules/culture",
"configSchema": {
"title": "Culture module configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"available": {
"description": "The IETF codes of available culture(s)",
"type": "array",
"items": {
"type": "string"
}
},
"default": {
"description": "The IETF code of the default culture",
"type": "string"
},
"translationFallback": {
"description": "If true, i18n keys that are not resolved in active culture will be resolved in the default one",
"type": "boolean"
}
}
}
},
"env": {
"path": "{w20-core}/modules/env",
"configSchema": {
"title": "Environment module configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"description": "The name of the environment (dev, test, preprod, prod are recognized as special values)",
"type": "string"
}
}
}
},
"security": {
"path": "{w20-core}/modules/security",
"configSchema": {
"title": "Security module configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"autoLogin": {
"description": "Specify if application should attempt a login on startup",
"type": "boolean"
},
"redirectAfterLogout": {
"description": "The path to go to after logout",
"type": "string"
},
"redirectAfterLogin": {
"description": "The path to go to after login",
"type": "string"
},
"roleMapping": {
"description": "Allow to map roles from multiple realms to one UI virtual role.",
"type": "object"
},
"persistentRestrictions": {
"description": "If true, security restrictions state will be persisted to local storage.",
"type": "boolean"
}
}
}
},
"utils": {
"path": "{w20-core}/modules/utils",
"configSchema": {
"title": "Utils module configuration",
"type": "object",
"additionalProperties": false
}
},
"hypermedia": {
"path": "{w20-core}/modules/hypermedia",
"configSchema": {
"title": "Hypermedia module configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"api": {
"description": "Specify hypermedia api(s) entry point (exposed as json-home document)",
"type": "object"
},
"linksKey": {
"description": "Specify the links key of the resources (defaults to '_links')",
"type": "string"
},
"linksHrefKey": {
"description": "Specify the links href key of the resources (defaults to 'href')",
"type": "string"
},
"linksSelfLinkName": {
"description": "Specify the self reference key of the resources (defaults to 'self')",
"type": "string"
},
"embeddedKey": {
"description": "Specify the embedded key of the resources (defaults to '_embedded')",
"type": "string"
},
"embeddedNewKey": {
"description": "Specify the key used for accessing embedded items of the resources (defaults to '$embedded')",
"type": "string"
},
"linksNewKey": {
"description": "Specify the key used for accessing the links of resources (defaults to '$links')",
"type": "string"
},
"metadata": {
"description": "Specify the key used for accessing additional metadata when retrieving a collection (defaults to '$metadata')",
"type": "string"
}
}
}
},
"notifications" : {
"path" : "{w20-core}/modules/notifications",
"configSchema": {
"title": "Notifications module configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"disableNotifications": {
"description": "Disable the built-in notifications (like login, logout, or page access error)",
"type": "boolean"
},
"position": {
"description": "Specify the screen position of notifications (bottom-left, bottom-right, top-right, top-left)",
"type": "string"
},
"limit": {
"description": "Specify the maximum number of notifications displayed simultaneously",
"type": "integer"
},
"options": {
"description": "Specify the default options for each level of notification",
"type": "object"
}
}
}
},
"ui" : {
"path" : "{w20-core}/modules/ui",
"autoload" : true,
"configSchema": {
"title": "UI module configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"expandedRouteCategories": {
"description": "Array of initially expanded route categories",
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"requireConfig": {
"map": {
"*": {
"[text]": "{requirejs-text}/text",
"[css]": "{require-css}/css",
"[optional]": "{w20-core}/modules/optional"
}
},
"paths": {
"{lodash}": "${components-path:node_modules}/lodash",
"{globalize}": "${components-path:node_modules}/globalize/lib",
"{angular}": "${components-path:node_modules}/angular",
"{angular-resource}": "${components-path:node_modules}/angular-resource",
"{angular-route}": "${components-path:node_modules}/angular-route",
"{angular-sanitize}": "${components-path:node_modules}/angular-sanitize",
"{tv4}": "${components-path:node_modules}/tv4",
"{requirejs-text}": "${components-path:node_modules}/requirejs-text",
"{requirejs}": "${components-path:node_modules}/requirejs",
"{require-css}": "${components-path:node_modules}/require-css",
"uri-templates": "${components-path:node_modules}/uri-templates/uri-templates",
"jquery": "${components-path:node_modules}/jquery/dist/jquery",
"{jgrowl}": "${components-path:node_modules}/jgrowl",
"w20": "empty:"
},
"shim": {
"{angular-resource}/angular-resource": [ "{angular}/angular" ],
"{angular-route}/angular-route": [ "{angular}/angular" ],
"{angular-sanitize}/angular-sanitize": [ "{angular}/angular" ],
"{angular}/angular": {
"deps": [ "jquery" ],
"exports": "angular"
},
"{lodash}/lodash": {
"exports": "_"
},
"{globalize}/globalize": {
"exports": "Globalize"
},
"{tv4}/tv4": {
"exports": "tv4"
},
"{jgrowl}/jquery.jgrowl":[
"jquery"
]
}
},
"i18n": {
"en" : [ "{w20-core}/i18n/messages-en.json" ],
"fr" : [ "{w20-core}/i18n/messages-fr.json" ]
}
}