Track some events
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { Head } from '@inertiajs/vue3';
|
||||
import { trackUmamiEvent } from '@jaseeey/vue-umami-plugin';
|
||||
import { BookOpenText } from '@lucide/vue';
|
||||
import { useEventListener } from '@vueuse/core';
|
||||
import {
|
||||
Chart as ChartJS,
|
||||
@@ -15,12 +17,19 @@ import {
|
||||
LineController,
|
||||
BarController,
|
||||
LogarithmicScale,
|
||||
|
||||
|
||||
} from 'chart.js';
|
||||
import { ArrowDown, ArrowUp } from 'lucide-vue-next';
|
||||
import { computed, nextTick, ref, watch } from 'vue';
|
||||
import HelpText from '@/components/HelpText.vue';
|
||||
import LinkHeader from '@/components/LinkHeader.vue';
|
||||
import Button from '@/components/ui/button/Button.vue';
|
||||
import Drawer from '@/components/ui/drawer/Drawer.vue';
|
||||
import DrawerContent from '@/components/ui/drawer/DrawerContent.vue';
|
||||
import DrawerTitle from '@/components/ui/drawer/DrawerTitle.vue';
|
||||
import DrawerTrigger from '@/components/ui/drawer/DrawerTrigger.vue';
|
||||
import Kbd from '@/components/ui/kbd/Kbd.vue';
|
||||
import KbdGroup from '@/components/ui/kbd/KbdGroup.vue';
|
||||
import ScrollArea from '@/components/ui/scroll-area/ScrollArea.vue';
|
||||
import {
|
||||
Tooltip as UiTooltip,
|
||||
@@ -34,14 +43,6 @@ import IterationTable from '../components/IterationTable.vue';
|
||||
import PerceptronDecisionGraph from '../components/PerceptronDecisionGraph.vue';
|
||||
import PerceptronIterationsErrorsGraph from '../components/PerceptronIterationsErrorsGraph.vue';
|
||||
import PerceptronSetup from '../components/PerceptronSetup.vue';
|
||||
import HelpText from '@/components/HelpText.vue';
|
||||
import { BookOpenText } from '@lucide/vue';
|
||||
import Drawer from '@/components/ui/drawer/Drawer.vue';
|
||||
import DrawerTrigger from '@/components/ui/drawer/DrawerTrigger.vue';
|
||||
import DrawerContent from '@/components/ui/drawer/DrawerContent.vue';
|
||||
import DrawerTitle from '@/components/ui/drawer/DrawerTitle.vue';
|
||||
import KbdGroup from '@/components/ui/kbd/KbdGroup.vue';
|
||||
import Kbd from '@/components/ui/kbd/Kbd.vue';
|
||||
|
||||
ChartJS.register(
|
||||
Title,
|
||||
@@ -146,6 +147,7 @@ const handleDrawerOpenChange = async (open: boolean) => {
|
||||
|
||||
if (open) {
|
||||
await restoreHelpScroll();
|
||||
trackUmamiEvent('wiki-opened', { perceptronType: props.type });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user