CN-108 feat: 将serverIP和clientIP的实体详情页的panelTyle区分开来
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
||||||
const { VueLoaderPlugin } = require('vue-loader')
|
const { VueLoaderPlugin } = require('vue-loader')
|
||||||
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
||||||
|
|
||||||
@@ -15,10 +16,6 @@ const externals = [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const plugins = [
|
|
||||||
new VueLoaderPlugin()
|
|
||||||
// new BundleAnalyzerPlugin(),
|
|
||||||
]
|
|
||||||
|
|
||||||
const entry = path.resolve(__dirname, '../packages/element-plus/index.ts')
|
const entry = path.resolve(__dirname, '../packages/element-plus/index.ts')
|
||||||
|
|
||||||
@@ -67,4 +64,20 @@ const config = {
|
|||||||
plugins
|
plugins
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const plugins = [
|
||||||
|
new VueLoaderPlugin(),
|
||||||
|
new UglifyJsPlugin({
|
||||||
|
uglifyOptions: {
|
||||||
|
compress: {
|
||||||
|
warnings: false,
|
||||||
|
drop_console: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
exclude: /manifest.+js/,
|
||||||
|
sourceMap: config.build.productionSourceMap,
|
||||||
|
parallel: true
|
||||||
|
})
|
||||||
|
// new BundleAnalyzerPlugin(),
|
||||||
|
]
|
||||||
|
|
||||||
module.exports = config
|
module.exports = config
|
||||||
|
|||||||
@@ -37,9 +37,10 @@ export const panelTypeAndRouteMapping = {
|
|||||||
trafficSummary: 1,
|
trafficSummary: 1,
|
||||||
networkAppPerformance: 2,
|
networkAppPerformance: 2,
|
||||||
dnsServiceInsights: 3,
|
dnsServiceInsights: 3,
|
||||||
ipEntityDetail: 4,
|
clientIpEntityDetail: 4,
|
||||||
domainEntityDetail: 5,
|
domainEntityDetail: 5,
|
||||||
appEntityDetail: 6
|
appEntityDetail: 6,
|
||||||
|
serverIpEntityDetail: 7
|
||||||
}
|
}
|
||||||
|
|
||||||
export const position = {
|
export const position = {
|
||||||
|
|||||||
@@ -69,7 +69,8 @@ export default {
|
|||||||
tabTitle () {
|
tabTitle () {
|
||||||
let title
|
let title
|
||||||
switch (this.typeName) {
|
switch (this.typeName) {
|
||||||
case 'ipEntityDetail': {
|
case 'clientIpEntityDetail':
|
||||||
|
case 'serverIpEntityDetail': {
|
||||||
title = this.$t('entities.ipDetail')
|
title = this.$t('entities.ipDetail')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user