diff --git a/public/images/knowledge-base-logo/hotspot-vpn.png b/public/images/knowledge-base-logo/hotspot-vpn.png new file mode 100644 index 00000000..ae80b88b Binary files /dev/null and b/public/images/knowledge-base-logo/hotspot-vpn.png differ diff --git a/public/images/knowledge-base-logo/ip-vanish.png b/public/images/knowledge-base-logo/ip-vanish.png new file mode 100644 index 00000000..970152af Binary files /dev/null and b/public/images/knowledge-base-logo/ip-vanish.png differ diff --git a/src/components/table/system/PluginTable.vue b/src/components/table/system/PluginTable.vue index 12e4bab4..3408cf61 100644 --- a/src/components/table/system/PluginTable.vue +++ b/src/components/table/system/PluginTable.vue @@ -66,7 +66,7 @@ import table from '@/mixins/table' import axios from 'axios' import { api } from '@/utils/api' -import { pluginBasicInfo, pluginSchedule } from '@/utils/constants' +import { pluginBasicInfo } from '@/utils/constants' export default { name: 'pluginTable', @@ -117,8 +117,9 @@ export default { } }, scheduleText () { - return function (type) { - return this.$t(pluginSchedule.always) + return function (id) { + const basicInfo = pluginBasicInfo.find(bi => bi.id === id) + return basicInfo ? this.$t(basicInfo.schedule) : '' } }, getIconUrl () { diff --git a/src/utils/constants.js b/src/utils/constants.js index d575961c..d4f94f9c 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -465,10 +465,6 @@ export const knowledgeSourceValue = { appTag: 'cn_app_tag_user_defined' } -export const pluginSchedule = { - always: 'plugin.always' -} - export const knowledgeBaseSource = [ { name: 'FQDN Category', @@ -1886,10 +1882,35 @@ export const performanceMetricMapping = { } 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, name: 'Psiphon3 VPN', - type: 'ip', + type: 'IP', + schedule: 'plugin.always', desc: 'knowledgeBase.desc.psiphon3', iconUrl: 'images/knowledge-base-logo/psiphon3-vpn.png' } @@ -2529,6 +2550,10 @@ export const entityDetailTags = { { name: 'nodeType', type: 'negative' + }, + { + name: 'vpnServiceName', + type: 'normal' } ], ip: [ @@ -2551,6 +2576,10 @@ export const entityDetailTags = { { name: 'dnsServerRole', type: 'normal' + }, + { + name: 'vpnServiceName', + type: 'normal' } ], app: [