字段全量比对收口:对齐 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:
1 parent
17c24826c8
commit
accf5bdbe8
17 files changed
+65
-51
No files matched your search
@@ -12,7 +12,7 @@ export const otherSchema = {
|
||||
bbs_post_title_strlen_limit: 30,
|
||||
bbs_t_placeholder: '请输入标题',
|
||||
bbs_c_placeholder: '请输入内容',
|
||||
bbs_rewrite_suffix_html_s: false,
|
||||
bbs_rewrite_suffix_html_s: true,
|
||||
bbs_plate_rewrite_slug: 'board',
|
||||
bbs_posts_rewrite_slug: 'topic',
|
||||
bbs_posts_edit_rewrite_slug: 'topic-edit',
|
||||
@@ -53,7 +53,7 @@ export const otherSchema = {
|
||||
title: 'URL / 别名',
|
||||
icon: 'fas fa-link',
|
||||
fields: [
|
||||
{ key: 'bbs_rewrite_suffix_html_s', label: '.html 后缀', type: 'switch', default: false },
|
||||
{ key: 'bbs_rewrite_suffix_html_s', label: '.html 后缀', type: 'switch', default: true },
|
||||
{ key: 'bbs_plate_rewrite_slug', label: '版块别名', type: 'input', default: 'board' },
|
||||
{ key: 'bbs_posts_rewrite_slug', label: '帖子别名', type: 'input', default: 'topic' },
|
||||
{ key: 'bbs_posts_edit_rewrite_slug', label: '编辑别名', type: 'input', default: 'topic-edit' },
|
||||
|
||||
@@ -6,11 +6,11 @@ export const permissionsSchema = {
|
||||
defaults: {
|
||||
bbs_posts_add_limit_opt_max: 10,
|
||||
bbs_plate_add_limit_opt_max: 3,
|
||||
bbs_show_new_plate: false,
|
||||
bbs_show_new_plate: true,
|
||||
bbs_show_new_topic: true,
|
||||
bbs_show_apply_moderator: true,
|
||||
bbs_post_pay_hide_type_s: false,
|
||||
bbs_post_pay_vip_price_s: false,
|
||||
bbs_post_pay_hide_type_s: true,
|
||||
bbs_post_pay_vip_price_s: true,
|
||||
bbs_post_pay_vip_1_discount: 80,
|
||||
bbs_post_pay_vip_2_discount: 50,
|
||||
bbs_post_pay_price_limit: 1000,
|
||||
@@ -33,7 +33,7 @@ export const permissionsSchema = {
|
||||
title: '按钮显示',
|
||||
icon: 'fas fa-eye',
|
||||
fields: [
|
||||
{ key: 'bbs_show_new_plate', label: '始终显示建版按钮', type: 'switch', default: false },
|
||||
{ key: 'bbs_show_new_plate', label: '始终显示建版按钮', type: 'switch', default: true },
|
||||
{ key: 'bbs_show_new_topic', label: '始终显示发帖按钮', type: 'switch', default: true },
|
||||
{ key: 'bbs_show_apply_moderator', label: '始终显示申请版主', type: 'switch', default: true },
|
||||
],
|
||||
@@ -43,8 +43,8 @@ export const permissionsSchema = {
|
||||
title: '帖子付费',
|
||||
icon: 'fas fa-money-bill-wave',
|
||||
fields: [
|
||||
{ key: 'bbs_post_pay_hide_type_s', label: '启用付费内容', type: 'switch', default: false },
|
||||
{ key: 'bbs_post_pay_vip_price_s', label: 'VIP 特价', type: 'switch', default: false, dependsOn: { key: 'bbs_post_pay_hide_type_s', value: true } },
|
||||
{ key: 'bbs_post_pay_hide_type_s', label: '启用付费内容', type: 'switch', default: true },
|
||||
{ key: 'bbs_post_pay_vip_price_s', label: 'VIP 特价', type: 'switch', default: true, dependsOn: { key: 'bbs_post_pay_hide_type_s', value: true } },
|
||||
{ key: 'bbs_post_pay_vip_1_discount', label: '一级 VIP 折扣 (%)', type: 'number', default: 80, min: 0, max: 100, dependsOn: { key: 'bbs_post_pay_vip_price_s', value: true } },
|
||||
{ key: 'bbs_post_pay_vip_2_discount', label: '二级 VIP 折扣 (%)', type: 'number', default: 50, min: 0, max: 100, dependsOn: { key: 'bbs_post_pay_vip_price_s', value: true } },
|
||||
{ key: 'bbs_post_pay_price_limit', label: '最高定价', type: 'number', default: 1000, min: 1, dependsOn: { key: 'bbs_post_pay_hide_type_s', value: true } },
|
||||
|
||||
@@ -5,12 +5,12 @@ export const replySchema = {
|
||||
description: '回复翻页、工具栏功能、表情、代码和快捷回复配置。',
|
||||
defaults: {
|
||||
bbs_reply_paginate_type: 'ajax',
|
||||
bbs_reply_paginate_ias_s: false,
|
||||
bbs_reply_paginate_ias_s: true,
|
||||
bbs_reply_paginate_ias_max: 3,
|
||||
bbs_comment_smilie: true,
|
||||
bbs_comment_code: true,
|
||||
bbs_comment_img: true,
|
||||
bbs_comment_upload_img: false,
|
||||
bbs_comment_upload_img: true,
|
||||
bbs_comment_quick_s: true,
|
||||
bbs_comment_quick_often: '不错,学习了\n感谢分享\n期待更新',
|
||||
bbs_comment_placeholder: '写下你的回复…',
|
||||
@@ -22,7 +22,7 @@ export const replySchema = {
|
||||
icon: 'fas fa-chevron-circle-right',
|
||||
fields: [
|
||||
{ key: 'bbs_reply_paginate_type', label: '翻页方式', type: 'select', default: 'ajax', options: [{ label: 'AJAX 加载', value: 'ajax' }, { label: '传统翻页', value: 'page' }] },
|
||||
{ key: 'bbs_reply_paginate_ias_s', label: '无限滚动', type: 'switch', default: false },
|
||||
{ key: 'bbs_reply_paginate_ias_s', label: '无限滚动', type: 'switch', default: true },
|
||||
{ key: 'bbs_reply_paginate_ias_max', label: '自动加载页数', type: 'number', default: 3, min: 0, max: 10, dependsOn: { key: 'bbs_reply_paginate_ias_s', value: true } },
|
||||
],
|
||||
},
|
||||
@@ -34,7 +34,7 @@ export const replySchema = {
|
||||
{ key: 'bbs_comment_smilie', label: '表情', type: 'switch', default: true },
|
||||
{ key: 'bbs_comment_code', label: '代码', type: 'switch', default: true },
|
||||
{ key: 'bbs_comment_img', label: '插图', type: 'switch', default: true },
|
||||
{ key: 'bbs_comment_upload_img', label: '上传图片', type: 'switch', default: false },
|
||||
{ key: 'bbs_comment_upload_img', label: '上传图片', type: 'switch', default: true },
|
||||
{ key: 'bbs_comment_quick_s', label: '快捷回复', type: 'switch', default: true },
|
||||
{ key: 'bbs_comment_quick_often', label: '预设短语', type: 'textarea', default: '不错,学习了\n感谢分享\n期待更新', help: '每行一条', dependsOn: { key: 'bbs_comment_quick_s', value: true } },
|
||||
{ key: 'bbs_comment_placeholder', label: '回复占位符', type: 'input', default: '写下你的回复…' },
|
||||
|
||||
Reference in new issue
Block a user