2026-02-28 17:04:25 +04:00

651 lines
17 KiB
JSON

{
"custom": {},
"params": {},
"props": {
"defaultSize": {
"height": 1080,
"width": 70
}
},
"root": {
"children": [
{
"custom": {
"show": false
},
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tsystem.perspective.navigate(\"/\")"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Home",
"tooltip": {
"enabled": true,
"text": "Home"
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"props.style.classes": {
"binding": {
"config": {
"path": "session.props.theme"
},
"transforms": [
{
"code": "\tif \u0027dark\u0027 in value:\n\t\treturn \u0027Buttons/Button-Menu\u0027\n\telse:\n\t\treturn \u0027Buttons/Button-Menu\u0027",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FFFFFF",
"path": "material/home"
},
"position": "top",
"width": 32
},
"style": {
"margin": 1
},
"text": "Home",
"textStyle": {
"fontSize": 10
}
},
"type": "ia.input.button"
},
{
"custom": {
"show": false
},
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tsystem.perspective.navigate(\"/MAP-Home\")"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Overview",
"tooltip": {
"enabled": true,
"text": "Overview"
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"props.style.classes": {
"binding": {
"config": {
"path": "session.props.theme"
},
"transforms": [
{
"code": "\tif \u0027dark\u0027 in value:\n\t\treturn \u0027Buttons/Button-Menu\u0027\n\telse:\n\t\treturn \u0027Buttons/Button-Menu\u0027",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FFFFFF",
"path": "material/map"
},
"position": "top",
"width": 32
},
"style": {
"margin": 1
},
"text": "Overview",
"textStyle": {
"fontSize": 10
}
},
"type": "ia.input.button"
},
{
"custom": {
"show": false
},
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tsystem.perspective.closePopup(\"DevicePopUP\")\n\tsystem.perspective.closePopup(\"StatusPopUP\")\n\tself.custom.show \u003d False\n\tsystem.perspective.navigate(\"/Real-Time\")"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Alarms",
"tooltip": {
"enabled": true,
"text": "Alarms"
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"props.style.classes": {
"binding": {
"config": {
"path": "session.props.theme"
},
"transforms": [
{
"code": "\tif \u0027dark\u0027 in value:\n\t\treturn \u0027Buttons/Button-Menu\u0027\n\telse:\n\t\treturn \u0027Buttons/Button-Menu\u0027",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FFFFFF",
"path": "material/access_alarm"
},
"position": "top",
"width": 32
},
"style": {
"margin": 1
},
"text": "Alarms",
"textStyle": {
"classes": "Text-Styles/Docked-Buttons"
}
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\n\tsystem.perspective.openPopup(id \u003d \"Search\", view \u003d \"PopUp-Views/Search\", \n\t\t\t\t\t\t\t\t\t\t\t\tshowCloseIcon \u003d False, modal \u003d True,\n\t\t\t\t\t\t\t\t\t\t\t\tviewportBound \u003d True,\n\t\t\t\t\t\t\t\t\t\t\t\tdraggable \u003d False,\n\t\t\t\t\t\t\t\t\t\t\t\toverlayDismiss \u003d True\n\t\t\t\t\t\t\t\t\t\t\t\t)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "search",
"tooltip": {
"enabled": true,
"text": "Search"
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"props.style.classes": {
"binding": {
"config": {
"path": "session.props.theme"
},
"transforms": [
{
"code": "\tif \u0027dark\u0027 in value:\n\t\treturn \u0027Buttons/Button-Menu\u0027\n\telse:\n\t\treturn \u0027Buttons/Button-Menu\u0027",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FFFFFF",
"path": "material/search"
},
"position": "top",
"width": 32
},
"style": {
"margin": 1
},
"text": "Search",
"textStyle": {
"classes": "Text-Styles/Docked-Buttons"
}
},
"type": "ia.input.button"
},
{
"custom": {
"show": false
},
"events": {
"component": {
"onActionPerformed": {
"config": {
"draggable": false,
"id": "IL8RVZ5T",
"modal": true,
"overlayDismiss": true,
"position": {
"relativeLocation": "top-right"
},
"positionType": "relative",
"resizable": false,
"showCloseIcon": false,
"type": "open",
"viewParams": {
"viewFocus": "{session.custom.view_in_focus}"
},
"viewPath": "PopUp-Views/Detail-View-Filter",
"viewportBound": true
},
"scope": "C",
"type": "popup"
}
}
},
"meta": {
"name": "Filter",
"tooltip": {
"enabled": true
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"custom.filters_active": {
"binding": {
"config": {
"expression": "if(!{session.custom.devices_filter.show_pes} ||\r\n!{session.custom.devices_filter.show_gateways} ||\r\n!{session.custom.devices_filter.show_inductions} ||\r\n!{session.custom.devices_filter.show_fio} ||\r\n!{session.custom.devices_filter.show_camera_jams} ||\r\n!{session.custom.devices_filter.show_pes} ||\r\n!{session.custom.devices_filter.show_safety}, \r\nTrue,\r\nFalse)\r\n"
},
"type": "expr"
}
},
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if({this.custom.filters_active}, \"Status Filters are active\",\r\n\"Select Status Filters\")"
},
"type": "expr"
}
},
"props.image.icon.color": {
"binding": {
"config": {
"expression": "if({this.custom.filters_active},\r\n\"#FF8C00\",\r\n\"#FFFFFF\")\r\n"
},
"type": "expr"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"path": "material/filter_alt",
"style": {
"classes": ""
}
},
"position": "top",
"width": 32
},
"style": {
"classes": "Buttons/Button-Menu, filter-button",
"margin": 1
},
"text": "Filter",
"textStyle": {
"classes": "Text-Styles/Docked-Buttons"
}
},
"type": "ia.input.button"
},
{
"custom": {
"has_role": false
},
"events": {
"component": {
"onActionPerformed": {
"config": {
"page": "/Command"
},
"scope": "C",
"type": "nav"
}
}
},
"meta": {
"name": "Control",
"tooltip": {
"enabled": true,
"text": "Control"
}
},
"position": {
"basis": "70px"
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FFFFFF",
"path": "material/gamepad"
},
"position": "top",
"width": 32
},
"style": {
"classes": "Buttons/Button-Menu",
"margin": 1
},
"text": "Control",
"textStyle": {
"classes": "Text-Styles/Docked-Buttons"
}
},
"type": "ia.input.button"
},
{
"custom": {
"show": false
},
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tsystem.perspective.navigate(\"/Windows/Statistics\")\n\tquery2 \u003d \"\"\"\n\tCREATE TABLE IF NOT EXISTS dumper_cycles (\n\t id INT AUTO_INCREMENT PRIMARY KEY,\n\t t_stamp DATETIME NOT NULL,\n\t ulgl1 TINYINT(1) DEFAULT 0,\n\t ulgl2 TINYINT(1) DEFAULT 0,\n\t ulgl3 TINYINT(1) DEFAULT 0,\n\t ulgl4 TINYINT(1) DEFAULT 0\n\t);\n\t\"\"\"\n\tsystem.db.runUpdateQuery(query2, \"MariaDB\")\n\t"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Statistics",
"tooltip": {
"enabled": true,
"text": "Statistics"
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"position.display": {
"binding": {
"config": {
"expression": "if(isNull({session.custom.download_url}), False, True)"
},
"enabled": false,
"type": "expr"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FCFFFC",
"path": "material/leaderboard"
},
"position": "top",
"width": 32
},
"style": {
"classes": "Buttons/Button-Menu",
"color": "#FFFFFF",
"margin": 1
},
"text": "Statistics",
"textStyle": {
"classes": "Text-Styles/Docked-Buttons"
}
},
"type": "ia.input.button"
},
{
"custom": {
"show": false
},
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tsystem.perspective.navigate(\"/Windows/Status\")\n\tself.session.custom.show_dpm_view \u003d False\n\tself.session.custom.show_dpm_device_view \u003d False"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Status",
"tooltip": {
"enabled": true,
"text": "Status"
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"position.display": {
"binding": {
"config": {
"expression": ""
},
"enabled": false,
"type": "expr"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FFFFFD",
"path": "material/done"
},
"position": "top",
"width": 32
},
"style": {
"classes": "Buttons/Button-Menu",
"color": "#FFFFFF",
"margin": 1
},
"text": "Status",
"textStyle": {
"classes": "Text-Styles/Docked-Buttons"
}
},
"type": "ia.input.button"
},
{
"custom": {
"show": false
},
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tsystem.perspective.closePopup(\"DevicePopUP\")\n\tsystem.perspective.closePopup(\"StatusPopUP\")\n\tself.custom.show \u003d False\n\tsystem.perspective.navigate(\"/Help\")"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Help",
"tooltip": {
"enabled": true,
"text": "Navigate to the help wiki"
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"props.style.classes": {
"binding": {
"config": {
"path": "session.props.theme"
},
"transforms": [
{
"code": "\tif \u0027dark\u0027 in value:\n\t\treturn \u0027Buttons/Button-Menu\u0027\n\telse:\n\t\treturn \u0027Buttons/Button-Menu\u0027",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FFFFFF",
"path": "material/help_outline"
},
"position": "top",
"width": 32
},
"style": {
"margin": 1
},
"text": "Help",
"textStyle": {
"classes": "Text-Styles/Docked-Buttons"
}
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tsystem.perspective.navigateBack()"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Back",
"tooltip": {
"enabled": true,
"text": "Back"
}
},
"position": {
"basis": "70px"
},
"propConfig": {
"props.style.classes": {
"binding": {
"config": {
"path": "session.props.theme"
},
"transforms": [
{
"code": "\tif \u0027dark\u0027 in value:\n\t\treturn \u0027Buttons/Button-Menu\u0027\n\telse:\n\t\treturn \u0027Buttons/Button-Menu\u0027",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"image": {
"height": 32,
"icon": {
"color": "#FFFFFF",
"path": "material/keyboard_return"
},
"position": "top",
"width": 32
},
"style": {
"margin": 1
},
"text": "Back",
"textStyle": {
"fontSize": 10
}
},
"type": "ia.input.button"
}
],
"custom": {
"show_home_selector": false
},
"meta": {
"name": "root"
},
"propConfig": {
"props.style.classes": {
"binding": {
"config": {
"path": "session.props.theme"
},
"transforms": [
{
"code": "\tif \u0027dark\u0027 in value:\n\t\treturn \u0027Buttons/Button-Menu\u0027\n\telse:\n\t\treturn \u0027Buttons/Button-Menu\u0027",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"direction": "column",
"style": {}
},
"type": "ia.container.flex"
}
}