Files
wrong-notebook/packaging/fnos/wizard/install
margrop 2975b31d31 fix: 使用协议中的设置入口名称与界面一致
协议正文、摘要与飞牛OS 向导把入口写成“设置 → 管理”,实际分区名为“用户管理”
2026-11-05 23:02:37 +08:00

81 lines
3.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"stepTitle": "使用说明",
"items": [
{
"type": "tips",
"helpText": "错题本监听 39300 端口。安装完成后从飞牛桌面图标打开。\n\n下一步设置管理员的邮箱和密码,安装完成后用它登录,再按安装向导配置 AI 渠道并创建第一个错题本。\n\n数据库和配置保存在应用数据目录,升级或卸载重装不会丢失;保留旧数据重装时沿用原有账号,下一步填写的内容会被忽略。"
}
]
},
{
"stepTitle": "管理员账号",
"items": [
{
"type": "tips",
"helpText": "设置错题本的管理员账号,请牢记邮箱和密码。邮箱可以是 admin@localhost 这样的本地地址。"
},
{
"type": "text",
"field": "wizard_admin_email",
"label": "管理员邮箱",
"rules": [
{
"required": true,
"message": "请填写管理员邮箱"
},
{
"pattern": "^[^\\s@]+@[^\\s@]+$",
"message": "邮箱格式不正确,例如 admin@localhost"
}
]
},
{
"type": "password",
"field": "wizard_admin_password",
"label": "管理员密码",
"rules": [
{
"required": true,
"message": "请设置管理员密码"
},
{
"min": 6,
"message": "至少 6 位"
},
{
"pattern": "^(?!123456$)\\S*$",
"message": "不能包含空格,也不能是 123456"
}
]
}
]
},
{
"stepTitle": "使用协议",
"items": [
{
"type": "tips",
"helpText": "管理员须同意错题本使用协议(https://github.com/margrop/wrong-notebook/blob/main/doc/EULA.md):\n\n• 错题本是开源软件,按 MIT 许可证授权,按现状提供、不附带任何保证。\n• 实例会定期向错题本收集服务发送匿名的功能使用统计和错误指纹,不含个人身份、错题内容、AI 对话或错误原文。\n• 外发、本地记录和错误回报都可以在“设置 → 用户管理 → 隐私与遥测”中随时关闭。\n• 管理员负责实例的安全与合规,包括告知本实例用户数据的去向。\n\n安装后也可以在 http://<NAS 地址>:39300/eula 查看完整协议。"
},
{
"type": "radio",
"field": "wizard_eula_accepted",
"label": "使用协议",
"options": [
{
"label": "我作为本实例的管理员,已阅读并同意使用协议",
"value": "v1"
}
],
"rules": [
{
"required": true,
"message": "请阅读并同意使用协议"
}
]
}
]
}
]