Files
front/app.vue
T

56 lines
1.0 KiB
Vue

<script setup lang="ts">
import { cards, compileCards } from "./services/loadCards";
import { getCurrentInstance } from "vue";
// import goStore, { oauth2_register_discord, setup_websocket, heron_cookie_login } from "@/netcode";
const nuxtApp = useNuxtApp();
const authStore = useAuthStore();
console.log("compiling cards...");
const app = getCurrentInstance()?.appContext.app;
if (!app) {
throw new Error("Couldn't bake cards: instance is null");
}
await compileCards(app);
console.log("compiling done");
useHead({
title: "Héron Realms",
});
onMounted(() => {
authStore.whoami();
});
</script>
<template>
<div class="root_dom_div">
<NuxtLoadingIndicator> Loading... </NuxtLoadingIndicator>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template>
<style>
:root {
--animation-curve: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
html {
text-align: center;
}
body {
margin: 0;
height: 100vh;
}
#__nuxt {
height: 100%;
user-select: none;
}
.root_dom_div {
height: 100%;
}
</style>