mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00

* chore: eslint flat config * chore: format * update according to review * chore: remove prettier config and format * fix: move handler to script to bypass eslint * chore: config eslint for lang=js block * docs: add surrounding empty lines for code block * chore: also minify css in csp build * chore: publint
22 lines
394 B
TypeScript
22 lines
394 B
TypeScript
import { inject } from "@vercel/analytics";
|
|
import { createApp } from "vue";
|
|
import { createPinia } from "pinia";
|
|
import Demo from "./Demo.vue";
|
|
|
|
const SAMPLE_RATE = 0.5;
|
|
|
|
inject({
|
|
beforeSend: (event) => {
|
|
if (Math.random() > SAMPLE_RATE) {
|
|
return null;
|
|
}
|
|
|
|
return event;
|
|
},
|
|
});
|
|
|
|
const pinia = createPinia();
|
|
const app = createApp(Demo);
|
|
app.use(pinia);
|
|
app.mount("#app");
|