chore: analytics

This commit is contained in:
Jannat Patel
2024-08-12 17:13:31 +05:30
parent b956c4e383
commit 703fafd6c3
19 changed files with 151 additions and 64 deletions

View File

@@ -8,10 +8,12 @@
<script setup>
import { Toasts } from 'frappe-ui'
import { Dialogs } from '@/utils/dialogs'
import { computed, defineAsyncComponent } from 'vue'
import { computed, onMounted, onUnmounted } from 'vue'
import { useScreenSize } from './utils/composables'
import DesktopLayout from './components/DesktopLayout.vue'
import MobileLayout from './components/MobileLayout.vue'
import { stopSession } from '@/telemetry'
import { init as initTelemetry } from '@/telemetry'
const screenSize = useScreenSize()
@@ -22,4 +24,12 @@ const Layout = computed(() => {
return DesktopLayout
}
})
onMounted(async () => {
await initTelemetry()
})
onUnmounted(() => {
stopSession()
})
</script>