Commit Graph
18 Commits
Author SHA1 Message Date
thzxx f7d74d152d chore: v0.1.2 — 全面修复、优化与增强
修复:
- core.js: _resume 计时器 BUG (startedAt 被 _startTimer 覆盖导致暂停恢复失效)
- plugins.js: register 在 install 前展开导致 handler 实例丢失
- locales.js: zh-CN/en-US 大量重复 key 覆盖正确翻译值
- core.js: configure 改为原地更新避免 _config 引用断裂

优化:
- core.js: update() 类型变更时同步更新 DOM 类名和进度条颜色
- animations.js: getActiveCount 返回已注册动画数量
- themes.js: 移除 presetThemes 死代码和重复注册循环
- constants.js: THEMES.auto 从字符串改为规范化对象
- index.js: destroy 添加防重复调用保护

增强:
- core.js: 新增 onError 全局错误回调,钩子异常和定时器错误可被外部捕获
- styles.js: _resume 校准时间基准补偿注释
- 139 tests 全部通过
2026-07-24 14:42:47 +08:00
thzxx eebd669b7f chore: 版本号重置为 v0.1.1, 更新 site/ 文档页面移除 v2.0 标记 2026-07-24 14:19:53 +08:00
thzxx b4ffaabedd chore: v2.0.1 - 精简dead code + 版本升级
- utils.js: 950行→180行,移除30+未使用函数
- styles.js: 1800行→650行,移除未使用组件样式和重复规则
- animations.js: 850行→120行,移除Web Animations API dead code
- 全项目版本号升级到 2.0.1
- 测试同步清理,134/134通过
2026-07-23 13:18:24 +08:00
thzxx 5843cff430 chore: 包名改为 @metona-team/metona-toast,全文档更新引用 2026-07-23 13:04:42 +08:00
thzxx 440b3516a6 chore: 官网 Gitee 链接改为 Gitea 2026-07-23 12:48:51 +08:00
thzxx c9704500be chore: 更新仓库地址为实际远程地址 git.metona.cn
- package.json: repository/bugs/homepage 统一替换为 git.metona.cn/MetonaTeam/MetonaToast
- README.md: license badge 链接更新
- site/index.html & demo.html: 页脚和导航 Gitee 链接更新
- 同步构建产物 dist/ 变更
2026-07-23 12:45:30 +08:00
tianhao b85756c7b9 fix: 自定义图标按钮改用函数调用,修复onclick引号转义问题 2026-06-16 15:35:56 +08:00
tianhao 81a6adc751 feat: demo.html添加107种预设图标全展示区块 2026-06-16 15:27:09 +08:00
tianhao 1b01bf4b48 feat: demo.html扩充到15个功能区块,覆盖项目全部功能 2026-06-16 15:23:46 +08:00
tianhao ea9e2808d6 docs: API文档17个方法全部补全参数表、返回值、类型、默认值 2026-06-16 15:13:38 +08:00
tianhao ccd7306f57 feat: 生成favicon.ico并添加到所有页面 2026-06-16 15:00:08 +08:00
tianhao f51e609481 style: 官网环境支持改为卡片网格布局 2026-06-16 14:27:44 +08:00
tianhao f8f079dd1a docs: README和官网添加环境与版本支持说明 2026-06-16 13:57:48 +08:00
tianhao 7dc7df59e0 docs: README和官网明确全局仅MeToast和Met两个变量名 2026-06-16 13:57:01 +08:00
tianhao f474b7251a fix: demo页删除非规定的M别名,统一使用MeToast 2026-06-16 13:52:18 +08:00
tianhao a4401c74d2 fix: demo页查看数量改用Toast代替alert 2026-06-16 13:51:06 +08:00
tianhao de44c04c35 chore: 更新项目地址为gitee.com/thzxx/MetonaToast; author改为thzxx 2026-06-16 13:36:17 +08:00
tianhao 3ab10f89a4 refactor: examples/→site/ 官网+文档+演示三件套; 更新build.sh/rollup/serve.sh路径 2026-06-16 13:32:14 +08:00