导入 AKSRT 主题开发源码
This commit is contained in:
1 parent
9681dd3d48
commit
1268a55dd0
595 files changed
+127705
No files matched your search
@@ -0,0 +1,99 @@
|
||||
export const commonSchema = {
|
||||
key: 'global.common',
|
||||
title: '常用功能',
|
||||
icon: 'fas fa-cog',
|
||||
description: '管理站点常用开关、懒加载、头像源与备案信息等基础配置。',
|
||||
defaults: {
|
||||
comment_enabled: true,
|
||||
lazyload_enabled: true,
|
||||
lazyload_animation: 'blur',
|
||||
lazyload_placeholder: '',
|
||||
lazyload_blur: true,
|
||||
lazyload_avatar: true,
|
||||
lazyload_content: false,
|
||||
lazyload_comment: true,
|
||||
lazyload_private: true,
|
||||
lazyload_slider: true,
|
||||
lazyload_cover: true,
|
||||
lazyload_other: true,
|
||||
lazyload_widget: true,
|
||||
avatar_source: 'cn.cravatar.com',
|
||||
icp_filing: '',
|
||||
footer_text: '',
|
||||
},
|
||||
groups: [
|
||||
{
|
||||
key: 'comment',
|
||||
title: '评论功能',
|
||||
icon: 'fas fa-comment',
|
||||
fields: [
|
||||
{ key: 'comment_enabled', label: '开启评论', type: 'switch', default: true, help: '全局评论开关,关闭后所有文章不再显示评论区' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'performance',
|
||||
title: '性能优化',
|
||||
icon: 'fas fa-tachometer-alt',
|
||||
fields: [
|
||||
{ key: 'lazyload_enabled', label: '图片懒加载', type: 'switch', default: true, help: '开启后页面中的图片将在滚动到可见区域时才加载' },
|
||||
{
|
||||
key: 'lazyload_animation',
|
||||
label: '懒加载动画',
|
||||
type: 'select',
|
||||
default: 'blur',
|
||||
options: [
|
||||
{ label: '模糊渐显', value: 'blur' },
|
||||
{ label: '淡入', value: 'fade' },
|
||||
{ label: '缩放', value: 'scale' },
|
||||
],
|
||||
dependsOn: { key: 'lazyload_enabled', value: true },
|
||||
},
|
||||
{ key: 'lazyload_placeholder', label: '预载图', type: 'media', default: '', dependsOn: { key: 'lazyload_enabled', value: true }, help: '自定义占位图,留空使用内置默认' },
|
||||
{ key: 'lazyload_blur', label: '模糊预览', type: 'switch', default: true, dependsOn: { key: 'lazyload_enabled', value: true }, help: '加载前显示低分辨率模糊预览' },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'lazyload-scope',
|
||||
title: '懒加载范围',
|
||||
icon: 'fas fa-layer-group',
|
||||
fields: [
|
||||
{ key: 'lazyload_avatar', label: '头像懒加载', type: 'switch', default: true, dependsOn: { key: 'lazyload_enabled', value: true } },
|
||||
{ key: 'lazyload_content', label: '文章内容图片懒加载', type: 'switch', default: false, dependsOn: { key: 'lazyload_enabled', value: true } },
|
||||
{ key: 'lazyload_comment', label: '评论内容图片懒加载', type: 'switch', default: true, dependsOn: { key: 'lazyload_enabled', value: true } },
|
||||
{ key: 'lazyload_private', label: '私信聊天图片懒加载', type: 'switch', default: true, dependsOn: { key: 'lazyload_enabled', value: true } },
|
||||
{ key: 'lazyload_slider', label: '幻灯片图片懒加载', type: 'switch', default: true, dependsOn: { key: 'lazyload_enabled', value: true } },
|
||||
{ key: 'lazyload_cover', label: '封面图片懒加载', type: 'switch', default: true, dependsOn: { key: 'lazyload_enabled', value: true } },
|
||||
{ key: 'lazyload_other', label: '其它图片懒加载', type: 'switch', default: true, dependsOn: { key: 'lazyload_enabled', value: true } },
|
||||
{ key: 'lazyload_widget', label: '小工具图片懒加载', type: 'switch', default: true, dependsOn: { key: 'lazyload_enabled', value: true } },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'avatar',
|
||||
title: '头像服务',
|
||||
icon: 'fas fa-user-circle',
|
||||
fields: [
|
||||
{
|
||||
key: 'avatar_source',
|
||||
label: '头像源',
|
||||
type: 'select',
|
||||
default: 'cn.cravatar.com',
|
||||
options: [
|
||||
{ label: 'Cravatar (推荐)', value: 'cn.cravatar.com' },
|
||||
{ label: 'Gravatar 中国', value: 'cn.gravatar.com' },
|
||||
{ label: 'Gravatar 国际', value: 'gravatar.com' },
|
||||
],
|
||||
help: 'Cravatar 是国内最快的头像服务,推荐使用',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'filing',
|
||||
title: '备案信息',
|
||||
icon: 'fas fa-shield-alt',
|
||||
fields: [
|
||||
{ key: 'icp_filing', label: 'ICP 备案号', type: 'input', placeholder: '例如:京ICP备12345678号', help: '显示在页脚的备案信息' },
|
||||
{ key: 'footer_text', label: '页脚附加文字', type: 'input', placeholder: '自定义页脚文字', help: '显示在版权信息下方' },
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in new issue
Block a user