Skip to content

Add plugin 提肛助手 v1.1.0#264

Merged
lzx8589561 merged 3 commits into
ZToolsCenter:mainfrom
LowProfile666:plugin/tiga
Jun 18, 2026
Merged

Add plugin 提肛助手 v1.1.0#264
lzx8589561 merged 3 commits into
ZToolsCenter:mainfrom
LowProfile666:plugin/tiga

Conversation

@LowProfile666

@LowProfile666 LowProfile666 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

插件信息

  • 名称: 提肛助手
  • 插件ID: tiga
  • 版本: 1.1.0
  • 描述: 定时提醒提肛运动,关爱久坐族盆底健康
  • 作者: 咖啡八杯
  • 类型: 新增

本次变更

新增

  • 统计页新增"总打卡天数"和"总完成次数"展示
  • 设置页新增"恢复默认设置"按钮,一键重置为推荐配置
  • 教程文档全面重写,聚焦久坐办公人群,内容更通俗易读
  • 教程渲染器支持四级标题(####)和引用块(>)
  • Element Plus 按需自动引入,减少打包体积

优化

  • 默认运动参数调整为教程推荐值:收缩 5 秒、放松 10 秒、重复 2 次
  • 连续打卡算法修复:中间缺失一天即中断,真正计算连续天数
  • 连续打卡算法性能优化:O(n) 查找改为 O(1) Map 查找
  • 通知 API 优先使用 ZTools 平台 showNotification,仅在需要点击回调时降级到 Web Notification
  • 设置页 watcher 缩窄为只监听 workTimeMode 字段,减少不必要的重计算
  • 统一计数逻辑为 services.addRecord() 单一入口,消除三处重复代码
  • 移除所有非 ZTools 环境的降级代码,简化整体架构
  • App.vue 大幅精简,移除开发模式 mock 和冗余弹窗逻辑

修复

  • 修复通知点击后出现两个弹窗的问题(生产环境只弹一个)
  • 修复统计页 el-switch 绑定只读 computed 的潜在问题
  • 修复 exercise-guide.html CSS 属性重复覆盖
  • 修复 exercise-guide.html 运动完成后打卡记录静默丢失的问题

截图 / 演示

自检清单

  • plugin.json 的 name / title / version / description / author 字段均已检查
  • 已移除调试日志、未使用文件、敏感信息(.env、token、密钥等)
  • 本次 PR 的 diff 仅涉及 plugins/tiga/ 目录
  • 已在本地 ZTools 客户端实际加载并测试过此插件,主要功能正常
  • 同意以仓库声明的开源协议发布此插件

此 PR 由 ztools-plugin-cli 自动管理:每次 ztools publish 在分支上追加一个 commit,PR 链接保持不变。

@LowProfile666 LowProfile666 marked this pull request as ready for review June 16, 2026 08:59

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the 'tiga' plugin for ZTools, a Vue 3 and TypeScript-based application designed to schedule and guide pelvic floor exercises. Key feedback from the review highlights a critical runtime error in App.vue where a leftover template reference to <ExerciseGuide> remains after its script variables were deleted. Additionally, the reviewer noted a usability bug in the streak calculation that resets the count to zero each day before the first check-in, a markdown rendering issue wrapping empty lines in paragraph tags, and several missing defensive checks against null or undefined storage records. Finally, it is recommended to consistently access ztools via window.ztools in exercise-guide.html to ensure compatibility with Electron's context isolation.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread plugins/tiga/src/App.vue Outdated
Comment thread plugins/tiga/src/types.ts
Comment thread plugins/tiga/src/Tutorial/index.vue Outdated
Comment thread plugins/tiga/src/Stats/index.vue
Comment thread plugins/tiga/public/exercise-guide.html Outdated
Comment thread plugins/tiga/public/exercise-guide.html
Comment thread plugins/tiga/src/Settings/index.vue Outdated
@lzx8589561

Copy link
Copy Markdown
Contributor

感谢佬的Pr,经测试发现无法通过npm run build,可修复后再次提交
image

- v1.1.0
- 优化
- 修复
@lzx8589561 lzx8589561 merged commit ddc78d4 into ZToolsCenter:main Jun 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants