2021-10-13 17:29:12 +02:00
|
|
|
<template>
|
|
|
|
<div id="user-profile">
|
2021-10-23 20:04:38 +02:00
|
|
|
<UserHeader :user="user" />
|
2021-10-17 11:48:00 +02:00
|
|
|
<div class="box">
|
2021-10-17 21:01:14 +02:00
|
|
|
<UserProfileTabs :tabs="tabs" :selectedTab="tab" :edition="false" />
|
2021-10-23 20:04:38 +02:00
|
|
|
<router-view :user="user"></router-view>
|
2021-10-13 17:29:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-10-23 20:04:38 +02:00
|
|
|
import { PropType, defineComponent } from 'vue'
|
2021-10-13 17:29:12 +02:00
|
|
|
|
2021-10-23 20:04:38 +02:00
|
|
|
import UserHeader from '@/components/User/ProfileDisplay/UserHeader.vue'
|
2021-10-17 21:01:14 +02:00
|
|
|
import UserProfileTabs from '@/components/User/UserProfileTabs.vue'
|
2021-10-13 17:29:12 +02:00
|
|
|
import { IAuthUserProfile } from '@/types/user'
|
|
|
|
|
|
|
|
export default defineComponent({
|
2021-10-17 21:01:14 +02:00
|
|
|
name: 'ProfileDisplay',
|
2021-10-17 11:48:00 +02:00
|
|
|
components: {
|
2021-10-23 20:04:38 +02:00
|
|
|
UserHeader,
|
2021-10-17 21:01:14 +02:00
|
|
|
UserProfileTabs,
|
2021-10-17 11:48:00 +02:00
|
|
|
},
|
2021-10-13 17:29:12 +02:00
|
|
|
props: {
|
|
|
|
user: {
|
|
|
|
type: Object as PropType<IAuthUserProfile>,
|
|
|
|
required: true,
|
|
|
|
},
|
2021-10-17 21:01:14 +02:00
|
|
|
tab: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
2021-10-13 17:29:12 +02:00
|
|
|
},
|
2021-10-23 20:04:38 +02:00
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
tabs: ['PROFILE', 'PREFERENCES'],
|
|
|
|
}
|
2021-10-13 17:29:12 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import '~@/scss/base.scss';
|
|
|
|
|
|
|
|
#user-profile {
|
|
|
|
margin: auto;
|
|
|
|
width: 700px;
|
|
|
|
@media screen and (max-width: $medium-limit) {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 auto 50px auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|