fix: Remove examples directory from hermes-web-cli module

- examples/ directory belongs to bricks-framework skill as documentation
- hermes-web-cli module should only contain module-specific files
This commit is contained in:
yumoqing 2026-04-21 14:11:47 +08:00
parent 5dd8bbfc8f
commit b5b150f059
68 changed files with 0 additions and 1134 deletions

View File

@ -1,25 +0,0 @@
{
"widgettype": "Accordion",
"options": {
"items": [
{
"title": "面板1",
"content": {
"widgettype": "Text",
"options": {
"text": "这是面板1的内容"
}
}
},
{
"title": "面板2",
"content": {
"widgettype": "Text",
"options": {
"text": "这是面板2的内容"
}
}
}
]
}
}

View File

@ -1,16 +0,0 @@
{
"widgettype": "Button",
"options": {
"text": "点击按钮",
"width": "200px",
"height": "50px"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "script",
"script": "alert('按钮被点击了!'); console.log('Button clicked');"
}
]
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "Camera",
"options": {
"width": "400px",
"height": "300px"
}
}

View File

@ -1,16 +0,0 @@
{
"widgettype": "ChartBar",
"options": {
"data": {
"labels": ["一月", "二月", "三月", "四月"],
"datasets": [
{
"label": "销售额",
"data": [12, 19, 3, 5]
}
]
},
"width": "400px",
"height": "300px"
}
}

View File

@ -1,12 +0,0 @@
{
"widgettype": "ChartHeatmap",
"options": {
"data": {
"x_labels": ["A", "B", "C"],
"y_labels": ["1", "2", "3"],
"values": [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
},
"width": "400px",
"height": "300px"
}
}

View File

@ -1,10 +0,0 @@
{
"widgettype": "ChartKLine",
"options": {
"data": [
{"time": "2026-04-21", "open": 100, "high": 110, "low": 95, "close": 105}
],
"width": "400px",
"height": "300px"
}
}

View File

@ -1,16 +0,0 @@
{
"widgettype": "ChartLine",
"options": {
"data": {
"labels": ["1月", "2月", "3月", "4月"],
"datasets": [
{
"label": "用户增长",
"data": [10, 25, 30, 45]
}
]
},
"width": "400px",
"height": "300px"
}
}

View File

@ -1,13 +0,0 @@
{
"widgettype": "ChartMap",
"options": {
"geo_data": "china",
"data": {
"北京": 100,
"上海": 85,
"广州": 70
},
"width": "500px",
"height": "400px"
}
}

View File

@ -1,11 +0,0 @@
{
"widgettype": "ChartPie",
"options": {
"data": {
"labels": ["类别A", "类别B", "类别C"],
"values": [30, 50, 20]
},
"width": "400px",
"height": "300px"
}
}

View File

@ -1,11 +0,0 @@
{
"widgettype": "ChartRadar",
"options": {
"data": {
"labels": ["速度", "力量", "敏捷", "智力", "耐力"],
"values": [80, 60, 75, 90, 70]
},
"width": "400px",
"height": "400px"
}
}

View File

@ -1,15 +0,0 @@
{
"widgettype": "ChartScatter",
"options": {
"data": {
"datasets": [
{
"label": "数据点",
"data": [{"x": 10, "y": 20}, {"x": 15, "y": 25}, {"x": 20, "y": 30}]
}
]
},
"width": "400px",
"height": "300px"
}
}

View File

@ -1,25 +0,0 @@
{
"widgettype": "Cols",
"options": {
"columns": [
{
"width": "30%",
"content": {
"widgettype": "Text",
"options": {
"text": "左侧列"
}
}
},
{
"width": "70%",
"content": {
"widgettype": "Text",
"options": {
"text": "右侧列"
}
}
}
]
}
}

View File

@ -1,91 +0,0 @@
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "HBox",
"options": {
"height": "60px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "顶部导航栏",
"fontSize": "20px"
}
},
{
"widgettype": "Filler"
},
{
"widgettype": "Button",
"options": {
"text": "设置"
}
}
]
},
{
"widgettype": "Filler",
"subwidgets": [
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "主要内容区域",
"fontSize": "18px"
}
},
{
"widgettype": "Form",
"options": {
"fields": [
{
"name": "message",
"label": "消息",
"uitype": "text"
}
]
}
}
]
}
]
},
{
"widgettype": "HBox",
"options": {
"height": "40px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "状态栏",
"fontSize": "12px"
}
},
{
"widgettype": "Filler"
},
{
"widgettype": "Text",
"options": {
"text": "就绪",
"fontSize": "12px"
}
}
]
}
]
}

View File

