mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-04 12:45:25 +00:00
fix type-check errors
This commit is contained in:
parent
a2312f596d
commit
b589e5021c
@ -47,11 +47,11 @@ export function createBreakpointListen(fn?: (opt: CreateCallbackParams) => void)
|
|||||||
|
|
||||||
function getWindowWidth() {
|
function getWindowWidth() {
|
||||||
const width = document.body.clientWidth;
|
const width = document.body.clientWidth;
|
||||||
const xs = screenMap.get(sizeEnum.XS) || "";
|
const xs = screenMap.get(sizeEnum.XS) || 0;
|
||||||
const sm = screenMap.get(sizeEnum.SM) || "";
|
const sm = screenMap.get(sizeEnum.SM) || 0;
|
||||||
const md = screenMap.get(sizeEnum.MD) || "";
|
const md = screenMap.get(sizeEnum.MD) || 0;
|
||||||
const lg = screenMap.get(sizeEnum.LG) || "";
|
const lg = screenMap.get(sizeEnum.LG) || 0;
|
||||||
const xl = screenMap.get(sizeEnum.XL) || "";
|
const xl = screenMap.get(sizeEnum.XL) || 0;
|
||||||
if (width < xs) {
|
if (width < xs) {
|
||||||
screenRef.value = sizeEnum.XS;
|
screenRef.value = sizeEnum.XS;
|
||||||
} else if (width < sm) {
|
} else if (width < sm) {
|
||||||
|
@ -54,7 +54,7 @@ export const eventStore = defineStore({
|
|||||||
if (res.data.errors) {
|
if (res.data.errors) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.instances = [{ value: "", label: "All" }, ...res.data.data.pods] || [{ value: "", label: "All" }];
|
this.instances = [{ value: "", label: "All" }, ...res.data.data.pods];
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
async getEndpoints(keyword: string) {
|
async getEndpoints(keyword: string) {
|
||||||
@ -70,7 +70,7 @@ export const eventStore = defineStore({
|
|||||||
if (res.data.errors) {
|
if (res.data.errors) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.endpoints = [{ value: "", label: "All" }, ...res.data.data.pods] || [{ value: "", label: "All" }];
|
this.endpoints = [{ value: "", label: "All" }, ...res.data.data.pods];
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
async getEvents() {
|
async getEvents() {
|
||||||
|
@ -80,7 +80,7 @@ export const logStore = defineStore({
|
|||||||
if (res.data.errors) {
|
if (res.data.errors) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.instances = [{ value: "0", label: "All" }, ...res.data.data.pods] || [{ value: " 0", label: "All" }];
|
this.instances = [{ value: "0", label: "All" }, ...res.data.data.pods];
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
async getEndpoints(id: string, keyword?: string) {
|
async getEndpoints(id: string, keyword?: string) {
|
||||||
@ -93,7 +93,7 @@ export const logStore = defineStore({
|
|||||||
if (res.data.errors) {
|
if (res.data.errors) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.endpoints = [{ value: "0", label: "All" }, ...res.data.data.pods] || [{ value: "0", label: "All" }];
|
this.endpoints = [{ value: "0", label: "All" }, ...res.data.data.pods];
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
async getLogsByKeywords() {
|
async getLogsByKeywords() {
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": ["./src/*"]
|
||||||
},
|
},
|
||||||
"noImplicitThis": false
|
"noImplicitThis": false,
|
||||||
|
"preserveValueImports": false,
|
||||||
|
"importsNotUsedAsValues": "remove"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user