字段全量比对收口:对齐 Zibll 默认值并后移等级/徽章入口
继续 Workstream C 全量字段比对,并按用户裁定处理冲突:
- UsersLevel / UsersBadge 采用“保留但后移”策略,不兼容旧数据接口,继续沿用当前新型
sections/router 体系,在 users 主线中降权后移到 compat tools 分区。
- 按 Zibll 实际 options 默认值收敛一批高影响字段,打通 PHP schema + 前端 schema 两层:
* global/search: search_posts / search_no_page / search_custom_key_s / search_cat -> true
* forum: bbs_show_new_plate / bbs_post_pay_hide_type_s / bbs_post_pay_vip_price_s /
bbs_reply_paginate_ias_s / bbs_comment_upload_img / bbs_rewrite_suffix_html_s -> true
* shop: shop_s -> true, shop_breadcrumbs_shop_home -> false,
shop_rewrite_suffix_html_s -> true
* users: user_signup_no_repas / message_auto_clear_s / post_rewards_s /
user_report_img_s -> true
* post-list: cat_s -> false
验证:
- php -l 检查所有改动过的 PHP schema 文件均通过
- node --check 检查所有改动过的前端 schema 文件均通过
- shim 校验确认 users-level/users-badge 已从 users 主分区移出并以 secondaryEntry=true
落入 compat tools,且全站无路由碰撞
- 注:本 worktree 下缺少可执行 vite,未能在隔离副本中复跑 npm build;此前主副本同批次
IA 修正构建通过,本次继续只改 schema/sections 常量与默认值,已用语法校验覆盖
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,7 @@ export const authSchema = {
|
||||
user_signin_nopas_active: 'nopas_first',
|
||||
user_signup_captch: true,
|
||||
captch_type: 'email',
|
||||
user_signup_no_repas: false,
|
||||
user_signup_no_repas: true,
|
||||
user_repas_captch_type: 'email',
|
||||
bind_phone: false,
|
||||
bind_reminder: 'close',
|
||||
@@ -97,7 +97,7 @@ export const authSchema = {
|
||||
fields: [
|
||||
{ key: 'user_signup_captch', label: '注册需验证', type: 'switch', default: true, help: '注册时需完成邮箱或手机验证' },
|
||||
{ key: 'captch_type', label: '验证方式', type: 'radio', default: 'email', options: [{ label: '邮箱', value: 'email' }, { label: '手机', value: 'phone' }, { label: '邮箱或手机', value: 'email_phone' }], dependsOn: { key: 'user_signup_captch', value: true } },
|
||||
{ key: 'user_signup_no_repas', label: '无需重复密码', type: 'switch', default: false, help: '注册时不要求二次确认密码' },
|
||||
{ key: 'user_signup_no_repas', label: '无需重复密码', type: 'switch', default: true, help: '注册时不要求二次确认密码' },
|
||||
{ key: 'user_repas_captch_type', label: '找回密码验证方式', type: 'radio', default: 'email', options: [{ label: '邮箱', value: 'email' }, { label: '手机', value: 'phone' }, { label: '邮箱或手机', value: 'email_phone' }] },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@ export const notificationsSchema = {
|
||||
message_paginate_type: 'ajax_lists',
|
||||
message_user_set: true,
|
||||
message_close_msg_type: [],
|
||||
message_auto_clear_s: false,
|
||||
message_auto_clear_s: true,
|
||||
message_auto_clear_time: 365,
|
||||
message_auto_clear_types: ['posts', 'comment', 'favorite', 'like', 'hot', 'followed', 'system'],
|
||||
private_s: true,
|
||||
@@ -49,7 +49,7 @@ export const notificationsSchema = {
|
||||
title: '自动清理',
|
||||
icon: 'fas fa-broom',
|
||||
fields: [
|
||||
{ key: 'message_auto_clear_s', label: '自动清理已读消息', type: 'switch', default: false },
|
||||
{ key: 'message_auto_clear_s', label: '自动清理已读消息', type: 'switch', default: true },
|
||||
{ key: 'message_auto_clear_time', label: '过期天数', type: 'number', default: 365, min: 1, max: 3650, help: '已读消息超过此天数将被自动清理', dependsOn: { key: 'message_auto_clear_s', value: true } },
|
||||
{ key: 'message_auto_clear_types', label: '清理类型', type: 'checkbox', default: ['posts', 'comment', 'favorite', 'like', 'hot', 'followed', 'system'], options: [{ label: '文章通知', value: 'posts' }, { label: '评论回复', value: 'comment' }, { label: '收藏通知', value: 'favorite' }, { label: '点赞通知', value: 'like' }, { label: '热门通知', value: 'hot' }, { label: '关注通知', value: 'followed' }, { label: '系统通知', value: 'system' }, { label: '支付通知', value: 'pay' }, { label: '提现回复', value: 'withdraw_reply' }, { label: '勋章通知', value: 'medal' }, { label: '认证回复', value: 'auth_apply_reply' }, { label: '下载通知', value: 'download' }, { label: '积分变动', value: 'credits' }, { label: '私信', value: 'private' }, { label: '举报反馈', value: 'report' }], dependsOn: { key: 'message_auto_clear_s', value: true } },
|
||||
],
|
||||
|
||||
@@ -12,7 +12,7 @@ export const reportSchema = {
|
||||
ban_preset_reason: 'spam|垃圾信息\nabuse|人身攻击\nviolation|违规操作',
|
||||
ban_appeal_desc: '',
|
||||
ban_appeal_keys: '',
|
||||
user_report_img_s: false,
|
||||
user_report_img_s: true,
|
||||
user_report_desc: '',
|
||||
},
|
||||
groups: [
|
||||
@@ -50,7 +50,7 @@ export const reportSchema = {
|
||||
title: '图片举报',
|
||||
icon: 'fas fa-image',
|
||||
fields: [
|
||||
{ key: 'user_report_img_s', label: '启用图片举报', type: 'switch', default: false, dependsOn: { key: 'user_report_enabled', value: true } },
|
||||
{ key: 'user_report_img_s', label: '启用图片举报', type: 'switch', default: true, dependsOn: { key: 'user_report_enabled', value: true } },
|
||||
{ key: 'user_report_desc', label: '举报说明', type: 'textarea', default: '', dependsOn: { key: 'user_report_img_s', value: true } },
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user