删除私信分支链路
This commit is contained in:
@@ -13,7 +13,6 @@ export const commonSchema = {
|
||||
lazy_avatar: true,
|
||||
lazy_posts_content: false,
|
||||
lazy_comment: true,
|
||||
lazy_private: true,
|
||||
lazy_sider: true,
|
||||
lazy_cover: true,
|
||||
lazy_other: true,
|
||||
@@ -52,7 +51,6 @@ export const commonSchema = {
|
||||
{ key: 'lazy_avatar', label: '头像懒加载', type: 'switch', default: true },
|
||||
{ key: 'lazy_posts_content', label: '文章内容图片懒加载', type: 'switch', default: false },
|
||||
{ key: 'lazy_comment', label: '评论内容图片懒加载', type: 'switch', default: true },
|
||||
{ key: 'lazy_private', label: '私信聊天图片懒加载', type: 'switch', default: true },
|
||||
{ key: 'lazy_sider', label: '幻灯片图片懒加载', type: 'switch', default: true },
|
||||
{ key: 'lazy_cover', label: '封面图片懒加载', type: 'switch', default: true },
|
||||
{ key: 'lazy_other', label: '其它图片懒加载', type: 'switch', default: true },
|
||||
|
||||
@@ -7,7 +7,6 @@ export const emailSchema = {
|
||||
email_footer_text: '',
|
||||
email_site_branding: true,
|
||||
email_template_mode: 'plain',
|
||||
email_private_receive_limit: 'all',
|
||||
email_reg_verify_link_enabled: true,
|
||||
email_reg_verify_code_enabled: true,
|
||||
email_reg_success_enabled: true,
|
||||
@@ -27,19 +26,6 @@ export const emailSchema = {
|
||||
{ label: '纯文本', value: 'plain' },
|
||||
{ label: 'HTML', value: 'html' },
|
||||
]},
|
||||
{
|
||||
key: 'email_private_receive_limit',
|
||||
label: '私信邮件接收组',
|
||||
type: 'select',
|
||||
default: 'all',
|
||||
options: [
|
||||
{ label: '所有用户', value: 'all' },
|
||||
{ label: 'VIP 及以上', value: 'vip' },
|
||||
{ label: 'VIP2 及以上', value: 'vip2' },
|
||||
{ label: '仅管理员', value: 'admin' },
|
||||
],
|
||||
help: '限制哪些用户组可以收到私信邮件通知',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@ export const featuresSchema = {
|
||||
user_cover_img: '',
|
||||
user_rewrite_slug: 'user',
|
||||
user_follow_s: true,
|
||||
user_message_s: true,
|
||||
user_online_s: true,
|
||||
user_last_active_s: true,
|
||||
},
|
||||
@@ -41,7 +40,6 @@ export const featuresSchema = {
|
||||
{ key: 'user_cover_img', label: '默认封面', type: 'media', default: '' },
|
||||
{ key: 'user_rewrite_slug', label: '用户页 slug', type: 'input', default: 'user' },
|
||||
{ key: 'user_follow_s', label: '启用关注功能', type: 'switch', default: true },
|
||||
{ key: 'user_message_s', label: '启用私信功能', type: 'switch', default: true },
|
||||
{ key: 'user_online_s', label: '显示在线状态', type: 'switch', default: true },
|
||||
{ key: 'user_last_active_s', label: '显示最后活跃', type: 'switch', default: true },
|
||||
],
|
||||
|
||||
@@ -2,7 +2,7 @@ export const notificationsSchema = {
|
||||
key: 'users.notifications',
|
||||
title: '消息通知',
|
||||
icon: 'fa fas fa-bell',
|
||||
description: '站内通知、私信、通知策略配置。',
|
||||
description: '站内通知、通知策略配置。',
|
||||
defaults: {
|
||||
message_s: true,
|
||||
msg_center_rewrite_slug: 'message',
|
||||
@@ -13,15 +13,6 @@ export const notificationsSchema = {
|
||||
message_auto_clear_s: true,
|
||||
message_auto_clear_time: 365,
|
||||
message_auto_clear_types: ['posts', 'comment', 'favorite', 'like', 'hot', 'followed', 'system'],
|
||||
private_s: true,
|
||||
private_smilie_s: true,
|
||||
private_code_s: false,
|
||||
private_image_s: true,
|
||||
private_upload_img: false,
|
||||
private_quick_s: true,
|
||||
private_quick_often: '你好,请问有什么可以帮你的?\n感谢你的反馈\n已处理,请查收',
|
||||
private_submit_text: '发送',
|
||||
private_placeholder: '请输入消息...',
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
@@ -51,23 +42,7 @@ export const notificationsSchema = {
|
||||
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 } },
|
||||
{ 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 } },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'private',
|
||||
title: '私信设置',
|
||||
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 } },
|
||||
{ key: 'private_code_s', label: '支持代码', type: 'switch', default: false, dependsOn: { key: 'private_s', value: true } },
|
||||
{ key: 'private_image_s', label: '支持图片', type: 'switch', default: true, dependsOn: { key: 'private_s', value: true } },
|
||||
{ key: 'private_upload_img', label: '支持上传图片', type: 'switch', default: false, dependsOn: { key: 'private_s', value: true } },
|
||||
{ key: 'private_quick_s', label: '快捷回复', type: 'switch', default: true, dependsOn: { key: 'private_s', value: true } },
|
||||
{ key: 'private_quick_often', label: '常用快捷回复', type: 'textarea', default: '你好,请问有什么可以帮你的?\n感谢你的反馈\n已处理,请查收', help: '一行一条快捷回复文案', dependsOn: { key: 'private_s', value: true } },
|
||||
{ key: 'private_submit_text', label: '发送按钮文案', type: 'input', default: '发送', dependsOn: { key: 'private_s', value: true } },
|
||||
{ key: 'private_placeholder', label: '输入占位符', type: 'input', default: '请输入消息...', dependsOn: { key: 'private_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: 'report' }], dependsOn: { key: 'message_auto_clear_s', value: true } },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user