Files
milsim-site-v4/ui/src/main.js
ajdj100 98138f51f4
Some checks failed
Continuous Deployment / Update Deployment (push) Failing after 1m12s
Fixed glitchtip disabled state inverted (whoops)
2025-12-04 23:42:28 -05:00

43 lines
892 B
JavaScript

import './assets/base.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import FormCheckbox from './components/form/FormCheckbox.vue'
import FormInput from './components/form/FormInput.vue'
import * as Sentry from "@sentry/vue";
const app = createApp(App)
app.use(createPinia())
app.use(router)
if (!import.meta.env.VITE_DISABLE_GLITCHTIP) {
let dsn = import.meta.env.VITE_GLITCHTIP_DSN;
let environment = import.meta.env.VITE_ENVIRONMENT;
Sentry.init({
app,
dsn: dsn,
integrations: [
Sentry.browserTracingIntegration({ router }),
],
tracesSampleRate: 0.01,
environment: environment,
release: 'release tag'
});
}
app.component("FormInput", FormInput)
app.component("FormCheckbox", FormCheckbox)
app.mount('#app')