feat: 增加3个插件配置

This commit is contained in:
hanyuxia
2024-01-12 15:16:04 +08:00
parent dbf5885b72
commit b13e313114
4 changed files with 38 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -66,7 +66,7 @@
import table from '@/mixins/table' import table from '@/mixins/table'
import axios from 'axios' import axios from 'axios'
import { api } from '@/utils/api' import { api } from '@/utils/api'
import { pluginBasicInfo, pluginSchedule } from '@/utils/constants' import { pluginBasicInfo } from '@/utils/constants'
export default { export default {
name: 'pluginTable', name: 'pluginTable',
@@ -117,8 +117,9 @@ export default {
} }
}, },
scheduleText () { scheduleText () {
return function (type) { return function (id) {
return this.$t(pluginSchedule.always) const basicInfo = pluginBasicInfo.find(bi => bi.id === id)
return basicInfo ? this.$t(basicInfo.schedule) : ''
} }
}, },
getIconUrl () { getIconUrl () {

View File

@@ -465,10 +465,6 @@ export const knowledgeSourceValue = {
appTag: 'cn_app_tag_user_defined' appTag: 'cn_app_tag_user_defined'
} }
export const pluginSchedule = {
always: 'plugin.always'
}
export const knowledgeBaseSource = [ export const knowledgeBaseSource = [
{ {
name: 'FQDN Category', name: 'FQDN Category',
@@ -1886,10 +1882,35 @@ export const performanceMetricMapping = {
} }
export const pluginBasicInfo = [ export const pluginBasicInfo = [
{
id: 1,
name: 'HotSpot VPN',
type: 'IP',
schedule: 'plugin.daily',
desc: 'knowledgeBase.desc.hotSpot',
iconUrl: 'images/knowledge-base-logo/hotspot-vpn.png'
},
{
id: 2,
name: 'IpVanish VPN',
type: 'Domain',
schedule: 'plugin.hourly',
desc: 'knowledgeBase.desc.ipVanishDomain',
iconUrl: 'images/knowledge-base-logo/ip-vanish.png'
},
{
id: 3,
name: 'IpVanish VPN',
type: 'IP',
schedule: 'plugin.hourly',
desc: 'knowledgeBase.desc.ipVanishIp',
iconUrl: 'images/knowledge-base-logo/ip-vanish.png'
},
{ {
id: 109, id: 109,
name: 'Psiphon3 VPN', name: 'Psiphon3 VPN',
type: 'ip', type: 'IP',
schedule: 'plugin.always',
desc: 'knowledgeBase.desc.psiphon3', desc: 'knowledgeBase.desc.psiphon3',
iconUrl: 'images/knowledge-base-logo/psiphon3-vpn.png' iconUrl: 'images/knowledge-base-logo/psiphon3-vpn.png'
} }
@@ -2529,6 +2550,10 @@ export const entityDetailTags = {
{ {
name: 'nodeType', name: 'nodeType',
type: 'negative' type: 'negative'
},
{
name: 'vpnServiceName',
type: 'normal'
} }
], ],
ip: [ ip: [
@@ -2551,6 +2576,10 @@ export const entityDetailTags = {
{ {
name: 'dnsServerRole', name: 'dnsServerRole',
type: 'normal' type: 'normal'
},
{
name: 'vpnServiceName',
type: 'normal'
} }
], ],
app: [ app: [