tianhao
|
cca2675fb4
|
refactor: 对齐 MetonaEditor — babel-jest 替代 ts-jest
CI / test (18.x) (push) Successful in 9m50s
CI / test (20.x) (push) Successful in 9m49s
CI / test (22.x) (push) Successful in 9m56s
CI / test (24.x) (push) Successful in 9m55s
### Changed
- 测试框架: ts-jest → babel-jest (对齐 MetonaEditor 生产方案)
- jest.config.cjs: babel-jest transform + moduleNameMapper
- test 脚本: jest → jest --coverage (对齐 MetonaEditor)
- 移除 ts-jest, 新增 @babel/core/preset-env/preset-typescript/babel-jest
### Added
- babel.config.cjs (对齐 MetonaEditor)
### Fixed
- 恢复 tslib (@rollup/plugin-typescript 必需依赖)
### Verified
- tsc --noEmit: 零错误
- jest --no-coverage: 136/136 passed
- rollup build: 5 outputs
|
2026-07-25 11:52:01 +08:00 |
|
tianhao
|
32a3bdf86e
|
fix(ci): 修复 Gitea Actions 测试卡死问题
CI / test (20.x) (push) Canceled after 0s
CI / test (22.x) (push) Canceled after 0s
CI / test (24.x) (push) Canceled after 0s
CI / test (18.x) (push) Canceled after 3s
- 移除 --coverage(CI 环境 ts-jest 覆盖率内存爆炸)
- 添加 --forceExit --maxWorkers=2 --no-cache
- 添加 NODE_OPTIONS=--max-old-space-size=4096 防 OOM
|
2026-07-25 11:33:52 +08:00 |
|
tianhao
|
9a6cd33d90
|
release: v0.2.0 — TypeScript 源码重构
CI / test (18.x) (push) Successful in 9m52s
CI / test (22.x) (push) Canceled after 0s
CI / test (24.x) (push) Canceled after 0s
CI / test (20.x) (push) Canceled after 2m49s
### Changed
- 全部源码从 JavaScript 迁移到 TypeScript (strict mode)
- core.js (1244行) 拆分为 toast.ts + api.ts + templates.ts
- 删除手动维护的 types/index.d.ts,类型从源码自动生成
- 构建工具链: Babel → ts-jest, 新增 @rollup/plugin-typescript
- 新增 rollup-plugin-dts 生成合并 .d.ts
### Added
- tsconfig.json (strict: true)
- src/types.ts 核心类型模块 (39 个导出类型)
- .eslintrc.json (@typescript-eslint)
- .gitea/workflows/ci.yml (Node 18/20/22/24 矩阵)
- CHANGELOG.md
### Aligned with metona-starter
- package.json: type:module, engines≥16, prepublishOnly
- rollup.config.js: dts plugin, port 3001
- jest.config.cjs, build.sh, serve.sh, .gitignore (.npmrc)
### Removed
- babel.config.js, types/ 目录, 所有 src/*.js
|
2026-07-25 11:22:07 +08:00 |
|
thzxx
|
ee2b685f64
|
docs: 更新 README.md 和 site/ 文档页
README.md:
- 特性列表: 80+ → 107 种图标类型,新增全局错误回调和暂停恢复说明
- 全局配置: 添加 onError 示例
- Toast 管理: 添加 getAll() 方法
- 回调: 新增 onError 全局错误回调示例
site/index.html:
- 新增「错误捕获」和「暂停恢复」特性卡片
- TypeScript 卡片更新为「零 phantom 方法」
site/docs.html:
- 回调表添加 onError 条目
site/demo.html:
- 新增 onError 错误捕获演示卡片(含 JS 实现)
|
2026-07-24 14:59:11 +08:00 |
|
thzxx
|
5c5627179a
|
fix(types): 补全和修正 TypeScript 类型声明
修复:
- ToastInstance: 补充 iconHTML / group 属性
- MeToast: 补充 getAll() 方法
- AnimationUtils: 移除 12 个不存在的 phantom 方法 (apply/enter/leave/cancel/pauseAll等)
- PluginManager: 移除 10 个不存在的 phantom 方法 (use/trigger/middleware等)
- PluginUtils: 补充缺失的 unregister/has/getNames/enable/disable/isEnabled 方法
|
2026-07-24 14:54:08 +08:00 |
|
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 |
|
tianhao
|
a6c6714b54
|
chore: 从git跟踪移除dist目录
|
2026-07-23 20:05:48 +08:00 |
|
tianhao
|
a9a0be8f21
|
chore: .gitignore添加.npmrc排除
|
2026-07-23 20:04:49 +08:00 |
|
tianhao
|
7d268648ae
|
chore: 从git跟踪移除.npmrc,加入.gitignore
|
2026-07-23 20:04:46 +08:00 |
|
tianhao
|
34c749c9c6
|
merge: 合并.npmrc冲突,保留远程registry认证和本地Electron配置
|
2026-07-23 19:27:55 +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
|
fc36314793
|
chore: 添加MIT LICENSE文件
|
2026-06-16 14:24:22 +08:00 |
|
tianhao
|
50498cb1d6
|
chore: 恢复.npmrc; package.json添加unpkg/jsdelivr字段
|
2026-06-16 14:22:17 +08:00 |
|
tianhao
|
bb3ef7138f
|
dist: 构建产物 v2.0.0 — UMD/ESM/CJS/min/TS声明
|
2026-06-16 13:58:25 +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
|
cab5ef1d55
|
fix: 删除非规定别名window.metonaToast,全局仅保留MeToast和Met
|
2026-06-16 13:56:04 +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 |
|
tianhao
|
86bfcc4102
|
fix: 激活gap/offset死配置; 优化style空对象遍历
|
2026-06-16 13:22:33 +08:00 |
|
tianhao
|
b805c89112
|
fix(test): max限制测试适配jsdom mock环境 — 193全通过
|
2026-06-16 13:20:07 +08:00 |
|
tianhao
|
79585178ef
|
fix(test): 测试隔离 — beforeEach清理DOM+钩子; 修复合规性检查
|
2026-06-16 13:15:16 +08:00 |
|
tianhao
|
900e965ae6
|
fix(#24,#25,#26,#27,#30): action按钮顺序; group边界; Notification权限; queue catch; 新增功能测试
|
2026-06-16 13:09:50 +08:00 |
|
tianhao
|
531438cc9c
|
fix(#28,#29): DEFAULTS补全notifyWhenHidden; types补全action/group/QueueControl/ActionButton等新增API类型
|
2026-06-16 13:09:03 +08:00 |
|
tianhao
|
4df6e35d51
|
feat: Toast分组管理 — group()/dismissGroup()
|
2026-06-16 13:02:46 +08:00 |
|
tianhao
|
23745952e5
|
feat: Notification API + 自定义渲染函数 + stack独立配置完善
|
2026-06-16 13:02:23 +08:00 |
|
tianhao
|
88ae899d96
|
feat: RTL布局支持 — close动画方向自动适配语言方向
|
2026-06-16 13:01:25 +08:00 |
|
tianhao
|
fc3132f330
|
feat: Action Toast — 内嵌操作按钮的通知
|
2026-06-16 13:00:48 +08:00 |
|
tianhao
|
25fb1b1d48
|
feat: resetTimerOnUpdate + onUpdate回调 + queue可取消
|
2026-06-16 13:00:10 +08:00 |
|
tianhao
|
34417d0057
|
perf(#21): 简化 themes.js/i18n.js 代理样板 — 290+296行→17+22行
|
2026-06-16 12:53:05 +08:00 |
|
tianhao
|
093dcdebd8
|
fix(#19,#22,#23): 动画取消reject替代resolve; config.style深拷贝; queue消息级duration/onClose优先
|
2026-06-16 12:52:03 +08:00 |
|
tianhao
|
56bac1fa0f
|
fix(#9,#16,#17): 移除未使用import; 合并重复CSS @media print; accessibility从i18n读取类型名
|
2026-06-16 12:42:36 +08:00 |
|
tianhao
|
7bc2bf6ace
|
fix(#3,#4,#6,#8): _palette从THEMES读取颜色; countdown全局替换; queue保留用户onClose; WeakMap→Map并清理
|
2026-06-16 12:41:33 +08:00 |
|
tianhao
|
2e361d40e8
|
fix(#2): Promise泄漏 — confirm/prompt 添加10秒安全超时,防止永不resolve
|
2026-06-16 12:40:39 +08:00 |
|
tianhao
|
9ce1809928
|
fix(#1): XSS — escapeHTML 保护 confirm/prompt 模板中的所有用户输入
|
2026-06-16 12:40:01 +08:00 |
|
tianhao
|
ff9c7cd218
|
init: MetonaToast v2.0.0 基线 — 已完成改进(模板抽象/constants拆分/测试增强)
|
2026-06-16 12:39:36 +08:00 |
|