From abc1d07e6c5c903ebdead0c9f579357e9d6778be Mon Sep 17 00:00:00 2001
From: chenjinsong <523037378@qq.com>
Date: Fri, 17 Nov 2023 17:10:40 +0800
Subject: [PATCH] =?UTF-8?q?CN-1456=20feat:=20=E5=86=85=E7=BD=AE=E7=9F=A5?=
=?UTF-8?q?=E8=AF=86=E5=BA=93=E6=A0=87=E9=A2=98=E5=92=8C=E6=8F=8F=E8=BF=B0?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=BD=E9=99=85=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../setting/knowledgeBaseTableForCard.vue | 12 +++----
src/utils/constants.js | 34 +++++++++----------
2 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/src/components/table/setting/knowledgeBaseTableForCard.vue b/src/components/table/setting/knowledgeBaseTableForCard.vue
index fcd26265..f7393dca 100644
--- a/src/components/table/setting/knowledgeBaseTableForCard.vue
+++ b/src/components/table/setting/knowledgeBaseTableForCard.vue
@@ -20,9 +20,9 @@
-
{{data.label}}
+
{{$t(data.label)}}
- {{data.desc ? data.desc : '—'}}
+ {{$t(data.desc) || '—'}}
-
{{data.label}}
+
{{$t(data.label)}}
- {{data.desc ? data.desc : '—'}}
+ {{data.desc ? $t(data.desc) : '—'}}
diff --git a/src/utils/constants.js b/src/utils/constants.js
index eb65ce9e..c2075fb2 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -1812,61 +1812,61 @@ export const builtInKnowledgeBaseBasicInfo = [
knowledgeId: 10,
label: 'Psiphon3 VPN',
iconUrl: 'images/knowledge-base-logo/psiphon3-vpn.png',
- desc: 'Psiphon3 is a circumvention software for Windows and other platforms that provides uncensored access to Internet content.'
+ desc: 'knowledgeBase.desc.psiphon3'
},
{
knowledgeId: 5,
- label: 'Domain Category',
+ label: 'network.domainCategory',
iconUrl: 'images/knowledge-base-logo/fqdn.png',
- desc: 'Domain category provides basic information including categories, providers, reputation score.'
+ desc: 'knowledgeBase.desc.domainCategory'
},
{
knowledgeId: 6,
- label: 'Domain Whois',
+ label: 'knowledgeBase.domainWhois',
iconUrl: 'images/knowledge-base-logo/fqdn-whois.png',
- desc: 'Domain whois contains registration and ownership information for domain names. It includes details like domain registrar, registrant, creation/expiry dates, and contact information.'
+ desc: 'knowledgeBase.desc.domainWhois'
},
{
knowledgeId: 2,
label: 'IP ASN',
iconUrl: 'images/knowledge-base-logo/ip-asn.png',
- desc: 'ASN Database associates IP addresses with their corresponding Autonomous System Numbers, which are unique identifiers assigned to internet networks. This database helps identify the network and its owner, facilitating network analysis and monitoring tasks.'
+ desc: 'knowledgeBase.desc.ipAsn'
},
{
knowledgeId: 3,
- label: 'DNS Server Info',
+ label: 'knowledgeBase.dnsServerInfo',
iconUrl: 'images/knowledge-base-logo/dns-server-info.png',
- desc: 'A DNS Server Info stores information about Domain Name System (DNS) servers. It includes details such as IP addresses, host names, locations, software name, operation system, and roles of the servers.'
+ desc: 'knowledgeBase.desc.dnsServer'
},
{
knowledgeId: 9,
- label: 'APP Category',
+ label: 'knowledgeBase.appCategory',
iconUrl: 'images/knowledge-base-logo/app-category.png',
- desc: 'APP category provides basic information for over 3000 popular applications, including their categories and service providers.'
+ desc: 'knowledgeBase.desc.appCategory'
},
{
knowledgeId: 7,
- label: 'Indicators of Compromise',
+ label: 'knowledgeBase.ioc',
iconUrl: 'images/knowledge-base-logo/indicators-of-compromise.png',
- desc: 'Indicator of Compromise (IoC) refers to forensic artifacts, such as unusual network traffic or malicious files, indicating a security breach or cyberattack.'
+ desc: 'knowledgeBase.desc.ioc'
},
{
knowledgeId: 4,
label: 'ICP',
iconUrl: 'images/knowledge-base-logo/icp.png',
- desc: 'ICP (Internet Content Provider) license is a permit issued by Chinese authorities, mandatory for websites to legally operate and publish content within mainland China.'
+ desc: 'knowledgeBase.desc.icp'
},
{
knowledgeId: 1,
- label: 'IP Location',
+ label: 'knowledgeBase.ipLocation',
iconUrl: 'images/knowledge-base-logo/ip-location.png',
- desc: 'IP location Database is a repository containing geographical data associated with IP addresses, such as country, city, ISP, organization, latitude, longitude, and other relevant details.'
+ desc: 'knowledgeBase.desc.ipLocation'
},
{
knowledgeId: 8,
- label: 'Anonymity',
+ label: 'eventType.anonymity',
iconUrl: 'images/knowledge-base-logo/anonymity.png',
- desc: 'Communication system that conceals users\' identities and activities to protect privacy and prevent tracking or surveillance. This database provides lists of Tor nodes, I2P nodes, obfs4, etc.'
+ desc: 'knowledgeBase.desc.anonymity'
}
]