You've already forked AstralRinth
forked from didirus/AstralRinth
* sample languages refactor * feat: consistency + dedupe impl of i18n * fix: broken imports * fix: intl formatted component * fix: use relative imports * fix: imports * fix: comment out incomplete locales + fix imports * feat: cleanup * fix: ui imports * fix: lint * fix: admonition import * make footer a component, fix language reactivity * make copyright notice untranslatable --------- Co-authored-by: Calum H. <contact@cal.engineer>
49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
import 'floating-vue/dist/style.css'
|
|
|
|
import * as Sentry from '@sentry/vue'
|
|
import { VueScanPlugin } from '@taijased/vue-render-tracker'
|
|
import { VueQueryPlugin } from '@tanstack/vue-query'
|
|
import FloatingVue from 'floating-vue'
|
|
import { createPinia } from 'pinia'
|
|
import { createApp } from 'vue'
|
|
|
|
import App from '@/App.vue'
|
|
import i18n from '@/i18n.config'
|
|
import router from '@/routes'
|
|
|
|
const vueScan = new VueScanPlugin({
|
|
enabled: false, // Enable or disable the tracker
|
|
showOverlay: true, // Show overlay to visualize renders
|
|
log: false, // Log render events to the console
|
|
playSound: false, // Play sound on each render
|
|
})
|
|
|
|
const pinia = createPinia()
|
|
|
|
let app = createApp(App)
|
|
|
|
Sentry.init({
|
|
app,
|
|
dsn: 'https://9508775ee5034536bc70433f5f531dd4@o485889.ingest.us.sentry.io/4504579615227904',
|
|
integrations: [Sentry.browserTracingIntegration({ router })],
|
|
tracesSampleRate: 0.1,
|
|
})
|
|
|
|
app.use(VueQueryPlugin)
|
|
app.use(vueScan)
|
|
app.use(router)
|
|
app.use(pinia)
|
|
app.use(FloatingVue, {
|
|
themes: {
|
|
'ribbit-popout': {
|
|
$extend: 'dropdown',
|
|
placement: 'bottom-end',
|
|
instantMove: true,
|
|
distance: 8,
|
|
},
|
|
},
|
|
})
|
|
app.use(i18n)
|
|
|
|
app.mount('#app')
|