2023-05-14 15:25:44 +00:00
|
|
|
<template>
|
2023-05-18 12:33:46 +00:00
|
|
|
<main>
|
|
|
|
<h1>Nuxt Application</h1>
|
2023-09-13 14:28:30 +00:00
|
|
|
<button @click="trackClick">
|
|
|
|
Track Click
|
|
|
|
</button>
|
2023-05-18 12:33:46 +00:00
|
|
|
</main>
|
2023-05-14 15:25:44 +00:00
|
|
|
</template>
|
|
|
|
|
2023-05-18 12:33:46 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { useWaaEvent } from "#imports";
|
|
|
|
|
|
|
|
function trackClick() {
|
2024-09-22 19:58:12 +00:00
|
|
|
useWaaEvent("foo", {"name": "bar"}, {"count" : 2});
|
2023-05-18 12:33:46 +00:00
|
|
|
}
|
2023-05-14 15:25:44 +00:00
|
|
|
</script>
|
2023-05-18 12:33:46 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
main {
|
|
|
|
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
|
|
|
|
font-size: 2rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-width: 300px;
|
|
|
|
gap: 2rem;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0 auto;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|