Tried my damndest, will pick this up again another time

This commit is contained in:
2025-12-01 14:58:45 -05:00
parent b193785f88
commit 0382acbb25
4 changed files with 34 additions and 16 deletions

View File

@@ -4,4 +4,7 @@ VITE_ENVIRONMENT= # dev / prod
# Glitchtip # Glitchtip
VITE_GLITCHTIP_DSN= VITE_GLITCHTIP_DSN=
VITE_DISABLE_GLITCHTIP= # true/false VITE_DISABLE_GLITCHTIP= # true/false
# Matomo
VITE_DISABLE_MATOMO= # true/false

27
ui/package-lock.json generated
View File

@@ -8,6 +8,7 @@
"name": "milsimsitev4", "name": "milsimsitev4",
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"@certible/use-matomo": "^1.1.0",
"@fullcalendar/core": "^6.1.19", "@fullcalendar/core": "^6.1.19",
"@fullcalendar/daygrid": "^6.1.19", "@fullcalendar/daygrid": "^6.1.19",
"@fullcalendar/interaction": "^6.1.19", "@fullcalendar/interaction": "^6.1.19",
@@ -510,6 +511,12 @@
"node": ">=6.9.0" "node": ">=6.9.0"
} }
}, },
"node_modules/@certible/use-matomo": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@certible/use-matomo/-/use-matomo-1.1.0.tgz",
"integrity": "sha512-9kOTj0ldP+RX2Rhlosxm/+1uQ2deDefMb4p2DQGFi3Gqi3TuTSrOtx+beUNKGN7D8up/8SsBPJS+ipY1ZHMfrA==",
"license": "MIT"
},
"node_modules/@esbuild/aix-ppc64": { "node_modules/@esbuild/aix-ppc64": {
"version": "0.25.9", "version": "0.25.9",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz",
@@ -3594,13 +3601,13 @@
} }
}, },
"node_modules/tinyglobby": { "node_modules/tinyglobby": {
"version": "0.2.14", "version": "0.2.15",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
"integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"fdir": "^6.4.4", "fdir": "^6.5.0",
"picomatch": "^4.0.2" "picomatch": "^4.0.3"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
@@ -3728,17 +3735,17 @@
} }
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "7.1.2", "version": "7.2.4",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.2.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-7.2.4.tgz",
"integrity": "sha512-J0SQBPlQiEXAF7tajiH+rUooJPo0l8KQgyg4/aMunNtrOa7bwuZJsJbDWzeljqQpgftxuq5yNJxQ91O9ts29UQ==", "integrity": "sha512-NL8jTlbo0Tn4dUEXEsUg8KeyG/Lkmc4Fnzb8JXN/Ykm9G4HNImjtABMJgkQoVjOBN/j2WAwDTRytdqJbZsah7w==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"esbuild": "^0.25.0", "esbuild": "^0.25.0",
"fdir": "^6.4.6", "fdir": "^6.5.0",
"picomatch": "^4.0.3", "picomatch": "^4.0.3",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"rollup": "^4.43.0", "rollup": "^4.43.0",
"tinyglobby": "^0.2.14" "tinyglobby": "^0.2.15"
}, },
"bin": { "bin": {
"vite": "bin/vite.js" "vite": "bin/vite.js"

View File

@@ -12,6 +12,7 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@certible/use-matomo": "^1.1.0",
"@fullcalendar/core": "^6.1.19", "@fullcalendar/core": "^6.1.19",
"@fullcalendar/daygrid": "^6.1.19", "@fullcalendar/daygrid": "^6.1.19",
"@fullcalendar/interaction": "^6.1.19", "@fullcalendar/interaction": "^6.1.19",

View File

@@ -9,14 +9,10 @@ import FormCheckbox from './components/form/FormCheckbox.vue'
import FormInput from './components/form/FormInput.vue' import FormInput from './components/form/FormInput.vue'
import * as Sentry from "@sentry/vue"; import * as Sentry from "@sentry/vue";
import { initMatomo } from "@certible/use-matomo"
const app = createApp(App) const app = createApp(App)
app.use(createPinia()) app.use(createPinia())
app.use(router) app.use(router)
@@ -36,7 +32,18 @@ if (!!import.meta.env.VITE_DISABLE_GLITCHTIP) {
}); });
} }
if (!!import.meta.env.VITE_DISABLE_MATOMO) {
console.log("Matomo init")
app.use(initMatomo({
host: 'https://stats.nexuszone.net/',
siteId: 4,
trackRouter: true,
}));
}
app.component("FormInput", FormInput) app.component("FormInput", FormInput)
app.component("FormCheckbox", FormCheckbox) app.component("FormCheckbox", FormCheckbox)
app.mount('#app') app.mount('#app')
// window._paq.push(['trackPageView']);