2021-06-11 10:00:22 +08:00
|
|
|
export const defaultPageSize = 20
|
|
|
|
|
|
2021-06-22 21:19:04 +08:00
|
|
|
export const storageKey = {
|
2021-07-05 17:40:43 +08:00
|
|
|
iso36112Capital: 'cn-iso3611-2-capital',
|
|
|
|
|
iso36112WorldLow: 'cn-iso3611-2-world-low',
|
2021-06-22 21:19:04 +08:00
|
|
|
i18n: 'cn-i18n',
|
2021-07-23 11:19:10 +08:00
|
|
|
languages: 'cn-languages',
|
2021-06-22 21:19:04 +08:00
|
|
|
language: 'cn-language',
|
|
|
|
|
timezone: 'cn-timezone',
|
|
|
|
|
timezoneOffset: 'cn-timezone-offset',
|
|
|
|
|
timezoneLocalOffset: 'cn-timezone-local-offset',
|
|
|
|
|
token: 'cn-token',
|
|
|
|
|
username: 'cn-username',
|
|
|
|
|
sysName: 'cn-sys-name',
|
|
|
|
|
sysLogo: 'cn-sys-logo',
|
|
|
|
|
tableTitlePrefix: 'cn-table-title',
|
|
|
|
|
tablePageSizePrefix: 'cn-page-size',
|
|
|
|
|
leftMenuShrink: 'cn-left-menu-shrink',
|
2022-01-26 17:44:24 +08:00
|
|
|
unsavedChange: 'cn-unsaved-change',
|
|
|
|
|
entitySearchHistory: 'cn-entity-search-history'
|
2021-06-22 21:19:04 +08:00
|
|
|
}
|
|
|
|
|
|
2021-06-11 10:00:22 +08:00
|
|
|
// 统一定义跳转来源
|
|
|
|
|
export const fromRoute = {
|
|
|
|
|
trafficSummary: 'trafficSummary',
|
2021-06-11 23:00:33 +08:00
|
|
|
networkAppPerformance: 'networkAppPerformance',
|
|
|
|
|
dnsServiceInsights: 'dnsServiceInsights',
|
2021-09-02 17:12:27 +08:00
|
|
|
user: 'user',
|
2021-10-15 16:42:15 +08:00
|
|
|
galaxyProxy: 'galaxyProxy',
|
2021-12-03 09:47:37 +08:00
|
|
|
chart: 'chart',
|
2021-12-14 17:21:37 +08:00
|
|
|
cryptocurrency: 'cryptocurrency'
|
2021-06-11 10:00:22 +08:00
|
|
|
}
|
|
|
|
|
|
2021-09-15 12:19:13 +08:00
|
|
|
/* panel类别和名称之间的映射 */
|
2021-06-11 23:00:33 +08:00
|
|
|
export const panelTypeAndRouteMapping = {
|
|
|
|
|
trafficSummary: 1,
|
|
|
|
|
networkAppPerformance: 2,
|
2021-08-02 13:22:15 +08:00
|
|
|
dnsServiceInsights: 3,
|
2021-09-15 12:19:13 +08:00
|
|
|
ipEntityDetail: 4,
|
2021-08-02 13:22:15 +08:00
|
|
|
domainEntityDetail: 5,
|
2021-12-03 09:47:37 +08:00
|
|
|
appEntityDetail: 6,
|
2021-12-14 17:21:37 +08:00
|
|
|
cryptocurrency: 7
|
2021-06-11 23:00:33 +08:00
|
|
|
}
|
|
|
|
|
|
2021-10-24 20:23:24 +08:00
|
|
|
/* operationLog state 执行状态属性 值与名称之间的映射 */
|
|
|
|
|
export const operationLogStateMapping = {
|
|
|
|
|
success: 1,
|
|
|
|
|
fail: 0
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-11 10:00:22 +08:00
|
|
|
export const position = {
|
|
|
|
|
tableHeight: {
|
|
|
|
|
normal: 'calc(100% - 48px)' // 常规高度,特例在下方定义
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-06-21 20:33:39 +08:00
|
|
|
|
2021-07-07 22:58:52 +08:00
|
|
|
export const entityType = {
|
2021-11-09 14:03:40 +08:00
|
|
|
app: 'APP',
|
2021-07-07 22:58:52 +08:00
|
|
|
domain: 'Domain',
|
2021-11-09 14:03:40 +08:00
|
|
|
ip: 'IP'
|
2021-07-07 22:58:52 +08:00
|
|
|
}
|
|
|
|
|
|
2021-08-11 22:14:23 +08:00
|
|
|
export const entityFilterType = {
|
2021-12-14 16:42:45 +08:00
|
|
|
ip: [
|
|
|
|
|
{
|
|
|
|
|
column: 'country_distinct_count',
|
|
|
|
|
labelI18nCode: 'overall.country',
|
|
|
|
|
icon: 'cn-icon cn-icon-country'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
column: 'province_distinct_count',
|
|
|
|
|
labelI18nCode: 'overall.province',
|
|
|
|
|
icon: 'cn-icon cn-icon-position'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
column: 'city_distinct_count',
|
|
|
|
|
labelI18nCode: 'overall.city',
|
2021-12-16 18:22:47 +08:00
|
|
|
icon: 'cn-icon cn-icon-city'
|
2021-12-14 16:42:45 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
column: 'asn_distinct_count',
|
|
|
|
|
labelI18nCode: 'entities.asn',
|
|
|
|
|
icon: 'cn-icon cn-icon-cloud'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
domain: [
|
|
|
|
|
{
|
2022-01-03 22:46:22 +08:00
|
|
|
column: 'categoryGroupDistinctCount',
|
2021-12-14 16:42:45 +08:00
|
|
|
labelI18nCode: 'entities.domainDetail.categoryGroup',
|
|
|
|
|
icon: 'cn-icon cn-icon-category'
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-01-03 22:46:22 +08:00
|
|
|
column: 'categoryDistinctCount',
|
2021-12-14 16:42:45 +08:00
|
|
|
labelI18nCode: 'entities.category',
|
|
|
|
|
icon: 'cn-icon cn-icon-sub-category'
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-01-03 22:46:22 +08:00
|
|
|
column: 'categoryGroupDistinctCount',
|
2021-12-14 16:42:45 +08:00
|
|
|
labelI18nCode: 'entities.reputationLevel',
|
|
|
|
|
icon: 'cn-icon cn-icon-credit'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
app: [
|
|
|
|
|
{
|
2022-01-03 22:46:22 +08:00
|
|
|
column: 'categoryDistinctCount',
|
2021-12-14 16:42:45 +08:00
|
|
|
labelI18nCode: 'entities.category',
|
|
|
|
|
icon: 'cn-icon cn-icon-category'
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-01-03 22:46:22 +08:00
|
|
|
column: 'subcategoryDistinctCount',
|
2021-12-14 16:42:45 +08:00
|
|
|
labelI18nCode: 'entities.subcategory',
|
|
|
|
|
icon: 'cn-icon cn-icon-sub-category'
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-01-03 22:46:22 +08:00
|
|
|
column: 'riskDistinctCount',
|
2021-12-14 16:42:45 +08:00
|
|
|
labelI18nCode: 'entities.risk',
|
|
|
|
|
icon: 'cn-icon cn-icon-risk'
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-07-09 17:24:22 +08:00
|
|
|
}
|
|
|
|
|
|
2021-07-21 22:46:08 +08:00
|
|
|
export const unitTypes = {
|
|
|
|
|
time: 'time',
|
|
|
|
|
number: 'number',
|
2021-08-09 13:38:32 +08:00
|
|
|
byte: 'byte',
|
2021-08-26 19:56:04 +08:00
|
|
|
string: 'string',
|
|
|
|
|
percent: 'percent'
|
2021-07-21 22:46:08 +08:00
|
|
|
}
|
2021-06-21 20:33:39 +08:00
|
|
|
export const chartTableDefaultPageSize = 10 // table类型图表默认每页数据量
|
2021-06-22 21:19:04 +08:00
|
|
|
export const chartTableTopOptions = [10, 100] // table类型图表的TOP-N选项
|
2021-12-06 21:12:04 +08:00
|
|
|
export const chartActiveIpTableOrderOptions = ['machine'] // active ip table类型图表的order 选项
|
2022-03-06 23:26:42 +08:00
|
|
|
// table类型图表column映射
|
|
|
|
|
export const chartTableColumnMapping = {
|
|
|
|
|
sessions: 'overall.sessions',
|
|
|
|
|
packets: 'overall.packets',
|
|
|
|
|
bytes: 'overall.bytes',
|
|
|
|
|
clientIp: 'overall.clientIp',
|
|
|
|
|
serverIp: 'overall.serverIp',
|
|
|
|
|
domain: 'overall.domain',
|
|
|
|
|
appName: 'overall.appName',
|
|
|
|
|
queryRate: 'dns.queryRate',
|
2022-03-07 16:15:55 +08:00
|
|
|
queryCount: 'dns.queryCount',
|
2022-03-06 23:26:42 +08:00
|
|
|
dnsLatency: 'dns.averageResolveLatency',
|
|
|
|
|
responseFailRate: 'dns.responseFailureRate'
|
|
|
|
|
}
|
2022-03-18 15:39:36 +08:00
|
|
|
export const chartTableOrderOptionsMapping = {}
|
2022-01-16 23:16:00 +08:00
|
|
|
export const chartPieTableTopOptions = [
|
|
|
|
|
{ name: 'Sessions', value: 'sessions' },
|
|
|
|
|
{ name: 'Packets', value: 'packets' },
|
|
|
|
|
{ name: 'Bytes', value: 'bytes' }
|
|
|
|
|
]
|
2022-02-13 23:20:24 +08:00
|
|
|
export const riskLevelMapping = [
|
|
|
|
|
{ name: 'Trustworthy', value: 1 },
|
|
|
|
|
{ name: 'Low Risk', value: 2 },
|
|
|
|
|
{ name: 'Moderate Risk', value: 3 },
|
|
|
|
|
{ name: 'Suspicious', value: 4 },
|
|
|
|
|
{ name: 'High Risk', value: 5 }
|
|
|
|
|
]
|
2022-02-22 22:22:15 +08:00
|
|
|
export const eventSeverity = {
|
|
|
|
|
critical: 'critical',
|
|
|
|
|
high: 'high',
|
|
|
|
|
medium: 'medium',
|
|
|
|
|
low: 'low',
|
|
|
|
|
info: 'info'
|
|
|
|
|
}
|
|
|
|
|
export const eventSeverityColor = {
|
|
|
|
|
critical: '#D84C4C',
|
|
|
|
|
high: '#FE845D',
|
|
|
|
|
medium: '#FFB65A',
|
|
|
|
|
low: '#FFD82D',
|
|
|
|
|
info: '#D1BD50'
|
|
|
|
|
}
|
|
|
|
|
export const securityType = {
|
|
|
|
|
commandAndControl: 'common and control',
|
|
|
|
|
payloadDelivery: 'payload delivery',
|
|
|
|
|
cryptomining: 'cryptomining',
|
|
|
|
|
phishing: 'phishing',
|
|
|
|
|
dga: 'dga',
|
|
|
|
|
ddos: 'ddos'
|
|
|
|
|
}
|
2022-02-25 13:33:54 +08:00
|
|
|
export const detectionPageType = {
|
|
|
|
|
securityEvent: 'securityEvent',
|
|
|
|
|
performanceEvent: 'performanceEvent'
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-03 23:21:33 +08:00
|
|
|
export const dnsServerRole = {
|
|
|
|
|
RTDNS: 'RTDNS',
|
|
|
|
|
TLDNS: 'TLDNS',
|
|
|
|
|
OPRDNS: 'OPRDNS',
|
|
|
|
|
ADNS: 'ADNS',
|
|
|
|
|
SBDNS: 'SBDNS',
|
|
|
|
|
RTDNSM: 'RTDNSM'
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-03 15:35:22 +08:00
|
|
|
export const chartColor = ['#5370C6', '#90CC74', '#FAC858', '#EE6666',
|
|
|
|
|
'#73BFDE', '#3BA172', '#FC8452', '#9960B4',
|
|
|
|
|
'#E97CCC', '#FEA69E', '#0F8AB2', '#57CBAC',
|
|
|
|
|
'#5888BC', '#63B6AC', '#EDC6B2', '#D5746B']
|
|
|
|
|
|
2021-10-16 15:50:12 +08:00
|
|
|
export const iso36112 = {
|
|
|
|
|
[storageKey.iso36112Capital]: 'data/countriesWithCapital',
|
|
|
|
|
[storageKey.iso36112WorldLow]: 'worldChinaLow',
|
|
|
|
|
IE: 'irelandLow',
|
|
|
|
|
MM: 'myanmarLow',
|
|
|
|
|
TZ: 'tanzaniaLow',
|
|
|
|
|
BS: 'bahamasLow',
|
|
|
|
|
DM: 'dominicaLow',
|
|
|
|
|
VC: 'saintVincentLow',
|
|
|
|
|
BG: 'bulgariaLow',
|
|
|
|
|
SK: 'slovakiaLow',
|
|
|
|
|
UZ: 'uzbekistanLow',
|
|
|
|
|
IS: 'icelandLow',
|
|
|
|
|
CA: 'canadaLow',
|
|
|
|
|
AT: 'austriaLow',
|
|
|
|
|
DO: 'dominicanRepublicLow',
|
|
|
|
|
MY: 'malaysiaLow',
|
|
|
|
|
BW: 'botswanaLow',
|
|
|
|
|
SH: 'saintHelenaLow',
|
|
|
|
|
NO: 'norway2020Low',
|
|
|
|
|
CF: 'centralAfricanRepublicLow',
|
|
|
|
|
GA: 'gabonLow',
|
|
|
|
|
GD: 'grenadaLow',
|
|
|
|
|
RU: 'russiaLow',
|
|
|
|
|
FR: 'franceLow',
|
|
|
|
|
TJ: 'tajikistanLow',
|
|
|
|
|
CU: 'cubaLow',
|
|
|
|
|
NP: 'nepalLow',
|
|
|
|
|
ZW: 'zimbabweLow',
|
|
|
|
|
CW: 'curacaoLow',
|
|
|
|
|
GW: 'guineaBissauLow',
|
|
|
|
|
EE: 'estoniaLow',
|
|
|
|
|
AG: 'antiguaBarbudaLow',
|
|
|
|
|
TT: 'trinidadTobagoLow',
|
|
|
|
|
BF: 'burkinaFasoLow',
|
|
|
|
|
LI: 'liechtensteinLow',
|
|
|
|
|
OM: 'omanLow',
|
|
|
|
|
GY: 'guyanaLow',
|
|
|
|
|
GR: 'greeceLow',
|
|
|
|
|
KG: 'kyrgyzstanLow',
|
|
|
|
|
SD: 'sudanLow',
|
|
|
|
|
AE: 'uaeLow',
|
|
|
|
|
KY: 'caymanIslandsLow',
|
|
|
|
|
LA: 'laosLow',
|
|
|
|
|
LT: 'lithuaniaLow',
|
|
|
|
|
UG: 'ugandaLow',
|
|
|
|
|
MR: 'mauritaniaLow',
|
|
|
|
|
SS: 'southSudan2015Low',
|
|
|
|
|
SI: 'sloveniaLow',
|
|
|
|
|
MX: 'mexicoLow',
|
|
|
|
|
GH: 'ghanaLow',
|
|
|
|
|
GN: 'guineaLow',
|
|
|
|
|
BB: 'barbadosLow',
|
|
|
|
|
HN: 'hondurasLow',
|
|
|
|
|
SN: 'senegalLow',
|
|
|
|
|
BD: 'bangladeshLow',
|
|
|
|
|
BQ: 'bonaireSintEustatiusSabaLow',
|
|
|
|
|
CC: 'cocosKeelingLow',
|
|
|
|
|
HR: 'croatiaLow',
|
|
|
|
|
PL: 'polandLow',
|
|
|
|
|
ST: 'saoTomePrincipeLow',
|
|
|
|
|
TC: 'turksCaicosLow',
|
|
|
|
|
GT: 'guatemalaLow',
|
|
|
|
|
IT: 'italyLow',
|
|
|
|
|
RW: 'rwandaLow',
|
|
|
|
|
LC: 'saintLuciaLow',
|
|
|
|
|
TL: 'timorLesteLow',
|
|
|
|
|
CZ: 'czechiaLow',
|
|
|
|
|
GQ: 'equatorialGuineaLow',
|
|
|
|
|
FJ: 'fijiEastLow',
|
|
|
|
|
MA: 'moroccoLow',
|
|
|
|
|
DJ: 'djiboutiLow',
|
|
|
|
|
NE: 'nigerLow',
|
|
|
|
|
LV: 'latviaLow',
|
|
|
|
|
RS: 'serbiaLow',
|
|
|
|
|
PE: 'peruLow',
|
|
|
|
|
SE: 'swedenLow',
|
|
|
|
|
GE: 'georgiaLow',
|
|
|
|
|
DE: 'bosniaHerzegovinaLow',
|
|
|
|
|
AF: 'afghanistanLow',
|
|
|
|
|
AR: 'argentinaLow',
|
|
|
|
|
KE: 'kenyaLow',
|
|
|
|
|
AS: 'americanSamoaLow',
|
|
|
|
|
FI: 'finlandLow',
|
|
|
|
|
IR: 'iranLow',
|
|
|
|
|
UY: 'uruguayLow',
|
|
|
|
|
SA: 'saudiArabiaLow',
|
|
|
|
|
EC: 'ecuadorLow',
|
|
|
|
|
AW: 'arubaLow',
|
|
|
|
|
ZA: 'southAfricaLow',
|
|
|
|
|
PM: 'stPierreMiquelonLow',
|
|
|
|
|
SC: 'seychellesLow',
|
|
|
|
|
MG: 'madagascarProvinceLow',
|
|
|
|
|
YE: 'yemenLow',
|
|
|
|
|
BR: 'brazilLow',
|
|
|
|
|
ML: 'maliLow',
|
|
|
|
|
CL: 'chileLow',
|
|
|
|
|
LB: 'lebanonLow',
|
|
|
|
|
DZ: 'algeriaLow',
|
|
|
|
|
FO: 'faroeIslandsLow',
|
|
|
|
|
VE: 'venezuelaLow',
|
|
|
|
|
CR: 'costaRicaLow',
|
|
|
|
|
GP: 'guadeloupeLow',
|
|
|
|
|
SV: 'elSalvadorLow',
|
|
|
|
|
LK: 'sriLankaLow',
|
|
|
|
|
KZ: 'kazakhstanLow',
|
|
|
|
|
NL: 'netherlandsLow',
|
|
|
|
|
GM: 'gambiaLow',
|
|
|
|
|
TR: 'turkeyLow',
|
|
|
|
|
be: 'belgiumLow',
|
|
|
|
|
PA: 'panamaLow',
|
|
|
|
|
AZ: 'azerbaijanLow',
|
|
|
|
|
PT: 'portugalLow',
|
|
|
|
|
VA: 'vaticanLow',
|
|
|
|
|
MW: 'malawiLow',
|
|
|
|
|
KN: 'stKittsNevisLow',
|
|
|
|
|
NI: 'nicaraguaLow',
|
|
|
|
|
MD: 'moldovaLow',
|
|
|
|
|
IN: 'indiaLow',
|
|
|
|
|
MZ: 'mozambiqueLow',
|
|
|
|
|
WS: 'samoaLow',
|
|
|
|
|
ET: 'ethiopiaLow',
|
|
|
|
|
MV: 'maldivesLow',
|
|
|
|
|
TH: 'thailandLow',
|
|
|
|
|
PH: 'philippinesLow',
|
|
|
|
|
MQ: 'martiniqueLow',
|
|
|
|
|
KP: 'northKoreaLow',
|
|
|
|
|
PR: 'puertoRicoLow',
|
|
|
|
|
CV: 'capeVerdeLow',
|
|
|
|
|
TG: 'togoLow',
|
|
|
|
|
AL: 'albaniaLow',
|
|
|
|
|
SJ: 'svalbardLow',
|
|
|
|
|
BH: 'bahrainLow',
|
|
|
|
|
AU: 'australiaLow',
|
|
|
|
|
BI: 'burundiLow',
|
|
|
|
|
QA: 'qatarLow',
|
|
|
|
|
TD: 'chadLow',
|
|
|
|
|
BZ: 'belizeLow',
|
|
|
|
|
GS: 'georgiaSouthOssetiaLow',
|
|
|
|
|
MS: 'montserratLow',
|
|
|
|
|
BM: 'bermudaLow',
|
|
|
|
|
ZM: 'zambiaLow',
|
|
|
|
|
JP: 'japanLow',
|
|
|
|
|
JO: 'jordanLow',
|
|
|
|
|
BT: 'bhutanLow',
|
|
|
|
|
NZ: 'newZealandLow',
|
|
|
|
|
MK: 'northMacedoniaLow',
|
|
|
|
|
TN: 'tunisiaLow',
|
|
|
|
|
bl: 'stBarthelemyLow',
|
|
|
|
|
PY: 'paraguayLow',
|
|
|
|
|
ID: 'indonesiaLow',
|
|
|
|
|
HT: 'haitiLow',
|
|
|
|
|
FK: 'falklandIslandsLow',
|
|
|
|
|
MP: 'northernMarianaLow',
|
|
|
|
|
PS: 'palestineLow',
|
|
|
|
|
CD: 'congoDRLow',
|
|
|
|
|
AM: 'armeniaLow',
|
|
|
|
|
DK: 'denmarkLow',
|
|
|
|
|
NG: 'nigeriaLow',
|
|
|
|
|
RO: 'romaniaLow',
|
|
|
|
|
ER: 'eritreaLow',
|
|
|
|
|
BN: 'bruneiDarussalamLow',
|
|
|
|
|
AO: 'angolaLow',
|
|
|
|
|
BA: 'bosniaHerzegovinaCantonsLow',
|
|
|
|
|
PK: 'pakistanLow',
|
|
|
|
|
GL: 'greenlandLow',
|
|
|
|
|
TM: 'turkmenistanLow',
|
|
|
|
|
BJ: 'beninLow',
|
|
|
|
|
CI: 'cotedIvoireLow',
|
|
|
|
|
CN: 'chinaLow',
|
|
|
|
|
CH: 'switzerlandLow',
|
|
|
|
|
VG: 'britishVirginIslandsLow',
|
|
|
|
|
VI: 'usVirginIslandsLow',
|
|
|
|
|
IL: 'israelLow',
|
|
|
|
|
SR: 'surinameLow',
|
|
|
|
|
CO: 'colombiaLow',
|
|
|
|
|
MT: 'maltaLow',
|
|
|
|
|
CM: 'cameroonLow',
|
|
|
|
|
LY: 'libyaLow',
|
|
|
|
|
IQ: 'iraqLow',
|
|
|
|
|
UA: 'ukraineLow',
|
|
|
|
|
VN: 'vietnamLow',
|
|
|
|
|
KH: 'cambodiaLow',
|
|
|
|
|
AI: 'anguillaLow',
|
|
|
|
|
ME: 'montenegroLow',
|
|
|
|
|
SB: 'solomonIslandsLow',
|
|
|
|
|
KR: 'southKoreaLow',
|
|
|
|
|
GB: 'ukLow',
|
|
|
|
|
SG: 'singaporeLow',
|
|
|
|
|
EG: 'egyptLow',
|
|
|
|
|
CY: 'cyprusLow',
|
|
|
|
|
KM: 'comorosLow',
|
|
|
|
|
GU: 'guamLow',
|
|
|
|
|
HK: 'hongKongLow',
|
|
|
|
|
SO: 'somaliaLow',
|
|
|
|
|
NA: 'namibiaLow',
|
|
|
|
|
HU: 'hungaryLow',
|
|
|
|
|
BY: 'belarusLow',
|
|
|
|
|
BO: 'boliviaLow',
|
|
|
|
|
GF: 'frenchGuianaLow',
|
|
|
|
|
US: 'usaLow',
|
|
|
|
|
SL: 'sierraLeoneLow',
|
|
|
|
|
SM: 'sanMarinoLow',
|
|
|
|
|
AD: 'andorraLow',
|
|
|
|
|
ES: 'spainLow',
|
|
|
|
|
KW: 'kuwaitLow',
|
|
|
|
|
CG: 'congoLow',
|
|
|
|
|
LU: 'luxembourgLow',
|
|
|
|
|
JM: 'jamaicaLow',
|
|
|
|
|
SY: 'syriaLow',
|
|
|
|
|
SZ: 'eswatiniLow',
|
|
|
|
|
MN: 'mongoliaLow'
|
|
|
|
|
}
|
2022-03-12 16:56:46 +08:00
|
|
|
|
|
|
|
|
export const reg = {
|
|
|
|
|
// 不严格ipv4
|
|
|
|
|
notStrictIpv4: /(?:[0-9]{1,}\.){0,}[0-9]{1,}(\.)?/g,
|
|
|
|
|
// 不严格Ipv4带单引号
|
|
|
|
|
notStrictWithQuotIpv4: /'(?:[0-9]{1,}\.){0,}[0-9]{1,}(\.)?'/g,
|
|
|
|
|
// 不严格ipv6
|
|
|
|
|
notStrictIpv6: /(:{0,}[a-fA-F\d]{0,}){0,}:+([a-fA-F\d]{0,}:{0,}){0,}/g,
|
|
|
|
|
// 不严格Ipv6带单引号
|
|
|
|
|
notStrictWithQuotIpv6: /'(:{0,}[a-fA-F\d]{0,}){0,}:+([a-fA-F\d]{0,}:{0,}){0,}'/g
|
|
|
|
|
}
|
2022-03-17 17:56:38 +08:00
|
|
|
// 顶级域名列表
|
|
|
|
|
export const topDomain = ['ac', 'com.ac', 'edu.ac', 'gov.ac', 'net.ac', 'mil.ac', 'org.ac', 'ad', 'nom.ad', 'ae', 'co.ae', 'net.ae', 'org.ae', 'sch.ae', 'ac.ae', 'gov.ae', 'mil.ae', 'aero', 'accident-investigation.aero', 'accident-prevention.aero', 'aerobatic.aero', 'aeroclub.aero', 'aerodrome.aero', 'agents.aero', 'aircraft.aero', 'airline.aero', 'airport.aero', 'air-surveillance.aero', 'airtraffic.aero', 'air-traffic-control.aero', 'ambulance.aero', 'amusement.aero', 'association.aero', 'author.aero', 'ballooning.aero', 'broker.aero', 'caa.aero', 'cargo.aero', 'catering.aero', 'certification.aero', 'championship.aero', 'charter.aero', 'civilaviation.aero', 'club.aero', 'conference.aero', 'consultant.aero', 'consulting.aero', 'control.aero', 'council.aero', 'crew.aero', 'design.aero', 'dgca.aero', 'educator.aero', 'emergency.aero', 'engine.aero', 'engineer.aero', 'entertainment.aero', 'equipment.aero', 'exchange.aero', 'express.aero', 'federation.aero', 'flight.aero', 'fuel.aero', 'gliding.aero', 'government.aero', 'groundhandling.aero', 'group.aero', 'hanggliding.aero', 'homebuilt.aero', 'insurance.aero', 'journal.aero', 'journalist.aero', 'leasing.aero', 'logistics.aero', 'magazine.aero', 'maintenance.aero', 'media.aero', 'microlight.aero', 'modelling.aero', 'navigation.aero', 'parachuting.aero', 'paragliding.aero', 'passenger-association.aero', 'pilot.aero', 'press.aero', 'production.aero', 'recreation.aero', 'repbody.aero', 'res.aero', 'research.aero', 'rotorcraft.aero', 'safety.aero', 'scientist.aero', 'services.aero', 'show.aero', 'skydiving.aero', 'software.aero', 'student.aero', 'trader.aero', 'trading.aero', 'trainer.aero', 'union.aero', 'workinggroup.aero', 'works.aero', 'af', 'gov.af', 'com.af', 'org.af', 'net.af', 'edu.af', 'ag', 'com.ag', 'org.ag', 'net.ag', 'co.ag', 'nom.ag', 'ai', 'off.ai', 'com.ai', 'net.ai', 'org.ai', 'al', 'com.al', 'edu.al', 'gov.al', 'mil.al', 'net.al', 'org.al', 'am', 'co.am', 'com.am', 'commune.am', 'net.am', 'org.am', 'ao', 'ed.ao', 'gv.ao', 'og.ao', 'co.ao', 'pb.ao', 'it.ao', 'aq', 'ar', 'com.ar', 'edu.ar', 'gob.ar', 'gov.ar', 'int.ar', 'mil.ar', 'musica.ar', 'net.ar', 'org.ar', 'tur.ar', 'arpa', 'e164.arpa', 'in-addr.arpa', 'ip6.arpa', 'iris.arpa', 'uri.arpa', 'urn.arpa', 'as', 'gov.as', 'asia', 'at', 'ac.at', 'co.at', 'gv.at', 'or.at', 'sth.ac.at', 'au', 'com.au', 'net.au', 'org.au', 'edu.au', 'gov.au', 'asn.au', 'id.au', 'info.au', 'conf.au', 'oz.au', 'act.au', 'nsw.au', 'nt.au', 'qld.au', 'sa.au', 'tas.au', 'vic.au', 'wa.au', 'act.edu.au', 'catholic.edu.au', 'nsw.edu.au', 'nt.edu.au', 'qld.edu.au', 'sa.edu.au', 'tas.edu.au', 'vic.edu.au', 'wa.edu.au', 'qld.gov.au', 'sa.gov.au', 'tas.gov.au', 'vic.gov.au', 'wa.gov.au', 'schools.nsw.edu.au', 'aw', 'com.aw', 'ax', 'az', 'com.az', 'net.az', 'int.az', 'gov.az', 'org.az', 'edu.az', 'info.az', 'pp.az', 'mil.az', 'name.az', 'pro.az', 'biz.az', 'ba', 'com.ba', 'edu.ba', 'gov.ba', 'mil.ba', 'net.ba', 'org.ba', 'bb', 'biz.bb', 'co.bb', 'com.bb', 'edu.bb', 'gov.bb', 'info.bb', 'net.bb', 'org.bb', 'store.bb', 'tv.bb', '*.bd', 'be', 'ac.be', 'bf', 'gov.bf', 'bg', 'a.bg', 'b.bg', 'c.bg', 'd.bg', 'e.bg', 'f.bg', 'g.bg', 'h.bg', 'i.bg', 'j.bg', 'k.bg', 'l.bg', 'm.bg', 'n.bg', 'o.bg', 'p.bg', 'q.bg', 'r.bg', 's.bg', 't.bg', 'u.bg', 'v.bg', 'w.bg', 'x.bg', 'y.bg', 'z.bg', '0.bg', '1.bg', '2.bg', '3.bg', '4.bg', '5.bg', '6.bg', '7.bg', '8.bg', '9.bg', 'bh', 'com.bh', 'edu.bh', 'net.bh', 'org.bh', 'gov.bh', 'bi', 'co.bi', 'com.bi', 'edu.bi', 'or.bi', 'org.bi', 'biz', 'bj', 'asso.bj', 'barreau.bj', 'gouv.bj', 'bm', 'com.bm', 'edu.bm', 'gov.bm', 'net.bm', 'org.bm', 'bn', 'com.bn', 'edu.bn', 'gov.bn', 'net.bn', 'org.bn', 'bo', 'com.bo', 'edu.bo', 'gob.bo', 'int.bo', 'org.bo', 'net.bo', 'mil.bo', 'tv.bo', 'web.bo', 'academia.bo', 'agro.bo', 'arte.bo', 'blog.bo', 'bolivia.bo', 'ciencia.bo', 'cooperativa.bo', 'democracia.bo', 'deporte.bo', 'ecologia.bo', 'economia.bo', 'empresa.bo', 'indigena.bo', 'industria.bo', 'info.bo', 'medicina.bo', 'movimiento.bo', 'musica.bo', 'natural.bo', 'nombre.bo', 'noticias.bo', 'patria.bo', 'politica.bo', 'profesional.b
|