refactor(assets): vendor 资产迁入标准目录并全仓去除 zibll 标识
- assets/vendor 全量迁移: fontawesome5→assets/fontawesome5, css→assets/css, js→assets/js/runtime(避开 14 个同名自有文件), img 合并去重→assets/img, fonts→assets/fonts; 删除 assets/vendor - libs 五个与 widgets/third-party 字节相同的库不重复入库, loader paths 改指向 - 运行时切换: _win.uri=assets 根, loader baseUrl=/js/runtime, enlighter 注入 路径同步; PHP 7 个引用文件切换并改名 $zibll_*→$runtime_* - 去品牌: Qinver 头注释/品牌 console.log/演示链接清除, 默认文案中性化 - 功能标识符改名: zib__→aksrt__, zib_ajax→aksrt_ajax, window.zib→ window.aksrtLegacy, zibllblock/*→aksrtblock/*, .zib-widget→.aksrt-panel, .zib-slider→.aksrt-slider, zib_menu_options meta 键等 - 自有 CSS 改名: legacy-utilities/compat-vars/footer shell - admin SPA 重建; 契约测试同步(路径/断言/文件更名) - 例外保留: tests/visual 对照环境与 fixtures 前缀(外部 Zibll 产品引用) 验证: php -l 133 个改动文件通过; runtime 86 个 JS node --check 通过; 契约测试 68/70(2 个失败经 stash 对照确认为存量问题)
This commit is contained in:
1 parent
4f2391fb64
commit
9375b1c30c
591 files changed
+1690
-11041
No files matched your search
@@ -37,7 +37,7 @@ export const i18nSchema = {
|
||||
],
|
||||
dependsOn: { key: 'i18n_enabled', value: true },
|
||||
},
|
||||
{ key: 'i18n_auto_detect', label: '自动检测浏览器语言', type: 'switch', default: true, dependsOn: { key: 'i18n_enabled', value: true }, help: '基于浏览器 Accept-Language 自动切换(AKSRT 方案,区别于 zibll IP 定位方案)' },
|
||||
{ key: 'i18n_auto_detect', label: '自动检测浏览器语言', type: 'switch', default: true, dependsOn: { key: 'i18n_enabled', value: true }, help: '基于浏览器 Accept-Language 自动切换(AKSRT 方案,区别于 legacy IP 定位方案)' },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -46,7 +46,7 @@ export const i18nSchema = {
|
||||
icon: 'fa fas fa-language',
|
||||
fields: [
|
||||
{ key: 'i18n_available_langs', label: '可用语言列表', type: 'textarea', default: 'zh-CN|简体中文\nen|English\nzh-TW|繁體中文\nja|日本語\nko|한국어\nfr|Français\nde|Deutsch\nes|Español\nru|Русский', dependsOn: { key: 'i18n_enabled', value: true }, help: '每行一个语言:语言代码|显示名称(9 种内置语言)' },
|
||||
{ key: 'i18n_nomenclature', label: '自定义术语', type: 'code', default: '', dependsOn: { key: 'i18n_enabled', value: true }, help: 'JSON 格式自定义翻译术语(key => 翻译),对齐 zibll nomenclature' },
|
||||
{ key: 'i18n_nomenclature', label: '自定义术语', type: 'code', default: '', dependsOn: { key: 'i18n_enabled', value: true }, help: 'JSON 格式自定义翻译术语(key => 翻译),对齐 legacy nomenclature' },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ export const searchSchema = {
|
||||
key: 'global.search',
|
||||
title: '搜索功能',
|
||||
icon: 'fa fas fa-search',
|
||||
description: 'Zibll 原始搜索字段、内容类型、历史、热门词与分类配置。',
|
||||
description: 'legacy 原始搜索字段、内容类型、历史、热门词与分类配置。',
|
||||
defaults: {
|
||||
search_type: true,
|
||||
search_type_in: 'post',
|
||||
|
||||
@@ -61,7 +61,7 @@ export const seoSchema = {
|
||||
key: 'ai-seo',
|
||||
title: 'AI SEO 提示词',
|
||||
icon: 'fa fab fa-android',
|
||||
description: '留空则使用内置 Zibll 风格默认提示词。填写后作为 system instruction 覆盖默认。',
|
||||
description: '留空则使用内置 原主题风格默认提示词。填写后作为 system instruction 覆盖默认。',
|
||||
fields: [
|
||||
{
|
||||
key: 'ai_seo_title_prompt',
|
||||
|
||||
@@ -2,7 +2,7 @@ export const vipSchema = {
|
||||
key: 'payment.vip',
|
||||
title: 'VIP会员',
|
||||
icon: 'fa fas fa-gem',
|
||||
description: '对齐 Zibll 双级会员:分档套餐、权益、续费/升级与积分兑换。',
|
||||
description: '对齐 legacy 双级会员:分档套餐、权益、续费/升级与积分兑换。',
|
||||
defaults: {
|
||||
nav_pay_vip: true,
|
||||
nav_user_pay_vip: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/** Zibll 9.0 article-list settings. */
|
||||
/** legacy 9.0 article-list settings. */
|
||||
export const listSchema = {
|
||||
key: 'post_list.list',
|
||||
title: '文章列表',
|
||||
|
||||
@@ -118,7 +118,7 @@ export const pageSchema = {
|
||||
{ label: '图文卡片', value: 'img' },
|
||||
{ label: '列表', value: 'list' },
|
||||
{ label: '纯文字', value: 'text' },
|
||||
], dependsOn: { key: 'post_related_s', value: true }, help: '对齐 Zibll 相关文章三种样式' },
|
||||
], dependsOn: { key: 'post_related_s', value: true }, help: '对齐 legacy 相关文章三种样式' },
|
||||
{ key: 'related_title', label: '推荐标题', type: 'input', default: '相关推荐', dependsOn: { key: 'post_related_s', value: true } },
|
||||
{ key: 'post_related_n', label: '推荐数量', type: 'number', default: 6, min: 4, max: 12, step: 2, dependsOn: { key: 'post_related_s', value: true } },
|
||||
{ key: 'post_related_orderby', label: '推荐排序', type: 'select', default: 'views', options: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/** Zibll 9.0 list-thumbnail settings. */
|
||||
/** legacy 9.0 list-thumbnail settings. */
|
||||
const themeRoot = typeof window !== 'undefined' && window.aksrtAdminData?.themeUri
|
||||
? String(window.aksrtAdminData.themeUri).replace(/\/$/, '')
|
||||
: ''
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* User medal catalog (SPA route remains /users/badge).
|
||||
* Storage keys: user_medal_* (Zibll user_medal_s / user_medal_args parity).
|
||||
* Storage keys: user_medal_* (legacy user_medal_s / user_medal_args parity).
|
||||
*/
|
||||
|
||||
export const MEDAL_GET_TYPES = [
|
||||
|
||||
@@ -85,8 +85,8 @@ export const creditsSchema = {
|
||||
title: '积分抵扣(预留)',
|
||||
icon: 'fa fas fa-percent',
|
||||
fields: [
|
||||
{ key: 'points_deduction_s', label: '启用积分抵扣', type: 'switch', default: false, help: '对齐 zibll:运行时暂未启用(zibpay_is_allow_points_deduction 恒为 false)。字段保留供后续接收银台现金单抵扣。' },
|
||||
{ key: 'points_deduction_rate', label: '积分换算比例', type: 'number', default: 100, min: 1, max: 10000, dependsOn: { key: 'points_deduction_s', value: true }, help: 'zibll 语义:points_deduction_rate = 多少积分抵 1 元(示例 30 表示 30 积分=1 元)。当前未参与下单计算。' },
|
||||
{ key: 'points_deduction_s', label: '启用积分抵扣', type: 'switch', default: false, help: '对齐 legacy:运行时暂未启用(aksrtpay_is_allow_points_deduction 恒为 false)。字段保留供后续接收银台现金单抵扣。' },
|
||||
{ key: 'points_deduction_rate', label: '积分换算比例', type: 'number', default: 100, min: 1, max: 10000, dependsOn: { key: 'points_deduction_s', value: true }, help: 'legacy 语义:points_deduction_rate = 多少积分抵 1 元(示例 30 表示 30 积分=1 元)。当前未参与下单计算。' },
|
||||
{ key: 'points_deduction_max', label: '最大抵扣比例(%)', type: 'number', default: 50, min: 1, max: 100, dependsOn: { key: 'points_deduction_s', value: true }, help: '预留:最多可抵订单金额的百分比。当前未参与下单计算。' },
|
||||
],
|
||||
},
|
||||
@@ -95,7 +95,7 @@ export const creditsSchema = {
|
||||
title: '积分卡密兑换',
|
||||
icon: 'fa fas fa-ticket-alt',
|
||||
fields: [
|
||||
{ key: 'points_pass_exchange_s', label: '启用积分卡密兑换', type: 'switch', default: false, help: '对齐 zibll points_pass_exchange_s。后台充值卡可生成积分卡,用户中心兑换入账。' },
|
||||
{ key: 'points_pass_exchange_s', label: '启用积分卡密兑换', type: 'switch', default: false, help: '对齐 legacy points_pass_exchange_s。后台充值卡可生成积分卡,用户中心兑换入账。' },
|
||||
{ key: 'points_pass_exchange_desc', label: '兑换说明', type: 'textarea', default: '', dependsOn: { key: 'points_pass_exchange_s', value: true } },
|
||||
{ key: 'points_pass_exchange_only_password', label: '仅密码兑换', type: 'switch', default: true, dependsOn: { key: 'points_pass_exchange_s', value: true }, help: '开启后只需输入卡密;关闭则需卡号+卡密。' },
|
||||
],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* User level + integral XP (Zibll user_level_s / user_level_opt / user_integral_opt).
|
||||
* User level + integral XP (legacy user_level_s / user_level_opt / user_integral_opt).
|
||||
*/
|
||||
|
||||
export const INTEGRAL_CATALOG = [
|
||||
@@ -35,7 +35,7 @@ export const levelSchema = {
|
||||
key: 'users.level',
|
||||
title: '用户等级',
|
||||
icon: 'fa fas fa-level-up-alt',
|
||||
description: '等级与经验值:最高等级、升级阈值、经验获取矩阵(对齐 Zibll user_level / user_integral)。',
|
||||
description: '等级与经验值:最高等级、升级阈值、经验获取矩阵(对齐 legacy user_level / user_integral)。',
|
||||
defaults: {
|
||||
user_level_s: true,
|
||||
user_level_public_display: true,
|
||||
|
||||
Reference in new issue
Block a user