2020-10-12 21:49:05 +00:00
|
|
|
<template>
|
2020-10-13 18:17:00 +00:00
|
|
|
<div>
|
2020-10-31 14:09:02 +00:00
|
|
|
<q-page padding class="fit row justify-center content-center items-center">
|
2020-10-28 11:55:20 +00:00
|
|
|
<q-card class="col-4" height="">
|
2020-10-13 18:17:00 +00:00
|
|
|
<q-card-section>
|
2020-10-19 14:49:40 +00:00
|
|
|
Name: {{ userObj.firstname }} {{ userObj.lastname }}<br />
|
|
|
|
E-Mail: {{ userObj.mail }}<br />
|
2020-10-16 07:38:14 +00:00
|
|
|
Roles:
|
2020-10-28 11:55:20 +00:00
|
|
|
<ul v-for="(role, index) in userObj.roles" :key="'role' + index">
|
2020-10-15 01:36:25 +00:00
|
|
|
<li>{{ role }}</li>
|
2020-10-16 07:38:14 +00:00
|
|
|
</ul>
|
|
|
|
<br />
|
2020-11-05 02:55:44 +00:00
|
|
|
Token expires: {{ sessionObj.expires | dateTime }}
|
2020-10-13 18:17:00 +00:00
|
|
|
</q-card-section>
|
|
|
|
</q-card>
|
|
|
|
</q-page>
|
|
|
|
</div>
|
2020-10-12 21:49:05 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-15 01:36:25 +00:00
|
|
|
import { defineComponent, computed } from '@vue/composition-api';
|
2020-10-29 00:39:06 +00:00
|
|
|
import { Store } from 'vuex';
|
|
|
|
import { StateInterface } from 'src/store';
|
2020-10-15 01:36:25 +00:00
|
|
|
|
2020-10-12 21:49:05 +00:00
|
|
|
export default defineComponent({
|
|
|
|
// name: 'PageName'
|
2020-10-15 01:36:25 +00:00
|
|
|
setup(_, { root }) {
|
2020-10-29 00:39:06 +00:00
|
|
|
const store = <Store<StateInterface>>root.$store;
|
|
|
|
|
2020-11-04 22:53:10 +00:00
|
|
|
const userObj = computed(() => store.state.user.currentUser);
|
2020-10-29 00:39:06 +00:00
|
|
|
|
2020-11-04 22:53:10 +00:00
|
|
|
const sessionObj = computed(() => store.state.session.currentSession);
|
2020-10-29 00:39:06 +00:00
|
|
|
|
2020-10-31 14:09:02 +00:00
|
|
|
return { userObj, sessionObj };
|
2020-10-12 21:49:05 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|