System web application composition
Location path
| Path in the build directory |
|---|
|
Overview
Descriptor of system web applications available in the domain after authorization.
The applications themselves are part of the distribution and are located in /era_ws/priv/www/… – either built together with the "Incoplax" system or supplied externally at the build stage.
Applications are displayed on the start screen (root application) for users after authorization. Each specific web application is displayed and available to users having at least one of the roles listed in the web application role list in this file.
Also available for the master domain (/era_env/priv/sys_metadata/master/webapps.json).
[
{
"name": str,
"description": str,
"order": int,
"fa-icon": str,
"icon": "str,
"roles": array<str>,
"url": str
},
...
]
-
name– displayed name. -
description– displayed short description. -
order– order in the application list. -
fa-icon– default icon from the font-awesome collection (if there is no 'icon' field or the resource at that field cannot be obtained). -
icon– icon URL (png or svg). -
roles– list of roles to which the web application is available. -
url– relative application URL.
Example
Declares two system applications that will be available to users with the specified roles in domains of this type. Besides them, only role applications will be available to users.
[
{
"name": "Objects",
"description": "Management of domain objects and their settings",
"order": 20,
"fa-icon": "fa-paw",
"icon": "/main_icons/objects.svg",
"roles": ["admin"],
"url": "/objects/"
},
{
"name": "Scripts",
"description": "Script design",
"order": 50,
"fa-icon": "fa-pencil-square-o",
"icon": "/main_icons/scripteditor.svg",
"roles": ["admin", "scripteditor"]
"url": "/scripteditor/"
}
]