generated from alphane/template
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
<div class="mr-3">
|
<div class="mr-3">
|
||||||
<!-- <AppLogo /> -->
|
<!-- <AppLogo /> -->
|
||||||
<PublicAppLogo
|
<PublicAppLogo
|
||||||
to="/dashboard"
|
to="/"
|
||||||
:animated="false"
|
:animated="false"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -106,9 +106,9 @@
|
|||||||
<v-btn
|
<v-btn
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
block
|
block
|
||||||
|
text="Logout"
|
||||||
@click="signOut"
|
@click="signOut"
|
||||||
>Logout</v-btn
|
/>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</v-sheet>
|
</v-sheet>
|
||||||
</v-menu>
|
</v-menu>
|
||||||
|
|||||||
@@ -7,13 +7,19 @@
|
|||||||
class="main-head pl-2"
|
class="main-head pl-2"
|
||||||
>
|
>
|
||||||
<div class="mr-3">
|
<div class="mr-3">
|
||||||
<PublicAppLogo
|
<PublicAppLogo to="/" />
|
||||||
to="/"
|
|
||||||
:animated="isHomePage"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
|
|
||||||
|
<ProfileMenu v-if="isAuthenticated" />
|
||||||
|
<v-btn
|
||||||
|
v-else
|
||||||
|
color="primary"
|
||||||
|
variant="tonal"
|
||||||
|
text="Sign in"
|
||||||
|
:to="{ name: 'SignInPage' }"
|
||||||
|
/>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
@@ -31,6 +37,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
|
|
||||||
|
<ProfileMenu v-if="isAuthenticated" />
|
||||||
|
<v-btn
|
||||||
|
v-else
|
||||||
|
color="primary"
|
||||||
|
variant="tonal"
|
||||||
|
text="Sign in"
|
||||||
|
:to="{ name: 'SignInPage' }"
|
||||||
|
/>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -39,11 +54,14 @@
|
|||||||
import { computed } from "vue"
|
import { computed } from "vue"
|
||||||
import { useRoute } from "vue-router"
|
import { useRoute } from "vue-router"
|
||||||
import { useDisplay } from "vuetify"
|
import { useDisplay } from "vuetify"
|
||||||
|
import { useAuth0 } from "@auth0/auth0-vue"
|
||||||
|
|
||||||
|
import ProfileMenu from "@/components/layout/ProfileMenu.vue"
|
||||||
import PublicAppLogo from "@/components/common/PublicAppLogo.vue"
|
import PublicAppLogo from "@/components/common/PublicAppLogo.vue"
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const isHomePage = computed(() => route.name === "HomePage")
|
const isHomePage = computed(() => route.name === "HomePage")
|
||||||
|
|
||||||
const { mobile } = useDisplay()
|
const { mobile } = useDisplay()
|
||||||
|
const { isAuthenticated } = useAuth0()
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1 +1,28 @@
|
|||||||
<template><div></div></template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-row>
|
||||||
|
<v-col
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
md="4"
|
||||||
|
lg="2"
|
||||||
|
>
|
||||||
|
<AppCard
|
||||||
|
v-if="isAuthenticated"
|
||||||
|
:to="{ name: 'DashboardPage' }"
|
||||||
|
elevation="6"
|
||||||
|
>
|
||||||
|
You are signed in. Go to Dashboard
|
||||||
|
</AppCard>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { useAuth0 } from "@auth0/auth0-vue"
|
||||||
|
|
||||||
|
import AppCard from "@/components/common/AppCard.vue"
|
||||||
|
|
||||||
|
const { isAuthenticated } = useAuth0()
|
||||||
|
</script>
|
||||||
|
|||||||
@@ -16,17 +16,7 @@
|
|||||||
class="px-8"
|
class="px-8"
|
||||||
style="max-width: 500px"
|
style="max-width: 500px"
|
||||||
>
|
>
|
||||||
<!-- <img
|
<PublicAppLogo />
|
||||||
class="d-inline-block d-lg-none"
|
|
||||||
src="@/assets/app_logo_small.png"
|
|
||||||
style="height: 66px; transform: rotate(-12deg)"
|
|
||||||
/> -->
|
|
||||||
<h2
|
|
||||||
class="text-h1 textPrimary font-weight-semibold mb-0"
|
|
||||||
style="font-size: 2.5rem !important"
|
|
||||||
>
|
|
||||||
{{ APPLICATION_NAME }}
|
|
||||||
</h2>
|
|
||||||
<h6 class="text-h6 text-medium-emphasis d-flex align-center mt-6 font-weight-medium">
|
<h6 class="text-h6 text-medium-emphasis d-flex align-center mt-6 font-weight-medium">
|
||||||
<v-btn
|
<v-btn
|
||||||
block
|
block
|
||||||
@@ -37,10 +27,6 @@
|
|||||||
</h6>
|
</h6>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<div class="my-6 text-medium-emphasis">
|
|
||||||
If you don't have an account, create one to get started using ROTYR. It's free to sign
|
|
||||||
up and only takes a few seconds.
|
|
||||||
</div>
|
|
||||||
<v-btn
|
<v-btn
|
||||||
block
|
block
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
@@ -63,20 +49,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
<!-- <v-col
|
|
||||||
cols="12"
|
|
||||||
lg="7"
|
|
||||||
xl="8"
|
|
||||||
class="d-none d-lg-flex align-center justify-center authentication position-relative"
|
|
||||||
>
|
|
||||||
<div class="text-center">
|
|
||||||
<img
|
|
||||||
src="@/assets/app_logo_splash.png"
|
|
||||||
class="position-relative"
|
|
||||||
style="opacity: 0.15; width: 80%"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</v-col> -->
|
|
||||||
</v-row>
|
</v-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -85,7 +57,7 @@
|
|||||||
import { onMounted } from "vue"
|
import { onMounted } from "vue"
|
||||||
import { useAuth0 } from "@auth0/auth0-vue"
|
import { useAuth0 } from "@auth0/auth0-vue"
|
||||||
|
|
||||||
import { APPLICATION_NAME } from "@/config"
|
import PublicAppLogo from "@/components/common/PublicAppLogo.vue"
|
||||||
import useCurrentUser from "@/use/use-current-user"
|
import useCurrentUser from "@/use/use-current-user"
|
||||||
|
|
||||||
const { reset: resetCurrentUser } = useCurrentUser()
|
const { reset: resetCurrentUser } = useCurrentUser()
|
||||||
|
|||||||
Reference in New Issue
Block a user