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

@@ -10,7 +10,7 @@ export const permissionsSchemas = {
login: {
key: 'permissions.login',
title: '人机验证',
icon: 'fas fa-shield-alt',
icon: 'fa fas fa-shield-alt',
description: '配置云验证码服务商,并选择需要强制人机验证的前端场景。',
defaults: {
enabled: false,
@@ -29,7 +29,7 @@ export const permissionsSchemas = {
{
key: 'basic',
title: '基础设置',
icon: 'fas fa-cog',
icon: 'fa fas fa-cog',
fields: [
{ key: 'enabled', label: '启用人机验证', type: 'switch', help: '总开关:关闭后所有场景均不验证' },
{
@@ -82,7 +82,7 @@ export const permissionsSchemas = {
{
key: 'providers',
title: '服务商配置',
icon: 'fas fa-server',
icon: 'fa fas fa-server',
description: '按当前选择的服务商填写对应密钥。',
fields: [
{
@@ -109,7 +109,7 @@ export const permissionsSchemas = {
capabilities: {
key: 'permissions.capabilities',
title: '基本权限',
icon: 'fas fa-user-shield',
icon: 'fa fas fa-user',
description: '统一管理用户、投稿和评论的角色权限。',
defaults: {},
groups: [],
@@ -121,7 +121,7 @@ export const permissionsSchemas = {
moderation: {
key: 'permissions.moderation',
title: '评论审核',
icon: 'fas fa-gavel',
icon: 'fa fas fa-gavel',
description: '管理评论审核、反垃圾、限流与拦截配置。',
defaults: {
enabled: false,
@@ -147,7 +147,7 @@ export const permissionsSchemas = {
{
key: 'basic',
title: '审核总开关',
icon: 'fas fa-power-off',
icon: 'fa fas fa-power-off',
fields: [
{ key: 'enabled', label: '启用审核系统', type: 'switch', help: '关闭后评论将不经过主题审核链路。' },
],
@@ -155,7 +155,7 @@ export const permissionsSchemas = {
{
key: 'akismet',
title: 'Akismet',
icon: 'fas fa-filter',
icon: 'fa fas fa-filter',
fields: [
{ key: 'akismet_enabled', label: '启用 Akismet', type: 'switch', dependsOn: { key: 'enabled', value: true } },
{ key: 'akismet_site_url', label: 'Site URL', type: 'input', placeholder: 'https://your-site.com', dependsOn: { key: 'akismet_enabled', value: true } },
@@ -166,7 +166,7 @@ export const permissionsSchemas = {
{
key: 'ai',
title: 'AI 审核',
icon: 'fas fa-robot',
icon: 'fa fab fa-android',
fields: [
{ key: 'ai_enabled', label: '启用 AI 审核', type: 'switch', dependsOn: { key: 'enabled', value: true } },
{ key: 'ai_api_hint', label: '审核 API 配置', type: 'notice', alertType: 'info', alertContent: 'API 接入(百度/阿里云等)在「扩展 → API内容审核」中统一配置,此处仅控制审核范围和策略。', dependsOn: { key: 'ai_enabled', value: true } },
@@ -181,7 +181,7 @@ export const permissionsSchemas = {
{
key: 'keywords',
title: '关键词拦截',
icon: 'fas fa-ban',
icon: 'fa fas fa-ban',
fields: [
{ key: 'blocked_keywords', label: '屏蔽关键词列表', type: 'textarea', rows: 4, placeholder: '每行一个关键词,也支持 /regex/i 格式。命中后会进入待审核并记录原因。', dependsOn: { key: 'enabled', value: true } },
],
@@ -189,7 +189,7 @@ export const permissionsSchemas = {
{
key: 'rate-limit',
title: '频率限制',
icon: 'fas fa-stopwatch',
icon: 'fa fas fa-clock',
fields: [
{ key: 'rate_limit_enabled', label: '启用频率限制', type: 'switch', dependsOn: { key: 'enabled', value: true } },
{ key: 'rate_limit_min_interval', label: '最小间隔(秒)', type: 'number', min: 1, max: 300, dependsOn: { key: 'rate_limit_enabled', value: true } },
@@ -199,7 +199,7 @@ export const permissionsSchemas = {
{
key: 'geoip',
title: 'GeoIP 拦截',
icon: 'fas fa-globe-asia',
icon: 'fa fas fa-globe',
fields: [
{ key: 'geoip_enabled', label: '启用 GeoIP 拦截', type: 'switch', dependsOn: { key: 'enabled', value: true } },
{ key: 'geoip_hint', label: 'IP 数据源', type: 'notice', alertType: 'info', alertContent: '复用「扩展 → IP归属地」中配置的数据源和 API Key。', dependsOn: { key: 'geoip_enabled', value: true } },
@@ -215,7 +215,7 @@ export const permissionsSchemas = {
attachment: {
key: 'permissions.attachment',
title: '附件权限',
icon: 'fas fa-paperclip',
icon: 'fa fas fa-paperclip',
description: '控制文件上传和附件下载权限。',
defaults: {
avatar_max_size: 2,
@@ -227,7 +227,7 @@ export const permissionsSchemas = {
{
key: 'profile',
title: '用户资料卡背景图',
icon: 'fas fa-user-circle',
icon: 'fa fas fa-user-circle',
fields: [
{ key: 'avatar_max_size', label: '头像/用户资料卡背景图大小上限 (MB)', type: 'number', min: 1, max: 10 },
],
@@ -235,7 +235,7 @@ export const permissionsSchemas = {
{
key: 'content',
title: '内容上传',
icon: 'fas fa-images',
icon: 'fa fas fa-image',
fields: [
{ key: 'submit_image_max_size', label: '投稿图片大小上限 (MB)', type: 'number', min: 1, max: 20 },
{ key: 'comment_image_max_size', label: '评论图片大小上限 (MB)', type: 'number', min: 1, max: 10 },
@@ -244,7 +244,7 @@ export const permissionsSchemas = {
{
key: 'resource',
title: '资源附件',
icon: 'fas fa-file-archive',
icon: 'fa fas fa-file-archive',
fields: [
{ key: 'resource_max_size', label: '资源附件大小上限 (MB)', type: 'number', min: 1, max: 200 },
],