This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathprofile.vue
62 lines (61 loc) · 1.62 KB
/
profile.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<template>
<div>
<title-bar :title-stack="titleStack" />
<hero-bar>
Profile
<nuxt-link slot="right" to="/" class="button">
Dashboard
</nuxt-link>
</hero-bar>
<section class="section is-main-section">
<tiles>
<profile-update-form class="tile is-child" />
<card-component title="Profile" icon="account" class="tile is-child">
<user-avatar class="image has-max-width is-aligned-center" />
<hr />
<b-field label="Name">
<b-input :value="userName" custom-class="is-static" readonly />
</b-field>
<hr />
<b-field label="E-mail">
<b-input :value="userEmail" custom-class="is-static" readonly />
</b-field>
</card-component>
</tiles>
<password-update-form />
</section>
</div>
</template>
<script>
import { mapState } from 'vuex'
import CardComponent from '@/components/CardComponent'
import TitleBar from '@/components/TitleBar'
import HeroBar from '@/components/HeroBar'
import ProfileUpdateForm from '@/components/ProfileUpdateForm'
import PasswordUpdateForm from '@/components/PasswordUpdateForm'
import Tiles from '@/components/Tiles'
import UserAvatar from '@/components/UserAvatar'
export default {
name: 'Profile',
components: {
UserAvatar,
Tiles,
PasswordUpdateForm,
ProfileUpdateForm,
HeroBar,
TitleBar,
CardComponent,
},
computed: {
titleStack() {
return ['Admin', 'Profile']
},
...mapState(['userName', 'userEmail']),
},
head() {
return {
title: 'Profile — Admin One Nuxt.js',
}
},
}
</script>