From 9a569fb30ced8e10c9790f3945fdfdcd0af108ec Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 23 Feb 2018 08:07:30 +0900 Subject: [PATCH] :v: --- src/web/app/mobile/views/components/index.ts | 2 + .../app/mobile/views/components/timeline.vue | 24 ++++++++--- .../mobile/views/components/user-timeline.vue | 40 ++++++++++++++++--- src/web/app/mobile/views/pages/user.vue | 8 +--- 4 files changed, 58 insertions(+), 16 deletions(-) diff --git a/src/web/app/mobile/views/components/index.ts b/src/web/app/mobile/views/components/index.ts index 73cc1f9f3..905baaf20 100644 --- a/src/web/app/mobile/views/components/index.ts +++ b/src/web/app/mobile/views/components/index.ts @@ -18,6 +18,7 @@ import notifications from './notifications.vue'; import notificationPreview from './notification-preview.vue'; import usersList from './users-list.vue'; import userPreview from './user-preview.vue'; +import userTimeline from './user-timeline.vue'; Vue.component('mk-ui', ui); Vue.component('mk-home', home); @@ -37,3 +38,4 @@ Vue.component('mk-notifications', notifications); Vue.component('mk-notification-preview', notificationPreview); Vue.component('mk-users-list', usersList); Vue.component('mk-user-preview', userPreview); +Vue.component('mk-user-timeline', userTimeline); diff --git a/src/web/app/mobile/views/components/timeline.vue b/src/web/app/mobile/views/components/timeline.vue index e7a9f2df1..c0e766523 100644 --- a/src/web/app/mobile/views/components/timeline.vue +++ b/src/web/app/mobile/views/components/timeline.vue @@ -9,9 +9,9 @@ %fa:R comments% %i18n:mobile.tags.mk-home-timeline.empty-timeline% - @@ -19,6 +19,9 @@ diff --git a/src/web/app/mobile/views/pages/user.vue b/src/web/app/mobile/views/pages/user.vue index c9c1c6bfb..27f65e623 100644 --- a/src/web/app/mobile/views/pages/user.vue +++ b/src/web/app/mobile/views/pages/user.vue @@ -66,15 +66,11 @@ export default Vue.extend({ components: { XHome }, - props: { - page: { - default: 'home' - } - }, data() { return { fetching: true, - user: null + user: null, + page: 'home' }; }, computed: {