Skip to content

fix: persist custom rules across refreshes - #439

Closed
dajiaohuang wants to merge 1 commit into
7Sageer:mainfrom
dajiaohuang:fix/issue-417-custom-rules
Closed

dajiaohuang wants to merge 1 commit into
7Sageer:mainfrom
dajiaohuang:fix/issue-417-custom-rules

Conversation

@dajiaohuang

Copy link
Copy Markdown

变更

  • 从 localStorage 恢复自定义规则,并在规则变化时保存 JSON。
  • JSON 编辑器在刷新后显示已保存内容;无效的旧存储值保留空默认值。
  • 通过服务器渲染出的 Alpine 组件脚本和本地存储替身测试加载、编辑、恢复及再次加载。

验证

  • npm test -- test/issue-417-custom-rules.test.js:1 个文件、1 个测试通过。
  • 测试只使用合成规则和内存存储;无外部请求或部署。

Related to #417 (custom-rule persistence).

@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@dajiaohuang is attempting to deploy a commit to the 7sageer's projects Team on Vercel.

A member of the Team first needs to authorize it.

@7Sageer 7Sageer closed this Oct 21, 2026
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