5 Commits

Author SHA1 Message Date
566fe326b7 fix: Menu widget default bgcolor from 'white' to 'transparent'
Menu constructor hardcoded background to 'white' when no bgcolor option
was provided. This caused white background in sidebar menus regardless
of theme (dark/light). Changed default to 'transparent' so Menu inherits
parent container's themed background color.
2026-05-29 11:01:55 +08:00
05f869af18 feat(widget.js): 扩展opts_set_style支持更多CSS属性
新增支持的样式属性:
- borderRadius, borderTopLeftRadius等圆角属性
- border, borderColor, borderWidth, borderStyle等边框属性
- padding方向细分: paddingLeft/Right/Top/Bottom
- flex布局: flexGrow, flex, flexBasis, flexDirection, flexWrap, alignItems, justifyContent, gap, order
- 视觉效果: opacity, boxShadow, textShadow, transition, transform
- 文本: textDecoration, textTransform, whiteSpace, wordBreak
- 其他: pointerEvents, userSelect, objectFit, outline, boxSizing

注意: fontSize/fontWeight不加入keys,保留charsize响应式缩放机制
2026-05-28 23:46:44 +08:00
565699bd6b refactor: rename event sage_login to user_logined 2026-05-27 18:01:51 +08:00
ffc9350fcb feat: dispatch sage_login event after successful login in withLoginInfo
jsoncall.js: after login retry succeeds, dispatch 'sage_login' on bricks.app
so shell can reload the global menu dynamically.
2026-05-27 17:57:38 +08:00
2e22085122 feat: 401后登录成功自动重试原始请求
- withLoginInfo 改为接收完整 opts(含 method/headers/params)
- 等待 login_window 的 destroy 事件(=登录成功信号)
- 登录成功后重试原始请求
- 重试仍401则返回null(避免死循环)
- 用户手动关闭登录窗口时也触发重试,401则返回null
2026-05-27 15:39:34 +08:00