2020-10-10 19:54:44 +08:00
|
|
|
import Vue from "vue";
|
|
|
|
import VueAnalytics from "vue-analytics";
|
|
|
|
import App from "./App.vue";
|
|
|
|
import router from "./router";
|
|
|
|
import store from "./store";
|
2020-10-22 01:46:15 +08:00
|
|
|
import i18n from "@/locale";
|
2020-10-10 19:54:44 +08:00
|
|
|
import "@/assets/icons";
|
|
|
|
import "@/utils/filters";
|
|
|
|
import { initMediaSession } from "@/utils/mediaSession";
|
|
|
|
import "./registerServiceWorker";
|
|
|
|
|
2020-10-22 01:46:15 +08:00
|
|
|
import * as Sentry from "@sentry/browser";
|
|
|
|
import { Vue as VueIntegration } from "@sentry/integrations";
|
|
|
|
import { Integrations } from "@sentry/tracing";
|
|
|
|
|
2020-10-10 19:54:44 +08:00
|
|
|
Vue.use(VueAnalytics, {
|
|
|
|
id: "UA-180189423-1",
|
2020-10-22 01:46:15 +08:00
|
|
|
router
|
2020-10-10 19:54:44 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
|
|
|
initMediaSession();
|
|
|
|
|
2020-10-22 01:46:15 +08:00
|
|
|
if (process.env.VUE_APP_ENABLE_SENTRY === "true") {
|
|
|
|
console.log("VUE_APP_ENABLE_SENTRY");
|
|
|
|
Sentry.init({
|
|
|
|
dsn:
|
|
|
|
"https://30aaa25152974f48971912a394ab6bc3@o436528.ingest.sentry.io/5477409",
|
|
|
|
integrations: [
|
|
|
|
new VueIntegration({
|
|
|
|
Vue,
|
|
|
|
tracing: true
|
|
|
|
}),
|
|
|
|
new Integrations.BrowserTracing()
|
|
|
|
],
|
|
|
|
|
|
|
|
// We recommend adjusting this value in production, or using tracesSampler
|
|
|
|
// for finer control
|
|
|
|
tracesSampleRate: 1.0
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-10-10 19:54:44 +08:00
|
|
|
new Vue({
|
2020-10-19 23:14:26 +08:00
|
|
|
i18n,
|
2020-10-10 19:54:44 +08:00
|
|
|
store,
|
|
|
|
router,
|
2020-10-22 01:46:15 +08:00
|
|
|
render: h => h(App)
|
2020-10-10 19:54:44 +08:00
|
|
|
}).$mount("#app");
|