@ -1,9 +0,0 @@
{
"widgettype": "Conform",
"options": {
"title": "确认对话框",
"message": "您确定要执行此操作吗?",
"ok_text": "确定",
"cancel_text": "取消"
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "Countdown",
"options": {
"total_seconds": 60,
"format": "剩余 {minutes}:{seconds}"
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "DOCXviewer",
"options": {
"src": "/static/sample.docx",
"width": "600px",
"height": "400px"
}
}

View File

@ -1,31 +0,0 @@
{
"widgettype": "DataViewer",
"options": {
"data_url": "/api/sample-data",
"page_rows": 10,
"row_options": {
"fields": [
{
"name": "id",
"label": "ID",
"uitype": "int"
},
{
"name": "name",
"label": "名称",
"uitype": "str"
},
{
"name": "email",
"label": "邮箱",
"uitype": "email"
}
]
},
"editable": {
"add_icon": "fa fa-plus",
"update_icon": "fa fa-edit",
"delete_icon": "fa fa-trash"
}
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "DeletableLabel",
"options": {
"text": "可删除标签",
"on_delete": "handleDelete"
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "EXCELviewer",
"options": {
"src": "/static/sample.xlsx",
"width": "600px",
"height": "400px"
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "Error",
"options": {
"text": "发生了一个错误!",
"duration": 5000
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "Filler",
"options": {
"width": "100%",
"height": "50px",
"backgroundColor": "#f0f0f0"
}
}

View File

@ -1,16 +0,0 @@
{
"widgettype": "FloatIconBar",
"options": {
"items": [
{
"icon": "fa fa-bell",
"tooltip": "通知"
},
{
"icon": "fa fa-envelope",
"tooltip": "消息"
}
],
"position": "bottom-right"
}
}

View File

@ -1,18 +0,0 @@
{
"widgettype": "FloatIconTextBar",
"options": {
"items": [
{
"icon": "fa fa-save",
"text": "保存",
"name": "save"
},
{
"icon": "fa fa-print",
"text": "打印",
"name": "print"
}
],
"position": "top-right"
}
}

View File

@ -1,30 +0,0 @@
{
"widgettype": "Form",
"options": {
"title": "表单示例",
"fields": [
{
"name": "username",
"label": "用户名",
"uitype": "str",
"required": true
},
{
"name": "email",
"label": "邮箱",
"uitype": "email",
"required": true
},
{
"name": "age",
"label": "年龄",
"uitype": "int"
},
{
"name": "active",
"label": "激活状态",
"uitype": "check"
}
]
}
}

View File

@ -1,31 +0,0 @@
{
"widgettype": "HBox",
"options": {
"width": "100%",
"height": "100px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "HBox水平布局: ",
"fontSize": "18px"
}
},
{
"widgettype": "Button",
"options": {
"text": "按钮1"
}
},
{
"widgettype": "Button",
"options": {
"text": "按钮2"
}
},
{
"widgettype": "Filler"
}
]
}

View File

@ -1,16 +0,0 @@
{
"widgettype": "HScrollPanel",
"options": {
"width": "300px",
"height": "100px"
},
"subwidgets": [
{
"widgettype": "HBox",
"subwidgets": [
{"widgettype": "Text", "options": {"text": "水平滚动内容 - "}},
{"widgettype": "Text", "options": {"text": "水平滚动内容 - ".repeat(50)}}
]
}
]
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "Html",
"options": {
"html": "<h2>HTML内容</h2><p>这是嵌入的HTML内容</p>",
"width": "400px",
"height": "200px"
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "Icon",
"options": {
"icon": "fa fa-star",
"size": "24px",
"color": "#FFD700"
}
}

View File

@ -1,19 +0,0 @@
{
"widgettype": "IconBar",
"options": {
"items": [
{
"icon": "fa fa-home",
"tooltip": "首页"
},
{
"icon": "fa fa-user",
"tooltip": "用户"
},
{
"icon": "fa fa-cog",
"tooltip": "设置"
}
]
}
}

View File

@ -1,22 +0,0 @@
{
"widgettype": "IconTextBar",
"options": {
"items": [
{
"icon": "fa fa-plus",
"text": "新建",
"name": "add"
},
{
"icon": "fa fa-edit",
"text": "编辑",
"name": "edit"
},
{
"icon": "fa fa-trash",
"text": "删除",
"name": "delete"
}
]
}
}

View File

@ -1,19 +0,0 @@
{
"widgettype": "IconbarPage",
"options": {
"title": "图标页面",
"icon": "fa fa-dashboard",
"items": [
{
"icon": "fa fa-home",
"text": "首页",
"url": "home.ui"
},
{
"icon": "fa fa-user",
"text": "用户",
"url": "user.ui"
}
]
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "Iframe",
"options": {
"src": "https://example.com",
"width": "600px",
"height": "400px"
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "Image",
"options": {
"src": "/static/sample-image.png",
"width": "200px",
"height": "150px"
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "Input",
"options": {
"placeholder": "请输入文本...",
"width": "300px",
"height": "40px"
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "MdWidget",
"options": {
"markdown": "# 标题\n\n这是一个 **Markdown** 文档示例。\n\n- 列表项1\n- 列表项2",
"width": "400px",
"height": "300px"
}
}

View File

@ -1,22 +0,0 @@
{
"widgettype": "Menu",
"options": {
"items": [
{
"text": "文件",
"submenu": [
{"text": "新建", "action": "new"},
{"text": "打开", "action": "open"},
{"text": "保存", "action": "save"}
]
},
{
"text": "编辑",
"submenu": [
{"text": "复制", "action": "copy"},
{"text": "粘贴", "action": "paste"}
]
}
]
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "Message",
"options": {
"text": "这是一条普通消息",
"type": "info",
"duration": 3000
}
}

View File

@ -1,53 +0,0 @@
{
"widgettype": "Modal",
"options": {
"title": "模态框示例",
"width": "400px",
"height": "300px",
"auto_open": true
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "这是一个模态对话框",
"fontSize": "18px"
}
},
{
"widgettype": "Form",
"options": {
"fields": [
{
"name": "input",
"label": "输入内容",
"uitype": "str"
}
]
}
},
{
"widgettype": "HBox",
"subwidgets": [
{
"widgettype": "Filler"
},
{
"widgettype": "Button",
"options": {
"text": "确定"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "method",
"target": "-@Modal",
"method": "dismiss"
}
]
}
]
}
]
}

View File

@ -1,12 +0,0 @@
{
"widgettype": "MultipleStateImage",
"options": {
"states": {
"normal": "/static/normal.png",
"hover": "/static/hover.png",
"active": "/static/active.png"
},
"width": "100px",
"height": "100px"
}
}

View File

@ -1,9 +0,0 @@
{
"widgettype": "NewWindow",
"options": {
"url": "/static/external-page.html",
"width": "800px",
"height": "600px",
"title": "新窗口"
}
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "PDFviewer",
"options": {
"src": "/static/sample.pdf",
"width": "600px",
"height": "400px"
}
}

View File

@ -1,71 +0,0 @@
{
"widgettype": "Popup",
"options": {
"title": "弹出层示例",
"width": "400px",
"height": "300px",
"auto_open": true,
"modal": true,
"movable": true,
"resizable": false
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "这是一个 Popup 弹出层",
"fontSize": "18px"
}
},
{
"widgettype": "Form",
"options": {
"fields": [
{
"name": "message",
"label": "消息内容",
"uitype": "text"
}
]
}
},
{
"widgettype": "HBox",
"subwidgets": [
{
"widgettype": "Filler"
},
{
"widgettype": "Button",
"options": {
"text": "确定"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "method",
"target": "-@Popup",
"method": "dismiss"
}
]
},
{
"widgettype": "Button",
"options": {
"text": "取消"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "method",
"target": "-@Popup",
"method": "dismiss"
}
]
}
]
}
]
}

View File

@ -1,64 +0,0 @@
{
"widgettype": "PopupWindow",
"options": {
"title": "应用窗口示例",
"width": "600px",
"height": "400px",
"auto_open": true,
"movable": true,
"resizable": true,
"modal": false
},
"subwidgets": [
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "这是一个可拖拽、可调整大小的应用窗口",
"fontSize": "20px"
}
},
{
"widgettype": "TabPanel",
"options": {
"tab_pos": "top",
"items": [
{
"name": "tab1",
"label": "内容1",
"content": {
"widgettype": "Text",
"options": {
"text": "第一个标签页的内容"
}
}
},
{
"name": "tab2",
"label": "内容2",
"content": {
"widgettype": "Form",
"options": {
"fields": [
{
"name": "input1",
"label": "输入框",
"uitype": "str"
}
]
}
}
}
]
}
}
]
}
]
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "ProgressBar",
"options": {
"value": 75,
"max": 100,
"width": "300px"
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "QRCodeScan",
"options": {
"width": "300px",
"height": "300px"
}
}

