feat(navigation): hard-switch to Zibll navigation and Font Awesome 5

This commit is contained in:
kate522 committed 2026-08-18 20:46:21 +08:00
1 parent 3c3ddac8be
commit a0b84977a2
630 files changed
+101647 -11293

No files matched your search

@@ -1,7 +1,7 @@
export const authSchema = {
key: 'users.auth',
title: '注册登录',
icon: 'fas fa-sign-in-alt',
icon: 'fa fas fa-sign-in-alt',
description: '注册方式、登录限制、密码策略配置。',
defaults: {
close_sign: false,
@@ -59,7 +59,7 @@ export const authSchema = {
{
key: 'register',
title: '注册设置',
icon: 'fas fa-user-plus',
icon: 'fa fas fa-user-plus',
fields: [
{ key: 'close_sign', label: '一键禁用登录注册', type: 'switch', default: false, help: '开启后前台禁用全部注册/登录入口(含社交登录),不影响后台登录' },
{ key: 'user_close_signup', label: '关闭注册', type: 'switch', default: false },
@@ -78,7 +78,7 @@ export const authSchema = {
{
key: 'login',
title: '登录设置',
icon: 'fas fa-sign-in-alt',
icon: 'fa fas fa-sign-in-alt',
fields: [
{ key: 'user_close_login', label: '关闭登录', type: 'switch', default: false },
{ key: 'user_sign_type', label: '登录注册样式', type: 'radio', default: 'page', options: [{ label: '弹窗', value: 'modal' }, { label: '跳转页面', value: 'page' }] },
@@ -96,7 +96,7 @@ export const authSchema = {
{
key: 'signup_captcha',
title: '注册验证',
icon: 'fas fa-user-shield',
icon: 'fa fas fa-user',
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 } },
@@ -107,7 +107,7 @@ export const authSchema = {
{
key: 'bind',
title: '绑定设置',
icon: 'fas fa-link',
icon: 'fa fas fa-link',
fields: [
{ key: 'bind_phone', label: '绑定手机', type: 'switch', default: false },
{ key: 'bind_reminder', label: '绑定提醒', type: 'radio', default: 'close', options: [{ label: '提醒绑定邮箱', value: 'email' }, { label: '提醒绑定手机', value: 'phone' }, { label: '提醒绑定邮箱和手机', value: 'email_phone' }, { label: '关闭', value: 'close' }] },
@@ -120,7 +120,7 @@ export const authSchema = {
{
key: 'referral_inline',
title: '推广码注册',
icon: 'fas fa-ticket-alt',
icon: 'fa fas fa-ticket-alt',
fields: [
{ key: 'referral_registration_enabled', label: '开放推广码注册', type: 'switch', default: true },
{ key: 'referral_register_field', label: '注册页推广码字段', type: 'select', default: 'optional', options: [{ label: '隐藏', value: 'hidden' }, { label: '选填', value: 'optional' }, { label: '必填', value: 'required' }], dependsOn: { key: 'referral_registration_enabled', value: true } },
@@ -134,7 +134,7 @@ export const authSchema = {
{
key: 'sign_page_ui',
title: '页面 UI 配置',
icon: 'fas fa-palette',
icon: 'fa fas fa-paint-brush',
fields: [
{ key: 'sign_page_background', label: '页面背景图', type: 'gallery', default: [], help: '登录注册页背景图,多图随机' },
{ key: 'sign_theme_mode', label: '主题模式', type: 'radio', default: 'default', options: [{ label: '默认', value: 'default' }, { label: '亮色', value: 'light' }, { label: '暗色', value: 'dark' }] },
@@ -147,7 +147,7 @@ export const authSchema = {
{
key: 'modal_ui',
title: '弹窗 UI 配置',
icon: 'fas fa-window-restore',
icon: 'fa fas fa-window-restore',
fields: [
{ key: 'sign_modal_background', label: '弹窗背景图', type: 'gallery', default: [], help: '弹窗左侧背景图,多图随机' },
{ key: 'sign_modal_show_logo', label: '弹窗显示 LOGO', type: 'switch', default: true },
@@ -156,7 +156,7 @@ export const authSchema = {
{
key: 'sign_logo',
title: '登录框 LOGO',
icon: 'fas fa-image',
icon: 'fa fas fa-image',
fields: [
{ key: 'user_logo', label: '日间 LOGO', type: 'gallery', default: [], help: '登录框专用日间 LOGO,留空使用站点全局 LOGO' },
{ key: 'user_logo_dark', label: '夜间 LOGO', type: 'gallery', default: [], help: '登录框专用夜间 LOGO,留空使用站点全局夜间 LOGO' },
@@ -89,7 +89,7 @@ export const defaultMedalArgs = () => [
export const badgeSchema = {
key: 'users.badge',
title: '用户徽章',
icon: 'fas fa-award',
icon: 'fa fas fa-trophy',
description: '配置勋章分类、自动授予条件与前台展示。路由仍为 /users/badge;存储键为 user_medal_*。',
defaults: {
user_medal_s: false,
@@ -101,7 +101,7 @@ export const badgeSchema = {
{
key: 'display',
title: '徽章展示',
icon: 'fas fa-medal',
icon: 'fa fas fa-trophy',
fields: [
{ key: 'user_medal_s', label: '启用徽章/勋章系统', type: 'switch', default: false },
{
@@ -125,7 +125,7 @@ export const badgeSchema = {
{
key: 'catalog',
title: '徽章明细',
icon: 'fas fa-trophy',
icon: 'fa fas fa-trophy',
fields: [
{
key: 'user_medal_args',
@@ -1,7 +1,7 @@
export const creditsSchema = {
key: 'users.credits',
title: '用户积分',
icon: 'fas fa-coins',
icon: 'fa fas fa-database',
description: '积分规则、积分日志、用户积分管理。',
defaults: {
points_s: true,
@@ -37,7 +37,7 @@ export const creditsSchema = {
{
key: 'basic',
title: '积分基础',
icon: 'fas fa-coins',
icon: 'fa fas fa-database',
fields: [
{ key: 'points_s', label: '启用积分系统', type: 'switch', default: true },
{ key: 'points_name', label: '积分名称', type: 'input', default: '积分' },
@@ -63,7 +63,7 @@ export const creditsSchema = {
{
key: 'spend',
title: '积分消费',
icon: 'fas fa-arrow-down',
icon: 'fa fas fa-arrow-down',
fields: [
{ key: 'points_spend_comment', label: '评论消耗', type: 'number', default: 0, min: 0, max: 100 },
{ key: 'points_spend_download', label: '下载消耗', type: 'number', default: 0, min: 0, max: 100 },
@@ -73,7 +73,7 @@ export const creditsSchema = {
{
key: 'transfer',
title: '积分转账',
icon: 'fas fa-exchange-alt',
icon: 'fa fas fa-exchange-alt',
fields: [
{ key: 'points_transfer_s', label: '启用积分转账', type: 'switch', default: false },
{ key: 'points_service_charge', label: '转账手续费(%)', type: 'number', default: 0, min: 0, max: 50, dependsOn: { key: 'points_transfer_s', value: true } },
@@ -83,7 +83,7 @@ export const creditsSchema = {
{
key: 'deduction',
title: '积分抵扣(预留)',
icon: 'fas fa-percent',
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 元)。当前未参与下单计算。' },
@@ -93,7 +93,7 @@ export const creditsSchema = {
{
key: 'card_pass',
title: '积分卡密兑换',
icon: 'fas fa-ticket-alt',
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_desc', label: '兑换说明', type: 'textarea', default: '', dependsOn: { key: 'points_pass_exchange_s', value: true } },
@@ -103,7 +103,7 @@ export const creditsSchema = {
{
key: 'display',
title: '展示设置',
icon: 'fas fa-eye',
icon: 'fa fas fa-eye',
fields: [
{ key: 'points_show_balance', label: '导航栏显示余额', type: 'switch', default: true },
{ key: 'points_show_log', label: '显示积分记录', type: 'switch', default: true },
@@ -1,7 +1,7 @@
export const featuresSchema = {
key: 'users.features',
title: '用户功能',
icon: 'fas fa-user-cog',
icon: 'fa fas fa-user',
description: '配置用户中心和个人主页的功能模块。',
defaults: {
user_center_tabs: 'profile,level,posts,comments,favorites,vip,credits,revenue,auth',
@@ -20,7 +20,7 @@ export const featuresSchema = {
{
key: 'center',
title: '用户中心',
icon: 'fas fa-user-shield',
icon: 'fa fas fa-user',
fields: [
{ key: 'user_center_tabs', label: '用户中心 Tab', type: 'input', default: 'profile,level,comments,favorites,vip,credits,revenue,auth', help: '逗号分隔。level=我的等级;creator=创作中心;revenue=推广收益中心;auth=官方认证;等级、VIP、订单、创作中心、收益中心和认证会按功能开关自动注入' },
{ key: 'user_desc_std', label: '默认签名', type: 'input', default: '这家伙很懒…', help: '用户未设置个人简介时显示的默认文案' },
@@ -34,7 +34,7 @@ export function defaultIntegralOpt() {
export const levelSchema = {
key: 'users.level',
title: '用户等级',
icon: 'fas fa-level-up-alt',
icon: 'fa fas fa-level-up-alt',
description: '等级与经验值:最高等级、升级阈值、经验获取矩阵(对齐 Zibll user_level / user_integral)。',
defaults: {
user_level_s: true,
@@ -1,7 +1,7 @@
export const notificationsSchema = {
key: 'users.notifications',
title: '消息通知',
icon: 'fas fa-bell',
icon: 'fa fas fa-bell',
description: '站内通知、私信、通知策略配置。',
defaults: {
message_s: true,
@@ -27,7 +27,7 @@ export const notificationsSchema = {
{
key: 'basic',
title: '基础设置',
icon: 'fas fa-cog',
icon: 'fa fas fa-cog',
fields: [
{ key: 'message_s', label: '站内通知总开关', type: 'switch', default: true },
{ key: 'msg_center_rewrite_slug', label: '消息中心 URL 别名', type: 'input', default: 'message' },
@@ -39,7 +39,7 @@ export const notificationsSchema = {
{
key: 'types',
title: '通知类型',
icon: 'fas fa-list-check',
icon: 'fa fas fa-tasks',
fields: [
{ key: 'message_close_msg_type', label: '关闭部分推送', type: 'checkbox', default: [], 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' }], help: '勾选的类型将不向用户推送通知' },
],
@@ -47,7 +47,7 @@ export const notificationsSchema = {
{
key: 'auto_clear',
title: '自动清理',
icon: 'fas fa-broom',
icon: 'fa fas fa-magic',
fields: [
{ 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 } },
@@ -57,7 +57,7 @@ export const notificationsSchema = {
{
key: 'private',
title: '私信设置',
icon: 'fas fa-envelope',
icon: 'fa fas fa-envelope',
fields: [
{ key: 'private_s', label: '启用私信功能', type: 'switch', default: true },
{ key: 'private_smilie_s', label: '支持表情', type: 'switch', default: true, dependsOn: { key: 'private_s', value: true } },
+12 -12
View File
@@ -1,7 +1,7 @@
export const oauthSchema = {
key: 'users.oauth',
title: '第三方登录',
icon: 'fas fa-share-alt',
icon: 'fa fas fa-share-alt',
description: 'GitHub、Gitee、QQ、Google 等第三方登录配置。',
defaults: {
oauth_s: false,
@@ -68,7 +68,7 @@ export const oauthSchema = {
{
key: 'basic',
title: '基础设置',
icon: 'fas fa-cog',
icon: 'fa fas fa-cog',
fields: [
{ key: 'oauth_s', label: '启用第三方登录', type: 'switch', default: false },
{ key: 'oauth_proxy_mode', label: '代理登录模式', type: 'radio', default: 'close', options: [{ label: '关闭', value: 'close' }, { label: '服务端', value: 'server' }, { label: '客户端', value: 'client' }] },
@@ -87,7 +87,7 @@ export const oauthSchema = {
{
key: 'providers',
title: '登录提供商',
icon: 'fas fa-th',
icon: 'fa fas fa-th',
fields: [
{ key: 'oauth_github_s', label: 'GitHub登录', type: 'switch', default: false },
{ key: 'oauth_gitee_s', label: 'Gitee登录', type: 'switch', default: false },
@@ -103,7 +103,7 @@ export const oauthSchema = {
{
key: 'github',
title: 'GitHub配置',
icon: 'fab fa-github',
icon: 'fa fab fa-github',
fields: [
{ key: 'github_appid', label: 'Client ID', type: 'input', default: '' },
{ key: 'github_appkey', label: 'Client Secret', type: 'input', default: '' },
@@ -112,7 +112,7 @@ export const oauthSchema = {
{
key: 'gitee',
title: 'Gitee配置',
icon: 'fas fa-code-branch',
icon: 'fa fas fa-code-branch',
fields: [
{ key: 'gitee_appid', label: 'Client ID', type: 'input', default: '' },
{ key: 'gitee_appkey', label: 'Client Secret', type: 'input', default: '' },
@@ -121,7 +121,7 @@ export const oauthSchema = {
{
key: 'qq',
title: 'QQ配置',
icon: 'fab fa-qq',
icon: 'fa fab fa-qq',
fields: [
{ key: 'qq_appid', label: 'App ID', type: 'input', default: '' },
{ key: 'qq_appkey', label: 'App Key', type: 'input', default: '' },
@@ -130,7 +130,7 @@ export const oauthSchema = {
{
key: 'weixin',
title: '微信开放平台配置',
icon: 'fab fa-weixin',
icon: 'fa fab fa-weixin',
fields: [
{ key: 'weixin_appid', label: 'AppID', type: 'input', default: '' },
{ key: 'weixin_appsecret', label: 'AppSecret', type: 'input', default: '' },
@@ -139,7 +139,7 @@ export const oauthSchema = {
{
key: 'weixingzh',
title: '微信公众号配置',
icon: 'fab fa-weixin',
icon: 'fa fab fa-weixin',
fields: [
{ key: 'weixingzh_gzh_type', label: '公众号类型', type: 'radio', default: 'service', options: [{ label: '服务号', value: 'service' }, { label: '订阅号', value: 'subscribe' }] },
{ key: 'weixingzh_token', label: 'Token', type: 'input', default: '' },
@@ -165,7 +165,7 @@ export const oauthSchema = {
{
key: 'weibo',
title: '微博配置',
icon: 'fab fa-weibo',
icon: 'fa fab fa-weibo',
fields: [
{ key: 'weibo_appid', label: 'App Key', type: 'input', default: '' },
{ key: 'weibo_appkey', label: 'App Secret', type: 'input', default: '' },
@@ -174,7 +174,7 @@ export const oauthSchema = {
{
key: 'baidu',
title: '百度配置',
icon: 'fas fa-paw',
icon: 'fa fas fa-paw',
fields: [
{ key: 'baidu_appid', label: 'API Key', type: 'input', default: '' },
{ key: 'baidu_appkey', label: 'Secret Key', type: 'input', default: '' },
@@ -183,7 +183,7 @@ export const oauthSchema = {
{
key: 'clogin',
title: '彩虹聚合登录',
icon: 'fas fa-cloud',
icon: 'fa fas fa-cloud',
fields: [
{ key: 'clogin_url', label: '接口地址', type: 'input', default: '', help: '如 https://xxx.com 不要带 connect.php', dependsOn: { key: 'clogin_s', value: true } },
{ key: 'clogin_id', label: 'AppID', type: 'input', default: '', dependsOn: { key: 'clogin_s', value: true } },
@@ -200,7 +200,7 @@ export const oauthSchema = {
{
key: 'alipay',
title: '支付宝配置',
icon: 'fab fa-alipay',
icon: 'fa fas fa-credit-card',
fields: [
{ key: 'alipay_appid', label: 'AppID', type: 'input', default: '' },
{ key: 'alipay_privatekey', label: '应用私钥', type: 'textarea', rows: 3, default: '' },
@@ -1,7 +1,7 @@
export const reportSchema = {
key: 'users.report',
title: '禁封/举报',
icon: 'fas fa-flag',
icon: 'fa fas fa-flag',
description: '配置举报入口、公开限制提示和后续治理分类,为封禁/举报流程预留稳定结构。',
defaults: {
user_report_enabled: false,
@@ -19,7 +19,7 @@ export const reportSchema = {
{
key: 'entry',
title: '前台入口',
icon: 'fas fa-door-open',
icon: 'fa fas fa-sign-in-alt',
fields: [
{ key: 'user_report_enabled', label: '启用举报/禁封结构', type: 'switch', default: false },
{ key: 'user_report_public_entry', label: '公开主页展示举报入口', type: 'switch', default: true, dependsOn: { key: 'user_report_enabled', value: true } },
@@ -30,7 +30,7 @@ export const reportSchema = {
{
key: 'taxonomy',
title: '举报分类',
icon: 'fas fa-list',
icon: 'fa fas fa-list',
fields: [
{ key: 'user_report_categories', label: '举报分类', type: 'textarea', default: 'spam|垃圾信息\nabuse|人身攻击\ncopyright|版权投诉', help: '每行一个分类:slug|显示名称', dependsOn: { key: 'user_report_enabled', value: true } },
],
@@ -38,7 +38,7 @@ export const reportSchema = {
{
key: 'ban',
title: '禁封设置',
icon: 'fas fa-ban',
icon: 'fa fas fa-ban',
fields: [
{ key: 'ban_preset_reason', label: '预设封禁原因', type: 'textarea', default: 'spam|垃圾信息\nabuse|人身攻击\nviolation|违规操作', help: '每行一条:slug|显示名称', dependsOn: { key: 'user_report_enabled', value: true } },
{ key: 'ban_appeal_desc', label: '申诉说明', type: 'textarea', default: '', dependsOn: { key: 'user_report_enabled', value: true } },
@@ -48,7 +48,7 @@ export const reportSchema = {
{
key: 'image',
title: '图片举报',
icon: 'fas fa-image',
icon: 'fa fas fa-image',
fields: [
{ 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 } },
@@ -1,7 +1,7 @@
export const signinSchema = {
key: 'users.signin',
title: '签到奖励',
icon: 'fas fa-calendar-check',
icon: 'fa fas fa-calendar-check',
description: '配置签到规则、连续签到奖励和签到页面。',
defaults: {
signin_enabled: true,
@@ -14,7 +14,7 @@ export const signinSchema = {
{
key: 'rules',
title: '签到规则',
icon: 'fas fa-calendar-alt',
icon: 'fa fas fa-calendar',
fields: [
{ key: 'signin_enabled', label: '启用签到', type: 'switch', default: true },
{ key: 'signin_reward', label: '每日签到奖励', type: 'number', default: 1, min: 0, max: 100, dependsOn: { key: 'signin_enabled', value: true } },
@@ -1,7 +1,7 @@
export const smsSchema = {
key: 'users.sms',
title: '短信接口',
icon: 'fas fa-sms',
icon: 'fa fas fa-comment',
description: '配置短信验证码和短信通知服务的供应商、模板和限流策略。',
defaults: {
sms_enabled: false,
@@ -42,7 +42,7 @@ export const smsSchema = {
{
key: 'provider',
title: '供应商配置',
icon: 'fas fa-plug',
icon: 'fa fas fa-plug',
fields: [
{ key: 'sms_enabled', label: '启用短信服务', type: 'switch', default: false, help: '开启后支持短信验证码和短信通知' },
{
@@ -66,7 +66,7 @@ export const smsSchema = {
{
key: 'aliyun',
title: '阿里云配置',
icon: 'fas fa-cloud',
icon: 'fa fas fa-cloud',
fields: [
{ key: 'sms_ali_api_type', label: '接口类型', type: 'radio', default: 'sms', options: [{ label: '短信服务', value: 'sms' }, { label: '号码认证', value: 'verify' }], dependsOn: { key: 'sms_provider', value: 'aliyun' } },
{ key: 'sms_region_id', label: 'RegionId', type: 'input', default: 'cn-hangzhou', dependsOn: { key: 'sms_provider', value: 'aliyun' } },
@@ -75,7 +75,7 @@ export const smsSchema = {
{
key: 'tencent',
title: '腾讯云配置',
icon: 'fas fa-cloud',
icon: 'fa fas fa-cloud',
fields: [
{ key: 'sms_tencent_app_id', label: 'SdkAppId', type: 'input', default: '', dependsOn: { key: 'sms_provider', value: 'tencent' }, help: '腾讯云短信应用 ID' },
{ key: 'sms_tencent_app_key', label: 'AppKey', type: 'input', inputType: 'password', default: '', dependsOn: { key: 'sms_provider', value: 'tencent' } },
@@ -87,7 +87,7 @@ export const smsSchema = {
{
key: 'huawei',
title: '华为云配置',
icon: 'fas fa-cloud',
icon: 'fa fas fa-cloud',
fields: [
{ key: 'sms_huawei_sender', label: '通道号 (sender)', type: 'input', default: '', dependsOn: { key: 'sms_provider', value: 'huawei' } },
{ key: 'sms_huawei_signature', label: '短信签名', type: 'input', default: '', dependsOn: { key: 'sms_provider', value: 'huawei' }, help: '华为云短信签名内容' },
@@ -97,7 +97,7 @@ export const smsSchema = {
{
key: 'custom',
title: '自定义接口配置',
icon: 'fas fa-plug',
icon: 'fa fas fa-plug',
fields: [
{ key: 'sms_custom_url', label: '请求 URL', type: 'input', default: '', dependsOn: { key: 'sms_provider', value: 'custom' }, help: '支持 {phone} {code} {time} 变量' },
{ key: 'sms_custom_method', label: '请求方法', type: 'select', default: 'POST', options: [{ label: 'POST', value: 'POST' }, { label: 'GET', value: 'GET' }, { label: 'PUT', value: 'PUT' }], dependsOn: { key: 'sms_provider', value: 'custom' } },
@@ -112,7 +112,7 @@ export const smsSchema = {
{
key: 'template',
title: '短信模板',
icon: 'fas fa-sms',
icon: 'fa fas fa-comment',
fields: [
{ key: 'sms_sign_name', label: '短信签名', type: 'input', default: '', dependsOn: { key: 'sms_enabled', value: true }, help: '在短信服务商申请的短信签名(所有供应商共用此字段)' },
{ key: 'sms_template_code', label: '验证码模板 ID', type: 'input', default: '', dependsOn: { key: 'sms_enabled', value: true }, help: '所有供应商共用此模板 ID' },
@@ -123,7 +123,7 @@ export const smsSchema = {
{
key: 'rate_limit',
title: '限流策略',
icon: 'fas fa-shield-alt',
icon: 'fa fas fa-shield-alt',
fields: [
{ key: 'sms_rate_limit', label: '发送间隔 (秒)', type: 'number', default: 60, min: 10, max: 300, dependsOn: { key: 'sms_enabled', value: true }, help: '同一手机号两次发送的最小间隔' },
{ key: 'sms_daily_limit', label: '每日发送上限', type: 'number', default: 10, min: 1, max: 100, dependsOn: { key: 'sms_enabled', value: true }, help: '同一手机号每天最多发送条数' },
@@ -132,7 +132,7 @@ export const smsSchema = {
{
key: 'triggers',
title: '通知场景',
icon: 'fas fa-bell',
icon: 'fa fas fa-bell',
fields: [
{ key: 'sms_notify_bind', label: '绑定手机时验证', type: 'switch', default: true, dependsOn: { key: 'sms_enabled', value: true } },
{ key: 'sms_notify_login', label: '短信登录', type: 'switch', default: false, dependsOn: { key: 'sms_enabled', value: true } },
@@ -1,7 +1,7 @@
export const verifySchema = {
key: 'users.verify',
title: '身份认证',
icon: 'fas fa-id-card',
icon: 'fa fas fa-id-card',
description: '配置公开认证徽标、申请类型与申请门槛;审核、驳回和取消认证请前往 WordPress 用户 → 身份认证。',
defaults: {
user_verify_enabled: true,
@@ -24,7 +24,7 @@ export const verifySchema = {
{
key: 'display',
title: '公开展示',
icon: 'fas fa-eye',
icon: 'fa fas fa-eye',
fields: [
{ key: 'user_verify_enabled', label: '启用身份认证', type: 'switch', default: true },
{
@@ -45,13 +45,13 @@ export const verifySchema = {
],
},
{
key: 'workflow', title: '认证方式', icon: 'fas fa-tasks',
key: 'workflow', title: '认证方式', icon: 'fa fas fa-tasks',
fields: [{ type: 'alert', content: '认证方式固定为个人认证和企业认证,申请人不可自行新增或修改类型。' }],
},
{
key: 'apply',
title: '申请设置',
icon: 'fas fa-file-signature',
icon: 'fa fas fa-edit',
fields: [
{
key: 'user_verify_allow_apply',
@@ -1,7 +1,7 @@
export const wechatSchema = {
key: 'users.wechat',
title: '微信通知',
icon: 'fab fa-weixin',
icon: 'fa fab fa-weixin',
description: '配置微信模板消息、订阅/解绑和站外通知策略。',
defaults: {
wechat_notify_enabled: false,
@@ -19,7 +19,7 @@ export const wechatSchema = {
{
key: 'account',
title: '公众号配置',
icon: 'fab fa-weixin',
icon: 'fa fab fa-weixin',
fields: [
{ key: 'wechat_notify_enabled', label: '启用微信通知', type: 'switch', default: false, help: '开启后用户可绑定微信接收通知' },
{ key: 'wechat_app_id', label: 'AppID', type: 'input', default: '', dependsOn: { key: 'wechat_notify_enabled', value: true } },
@@ -30,7 +30,7 @@ export const wechatSchema = {
{
key: 'verify',
title: '服务器验证',
icon: 'fas fa-check-circle',
icon: 'fa fas fa-check-circle',
fields: [
{ key: 'wechat_token', label: 'Token', type: 'input', default: '', dependsOn: { key: 'wechat_notify_enabled', value: true }, help: '微信公众平台服务器配置中的 Token' },
{ key: 'wechat_encoding_aes_key', label: 'EncodingAESKey', type: 'input', default: '', dependsOn: { key: 'wechat_notify_enabled', value: true } },
@@ -39,7 +39,7 @@ export const wechatSchema = {
{
key: 'triggers',
title: '通知触发器',
icon: 'fas fa-bell',
icon: 'fa fas fa-bell',
fields: [
{ key: 'wechat_notify_comment', label: '新评论通知', type: 'switch', default: true, dependsOn: { key: 'wechat_notify_enabled', value: true } },
{ key: 'wechat_notify_reply', label: '评论回复通知', type: 'switch', default: true, dependsOn: { key: 'wechat_notify_enabled', value: true } },