Commit Graph
5 Commits
Author SHA1 Message Date
leko 854b8c280a 优化报告模板中的头像与内联图片复用,并修复 Miku 峰值区块窄屏排版 (#178)
* refactor: 优化报告模板中的头像与内联图片复用,并修复 Miku 峰值区块窄屏排版

* refactor(avatar): improve avatar reference generation to enhance privacy by avoiding exposure of platform or user IDs
2026-04-26 14:36:14 +08:00
leko 54f517d3b0 fix(theme): 修復 HatsuneMiku 與 hack 主題在 HTML 模式的跑版,優化窄裝置版面並補強繁中字體 (#177)
* refactor: update HTML templates for Hatsune Miku reporting

- Changed language attribute from zh-CN to zh-Hant for better localization.
- Updated font links to include Traditional Chinese fonts (Noto Sans TC).
- Enhanced CSS styles for responsiveness and improved layout across various components.
- Added new classes for better structure and maintainability in quote, topic, and user title items.
- Adjusted styles for mobile view to ensure better usability and aesthetics.

* fix: update HTML templates for improved responsiveness and accessibility

* Refactor styles: Move CSS from image_template.html to shared_styles.html for better maintainability and organization

* fix: update font links and styles in HTML templates for consistency
2026-04-25 11:25:15 +08:00
leko 2618491246 fix: telegram avatar handling (#176)
* feat: add avatar caching support and improve error handling in Telegram adapter

* feat(avatar): implement avatar negative cache management and improve logging levels
2026-04-25 11:08:46 +08:00
lekoandSXP-Simon 47eeff3f61 fix(template-utils): str.format -> string.Template (#149)
* feat: upgrade prompt templates from str.format to string.Template for improved compatibility

* fix(get_astrbot_data_path): fallback 到 get_astrbot_data_path 方法

* feat: upgrade prompt templates from str.format to string.Template for improved compatibility

* fix: strict mode

* fix: 补齐文件名格式的自动迁移

* fix(ChatQualityAnalyzer): 删除无效的 prompt 提示语句

* ruff

---------

Co-authored-by: SXP-Simon <sxp20061207@163.com>
2026-04-02 16:40:34 +08:00
lekoandSXP-Simon 8ba5f69788 feat: 檔案名稱模板支援 ULID 和資料夾路徑 (#146 @lekoOwO)
* feat: Enhance HTML report generation and dispatching with captions

* chore: apply ruff fixes

* fix(ReportGenerator): update HTML caption for report generation

* fix(ReportGenerator): encode filename in HTML report caption URL

* fix(ReportGenerator): refactor golden quotes handling for clarity and consistency

* feat(ReportGenerator): enhance filename formatting with ulid support and path sanitization

* fix(ReportGenerator): enhance path validation and filename uniqueness in report generation

* fix: pylance type error and ruff

* fix: 路径默认使用 ulid 变量

---------

Co-authored-by: SXP-Simon <sxp20061207@163.com>
2026-04-01 20:38:57 +08:00