Customize
后台自定义配置以后改主题不用翻代码
我先把配置后台做成独立控制台:官网首页、个人中心、头像菜单、评论区、会员充值、AI 回复、授权系统和配套插件都能集中维护,后续接 XiunoX 插件接口时可以直接复用这套字段。
Customize
主题外观
品牌、配色、动效和全局视觉变量已载入默认配置
右上角头像菜单用户点击头像后显示的入口,后续可写入前台插件。
后台侧边栏栏目把小屋配套插件集中进后台,避免到插件列表里反复找。
Annoying 配套插件每个插件都保留独立设置入口,未安装也能先占位。
配置 JSONXiunoX / 官网 / 授权中心共用
实时预览
Annoying Theme给 XiunoX 站长的一套现代主题系统
快速开始{
"site": {
"siteName": "Annoying Theme",
"slogan": "给 XiunoX 站长的一套现代主题系统",
"brandColor": "#425aef",
"accentColor": "#ff4fa3",
"radius": "18",
"glassEffect": true,
"animationLevel": "balanced"
},
"homepage": {
"heroEnabled": true,
"architectureEnabled": true,
"featuresEnabled": true,
"proEnabled": true,
"docsPath": "/docs/",
"quickStartText": "快速开始"
},
"navigation": {
"sidebarSections": true,
"keepScrollPosition": true,
"avatarMenuCustom": true,
"mobileBottomNav": false,
"docsEntry": true,
"demoEntry": true
},
"userCenter": {
"profileEnabled": true,
"profileLayout": "anheyu-like",
"vipEntry": true,
"rechargeEntry": true,
"orderEntry": true,
"homepageTone": "#ff4fa3"
},
"comments": {
"enabled": true,
"borderless": true,
"legacyPinkClean": true,
"compactButtons": true,
"aiAssist": false,
"nestedReply": true
},
"vip": {
"enabled": true,
"defaultPlan": "pro",
"permanentLicense": true,
"paymentWechat": true,
"paymentAlipay": true,
"giftCard": false
},
"ai": {
"enabled": false,
"mode": "manual",
"label": "AI 助手",
"bindXiunoXReply": true,
"safeMode": true,
"provider": "custom-api"
},
"license": {
"edition": "pro",
"permanent": true,
"domainLimit": "5",
"apiEndpoint": "https://annoying.cn/api/license",
"offlineFallback": true,
"communityMode": true
},
"system": {
"saveMode": "static-json",
"xiunoxEndpoint": "/plugin/annoying_theme/setting.php",
"configFile": "plugin/annoying_theme/conf.json",
"cacheVersion": "2026.08",
"csrfTokenName": "csrf_token",
"backupBeforeSave": true
},
"avatarMenu": [
{
"title": "个人主页",
"href": "/my.htm",
"enabled": true
},
{
"title": "会员中心",
"href": "/my-vip.htm",
"enabled": true
},
{
"title": "订单记录",
"href": "/my-order.htm",
"enabled": true
},
{
"title": "后台配置",
"href": "/admin/config/",
"enabled": true
}
],
"sidebarMenu": [
{
"title": "主题总览",
"href": "/admin/",
"enabled": true
},
{
"title": "自定义配置",
"href": "/admin/config/",
"enabled": true
},
{
"title": "授权系统",
"href": "/authorization/",
"enabled": true
},
{
"title": "使用文档",
"href": "/docs/",
"enabled": true
}
],
"plugins": [
{
"key": "annoying_frontend_ui",
"name": "前端美化",
"enabled": true,
"admin": true,
"setting": "/plugin/annoying_frontend_ui/setting.php"
},
{
"key": "annoying_id_comments",
"name": "本地评论",
"enabled": true,
"admin": true,
"setting": "/plugin/annoying_id_comments/setting.php"
},
{
"key": "annoying_member_center",
"name": "会员中心",
"enabled": true,
"admin": true,
"setting": "/plugin/annoying_member_center/setting.php"
},
{
"key": "annoying_ai_reply",
"name": "AI 自动回复",
"enabled": false,
"admin": true,
"setting": "/plugin/annoying_ai_reply/setting.php"
},
{
"key": "annoying_license_client",
"name": "授权客户端",
"enabled": true,
"admin": true,
"setting": "/plugin/annoying_license_client/setting.php"
}
]
}接入真实后台时,把这份 JSON 保存到 plugin/annoying_theme/conf.json,或 POST 到 /plugin/annoying_theme/setting.php。
配置页已支持导入/导出,后续换服务器或上线 Pro 授权中心不用重新填。