diff --git a/nezha-fronted/src/components/cli/console.vue b/nezha-fronted/src/components/cli/console.vue
index 28419fe0d..d44948a27 100644
--- a/nezha-fronted/src/components/cli/console.vue
+++ b/nezha-fronted/src/components/cli/console.vue
@@ -64,14 +64,8 @@ export default {
// 调整终端容器高度
const consoleBox = document.getElementById('ternimalContainer' + this.idIndex)
consoleBox.style.height = `${consoleHeigt - 55}px`
- // 调整终端高度
- /* let cols = this.term.cols
- if (consoleWidth) { // 需要调整宽度???
- cols = consoleWidth / 11// 目前字体,一个字母宽11
- } */
// 调整终端可视区域高度
document.getElementsByClassName('xterm-screen')[this.idIndex].style.height = `${consoleHeigt - 10}px`
- // this.term.resize(parseInt(cols),(parseInt(rows)-this.minRow));
this.$nextTick(() => { // 解决进入全屏和退出全屏是底部隐藏
this.setFontSize(this.fontSize)
})
@@ -84,11 +78,9 @@ export default {
cols: this.term.cols, // cols和rows在resizeConsole方法已经设置
rows: this.term.rows
}
- // alert(JSON.stringify(winStyle));
this.$post('terminal/resize', winStyle).then(response => {
if (response.code === 200) {
this.term.fit()
- // this.term.scrollToBottom();
} else {
this.$message.error(response.msg)
}
@@ -98,8 +90,6 @@ export default {
if (resizeHeight) {
this.termimalHeight = resizeHeight
}
- // this.isFullScreen = isFullScreen;
- // this.term.toggleFullScreen(isFullScreen);//全屏后无法显示顶部菜单和tab
let height = document.body.clientHeight - this.topMenuHeight// 可视高度
const width = document.body.clientWidth// 可视宽度
let rows = height / (this.fontSize + this.fontSpaceHeight)
@@ -136,20 +126,6 @@ export default {
this.$nextTick(() => { // 解决进入全屏和退出全屏是底部隐藏
this.setFontSize(this.fontSize)
})
-
- /*
- window.addEventListener('resize',this.windowChange)
-
- windowChange(){
- this.term.fit();
- this.term.scrollToBottom();
- }
-
-// 关闭时,取消监听
- websocket.onclose = function(evt) {
- console.log("close", evt);
- window.removeEventListener('resize',this.windowChange)
- }; */
},
focusConsole () {
this.term.focus()
@@ -175,22 +151,9 @@ export default {
const terminalContainer = document.getElementById('terminal' + this.idIndex)
this.term = new Terminal({
rows: rows, // 15行大概300px高,无法设置heigh,只能设置rows
- // cursorBlink:true,//光标闪烁
cursorStyle: 'block', // 光标样式 null | 'block' | 'underline' | 'bar'
- // bellStyle:'sound',
disableStdin: false, // 是否应禁用输入
fontSize: this.fontSize
- // lineHeight:1,
- // fontFamily: 'NotoSans',
- // scrollback: 800, //回滚
- // tabStopWidth: 8, //制表宽度
- // screenKeys: true//
- /*
- theme:{
- foreground:'yellow',//字体
- background:'#060101',//背景色
- cursor:'help',//鼠标
- } */
})
this.term.open(terminalContainer)
this.term.focus()
@@ -228,15 +191,6 @@ export default {
// 返回
this.terminalSocket.onmessage = function (evt) {
let backContent = evt.data
- /*
- if(that.inputSecret){//当前为密码输入状态
- }
- if(backContent.length>1){
- let pwdInput = backContent.endsWith(that.psdCont);
- if(pwdInput){//输入密码
- that.inputSecret = true;
- }
- } */
const welComIndex = backContent.indexOf(that.welcomeBackContent)
if (welComIndex > -1) { // 无服务器信息(只与nezha进行了连接)
@@ -269,10 +223,6 @@ export default {
}
that.$emit('refreshConsoleTitle', connectResult)// 1:grey 2 green 3 red
} else if (connectFailIndex > -1) {
- const startIndex = successContentIndex + that.successBackContent.length + 1
- backContent = backContent.substring(startIndex)
- // const endIndex = backContent.indexOf('\r\n')
- // const title = backContent.substring(0, endIndex)
const connectResult = {
title: '',
color: 3
@@ -285,7 +235,6 @@ export default {
// 关闭
this.terminalSocket.onclose = () => {
// 报错sorry的,还没来得及看信息就关闭
- // this.$emit("closeConsole",this.terminal.name);//
this.term.setOption('disableStdin', true)
}
@@ -336,25 +285,15 @@ export default {
this.$post('terminal/resize', winStyle).then(response => {
if (response.code === 200) {
this.term.fit()
- // this.term.scrollToBottom();
} else {
this.$message.error(response.msg)
}
})
})
- // alert(JSON.stringify(winStyle));
-
- // console.log(winStyle)
}
},
mounted () {
this.create()
- },
- created () {
-
- },
- beforeCreate () {
-
},
beforeDestroy () {
this.closeSocket()
diff --git a/nezha-fronted/src/components/cli/webSSH.vue b/nezha-fronted/src/components/cli/webSSH.vue
index a01bbef8c..fdddb6af8 100644
--- a/nezha-fronted/src/components/cli/webSSH.vue
+++ b/nezha-fronted/src/components/cli/webSSH.vue
@@ -1,15 +1,4 @@
-
-
一
@@ -19,32 +8,6 @@
-
-
-
@@ -122,9 +78,6 @@
ref="uploadFile" >
{{$t('overall.dragFileTip')}},{{$t('overall.or')}} {{$t('overall.clickUpload')}}
-
@@ -1006,66 +959,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/ChartDiagram/diagram.vue b/nezha-fronted/src/components/common/ChartDiagram/diagram.vue
index 1ca5826e2..35922c7de 100644
--- a/nezha-fronted/src/components/common/ChartDiagram/diagram.vue
+++ b/nezha-fronted/src/components/common/ChartDiagram/diagram.vue
@@ -2197,153 +2197,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue
index eea7655d6..8eeaa4276 100644
--- a/nezha-fronted/src/components/common/alert/alertLabel.vue
+++ b/nezha-fronted/src/components/common/alert/alertLabel.vue
@@ -156,46 +156,8 @@ export default {
props: {
id: {},
type: {},
- // labelLoading:{},
that: {}
},
- /* watch:{
- labelLoading: {
- immediate: true,
- handler(n) {
- if(this.type==='asset'){
- this.$get('/asset/info?id='+this.id).then((res)=>{
- if(res.msg==='success'){
- this.loading=false;
- this.alertLabelData=res.data.Basic;
- } else{
- this.$message.error(res.msg);
- }
- })
- }
- if(this.type==='project'){
- this.$get('/project/info?id='+this.id).then((res)=>{
- if(res.msg==='success'){
- this.loading=false;
- this.alertLabelData=res.data.basic;
- } else{
- this.$message.error(res.msg);
- }
- })
- }
- if(this.type==='module'){
- this.$get('/module?id='+this.id).then((res)=>{
- if(res.msg==='success'){
- this.loading=false;
- this.alertLabelData=res.data.list[0];
- } else{
- this.$message.error(res.msg);
- }
- })
- }
- }
- }
- }, */
data () {
return {
alertLabelData: null,
@@ -323,102 +285,7 @@ export default {
return this.$t('asset.notInStock')
}
}
- },
- mounted () {},
- beforeDestroy () {
-
}
}
-
-
diff --git a/nezha-fronted/src/components/common/alert/alertLabel2.vue b/nezha-fronted/src/components/common/alert/alertLabel2.vue
index 25da47129..be544aff4 100644
--- a/nezha-fronted/src/components/common/alert/alertLabel2.vue
+++ b/nezha-fronted/src/components/common/alert/alertLabel2.vue
@@ -129,46 +129,10 @@ export default {
props: {
id: {},
type: {},
- // labelLoading:{},
that: {},
LRTriangle: {}
},
watch: {
- // labelLoading: {
- // immediate: true,
- // handler(n) {
- // if(this.type==='asset'){
- // this.$get('/asset/info?id='+this.id).then((res)=>{
- // if(res.msg==='success'){
- // this.loading=false;
- // this.alertLabelData=res.data.Basic;
- // } else{
- // this.$message.error(res.msg);
- // }
- // })
- // }
- // if(this.type==='project'){
- // this.$get('/project/info?id='+this.id).then((res)=>{
- // if(res.msg==='success'){
- // this.loading=false;
- // this.alertLabelData=res.data.basic;
- // } else{
- // this.$message.error(res.msg);
- // }
- // })
- // }
- // if(this.type==='module'){
- // this.$get('/module?id='+this.id).then((res)=>{
- // if(res.msg==='success'){
- // this.loading=false;
- // this.alertLabelData=res.data.list[0];
- // } else{
- // this.$message.error(res.msg);
- // }
- // })
- // }
- // }
- // }
id: {
immediate: true,
deep: true,
@@ -195,9 +159,6 @@ export default {
alertLabelData: null,
loading: true
}
- },
- components: {
-
},
computed: {
calcPosition () {
@@ -285,120 +246,7 @@ export default {
return this.$t('asset.notInStock')
}
}
- },
- mounted () {
-
- },
- beforeDestroy () {
-
}
}
-
-
diff --git a/nezha-fronted/src/components/common/alert/alertRuleInfo.vue b/nezha-fronted/src/components/common/alert/alertRuleInfo.vue
index 7cabe5ae4..7d82f1038 100644
--- a/nezha-fronted/src/components/common/alert/alertRuleInfo.vue
+++ b/nezha-fronted/src/components/common/alert/alertRuleInfo.vue
@@ -34,7 +34,7 @@
{{$t('alert.config.trbShot')}}
-
+
@@ -128,167 +128,3 @@ export default {
}
-
-
diff --git a/nezha-fronted/src/components/common/alert/selectAlertSilence.vue b/nezha-fronted/src/components/common/alert/selectAlertSilence.vue
index 70ebae333..4f364b9d8 100644
--- a/nezha-fronted/src/components/common/alert/selectAlertSilence.vue
+++ b/nezha-fronted/src/components/common/alert/selectAlertSilence.vue
@@ -2,9 +2,7 @@
-
-
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
index cd4b40e01..de5fb5d7e 100644
--- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
+++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
@@ -293,129 +293,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
index 71b4ef249..02ce4b0c0 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
@@ -757,7 +757,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue
index e19291bd6..ac191697d 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue
@@ -808,9 +808,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue
index 497725395..64309bc51 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue
@@ -170,7 +170,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/chartTempPreview.vue b/nezha-fronted/src/components/common/bottomBox/tabs/chartTempPreview.vue
deleted file mode 100644
index f5fc59a30..000000000
--- a/nezha-fronted/src/components/common/bottomBox/tabs/chartTempPreview.vue
+++ /dev/null
@@ -1,622 +0,0 @@
-
-
-
- {{obj.name}}
-
-
-
-
-
-
-
-
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue
index ccc7006bc..ce456815a 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue
@@ -219,9 +219,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue
deleted file mode 100644
index 409482a05..000000000
--- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue
+++ /dev/null
@@ -1,723 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - metric : {{scope.row.metricTip.metric?scope.row.metricTip.metric:'--'}}
- - type : {{scope.row.metricTip.type?scope.row.metricTip.type:'unknown'}}
- - help : {{scope.row.metricTip.help?scope.row.metricTip.help:'--'}}
- - unit : {{scope.row.metricTip.unit?scope.row.metricTip.unit:'--'}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{$t("project.endpoint.dialogTitle")}}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue
index 0c5bac0d9..e4ce7d2f1 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue
@@ -550,7 +550,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTabNew.vue
index 05f81ca99..f1a96d5fe 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTabNew.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTabNew.vue
@@ -255,9 +255,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue
index abfe66f8e..f7ff33f42 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue
@@ -24,7 +24,7 @@
- No Data
+ No Data
@@ -130,9 +130,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/modelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/modelTab.vue
deleted file mode 100644
index f1f0fe185..000000000
--- a/nezha-fronted/src/components/common/bottomBox/tabs/modelTab.vue
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue
deleted file mode 100644
index ed78c0a90..000000000
--- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue
+++ /dev/null
@@ -1,735 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue
index 908b7a96d..eea816c41 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue
@@ -1,5 +1,5 @@
-
+
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogCMDTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogCMDTab.vue
index 3500bd81e..5b9ae62db 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogCMDTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogCMDTab.vue
@@ -1,5 +1,5 @@
-
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogMonitorTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogMonitorTab.vue
index 8ac791da0..83a0c3d4d 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogMonitorTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogMonitorTab.vue
@@ -9,12 +9,6 @@
{{obj.uuid.substring(0, 8).toUpperCase()}}
-
-
-
-
-
-
@@ -296,73 +290,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogRecordTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogRecordTab.vue
index 4339ece5d..9f27c816f 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogRecordTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogRecordTab.vue
@@ -1,11 +1,11 @@
-
+ >
{{obj.uuid.substring(0, 8).toUpperCase()}}
@@ -348,60 +348,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue
index d4e1d572b..6f6f7a834 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogTab.vue
@@ -1,5 +1,5 @@
-
-
-
diff --git a/nezha-fronted/src/components/common/chartUnit.vue b/nezha-fronted/src/components/common/chartUnit.vue
index 00ce0303e..9a9127319 100644
--- a/nezha-fronted/src/components/common/chartUnit.vue
+++ b/nezha-fronted/src/components/common/chartUnit.vue
@@ -54,31 +54,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/detailView/detailViewTopSearch.vue b/nezha-fronted/src/components/common/detailView/detailViewTopSearch.vue
index 715ac4486..a24984817 100644
--- a/nezha-fronted/src/components/common/detailView/detailViewTopSearch.vue
+++ b/nezha-fronted/src/components/common/detailView/detailViewTopSearch.vue
@@ -1,5 +1,5 @@
-
+
-
-
-
diff --git a/nezha-fronted/src/components/common/detailView/list/alertRule/alertRuleDetail.vue b/nezha-fronted/src/components/common/detailView/list/alertRule/alertRuleDetail.vue
index 23dd39b76..fb29b8abf 100644
--- a/nezha-fronted/src/components/common/detailView/list/alertRule/alertRuleDetail.vue
+++ b/nezha-fronted/src/components/common/detailView/list/alertRule/alertRuleDetail.vue
@@ -227,103 +227,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/detailView/list/asset/assetDetail.vue b/nezha-fronted/src/components/common/detailView/list/asset/assetDetail.vue
index 7f4b1aca5..49a673c56 100644
--- a/nezha-fronted/src/components/common/detailView/list/asset/assetDetail.vue
+++ b/nezha-fronted/src/components/common/detailView/list/asset/assetDetail.vue
@@ -170,99 +170,7 @@ export default {
this.$set(item, 'position', position)
}
this.$set(item, 'loading', loading)
- // this.$set(this.tableData,index,item);// 调用父组件
- },
+ }
}
}
-
-
diff --git a/nezha-fronted/src/components/common/detailView/list/dc/dcDetail.vue b/nezha-fronted/src/components/common/detailView/list/dc/dcDetail.vue
index 4f4e831e2..55221912c 100644
--- a/nezha-fronted/src/components/common/detailView/list/dc/dcDetail.vue
+++ b/nezha-fronted/src/components/common/detailView/list/dc/dcDetail.vue
@@ -108,7 +108,6 @@ export default {
this.$set(item, 'position', position)
}
this.$set(item, 'loading', loading)
- // this.$set(this.tableData,index,item);// 调用父组件
},
suspendedStr (status) { // 10进制转为2进制 分别给对应的状态
if (!status || status === 1 || status == 0) { return '' }
@@ -128,112 +127,9 @@ export default {
if (index === 2) {
str += ``
}
- // if (index === 3) {
- // str += ``
- // }
})
return str
- },
+ }
}
}
-
-
diff --git a/nezha-fronted/src/components/common/detailView/list/endpoint/endpointDetail.vue b/nezha-fronted/src/components/common/detailView/list/endpoint/endpointDetail.vue
index 94c3b6f26..55749c22d 100644
--- a/nezha-fronted/src/components/common/detailView/list/endpoint/endpointDetail.vue
+++ b/nezha-fronted/src/components/common/detailView/list/endpoint/endpointDetail.vue
@@ -126,7 +126,6 @@ export default {
this.$set(item, 'position', position)
}
this.$set(item, 'loading', loading)
- // this.$set(this.tableData,index,item);// 调用父组件
},
suspendedStr (status) { // 10进制转为2进制 分别给对应的状态
if (!status || status === 1 || status == 0) { return '' }
@@ -146,112 +145,9 @@ export default {
if (index === 2) {
str += ``
}
- // if (index === 3) {
- // str += ``
- // }
})
return str
- },
+ }
}
}
-
-
diff --git a/nezha-fronted/src/components/common/detailView/list/module/moduleDetail.vue b/nezha-fronted/src/components/common/detailView/list/module/moduleDetail.vue
index 5686f4407..35fd2aaeb 100644
--- a/nezha-fronted/src/components/common/detailView/list/module/moduleDetail.vue
+++ b/nezha-fronted/src/components/common/detailView/list/module/moduleDetail.vue
@@ -128,112 +128,9 @@ export default {
if (index === 2) {
str += ``
}
- // if (index === 3) {
- // str += ``
- // }
})
return str
- },
+ }
}
}
-
-
diff --git a/nezha-fronted/src/components/common/detailView/nzDetailView.vue b/nezha-fronted/src/components/common/detailView/nzDetailView.vue
index 1df048984..7f4988fa9 100644
--- a/nezha-fronted/src/components/common/detailView/nzDetailView.vue
+++ b/nezha-fronted/src/components/common/detailView/nzDetailView.vue
@@ -1,5 +1,5 @@
-
+
@@ -178,9 +178,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/detailView/view/detailRightTop/detailRightTop.vue b/nezha-fronted/src/components/common/detailView/view/detailRightTop/detailRightTop.vue
index 70c7e8d67..e31c6a6e1 100644
--- a/nezha-fronted/src/components/common/detailView/view/detailRightTop/detailRightTop.vue
+++ b/nezha-fronted/src/components/common/detailView/view/detailRightTop/detailRightTop.vue
@@ -61,35 +61,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/detailView/view/detailViewRight.vue b/nezha-fronted/src/components/common/detailView/view/detailViewRight.vue
index 97dfb18bb..d033cc04a 100644
--- a/nezha-fronted/src/components/common/detailView/view/detailViewRight.vue
+++ b/nezha-fronted/src/components/common/detailView/view/detailViewRight.vue
@@ -1,8 +1,5 @@
-
-
-
-
+
@@ -304,65 +301,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/elementSet.vue b/nezha-fronted/src/components/common/elementSet.vue
index e4ea8a59d..994a471d3 100644
--- a/nezha-fronted/src/components/common/elementSet.vue
+++ b/nezha-fronted/src/components/common/elementSet.vue
@@ -130,73 +130,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/exportXLSX.vue b/nezha-fronted/src/components/common/exportXLSX.vue
index b6391cb4b..096235934 100644
--- a/nezha-fronted/src/components/common/exportXLSX.vue
+++ b/nezha-fronted/src/components/common/exportXLSX.vue
@@ -87,9 +87,6 @@
-
-
-
@@ -406,7 +403,7 @@ export default {
top:2px;
padding: 0 8px;
background-image: linear-gradient(180deg, #fff 0%, #E0E0E0 100%);
- border: 0px;
+ border: 0;
color: #666;
-webkit-box-shadow: 0 0 1px 1px rgba(162,162,162,0.5);
box-shadow: 0 0 1px 1px rgba(162,162,162,0.5);
diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue
deleted file mode 100644
index 08d44fe6c..000000000
--- a/nezha-fronted/src/components/common/header.vue
+++ /dev/null
@@ -1,908 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/nezha-fronted/src/components/common/honeycomb/hexagonFigureSvg.vue b/nezha-fronted/src/components/common/honeycomb/hexagonFigureSvg.vue
index 6e02566d3..0db2e3c7f 100644
--- a/nezha-fronted/src/components/common/honeycomb/hexagonFigureSvg.vue
+++ b/nezha-fronted/src/components/common/honeycomb/hexagonFigureSvg.vue
@@ -1,11 +1,5 @@
-
-
-
-
-
-
@@ -847,7 +841,6 @@ export default {
getHexagon(this.hexagonSvgID).allHexagonText = null// 文本内容
}
window.removeEventListener('visibilitychange', this.reload)
- // clearTimeout(this.timer)
}
}
diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js
index 6c20e9f89..30ef01b91 100644
--- a/nezha-fronted/src/components/common/js/constants.js
+++ b/nezha-fronted/src/components/common/js/constants.js
@@ -330,6 +330,10 @@ export const terminalLog = {
dangerCmd: ['chmod', 'chown', 'kill', 'rm', 'su', 'sudo'],
infoCmd: ['exit']
}
+export const theme = [
+ { label: 'light', value: 1 },
+ { label: 'dark', value: 2 }
+]
// 需要隐藏的内置label
export const sameLabels = ['instance', 'module', 'project', 'asset', 'endpoint', 'datacenter', 'datacenter_id', 'endpoint_id', 'module_id', 'nz_agent_id', 'project_id']
// 公共组件的跳转来源
diff --git a/nezha-fronted/src/components/common/labelFilter/clickSearch.vue b/nezha-fronted/src/components/common/labelFilter/clickSearch.vue
index f26c7bc2b..6fc370987 100644
--- a/nezha-fronted/src/components/common/labelFilter/clickSearch.vue
+++ b/nezha-fronted/src/components/common/labelFilter/clickSearch.vue
@@ -365,11 +365,7 @@ export default {
return width
},
changShowMore (type) {
- // this.changeMoreNum = 0
this.titleSearchListCopy[type].showMore = !this.titleSearchListCopy[type].showMore
- // this.$nextTick(() => {
- // this.changeMoreNum++
- // })
}
},
destroyed () {
@@ -377,120 +373,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/labelFilter/dropdown.vue b/nezha-fronted/src/components/common/labelFilter/dropdown.vue
index c42217d25..e83c789fb 100644
--- a/nezha-fronted/src/components/common/labelFilter/dropdown.vue
+++ b/nezha-fronted/src/components/common/labelFilter/dropdown.vue
@@ -90,7 +90,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/loading.vue b/nezha-fronted/src/components/common/loading.vue
index 8a65896d3..77123e574 100644
--- a/nezha-fronted/src/components/common/loading.vue
+++ b/nezha-fronted/src/components/common/loading.vue
@@ -1,13 +1,6 @@
-
-
+
diff --git a/nezha-fronted/src/components/common/login.vue b/nezha-fronted/src/components/common/login.vue
index 5c1b97662..ff64efad6 100644
--- a/nezha-fronted/src/components/common/login.vue
+++ b/nezha-fronted/src/components/common/login.vue
@@ -25,15 +25,6 @@
{{license.warnInfo}}
@@ -221,12 +212,6 @@ export default {
}
})
},
- // changeLang (lang) {
- // this.lang = lang
- // this.langListShow = false
- // this.$i18n.locale = 'cn'
- // localStorage.setItem('nz-language', this.lang)
- // },
validateLogin () {
if (!this.loginData.username || !this.loginData.pin) {
this.$message.error('Empty username or password')
@@ -236,9 +221,6 @@ export default {
}
},
licenseStat () {
- /* this.license.valid = false
- this.license.warnInfo = 'hehehe'
- this.license.token = 'dRqrWja/PzI8FrWVJeGqLw==' */
this.$get('/sys/license/state').then(response => {
if (response.code && response.code === 200) {
this.license.warnInfo = ''
@@ -330,23 +312,8 @@ export default {
})
}
},
- watch: {
- /* 'loginData.username'(n, o) {
- let lang = localStorage.getItem('nz-language-' + n);
- if (lang) {
- this.lang = lang;
- this.$i18n.locale = this.lang;
- }
- } */
- },
mounted () {
- const _this = this
this.$i18n.locale = this.lang
- // document.onkeydown = function (e) {
- // if (e.key === 'Enter') {
- // _this.login()
- // }
- // }
document.getElementById('usernameInput').focus()
this.licenseStat()
this.initEvent()
@@ -354,7 +321,7 @@ export default {
}
-
-
-
-
-
{{item.text}}
@@ -361,15 +235,6 @@ export default {
if (this.searchTime[0]) {
this.startTime = this.searchTime[0]
}
- // let timerPicker = document.querySelector('#timePickerContent');
- // timerPicker.innerText = val.text;
- /*
- let tipElementList = document.getElementsByClassName('calendar-popover-text');
- if(tipElementList && tipElementList.length===3){
- tipElementList[0].innerHTML = this.searchTime[0];
- tipElementList[1].innerHTML = this.$t("dashboard.panel.to");
- tipElementList[2].innerHTML = this.searchTime[1];
- } */
const id = val.id
if (id === 0) { // custom
@@ -463,9 +328,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/nezhaColor.vue b/nezha-fronted/src/components/common/nezhaColor.vue
index c849ed012..0649bb244 100644
--- a/nezha-fronted/src/components/common/nezhaColor.vue
+++ b/nezha-fronted/src/components/common/nezhaColor.vue
@@ -1,5 +1,5 @@
-
+
{{colors}}
@@ -189,104 +189,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/nzTransfer.vue b/nezha-fronted/src/components/common/nzTransfer.vue
index 8dc76ce3c..48c671290 100644
--- a/nezha-fronted/src/components/common/nzTransfer.vue
+++ b/nezha-fronted/src/components/common/nzTransfer.vue
@@ -224,102 +224,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/pagination.vue b/nezha-fronted/src/components/common/pagination.vue
index 752f78f3f..3bb120930 100644
--- a/nezha-fronted/src/components/common/pagination.vue
+++ b/nezha-fronted/src/components/common/pagination.vue
@@ -1,22 +1,21 @@
@@ -154,103 +153,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/pickTime.vue b/nezha-fronted/src/components/common/pickTime.vue
index 2de7409c6..f25030e26 100644
--- a/nezha-fronted/src/components/common/pickTime.vue
+++ b/nezha-fronted/src/components/common/pickTime.vue
@@ -19,16 +19,6 @@
-
@@ -87,7 +77,10 @@ export default {
interval: -1,
unit: 2,
dropdownShow: false,
- interLabel: ''
+ interLabel: '',
+ theme: {
+ themeColor: ''
+ }
}
},
created () {
@@ -165,7 +158,7 @@ export default {
}
-
diff --git a/nezha-fronted/src/components/common/popBox/guide.vue b/nezha-fronted/src/components/common/popBox/guide.vue
index eee034791..c8991c58f 100644
--- a/nezha-fronted/src/components/common/popBox/guide.vue
+++ b/nezha-fronted/src/components/common/popBox/guide.vue
@@ -359,188 +359,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/popBox/selectArea.vue b/nezha-fronted/src/components/common/popBox/selectArea.vue
deleted file mode 100644
index 4e3e798ef..000000000
--- a/nezha-fronted/src/components/common/popBox/selectArea.vue
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/nezha-fronted/src/components/common/popBox/selectAssetMetaGroup.vue b/nezha-fronted/src/components/common/popBox/selectAssetMetaGroup.vue
index 3a3d567a8..ad097903e 100644
--- a/nezha-fronted/src/components/common/popBox/selectAssetMetaGroup.vue
+++ b/nezha-fronted/src/components/common/popBox/selectAssetMetaGroup.vue
@@ -28,10 +28,6 @@
{{ node.label }}
-
-
-
-
@@ -119,66 +115,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/popBox/selectAssetType.vue b/nezha-fronted/src/components/common/popBox/selectAssetType.vue
index eb39cdeb4..25f62ceb6 100644
--- a/nezha-fronted/src/components/common/popBox/selectAssetType.vue
+++ b/nezha-fronted/src/components/common/popBox/selectAssetType.vue
@@ -79,67 +79,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/popBox/selectPanel.vue b/nezha-fronted/src/components/common/popBox/selectPanel.vue
index 601c4e6ba..8d7bf6a20 100644
--- a/nezha-fronted/src/components/common/popBox/selectPanel.vue
+++ b/nezha-fronted/src/components/common/popBox/selectPanel.vue
@@ -22,10 +22,6 @@
ref="panelTree">
{{ node.label }}
-
-
-
-
@@ -152,82 +148,6 @@ export default {
this.$refs.panelTree.setCurrentKey(data)
this.esc()
}
- // tree设为单选
- /* clearOthers(data, checked, child) {
- if (checked) {
- this.panel = data;
- this.$refs.panelTree.setCheckedKeys([data.id]);
- } else {
- this.panel = {id: '', name: ''};
- }
- } */
}
}
-
-
diff --git a/nezha-fronted/src/components/common/popBox/selectWalk.vue b/nezha-fronted/src/components/common/popBox/selectWalk.vue
index ba2708309..63344d2ee 100644
--- a/nezha-fronted/src/components/common/popBox/selectWalk.vue
+++ b/nezha-fronted/src/components/common/popBox/selectWalk.vue
@@ -131,57 +131,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue b/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue
index 1aa358f0a..7959eceda 100644
--- a/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue
+++ b/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue
@@ -394,15 +394,6 @@ export default {
formatNum (num) {
return num > 9 ? num : '0' + num
}
- // getParamsType () {
- // const path = this.$route.path
- // switch (path) {
- // case '/panel': this.paramsType = 'dashboard'; break
- // case '/asset': this.paramsType = 'asset'; break
- // case '/monitor/endpoint': this.paramsType = 'endpoint'; break
- // default: this.paramsType = ''; break
- // }
- // }
},
watch: {
panelLock: {
@@ -414,7 +405,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/L5/CanvasContextMenu.vue b/nezha-fronted/src/components/common/project/L5/CanvasContextMenu.vue
index ed389178b..1ac0fd24b 100644
--- a/nezha-fronted/src/components/common/project/L5/CanvasContextMenu.vue
+++ b/nezha-fronted/src/components/common/project/L5/CanvasContextMenu.vue
@@ -10,15 +10,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -439,8 +416,7 @@
{{ $t('project.topology.gradient') }}
+ class="color-before-select" popper-class="color-before-select" @change="bkTypeChange">
@@ -1883,624 +1859,3 @@ export default {
}
}
-
-
-
diff --git a/nezha-fronted/src/components/common/project/L5/topoTooltip.vue b/nezha-fronted/src/components/common/project/L5/topoTooltip.vue
index 27d4ef319..e16c797b8 100644
--- a/nezha-fronted/src/components/common/project/L5/topoTooltip.vue
+++ b/nezha-fronted/src/components/common/project/L5/topoTooltip.vue
@@ -457,73 +457,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/L5/topologyTopTool.vue b/nezha-fronted/src/components/common/project/L5/topologyTopTool.vue
index da1c78049..7f6bd5be3 100644
--- a/nezha-fronted/src/components/common/project/L5/topologyTopTool.vue
+++ b/nezha-fronted/src/components/common/project/L5/topologyTopTool.vue
@@ -2,10 +2,6 @@
@@ -164,166 +158,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/popData/Info.vue b/nezha-fronted/src/components/common/project/popData/Info.vue
index c29019afe..010889dc8 100644
--- a/nezha-fronted/src/components/common/project/popData/Info.vue
+++ b/nezha-fronted/src/components/common/project/popData/Info.vue
@@ -1,5 +1,5 @@
-
+
Module info
@@ -62,87 +62,6 @@ export default {
this.loading = false
this.moduleInfo = res.data
})
- },
- methods: {},
- beforeDestroy () {
-
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/popData/Main.vue b/nezha-fronted/src/components/common/project/popData/Main.vue
index f8a26b468..66d4b6f0e 100644
--- a/nezha-fronted/src/components/common/project/popData/Main.vue
+++ b/nezha-fronted/src/components/common/project/popData/Main.vue
@@ -135,138 +135,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/popData/alertTable.vue b/nezha-fronted/src/components/common/project/popData/alertTable.vue
index 6d58d39c9..d5d030e9d 100644
--- a/nezha-fronted/src/components/common/project/popData/alertTable.vue
+++ b/nezha-fronted/src/components/common/project/popData/alertTable.vue
@@ -343,63 +343,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/popData/assetTable.vue b/nezha-fronted/src/components/common/project/popData/assetTable.vue
index c3a3f996a..be38682ca 100644
--- a/nezha-fronted/src/components/common/project/popData/assetTable.vue
+++ b/nezha-fronted/src/components/common/project/popData/assetTable.vue
@@ -262,37 +262,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/popData/endpointTable.vue b/nezha-fronted/src/components/common/project/popData/endpointTable.vue
index fd09a6655..13edf17c3 100644
--- a/nezha-fronted/src/components/common/project/popData/endpointTable.vue
+++ b/nezha-fronted/src/components/common/project/popData/endpointTable.vue
@@ -279,37 +279,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/popData/expressionInfo.vue b/nezha-fronted/src/components/common/project/popData/expressionInfo.vue
index 38bee7219..1a396e8ec 100644
--- a/nezha-fronted/src/components/common/project/popData/expressionInfo.vue
+++ b/nezha-fronted/src/components/common/project/popData/expressionInfo.vue
@@ -63,39 +63,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/project/topologyL5.vue b/nezha-fronted/src/components/common/project/topologyL5.vue
index 29114dd1e..4149ff4d1 100644
--- a/nezha-fronted/src/components/common/project/topologyL5.vue
+++ b/nezha-fronted/src/components/common/project/topologyL5.vue
@@ -152,7 +152,7 @@
@@ -2209,153 +2209,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue
index 8d25e22ee..96b7379c1 100644
--- a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue
@@ -765,486 +765,3 @@ export default {
}
}
-
-
-
diff --git a/nezha-fronted/src/components/common/rightBox/administration/assetTypeBox.vue b/nezha-fronted/src/components/common/rightBox/administration/assetTypeBox.vue
index e35b286ac..221c12895 100644
--- a/nezha-fronted/src/components/common/rightBox/administration/assetTypeBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/administration/assetTypeBox.vue
@@ -215,6 +215,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue b/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue
index f670a1199..054d20b26 100644
--- a/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue
@@ -213,6 +213,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/rightBox/administration/roleBox.vue b/nezha-fronted/src/components/common/rightBox/administration/roleBox.vue
index 40d221421..5bd6e5553 100644
--- a/nezha-fronted/src/components/common/rightBox/administration/roleBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/administration/roleBox.vue
@@ -201,6 +201,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/rightBox/administration/userBox.vue b/nezha-fronted/src/components/common/rightBox/administration/userBox.vue
index f795572c8..b4fe77b29 100644
--- a/nezha-fronted/src/components/common/rightBox/administration/userBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/administration/userBox.vue
@@ -270,6 +270,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue
index 1287e7b43..708131bc8 100644
--- a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue
@@ -673,64 +673,3 @@ export default {
display: none;
}
-
diff --git a/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue b/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue
index 690be8189..6ac80bc51 100644
--- a/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue
@@ -354,104 +354,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue b/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue
index 0897f1c02..0d59fae57 100644
--- a/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue
@@ -483,7 +483,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue b/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue
index 8e3362f52..8672e9dca 100644
--- a/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/asset/assetBox.vue
@@ -780,51 +780,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue b/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue
index 28f1a7db1..137b38830 100644
--- a/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue
@@ -481,9 +481,6 @@ export default {
/deep/ .nz-meta-group-box{
min-width: 220px;
}
- /*.asset-meta-param /deep/ .el-radio__label{*/
- /* display: none;*/
- /*}*/
.asset-meta-param-row{
text-align: center;
margin-bottom: 10px;
diff --git a/nezha-fronted/src/components/common/rightBox/assetMetaGroup.vue b/nezha-fronted/src/components/common/rightBox/assetMetaGroup.vue
index 8cd8b48aa..305343e24 100644
--- a/nezha-fronted/src/components/common/rightBox/assetMetaGroup.vue
+++ b/nezha-fronted/src/components/common/rightBox/assetMetaGroup.vue
@@ -143,7 +143,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/rightBox/assetStateBox.vue b/nezha-fronted/src/components/common/rightBox/assetStateBox.vue
index c80ea4e7e..ae85231b1 100644
--- a/nezha-fronted/src/components/common/rightBox/assetStateBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/assetStateBox.vue
@@ -149,32 +149,3 @@ export default {
}
}
-
-
diff --git a/nezha-fronted/src/components/common/rightBox/batchAddEndpoint.vue b/nezha-fronted/src/components/common/rightBox/batchAddEndpoint.vue
index 8f9a20027..ba36ac5d9 100644
--- a/nezha-fronted/src/components/common/rightBox/batchAddEndpoint.vue
+++ b/nezha-fronted/src/components/common/rightBox/batchAddEndpoint.vue
@@ -497,37 +497,3 @@ export default {
}
}
-
diff --git a/nezha-fronted/src/components/common/rightBox/batchModifyEndpoint.vue b/nezha-fronted/src/components/common/rightBox/batchModifyEndpoint.vue
index 886d62121..a7f95479c 100644
--- a/nezha-fronted/src/components/common/rightBox/batchModifyEndpoint.vue
+++ b/nezha-fronted/src/components/common/rightBox/batchModifyEndpoint.vue
@@ -1,5 +1,5 @@
-