View File

@ -1,29 +0,0 @@
{
"widgettype": "ResponsableBox",
"options": {
"width": "100%",
"height": "200px",
"title": "响应式布局示例"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "调整窗口大小查看布局变化",
"fontSize": "16px"
}
},
{
"widgettype": "Button",
"options": {
"text": "按钮1"
}
},
{
"widgettype": "Button",
"options": {
"text": "按钮2"
}
}
]
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "Running",
"options": {
"text": "正在处理...",
"width": "200px"
}
}

View File

@ -1,22 +0,0 @@
{
"widgettype": "Splitter",
"options": {
"orientation": "horizontal",
"width": "500px",
"height": "300px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "左侧面板"
}
},
{
"widgettype": "Text",
"options": {
"text": "右侧面板"
}
}
]
}

View File

@ -1,8 +0,0 @@
{
"widgettype": "Svg",
"options": {
"svg_content": "<svg width='200' height='200'><circle cx='100' cy='100' r='80' fill='red'/></svg>",
"width": "200px",
"height": "200px"
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "SysAudioRecorder",
"options": {
"width": "200px",
"height": "80px"
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "SysCamera",
"options": {
"width": "400px",
"height": "300px"
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "SysVideoRecorder",
"options": {
"width": "400px",
"height": "300px"
}
}

View File

@ -1,46 +0,0 @@
{
"widgettype": "TabPanel",
"options": {
"tab_pos": "top",
"items": [
{
"name": "tab1",
"label": "首页",
"content": {
"widgettype": "Text",
"options": {
"text": "欢迎来到首页!",
"fontSize": "20px"
}
}
},
{
"name": "tab2",
"label": "设置",
"content": {
"widgettype": "Form",
"options": {
"fields": [
{
"name": "setting1",
"label": "设置项1",
"uitype": "str"
}
]
}
}
},
{
"name": "tab3",
"label": "关于",
"content": {
"widgettype": "Text",
"options": {
"text": "这是关于页面",
"fontSize": "16px"
}
}
}
]
}
}

View File

@ -1,12 +0,0 @@
{
"widgettype": "Tabular",
"options": {
"headers": ["姓名", "年龄", "城市"],
"rows": [
["张三", "25", "北京"],
["李四", "30", "上海"],
["王五", "28", "广州"]
],
"width": "400px"
}
}

View File

@ -1,9 +0,0 @@
{
"widgettype": "Text",
"options": {
"text": "这是一个文本控件示例",
"fontSize": "20px",
"color": "#333333",
"fontWeight": "normal"
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "TimePassed",
"options": {
"start_time": "2026-04-21T12:00:00Z",
"format": "已运行 {days}天{hours}小时{minutes}分钟"
}
}

View File

@ -1,6 +0,0 @@
{
"widgettype": "Title1",
"options": {
"text": "一级标题"
}
}

View File

@ -1,6 +0,0 @@
{
"widgettype": "Title15",
"options": {
"text": "十五级标题"
}
}

View File

@ -1,6 +0,0 @@
{
"widgettype": "Title2",
"options": {
"text": "二级标题"
}
}

View File

@ -1,6 +0,0 @@
{
"widgettype": "Title3",
"options": {
"text": "三级标题"
}
}

View File

@ -1,6 +0,0 @@
{
"widgettype": "Title4",
"options": {
"text": "四级标题"
}
}

View File

@ -1,6 +0,0 @@
{
"widgettype": "Title6",
"options": {
"text": "六级标题"
}
}

View File

@ -1,29 +0,0 @@
{
"widgettype": "Tree",
"options": {
"idField": "id",
"textField": "name",
"data": [
{
"id": "1",
"name": "根节点",
"children": [
{
"id": "1-1",
"name": "子节点1"
},
{
"id": "1-2",
"name": "子节点2",
"children": [
{
"id": "1-2-1",
"name": "孙子节点"
}
]
}
]
}
]
}
}

View File

@ -1,36 +0,0 @@
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "这是一个 VBox 垂直布局示例",
"fontSize": "24px",
"fontWeight": "bold"
}
},
{
"widgettype": "Text",
"options": {
"text": "子控件会垂直排列",
"fontSize": "16px"
}
},
{
"widgettype": "Button",
"options": {
"text": "按钮1"
}
},
{
"widgettype": "Button",
"options": {
"text": "按钮2"
}
}
]
}

View File

@ -1,15 +0,0 @@
{
"widgettype": "VScrollPanel",
"options": {
"width": "300px",
"height": "200px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "垂直滚动内容\n".repeat(20)
}
}
]
}

View File

@ -1,9 +0,0 @@
{
"widgettype": "VideoPlayer",
"options": {
"src": "/static/sample-video.mp4",
"width": "400px",
"height": "300px",
"controls": true
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "WidgetRecorder",
"options": {
"width": "200px",
"height": "100px"
}
}

View File

@ -1,7 +0,0 @@
{
"widgettype": "Wterm",
"options": {
"width": "600px",
"height": "400px"
}
}