<template>
  <NuxtPwaManifest/>
  <NuxtLoadingIndicator/>
  <NuxtLayout>
    <NuxtPage/>
  </NuxtLayout>
  <UNotifications/>
  <UModals/>
</template>
<script setup>
const { $updateUserInfo } = useUserStore()
useHead({
  title: 'GitBot AI'
})
nextTick(() => {
  $updateUserInfo()
})
const domain = useCookie('domain', {
  maxAge: 86400 * 28
})
const username = useCookie('username', {
  maxAge: 86400 * 28
})
const route = useRoute()
const queryDomain = route.query.domain
const queryUsername = route.query.username
onMounted(() => {
  if (queryDomain) domain.value = queryDomain
  if (queryUsername) username.value = queryUsername
})
</script>
