mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-19 01:45:24 +00:00
fix
This commit is contained in:
parent
6239ff709f
commit
4d09ae6bd0
@ -66,9 +66,6 @@ limitations under the License. -->
|
|||||||
if (!keys.value.length) {
|
if (!keys.value.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!keys.value[index]) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
delete decorations.value[keys.value[index]];
|
delete decorations.value[keys.value[index]];
|
||||||
keys.value.splice(index, 1);
|
keys.value.splice(index, 1);
|
||||||
updateConfig({ decorations: decorations.value });
|
updateConfig({ decorations: decorations.value });
|
||||||
|
@ -72,14 +72,14 @@ limitations under the License. -->
|
|||||||
let withinRange = false;
|
let withinRange = false;
|
||||||
const ranges = k.match(regex)?.map(Number) || [];
|
const ranges = k.match(regex)?.map(Number) || [];
|
||||||
if (k.startsWith("[")) {
|
if (k.startsWith("[")) {
|
||||||
withinRange = k.startsWith("[-∞") ? true : Number(singleVal.value) >= ranges[0];
|
withinRange = k.startsWith("[-∞") || Number(singleVal.value) >= ranges[0];
|
||||||
} else {
|
} else {
|
||||||
withinRange = k.startsWith("(-∞") ? true : Number(singleVal.value) > ranges[0];
|
withinRange = k.startsWith("(-∞") || Number(singleVal.value) > ranges[0];
|
||||||
}
|
}
|
||||||
if (k.endsWith("]")) {
|
if (k.endsWith("]")) {
|
||||||
withinRange = withinRange && (k.endsWith("+∞]") ? true : Number(singleVal.value) <= (ranges[1] || ranges[0]));
|
withinRange = withinRange && (k.endsWith("+∞]") || Number(singleVal.value) <= (ranges[1] || ranges[0]));
|
||||||
} else {
|
} else {
|
||||||
withinRange = withinRange && (k.endsWith("+∞)") ? true : Number(singleVal.value) < (ranges[1] || ranges[0]));
|
withinRange = withinRange && (k.endsWith("+∞)") || Number(singleVal.value) < (ranges[1] || ranges[0]));
|
||||||
}
|
}
|
||||||
console.log(withinRange);
|
console.log(withinRange);
|
||||||
if (withinRange) {
|
if (withinRange) {
|
||||||
|
@ -88,14 +88,14 @@ limitations under the License. -->
|
|||||||
let withinRange = false;
|
let withinRange = false;
|
||||||
const ranges = k.match(regex)?.map(Number) || [];
|
const ranges = k.match(regex)?.map(Number) || [];
|
||||||
if (k.startsWith("[")) {
|
if (k.startsWith("[")) {
|
||||||
withinRange = k.startsWith("[-∞") ? true : Number(source) >= ranges[0];
|
withinRange = k.startsWith("[-∞") || Number(source) >= ranges[0];
|
||||||
} else {
|
} else {
|
||||||
withinRange = k.startsWith("(-∞") ? true : Number(source) > ranges[0];
|
withinRange = k.startsWith("(-∞") || Number(source) > ranges[0];
|
||||||
}
|
}
|
||||||
if (k.endsWith("]")) {
|
if (k.endsWith("]")) {
|
||||||
withinRange = withinRange && (k.endsWith("+∞]") ? true : Number(source) <= (ranges[1] || ranges[0]));
|
withinRange = withinRange && (k.endsWith("+∞]") || Number(source) <= (ranges[1] || ranges[0]));
|
||||||
} else {
|
} else {
|
||||||
withinRange = withinRange && (k.endsWith("+∞)") ? true : Number(source) < (ranges[1] || ranges[0]));
|
withinRange = withinRange && (k.endsWith("+∞)") || Number(source) < (ranges[1] || ranges[0]));
|
||||||
}
|
}
|
||||||
if (withinRange) {
|
if (withinRange) {
|
||||||
return decorations.value[i];
|
return decorations.value[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user