2021-07-31 15:07:19 -08:00
|
|
|
<template>
|
2021-08-06 16:28:12 -08:00
|
|
|
<v-container fluid>
|
|
|
|
<v-row>
|
|
|
|
<v-col cols="12" sm="12" md="12" lg="6">
|
2021-08-21 00:46:43 -08:00
|
|
|
<UserProfileCard :user="user" class="mt-14" @refresh="$auth.fetchUser()" />
|
2021-08-06 16:28:12 -08:00
|
|
|
</v-col>
|
|
|
|
<v-col cols="12" sm="12" md="12" lg="6">
|
2021-08-21 00:46:43 -08:00
|
|
|
<UserAPITokenCard :tokens="user.tokens" class="mt-14" @refresh="$auth.fetchUser()" />
|
2021-08-06 16:28:12 -08:00
|
|
|
</v-col>
|
|
|
|
</v-row>
|
|
|
|
</v-container>
|
2021-07-31 15:07:19 -08:00
|
|
|
</template>
|
|
|
|
|
2021-08-21 00:46:43 -08:00
|
|
|
<script lang="ts">
|
|
|
|
import { computed, defineComponent, useContext } from "@nuxtjs/composition-api";
|
2021-08-06 16:28:12 -08:00
|
|
|
import UserProfileCard from "~/components/Domain/User/UserProfileCard.vue";
|
2021-08-21 00:46:43 -08:00
|
|
|
import UserAPITokenCard from "~/components/Domain/User/UserAPITokenCard.vue";
|
2021-07-31 15:07:19 -08:00
|
|
|
|
|
|
|
export default defineComponent({
|
2021-08-21 00:46:43 -08:00
|
|
|
components: { UserProfileCard, UserAPITokenCard },
|
2021-08-01 19:24:47 -08:00
|
|
|
layout: "admin",
|
2021-07-31 15:07:19 -08:00
|
|
|
setup() {
|
2021-08-21 00:46:43 -08:00
|
|
|
const user = computed(() => {
|
|
|
|
return useContext().$auth.user;
|
|
|
|
});
|
|
|
|
|
|
|
|
return { user };
|
2021-07-31 15:07:19 -08:00
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|