288 lines
7.4 KiB
XML
288 lines
7.4 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"css": ""
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"css": "ios-navbar",
|
|
"width": "100%",
|
|
"height": "auto",
|
|
"spacing": 8,
|
|
"padding": "8px 16px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"spacing": 2
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "Hermes Agent",
|
|
"css": "ios-navbar-title"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "Agent Dashboard",
|
|
"css": "ios-navbar-subtitle"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "${current_user_id}$",
|
|
"id": "current_user_display",
|
|
"css": "ios-navbar-subtitle",
|
|
"width": "auto"
|
|
}
|
|
}
|
|
],
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "loaded",
|
|
"actiontype": "registerfunction",
|
|
"rfname": "hermes_get_current_user",
|
|
"target": "current_user_display",
|
|
"method": "set_text",
|
|
"params": {"key": "user_id"}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"css": "ios-stat-card",
|
|
"width": "calc(100% - 32px)",
|
|
"height": "auto",
|
|
"margin": "12px 16px",
|
|
"padding": "20px",
|
|
"spacing": 4
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"spacing": 16
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "50%",
|
|
"spacing": 2
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "Status",
|
|
"css": "ios-stat-label"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "Active",
|
|
"css": "ios-stat-value"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "50%",
|
|
"spacing": 2
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "Skills",
|
|
"css": "ios-stat-label"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "${skills_count}$",
|
|
"css": "ios-stat-value"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"spacing": 16,
|
|
"margin-top": "8px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "50%",
|
|
"spacing": 2
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "Tasks",
|
|
"css": "ios-stat-label"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "${tasks_count}$",
|
|
"css": "ios-stat-value"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "50%",
|
|
"spacing": 2
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "Sessions",
|
|
"css": "ios-stat-label"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Label",
|
|
"options": {
|
|
"text": "${sessions_count}$",
|
|
"css": "ios-stat-value"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"css": "ios-scroll-area",
|
|
"width": "100%",
|
|
"height": "100%"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "TabPanel",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"tab_pos": "bottom",
|
|
"css": "ios-tabbar",
|
|
"items": [
|
|
{
|
|
"name": "memory",
|
|
"label": "Memory",
|
|
"icon": "memory",
|
|
"content": {
|
|
"widgettype": "urlwidget",
|
|
"options": {
|
|
"url": "{{entire_url('memory.ui')}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "skills",
|
|
"label": "Skills",
|
|
"icon": "code",
|
|
"content": {
|
|
"widgettype": "urlwidget",
|
|
"options": {
|
|
"url": "{{entire_url('skills.ui')}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "remote_skills",
|
|
"label": "Remote Skills",
|
|
"icon": "cloud",
|
|
"content": {
|
|
"widgettype": "urlwidget",
|
|
"options": {
|
|
"url": "{{entire_url('remote_skills.ui')}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "workflows",
|
|
"label": "Workflows",
|
|
"icon": "workflow",
|
|
"content": {
|
|
"widgettype": "urlwidget",
|
|
"options": {
|
|
"url": "{{entire_url('workflows.ui')}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "tasks",
|
|
"label": "Tasks",
|
|
"icon": "tasks",
|
|
"content": {
|
|
"widgettype": "urlwidget",
|
|
"options": {
|
|
"url": "{{entire_url('tasks.ui')}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "sessions",
|
|
"label": "Sessions",
|
|
"icon": "history",
|
|
"content": {
|
|
"widgettype": "urlwidget",
|
|
"options": {
|
|
"url": "{{entire_url('sessions.ui')}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "settings",
|
|
"label": "Settings",
|
|
"icon": "settings",
|
|
"content": {
|
|
"widgettype": "urlwidget",
|
|
"options": {
|
|
"url": "{{entire_url('agent_config.ui')}}"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|