Files
Stream_PHX_A7/Gateways/FE/projects/.resources/ef112a1f5e4b4a121810302369905f4fb96343363cf2914a42c424d008a6dc92

336 lines
10 KiB
Plaintext

{
"custom": {},
"params": {},
"permissions": {
"securityLevels": [
{
"children": [],
"name": "Authenticated"
}
],
"type": "AllOf"
},
"props": {},
"root": {
"children": [
{
"children": [
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "58px"
},
"props": {
"text": "Configure your user preferences here:"
},
"type": "ia.display.label"
},
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "45%"
},
"props": {
"text": "Homepage"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Dropdown"
},
"position": {
"basis": "256px"
},
"propConfig": {
"props.value": {
"binding": {
"config": {
"path": "session.custom.user_settings.Homepage"
},
"type": "property"
}
}
},
"props": {
"options": [
{
"label": "A101 Building Overview",
"value": "Pages/Dev/A_Building/L1/A101 Building Overview"
},
{
"label": "B101 Chillers Dashboards",
"value": "Pages/Dev/B_Mechanical/L1/B101 ChillersDashboard"
},
{
"label": "B102 Mech Layout",
"value": "Pages/Dev/B_Mechanical/L1/B102 Mech Layout"
},
{
"label": "B201 CHW Pumps",
"value": "Pages/Dev/B_Mechanical/L2/B201 CHW Pumps"
},
{
"label": "B202 Chillers",
"value": "Pages/Dev/B_Mechanical/L2/B202 Chillers"
},
{
"label": "B203 Mechanical Overview",
"value": "Pages/Dev/B_Mechanical/L2/B203 Mech Overview"
},
{
"label": "C101 Overview",
"value": "Pages/Dev/C_AirSystem/L1/C101 Overview"
},
{
"label": "C102 Air Layout",
"value": "Pages/Dev/C_AirSystem/L1/C102 Layout"
},
{
"label": "C201 DH01",
"value": "Pages/Dev/C_AirSystem/L2/C201 DH01"
},
{
"label": "C202 DH02",
"value": "Pages/Dev/C_AirSystem/L2/C202 DH02"
},
{
"label": "C203 DH03",
"value": "Pages/Dev/C_AirSystem/L2/C203 DH03"
},
{
"label": "C204 DH204",
"value": "Pages/Dev/C_AirSystem/L2/C204 DH04"
},
{
"label": "C205 DH205",
"value": "Pages/Dev/C_AirSystem/L2/C205 DH05"
},
{
"label": "D101 Electrical Overview",
"value": "Pages/Dev/D_Electrical/L1/D101 Overview"
},
{
"label": "D102 Electrical Layout",
"value": "Pages/Dev/D_Electrical/L1/D102 Layout"
},
{
"label": "D103 Electrical Oneline",
"value": "Pages/Dev/D_Electrical/L1/D103 L1 Oneline"
}
],
"style": {
"marginBottom": "5px",
"marginTop": "5px"
}
},
"type": "ia.input.dropdown"
}
],
"meta": {
"name": "HomePage"
},
"position": {
"basis": "34px"
},
"props": {
"style": {
"overflow": "visible"
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "45%"
},
"props": {
"text": "Theme"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "RadioGroup"
},
"position": {
"basis": "214.5px"
},
"propConfig": {
"props.value": {
"binding": {
"config": {
"path": "session.custom.user_settings.Theme"
},
"type": "property"
}
}
},
"props": {
"radios": [
{
"selected": true,
"text": "Light",
"value": "stream-light"
},
{
"selected": false,
"text": "Dark",
"value": "stream-dark"
}
]
},
"type": "ia.input.radio-group"
}
],
"meta": {
"name": "Light-Dark"
},
"position": {
"basis": "37px"
},
"type": "ia.container.flex"
},
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "45%"
},
"props": {
"text": "Layout"
},
"type": "ia.display.label"
}
],
"meta": {
"name": "Layout"
},
"position": {
"basis": "37px"
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "325px",
"shrink": 0
},
"props": {
"direction": "column",
"style": {
"gap": "10px"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "Settings"
},
"position": {
"basis": "682px"
},
"type": "ia.container.flex"
},
{
"children": [
{
"events": {
"dom": {
"onClick": {
"config": {
"script": "\thomepage \u003d self.parent.parent.getChild(\"Settings\").getChild(\"FlexContainer\").getChild(\"HomePage\").getChild(\"Dropdown\").props.value\n\ttheme \u003d self.parent.parent.getChild(\"Settings\").getChild(\"FlexContainer\").getChild(\"Light-Dark\").getChild(\"RadioGroup\").props.value\n\tusername \u003d self.session.props.auth.user.userName\n\t\n\tutils.admin.user.saveAllSettings(homepage, theme, username)\n\t\n\tself.session.refreshBinding(\"custom.user_settings\")\n\tsystem.perspective.navigate(\"/\")"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Save"
},
"position": {
"basis": "157px"
},
"props": {
"text": "Save"
},
"type": "ia.input.button"
}
],
"meta": {
"name": "LastRow"
},
"position": {
"basis": "44px"
},
"props": {
"justify": "flex-end"
},
"type": "ia.container.flex"
}
],
"meta": {
"contextMenu": {
"enabled": true,
"items": [
{
"children": [],
"icon": {
"color": "",
"path": "",
"style": {}
},
"link": {
"target": "self",
"url": ""
},
"message": {
"payload": {},
"scope": "page",
"type": ""
},
"method": {
"name": "setHomepage",
"params": {}
},
"style": {
"classes": ""
},
"text": "Set Homepage",
"type": "method"
}
]
},
"name": "root"
},
"props": {
"direction": "column",
"style": {
"gap": "5px",
"padding": "10px"
}
},
"type": "ia.container.flex"
}
}