Skip to content
Snippets Groups Projects
Commit 7779e04f authored by syuilo's avatar syuilo
Browse files

wip

parent 648e691b
No related branches found
No related tags found
No related merge requests found
<template>
<div class="mk-profile-setting">
<div class="profile">
<label class="avatar ui from group">
<p>%i18n:desktop.tags.mk-profile-setting.avatar%</p>
<img class="avatar" :src="`${os.i.avatar_url}?thumbnail&size=64`" alt="avatar"/>
......@@ -32,12 +32,18 @@ import notify from '../../scripts/notify';
export default Vue.extend({
data() {
return {
name: (this as any).os.i.name,
location: (this as any).os.i.location,
description: (this as any).os.i.description,
birthday: (this as any).os.i.birthday,
name: null,
location: null,
description: null,
birthday: null,
};
},
created() {
this.name = (this as any).os.i.name;
this.location = (this as any).os.i.profile.location;
this.description = (this as any).os.i.description;
this.birthday = (this as any).os.i.profile.birthday;
},
methods: {
updateAvatar() {
(this as any).apis.chooseDriveFile({
......@@ -61,7 +67,7 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
.mk-profile-setting
.profile
> .avatar
> img
display inline-block
......
......@@ -15,7 +15,7 @@
<div class="pages">
<section class="profile" v-show="page == 'profile'">
<h1>%i18n:desktop.tags.mk-settings.profile%</h1>
<mk-profile-setting/>
<x-profile/>
</section>
<section class="web" v-show="page == 'web'">
......@@ -73,11 +73,11 @@
<script lang="ts">
import Vue from 'vue';
import MkProfileSetting from './profile-setting.vue';
import XProfile from './settings.profile.vue';
export default Vue.extend({
components: {
'mk-profie-setting': MkProfileSetting
'x-profile': XProfile
},
data() {
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment