02b2cdaeec
Fix template variable references: Use quoted syntax '{{ 'widget-id'.data }}' to avoid Jinja2 UndefinedError with hyphenated widget IDs
2026-04-22 17:11:48 +08:00
e726abcddb
Refactor UI files to use registerfunction instead of inline script, following bricks-framework理念: minimize JS usage and use existing controls with auxiliary validation functions
2026-04-22 17:04:54 +08:00
c158573a39
fix: replace backgroundColor with bgcolor in all UI files and add missing scripts
...
- Replace all 'backgroundColor' properties with 'bgcolor' to comply with bricks-framework specification
- Add missing UI files: new_session.ui, sessions.ui, services.ui, settings.ui
- Create scripts/main.dspy with all required functions for UI interactions
- Fix layout using css: 'filler' for main-content to properly fill remaining width
- Ensure all referenced links have corresponding script implementations
2026-04-22 14:15:54 +08:00
ff3275429d
fix: 修正控件ID引用,动态加载的UI文件使用'app.main-content'从body开始寻找目标容器
2026-04-22 13:53:35 +08:00
09ec855576
fix: correct Button控件属性和样式规范
...
- 将Button控件的'text'属性改为'label'(符合bricks-framework规范)
- 移除所有嵌套的'style'对象,将样式属性直接放在options顶层
- 确保所有UI文件符合bricks-framework最佳实践
2026-04-22 11:43:08 +08:00
5d4e70da8e
feat: complete missing UI files and API endpoints for hermes-web-cli
...
- Added all missing .ui files referenced in index.ui:
* new_session.ui
* sessions.ui
* services.ui
* settings.ui
* session_detail.ui
* add_service.ui
* edit_service.ui
- Created corresponding .dspy API endpoints with proper directory structure:
* /hermes-web-cli/services → services/index.dspy
* /hermes-web-cli/services/list → services/list/index.dspy
* /hermes-web-cli/services/{id} → services/id/index.dspy
* /hermes-web-cli/services/test?id={id} → services/test/index.dspy
* /hermes-web-cli/sessions (POST) → sessions/index.dspy
* /hermes-web-cli/sessions/messages?session_id={id} → sessions/messages/index.dspy
* /hermes-web-cli/settings → settings/index.dspy
* /hermes-web-cli/settings/reset → settings/reset/index.dspy
- Fixed UI styling to comply with bricks-framework (removed nested style objects)
- Updated URL references to use query parameters instead of path parameters for dynamic routes
- All files follow production-ready module development specifications
2026-04-22 11:22:44 +08:00