56 lines
1005 B
Vue
56 lines
1005 B
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 router = useRouter();
|
|
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);
|
|
|
|
const _cards = cards;
|
|
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>
|
|
html {
|
|
text-align: center;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
height: 100vh;
|
|
}
|
|
|
|
#__nuxt {
|
|
height: 100%;
|
|
user-select: none;
|
|
}
|
|
|
|
.root_dom_div {
|
|
height: 100%;
|
|
}
|
|
</style>
|