mirror of
https://github.com/1Panel-dev/KubePi.git
synced 2025-10-14 03:23:43 +08:00
fix(style): 删除 console 打印
This commit is contained in:
1
thirdparty/gotty/js/src/webtty.ts
vendored
1
thirdparty/gotty/js/src/webtty.ts
vendored
@@ -117,7 +117,6 @@ export class WebTTY {
|
||||
break;
|
||||
case msgSetReconnect:
|
||||
const autoReconnect = JSON.parse(payload);
|
||||
console.log("Enabling reconnect: " + autoReconnect + " seconds")
|
||||
this.reconnect = autoReconnect;
|
||||
break;
|
||||
}
|
||||
|
@@ -148,8 +148,6 @@ export default {
|
||||
listNamespace(this.clusterName, true, this.searchConfig.keywords, this.paginationConfig.currentPage, this.paginationConfig.pageSize).then((res) => {
|
||||
this.data = res.items
|
||||
this.paginationConfig.total = res.total
|
||||
}).catch(error => {
|
||||
console.log(error)
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
|
@@ -158,8 +158,7 @@ export default {
|
||||
created () {
|
||||
this.cluster = this.$route.query.cluster
|
||||
this.search()
|
||||
listApis(this.cluster).then(res => {
|
||||
console.log(res)
|
||||
listApis(this.cluster).then(() => {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@@ -174,11 +174,7 @@ export default {
|
||||
.then((res) => {
|
||||
this.data = res.items
|
||||
this.paginationConfig.total = res.total
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
.finally(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
@@ -283,11 +283,7 @@ export default {
|
||||
.then((res) => {
|
||||
this.data = res.items
|
||||
this.paginationConfig.total = res.total
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
.finally(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
@@ -345,11 +345,7 @@ export default {
|
||||
.then((res) => {
|
||||
this.data = res.items
|
||||
this.paginationConfig.total = res.total
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
.finally(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
@@ -190,11 +190,7 @@ export default {
|
||||
.then((res) => {
|
||||
this.data = res.items
|
||||
this.paginationConfig.total = res.total
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
.finally(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
@@ -295,11 +295,7 @@ export default {
|
||||
item.containers = container
|
||||
}
|
||||
this.paginationConfig.total = res.total
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error.message)
|
||||
})
|
||||
.finally(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
@@ -101,10 +101,9 @@ export default {
|
||||
})
|
||||
this.loading = false
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch(() => {
|
||||
this.showText = true
|
||||
this.loading = false
|
||||
console.log(error.message)
|
||||
})
|
||||
},
|
||||
sortBy(val) {
|
||||
|
@@ -341,11 +341,7 @@ export default {
|
||||
.then((res) => {
|
||||
this.data = res.items
|
||||
this.paginationConfig.total = res.total
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
.finally(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
@@ -44,8 +44,6 @@
|
||||
},
|
||||
methods: {},
|
||||
created() {
|
||||
console.log(model.V1Pod.attributeTypeMap)
|
||||
console.log(model.V1ObjectMeta.getAttributeTypeMap())
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@@ -75,9 +75,6 @@ export default {
|
||||
readFile (file) {
|
||||
const reader = new FileReader()
|
||||
reader.readAsText(file)
|
||||
reader.onerror = e => {
|
||||
console.log("error" + e)
|
||||
}
|
||||
reader.onload = () => {
|
||||
const item = {
|
||||
index: Math.random(),
|
||||
|
@@ -152,8 +152,8 @@ export default {
|
||||
metadata.annotations["operation"] = this.checked ? "update" : "check"
|
||||
},
|
||||
changeRepo (repo) {
|
||||
this.repo.images = []
|
||||
if (repo === "") {
|
||||
this.repo.images = []
|
||||
this.repo.repo = {}
|
||||
this.repo.name = ""
|
||||
return
|
||||
|
@@ -68,9 +68,6 @@ export default {
|
||||
readFile(file) {
|
||||
const reader = new FileReader()
|
||||
reader.readAsText(file)
|
||||
reader.onerror = (e) => {
|
||||
console.log("error" + e)
|
||||
}
|
||||
reader.onload = () => {
|
||||
const item = {
|
||||
index: Math.random(),
|
||||
|
@@ -107,9 +107,6 @@ export default {
|
||||
readFile (file) {
|
||||
const reader = new FileReader()
|
||||
reader.readAsText(file)
|
||||
reader.onerror = e => {
|
||||
console.log("error" + e)
|
||||
}
|
||||
reader.onload = () => {
|
||||
this.$refs.editor.codemirror.setValue(reader.result)
|
||||
}
|
||||
|
@@ -40,7 +40,6 @@ instance.interceptors.request.use(
|
||||
return config
|
||||
},
|
||||
error => {
|
||||
console.log(error) // for debug
|
||||
return Promise.reject(error)
|
||||
}
|
||||
)
|
||||
@@ -75,7 +74,6 @@ instance.interceptors.response.use(response => {
|
||||
checkPermission(error.response)
|
||||
msg = error.response.data.message || error.response.data
|
||||
} else {
|
||||
console.log("error: " + error)
|
||||
msg = error.message
|
||||
}
|
||||
if (error.config.url.indexOf("metrics.k8s.io") < 0 ) {
|
||||
|
@@ -20,5 +20,4 @@ export function isJSON(str) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
console.log('It is not a string!')
|
||||
}
|
||||
|
@@ -14,8 +14,6 @@ export function get(obj, path) {
|
||||
wrap: false,
|
||||
});
|
||||
} catch (e) {
|
||||
console.log('JSON Path error', e, path, obj); // eslint-disable-line no-console
|
||||
|
||||
return '(JSON Path err)';
|
||||
}
|
||||
}
|
||||
|
@@ -125,9 +125,6 @@ export default {
|
||||
readFile(file) {
|
||||
const reader = new FileReader()
|
||||
reader.readAsText(file)
|
||||
reader.onerror = (e) => {
|
||||
console.log("error" + e)
|
||||
}
|
||||
reader.onload = () => {
|
||||
this.form.configContent = reader.result
|
||||
}
|
||||
|
@@ -244,7 +244,6 @@ export default {
|
||||
}
|
||||
for (const rule of this.detailForm.rules) {
|
||||
for (let i = 0; i < rule.apiGroups.length; i++) {
|
||||
console.log(rule)
|
||||
if (rule.apiGroups[i] === "") {
|
||||
rule.apiGroups[i] = "core"
|
||||
}
|
||||
|
@@ -236,7 +236,6 @@ export default {
|
||||
}
|
||||
for (const rule of this.detailForm.rules) {
|
||||
for (let i = 0; i < rule.apiGroups.length; i++) {
|
||||
console.log(rule)
|
||||
if (rule.apiGroups[i] === "") {
|
||||
rule.apiGroups[i] = "core"
|
||||
}
|
||||
|
@@ -16,7 +16,6 @@ instance.interceptors.request.use(
|
||||
return config
|
||||
},
|
||||
error => {
|
||||
console.log(error) // for debug
|
||||
return Promise.reject(error)
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user