This is an automated email from the ASF dual-hosted git repository.
qiuxiafan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git
The following commit(s) were added to refs/heads/main by this push:
new b293f4dd build: bump vite and fix code style (#272)
b293f4dd is described below
commit b293f4ddb583961245a2a9bdf8d66f3d81ef1766
Author: Fine0830 <[email protected]>
AuthorDate: Wed Jun 7 13:37:41 2023 +0800
build: bump vite and fix code style (#272)
---
package-lock.json | 18 +++++++++---------
package.json | 2 +-
src/hooks/useExpressionsProcessor.ts | 3 +--
src/hooks/useMetricsProcessor.ts | 1 -
4 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index d367013e..22647189 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -65,7 +65,7 @@
"typescript": "~4.7.4",
"unplugin-auto-import": "^0.7.0",
"unplugin-vue-components": "^0.19.2",
- "vite": "^4.0.0",
+ "vite": "^4.0.5",
"vite-plugin-monaco-editor": "^1.1.0",
"vite-plugin-svg-icons": "^2.0.1",
"vitest": "^0.25.6",
@@ -15630,13 +15630,13 @@
}
},
"node_modules/vite": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/vite/-/vite-4.0.0.tgz",
- "integrity":
"sha512-ynad+4kYs8Jcnn8J7SacS9vAbk7eMy0xWg6E7bAhS1s79TK+D7tVFGXVZ55S7RNLRROU1rxoKlvZ/qjaB41DGA==",
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-4.0.5.tgz",
+ "integrity":
"sha512-7m87RC+caiAxG+8j3jObveRLqaWA/neAdCat6JAZwMkSWqFHOvg8MYe5fAQxVBRAuKAQ1S6XDh3CBQuLNbY33w==",
"dev": true,
"dependencies": {
"esbuild": "^0.16.3",
- "postcss": "^8.4.19",
+ "postcss": "^8.4.20",
"resolve": "^1.22.1",
"rollup": "^3.7.0"
},
@@ -27625,14 +27625,14 @@
"requires": {}
},
"vite": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/vite/-/vite-4.0.0.tgz",
- "integrity":
"sha512-ynad+4kYs8Jcnn8J7SacS9vAbk7eMy0xWg6E7bAhS1s79TK+D7tVFGXVZ55S7RNLRROU1rxoKlvZ/qjaB41DGA==",
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-4.0.5.tgz",
+ "integrity":
"sha512-7m87RC+caiAxG+8j3jObveRLqaWA/neAdCat6JAZwMkSWqFHOvg8MYe5fAQxVBRAuKAQ1S6XDh3CBQuLNbY33w==",
"dev": true,
"requires": {
"esbuild": "^0.16.3",
"fsevents": "~2.3.2",
- "postcss": "^8.4.19",
+ "postcss": "^8.4.20",
"resolve": "^1.22.1",
"rollup": "^3.7.0"
}
diff --git a/package.json b/package.json
index cfbaa5ff..35fcf0fc 100644
--- a/package.json
+++ b/package.json
@@ -74,7 +74,7 @@
"typescript": "~4.7.4",
"unplugin-auto-import": "^0.7.0",
"unplugin-vue-components": "^0.19.2",
- "vite": "^4.0.0",
+ "vite": "^4.0.5",
"vite-plugin-monaco-editor": "^1.1.0",
"vite-plugin-svg-icons": "^2.0.1",
"vitest": "^0.25.6",
diff --git a/src/hooks/useExpressionsProcessor.ts
b/src/hooks/useExpressionsProcessor.ts
index 345fde92..a40001c4 100644
--- a/src/hooks/useExpressionsProcessor.ts
+++ b/src/hooks/useExpressionsProcessor.ts
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import { RespFields, Calculations } from "./data";
+import { RespFields } from "./data";
import { ExpressionResultType } from "@/views/dashboard/data";
import { ElMessage } from "element-plus";
import { useDashboardStore } from "@/store/modules/dashboard";
@@ -22,7 +22,6 @@ import { useSelectorStore } from "@/store/modules/selectors";
import { useAppStoreWithOut } from "@/store/modules/app";
import type { MetricConfigOpt } from "@/types/dashboard";
import type { Instance, Endpoint, Service } from "@/types/selector";
-import { calculateExp } from "./useMetricsProcessor";
export function useExpressionsQueryProcessor(config: Indexable) {
if (!(config.metrics && config.metrics[0])) {
diff --git a/src/hooks/useMetricsProcessor.ts b/src/hooks/useMetricsProcessor.ts
index b0bbaf71..b8ecc895 100644
--- a/src/hooks/useMetricsProcessor.ts
+++ b/src/hooks/useMetricsProcessor.ts
@@ -22,7 +22,6 @@ import { useSelectorStore } from "@/store/modules/selectors";
import { useAppStoreWithOut } from "@/store/modules/app";
import type { Instance, Endpoint, Service } from "@/types/selector";
import type { MetricConfigOpt } from "@/types/dashboard";
-import type { E } from "vitest/dist/types-c441ef31";
export function useQueryProcessor(config: Indexable) {
if (!(config.metrics && config.metrics[0])) {