feat(user): add local avatar management flow

This commit is contained in:
2026-07-29 13:35:17 +08:00
parent 1b4ba8938a
commit e94437ef60
20 changed files with 289 additions and 186 deletions
@@ -2,7 +2,7 @@ export const commonSchema = {
key: 'global.common',
title: '常用功能',
icon: 'fas fa-cog',
description: '管理站点常用开关、懒加载、头像源与备案信息等基础配置。',
description: '管理站点常用开关、懒加载与备案信息等基础配置。',
defaults: {
comment_enabled: true,
lazyload_enabled: true,
@@ -17,7 +17,6 @@ export const commonSchema = {
lazyload_cover: true,
lazyload_other: true,
lazyload_widget: true,
avatar_source: 'cn.cravatar.com',
icp_filing: '',
footer_text: '',
},
@@ -67,25 +66,6 @@ export const commonSchema = {
{ 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: '备案信息',