hermes-web-cli/wwwroot/sessions.ui

143 lines
3.6 KiB
XML

{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "20px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "Active Sessions",
"fontSize": "24px",
"fontWeight": "bold",
"color": "#F8FAFC",
"marginBottom": "20px"
}
},
{
"widgettype": "HBox",
"options": {
"width": "100%",
"marginBottom": "20px",
"alignItems": "center"
},
"subwidgets": [
{
"widgettype": "UiStr",
"id": "session-search",
"options": {
"name": "session-search",
"placeholder": "Search sessions...",
"width": "300px",
"icon": "fa fa-search"
}
},
{
"widgettype": "Filler"
},
{
"widgettype": "Button",
"options": {
"icon": "fa fa-plus",
"label": "New Session",
"bgcolor": "#22C55E",
"color": "#FFFFFF",
"border": "none",
"borderRadius": "6px",
"padding": "8px 16px"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.main-content",
"options": {
"url": "{{entire_url('new_session.ui')}}"
},
"mode": "replace"
}
]
}
]
},
{
"widgettype": "List",
"id": "sessions-list",
"options": {
"width": "100%",
"height": "calc(100% - 100px)",
"itemHeight": "80px",
"data_url": "/hermes-web-cli/sessions/list/"
},
"subwidgets": [
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "12px",
"border": "1px solid #334155",
"borderRadius": "8px",
"bgcolor": "#1E293B",
"cursor": "pointer"
},
"subwidgets": [
{
"widgettype": "HBox",
"options": {
"width": "100%",
"alignItems": "center"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "{{item.name}}",
"fontSize": "16px",
"fontWeight": "600",
"color": "#F8FAFC"
}
},
{
"widgettype": "Filler"
},
{
"widgettype": "Text",
"options": {
"text": "{{item.last_active}}",
"fontSize": "12px",
"color": "#94A3B8"
}
}
]
},
{
"widgettype": "Text",
"options": {
"text": "{{item.model}}",
"fontSize": "14px",
"color": "#CBD5E1",
"marginTop": "4px"
}
}
],
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.main-content",
"options": {
"url": "{{entire_url('session_detail.ui?id={{item.id}}')}}"
},
"mode": "replace"
}
]
}
]
}
]
}