refactor: telemetry

* only works with frappe v15.96+
This commit is contained in:
Saqib Ansari
2026-01-14 14:48:05 +05:30
parent 4ace8b2ec0
commit 0aeada4549
15 changed files with 40 additions and 115 deletions

View File

@@ -9,6 +9,7 @@ import translationPlugin from './translation'
import { usersStore } from './stores/user'
import { initSocket } from './socket'
import { FrappeUI, setConfig, frappeRequest, pageMetaPlugin } from 'frappe-ui'
import { telemetryPlugin } from 'frappe-ui/frappe'
let pinia = createPinia()
let app = createApp(App)
@@ -18,6 +19,7 @@ app.use(FrappeUI)
app.use(pinia)
app.use(router)
app.use(translationPlugin)
app.use(telemetryPlugin, { app_name: 'lms' })
app.use(pageMetaPlugin)
app.provide('$dayjs', dayjs)
app.provide('$socket', initSocket())