Compare commits
2 Commits
fbcd0d1bb9
...
bbd329a4cf
Author | SHA1 | Date | |
---|---|---|---|
bbd329a4cf | |||
5685dd5fb7 |
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="min-h-screen w-full overflow-y-auto bg-gray-900">
|
<div class="w-full overflow-y-auto bg-gray-900">
|
||||||
<NuxtLayout />
|
<NuxtLayout />
|
||||||
|
|
||||||
<UNotifications />
|
<UNotifications />
|
||||||
@ -10,4 +10,15 @@
|
|||||||
.router-link-active {
|
.router-link-active {
|
||||||
background: rgba(0, 0, 0, 10%)
|
background: rgba(0, 0, 0, 10%)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-enter-active,
|
||||||
|
.page-leave-active {
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
.page-enter-from,
|
||||||
|
.page-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
filter: blur(0.2rem);
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<Icon size="1.5em" name="heroicons:users" class="mr-2" />
|
<Icon size="1.5em" name="heroicons:users" class="mr-2" />
|
||||||
Team
|
Team
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink class="flex w-full items-center rounded bg-black/0 p-2 text-lg hover:cursor-pointer hover:bg-black/20">
|
<NuxtLink to="/map" class="flex w-full items-center rounded bg-black/0 p-2 text-lg hover:cursor-pointer hover:bg-black/20">
|
||||||
<Icon size="1.5em" name="heroicons:map" class="mr-2" />
|
<Icon size="1.5em" name="heroicons:map" class="mr-2" />
|
||||||
Map
|
Map
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex min-h-screen w-full overflow-y-auto">
|
<div class="flex w-full">
|
||||||
<Transition>
|
<Transition>
|
||||||
<BodySidebar v-if="showSidebar && user.minecraft" />
|
<BodySidebar v-if="showSidebar && user.minecraft" />
|
||||||
</Transition>
|
</Transition>
|
||||||
<div class="w-full px-5 transition-all duration-300 ease-in-out" :class="{ 'xl:ms-56': showSidebar && user.minecraft }">
|
<div class="h-screen w-full overflow-y-auto px-5 transition-all duration-300 ease-in-out" :class="{ 'xl:ms-56': showSidebar && user.minecraft }">
|
||||||
<div v-if="user.minecraft" class="mx-auto w-full max-w-[92rem]">
|
<div v-if="user.minecraft" class="mx-auto flex h-full w-full max-w-[92rem] flex-col">
|
||||||
<div class="my-5 text-xl font-bold">
|
<div class="my-5 text-xl font-bold">
|
||||||
<Icon size="1.6em" :name="!showSidebar ? 'heroicons:bars-3-center-left' : 'heroicons:chevron-left'" class="text-primary-500 mr-3 hover:cursor-pointer" @click="showSidebar = !showSidebar" />
|
<Icon size="1.6em" :name="!showSidebar ? 'heroicons:bars-3-center-left' : 'heroicons:chevron-left'" class="text-primary-500 mr-3 hover:cursor-pointer" @click="showSidebar = !showSidebar" />
|
||||||
{{ route.meta.title.split(' | ')[0] }}
|
{{ route.meta.title }}
|
||||||
</div>
|
</div>
|
||||||
<NuxtPage class="" />
|
<NuxtPage class="h-full" />
|
||||||
</div>
|
</div>
|
||||||
<BodyConnectminecraft v-else />
|
<BodyConnectminecraft v-else />
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,6 +12,17 @@ export default defineNuxtConfig({
|
|||||||
'nuxt-icon',
|
'nuxt-icon',
|
||||||
'@nuxtjs/eslint-module'
|
'@nuxtjs/eslint-module'
|
||||||
],
|
],
|
||||||
|
app: {
|
||||||
|
head: {
|
||||||
|
link: [
|
||||||
|
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
|
||||||
|
{ rel: 'icon', sizes: '32x32', type: 'image/png', href: '/favicon-32x32.png' },
|
||||||
|
{ rel: 'icon', sizes: '16x16', type: 'image/png', href: '/favicon-16x16.png' },
|
||||||
|
{ rel: 'manifest', href: '/site.webmanifest' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
pageTransition: { name: 'page', mode: 'out-in' }
|
||||||
|
},
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
discordClientId: '',
|
discordClientId: '',
|
||||||
discordClientSecret: '',
|
discordClientSecret: '',
|
||||||
|
@ -75,9 +75,11 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
middleware: ['auth'],
|
middleware: ['auth'],
|
||||||
title: 'Dashboard | Polarcraft'
|
title: 'Dashboard'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
useHead({ title: 'Dashboard | Polarcraft' })
|
||||||
|
|
||||||
const user = useState<IUser>('user')
|
const user = useState<IUser>('user')
|
||||||
const disableButtons = ref(false)
|
const disableButtons = ref(false)
|
||||||
|
|
||||||
|
@ -13,5 +13,7 @@ definePageMeta({
|
|||||||
layout: 'blank'
|
layout: 'blank'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
useHead({ title: 'Login | Polarcraft' })
|
||||||
|
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
</script>
|
</script>
|
||||||
|
11
webv2/pages/map.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<template>
|
||||||
|
<iframe src="https://polarcraft-map.xeovalyte.dev/" height="100%" width="100%" class="mb-5 rounded-xl" />
|
||||||
|
</template>
|
||||||
|
<script lang="ts">
|
||||||
|
definePageMeta({
|
||||||
|
middleware: ['auth'],
|
||||||
|
title: 'Map'
|
||||||
|
})
|
||||||
|
|
||||||
|
useHead({ title: 'Map | Polarcraft' })
|
||||||
|
</script>
|
@ -8,8 +8,10 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
middleware: ['auth'],
|
middleware: ['auth'],
|
||||||
title: 'Team | Polarcraft'
|
title: 'Team'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
useHead({ title: 'Team | Polarcraft' })
|
||||||
|
|
||||||
const user = useState<IUser>('user')
|
const user = useState<IUser>('user')
|
||||||
</script>
|
</script>
|
||||||
|
BIN
webv2/public/android-chrome-192x192.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
webv2/public/android-chrome-512x512.png
Normal file
After Width: | Height: | Size: 174 KiB |
BIN
webv2/public/apple-touch-icon.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
webv2/public/favicon-16x16.png
Normal file
After Width: | Height: | Size: 825 B |
BIN
webv2/public/favicon-32x32.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 15 KiB |
1
webv2/public/site.webmanifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|