From e651bd12c3a07436f1986b0634a508100a66ef85 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 22 Feb 2018 22:38:14 +0900 Subject: [PATCH] wip --- src/web/app/mobile/script.ts | 4 ++++ .../mobile/views/pages/profile-setting.vue | 22 ++++++++++++------- src/web/app/mobile/views/pages/settings.vue | 6 ++--- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/web/app/mobile/script.ts b/src/web/app/mobile/script.ts index 6e69b3ed3..fe73155c7 100644 --- a/src/web/app/mobile/script.ts +++ b/src/web/app/mobile/script.ts @@ -26,6 +26,8 @@ import MkPost from './views/pages/post.vue'; import MkSearch from './views/pages/search.vue'; import MkFollowers from './views/pages/followers.vue'; import MkFollowing from './views/pages/following.vue'; +import MkSettings from './views/pages/settings.vue'; +import MkProfileSetting from './views/pages/profile-setting.vue'; /** * init @@ -54,6 +56,8 @@ init((launch) => { app.$router.addRoutes([ { path: '/', name: 'index', component: MkIndex }, { path: '/signup', name: 'signup', component: MkSignup }, + { path: '/i/settings', component: MkSettings }, + { path: '/i/settings/profile', component: MkProfileSetting }, { path: '/i/notifications', component: MkNotifications }, { path: '/i/messaging', component: MkMessaging }, { path: '/i/messaging/:username', component: MkMessagingRoom }, diff --git a/src/web/app/mobile/views/pages/profile-setting.vue b/src/web/app/mobile/views/pages/profile-setting.vue index 3b93496a3..432a850e4 100644 --- a/src/web/app/mobile/views/pages/profile-setting.vue +++ b/src/web/app/mobile/views/pages/profile-setting.vue @@ -1,9 +1,9 @@ @@ -42,15 +42,21 @@ import Vue from 'vue'; export default Vue.extend({ data() { return { - name: (this as any).os.i.name, - location: (this as any).os.i.profile.location, - description: (this as any).os.i.description, - birthday: (this as any).os.i.profile.birthday, + name: null, + location: null, + description: null, + birthday: null, avatarSaving: false, bannerSaving: false, saving: false }; }, + 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; + }, mounted() { document.title = 'Misskey | %i18n:mobile.tags.mk-profile-setting-page.title%'; document.documentElement.style.background = '#313a42'; @@ -101,7 +107,7 @@ export default Vue.extend({ }); -