Tags: wuzf/2fa
Tags
chore(release): centralize version source and add release automation - Replace hardcoded 1.5.0 in logger/monitoring with APP_VERSION import - Update README version badges to 1.6.0 with test-enforced consistency - Add scripts/release.js: npm run release:patch/minor/major runs tests, bumps package.json, syncs version.js and README badges, commits and tags
fix(import): strip spaces and separators from secret before Base32 va… …lidation Secrets stored with spaces (e.g. "KEWL VJCN MWES Y2ZY") caused URLSearchParams to encode spaces as "+", which then failed Base32 validation on re-import. Clean secrets in both import and export paths.
feat: restructure into modular architecture with full open-source setup - Refactor monolithic worker into layered modules (api, otp, ui, utils) - Add Vitest test suite with 598 tests across 17 files - Set up GitHub Actions CI/CD, Dependabot - Add community files (CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, templates) - Add comprehensive documentation (API reference, architecture, deployment) - Configure ESLint, Prettier, and Husky pre-commit hooks - Implement PWA frontend with modular scripts, styles, and service worker
feat: 添加现代化Web界面和JSON API双模式支持 主要改进: - 新增现代化深色主题Web界面,提供更好的用户体验 - 实现实时倒计时进度条,直观显示OTP剩余有效时间 - 添加点击复制OTP功能,方便快速使用 - 支持JSON API模式(添加?format=json参数) - 优化代码结构,添加常量定义和错误处理 - 修复倒计时计算bug(使用当前时间而非加载时间) - 改进Base32解码,增强输入验证和容错性 - 更新README文档,详细说明双模式使用方法 技术细节: - 添加响应头缓存控制,确保OTP实时性 - 支持CORS跨域访问(JSON API模式) - 优化代码可维护性(TIME_STEP和OTP_LENGTH常量化)
PreviousNext