File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import javascript from "highlight.js/lib/languages/javascript";
16
16
import typescript from " highlight.js/lib/languages/typescript" ;
17
17
import hljsVuePlugin from " @highlightjs/vue-plugin" ;
18
18
import { initialize , transform } from " esbuild-wasm" ;
19
- import va from " @vercel/analytics" ;
19
+ import { track } from " @vercel/analytics" ;
20
20
21
21
import { getImportsFromOption } from " ./utils/codegen" ;
22
22
@@ -141,7 +141,7 @@ const messageOpen = ref(false);
141
141
let messageTimer;
142
142
143
143
function trackCopy (from ) {
144
- va . track (" copy-code" , { from });
144
+ track (" copy-code" , { from });
145
145
console .log (" copied" );
146
146
}
147
147
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useUrlSearchParams } from "@vueuse/core";
4
4
import { use } from " echarts/core" ;
5
5
import { CanvasRenderer , SVGRenderer } from " echarts/renderers" ;
6
6
import { INIT_OPTIONS_KEY } from " ../ECharts" ;
7
- import va from " @vercel/analytics" ;
7
+ import { track } from " @vercel/analytics" ;
8
8
9
9
import LogoChart from " ./examples/LogoChart" ;
10
10
import BarChart from " ./examples/BarChart" ;
@@ -31,12 +31,12 @@ provide(INIT_OPTIONS_KEY, initOptions);
31
31
const codeOpen = ref (location .hash === " #codegen" );
32
32
33
33
if (codeOpen .value ) {
34
- va . track (" codegen" , { from: " link" });
34
+ track (" codegen" , { from: " link" });
35
35
}
36
36
37
37
function openCodegen () {
38
38
codeOpen .value = true ;
39
- va . track (" codegen" , { from: " click" });
39
+ track (" codegen" , { from: " click" });
40
40
}
41
41
42
42
watch (codeOpen, open => {
You can’t perform that action at this time.
0 commit comments