feat: scaffold native fnOS application stage 1

This commit is contained in:
2026-10-02 14:59:57 +08:00
commit 69f3c30fab
23 changed files with 444 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
[
{
"stepTitle": "基础设置",
"items": [
{
"type": "select",
"field": "wizard_timezone",
"label": "时区",
"initValue": "Asia/Shanghai",
"options": [
{ "label": "Asia/Shanghai", "value": "Asia/Shanghai" },
{ "label": "UTC", "value": "UTC" }
]
}
]
}
]
+35
View File
@@ -0,0 +1,35 @@
[
{
"stepTitle": "管理员初始化",
"items": [
{
"type": "password",
"field": "wizard_initial_admin_password",
"label": "初始管理员密码",
"rules": [
{ "required": true, "message": "请输入初始管理员密码" },
{ "min": 8, "message": "密码至少 8 位" }
]
},
{
"type": "tips",
"helpText": "首次启动时使用该密码创建 admin 管理员。登录后请在系统设置中修改密码。"
}
]
},
{
"stepTitle": "基础设置",
"items": [
{
"type": "select",
"field": "wizard_timezone",
"label": "时区",
"initValue": "Asia/Shanghai",
"options": [
{ "label": "Asia/Shanghai", "value": "Asia/Shanghai" },
{ "label": "UTC", "value": "UTC" }
]
}
]
}
]
+21
View File
@@ -0,0 +1,21 @@
[
{
"stepTitle": "卸载选项",
"items": [
{
"type": "radio",
"field": "wizard_uninstall_mode",
"label": "数据处理",
"initValue": "keep",
"options": [
{ "label": "保留数据(推荐)", "value": "keep" },
{ "label": "删除全部数据", "value": "purge" }
]
},
{
"type": "tips",
"helpText": "删除数据将移除数据库、证书、Nginx 配置、FRP 与 Cloudflare 配置,且无法恢复。"
}
]
}
]