feat: 增加3个插件配置
This commit is contained in:
BIN
public/images/knowledge-base-logo/hotspot-vpn.png
Normal file
BIN
public/images/knowledge-base-logo/hotspot-vpn.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/images/knowledge-base-logo/ip-vanish.png
Normal file
BIN
public/images/knowledge-base-logo/ip-vanish.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -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 () {
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user