1
0
miroir de https://github.com/ialley-workshop-open/uni-halo.git synchronisé 2026-06-12 21:29:31 +08:00

feat 链接管理、投票管理控制

Cette révision appartient à :
yhliu
2026-01-18 23:46:02 +08:00
révisé par 小莫唐尼
Parent 17f5b4b917
révision a767397e23
3 fichiers modifiés avec 19 ajouts et 5 suppressions
+3 -1
Voir le fichier
@@ -14,11 +14,13 @@ export const DefaultAppConfigs = {
authorConfig: {}, authorConfig: {},
appConfig: {}, appConfig: {},
pluginConfig: { pluginConfig: {
votePlugin: {},
toolsPlugin: {}, toolsPlugin: {},
linksPlugin:{},
linksSubmitPlugin: {}, linksSubmitPlugin: {},
doubanPlugin: { doubanPlugin: {
position: 'bottom' position: 'bottom'
} },
}, },
pageConfig: { pageConfig: {
homeConfig: { homeConfig: {
+8 -2
Voir le fichier
@@ -165,6 +165,12 @@
calcAuditModeEnabled() { calcAuditModeEnabled() {
return this.haloConfigs.auditConfig.auditModeEnabled return this.haloConfigs.auditConfig.auditModeEnabled
}, },
calcVotePluginEnabled() {
return !!this.haloConfigs?.pluginConfig?.votePlugin?.enabled;
},
calcLinksPluginEnabled() {
return !!this.haloConfigs?.pluginConfig?.linksPlugin?.enabled;
},
}, },
watch: { watch: {
haloConfigs: { haloConfigs: {
@@ -228,7 +234,7 @@
path: '/pagesA/votes/votes', path: '/pagesA/votes/votes',
isAdmin: false, isAdmin: false,
type: 'page', type: 'page',
show: !this.calcAuditModeEnabled show: !this.calcAuditModeEnabled && !!this.calcVotePluginEnabled,
}, { }, {
key: 'disclaimers', key: 'disclaimers',
title: '友情链接', title: '友情链接',
@@ -238,7 +244,7 @@
path: '/pagesA/friend-links/friend-links', path: '/pagesA/friend-links/friend-links',
isAdmin: false, isAdmin: false,
type: 'page', type: 'page',
show: true show: !!this.calcLinksPluginEnabled,
}, },
{ {
key: 'disclaimers', key: 'disclaimers',
+8 -2
Voir le fichier
@@ -193,6 +193,12 @@
} }
return this.haloConfigs.pageConfig.homeConfig.useCategory return this.haloConfigs.pageConfig.homeConfig.useCategory
}, },
calcVotePluginEnabled() {
return !!this.haloConfigs?.pluginConfig?.votePlugin?.enabled
},
calcLinksPluginEnabled() {
return !!this.haloConfigs?.pluginConfig?.linksPlugin?.enabled;
},
bannerConfig() { bannerConfig() {
return this.haloConfigs.pageConfig.homeConfig.bannerConfig return this.haloConfigs.pageConfig.homeConfig.bannerConfig
} }
@@ -556,7 +562,7 @@
iconColor: '', iconColor: '',
path: '/pagesA/votes/votes', path: '/pagesA/votes/votes',
type: 'page', type: 'page',
show: !this.calcAuditModeEnabled show: !this.calcAuditModeEnabled && !!this.calcVotePluginEnabled,
}, { }, {
key: 'disclaimers', key: 'disclaimers',
title: '友情链接', title: '友情链接',
@@ -567,7 +573,7 @@
iconColor: '', iconColor: '',
path: '/pagesA/friend-links/friend-links', path: '/pagesA/friend-links/friend-links',
type: 'page', type: 'page',
show: true show: !!this.calcLinksPluginEnabled,
}, { }, {
key: 'love', key: 'love',
title: '恋爱日记', title: '恋爱日记',