Repository navigation
feat(lock): 增加本地应用锁 - #111
Merged
Merged
Conversation
- Argon2id 验证器只存 Windows 凭据管理器 - 内存解锁有效期、休眠/改时钟防护与失败退避 - 锁定状态、托盘立即上锁与敏感命令拦截 - 设置项、锁状态命令与单元测试 Co-Authored-By: Claude Code <noreply@anthropic.com>
- 启动先判定锁定,解锁后才加载设置、草稿与同步状态 - 锁屏覆盖层、标题栏/托盘上锁、有效期倒计时与失败退避 - 设置页启用、修改、关闭应用锁与有效期选择 - DOM 测试、README/SECURITY/CHANGELOG Co-Authored-By: Claude Code <noreply@anthropic.com>
- 启用/修改/关闭应用锁后同步应用锁状态,启用后立即排有效期计时器 - 解锁后把焦点还给输入框;hydration 期间再次上锁不会被旧解锁覆盖 - 有效期查询失败时重试,仍失败按锁定处理;窗口重新聚焦时补查状态 - 面板关闭动画与上锁重叠时清掉 panel-open,避免解锁后主界面不可见 - hydrate 失败后允许下次解锁重试 - 草稿保存不再被锁拦截,避免上锁瞬间丢掉最后输入的文字 - 锁定时清掉 last_source,解锁后保存的笔记不再带上锁前的来源 Co-Authored-By: Claude Code <noreply@anthropic.com>
ranger1112
force-pushed
the
feat/app-lock
branch
from
November 8, 2026 12:59
a4386bc to
3b97794
Compare
Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能
可选的本地应用锁:设置密码后,窗口打开先显示锁屏;解锁后在固定有效期内免密使用,标题栏和托盘都能主动上锁。
安全边界
flashnote-app-lock),不写settings.json,也不返回给前端。SECURITY.md已写明。flashnote-app-lock条目后重启恢复。验证
cargo fmt --all -- --checkcargo clippy --all-targets --locked -- -D warningscargo test --locked:244 passed / 0 failed / 3 ignoredcargo test app_lock_keyring_round_trip -- --ignored:通过npm test:85 passednpm run build:通过尚未在真实窗口中做人工端到端验证(启动、密码解锁、托盘上锁、重启后仍锁定);建议合并前补一次。
🤖 Generated with Claude Code