mirror of
https://github.com/margrop/wrong-notebook.git
synced 2026-12-05 16:39:21 +08:00
81 lines
3.4 KiB
Plaintext
81 lines
3.4 KiB
Plaintext
[
|
||
{
|
||
"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": "请阅读并同意使用协议"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|