From 01588085017ea780a1e71f7309b525cb449a65f2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 13 Feb 2018 08:24:44 +0900 Subject: [PATCH] wip --- src/web/app/desktop/-tags/settings-window.tag | 30 ------------------- src/web/app/desktop/views/components/index.ts | 22 ++++++++++++-- .../views/components/settings-window.vue | 15 ++++++++++ .../app/desktop/views/components/timeline.vue | 7 ++++- .../views/components/ui-header-account.vue | 4 ++- .../views/components/ui-header-nav.vue | 3 +- .../views/components/ui-header-search.vue | 2 +- .../views/components/ui-notification.vue | 2 +- 8 files changed, 48 insertions(+), 37 deletions(-) delete mode 100644 src/web/app/desktop/-tags/settings-window.tag create mode 100644 src/web/app/desktop/views/components/settings-window.vue diff --git a/src/web/app/desktop/-tags/settings-window.tag b/src/web/app/desktop/-tags/settings-window.tag deleted file mode 100644 index 094225f61..000000000 --- a/src/web/app/desktop/-tags/settings-window.tag +++ /dev/null @@ -1,30 +0,0 @@ - - - %fa:cog%設定 - - - - - - - diff --git a/src/web/app/desktop/views/components/index.ts b/src/web/app/desktop/views/components/index.ts index 9788a27f1..71a049a62 100644 --- a/src/web/app/desktop/views/components/index.ts +++ b/src/web/app/desktop/views/components/index.ts @@ -1,6 +1,14 @@ import Vue from 'vue'; import ui from './ui.vue'; +import uiHeader from './ui-header.vue'; +import uiHeaderAccount from './ui-header-account.vue'; +import uiHeaderClock from './ui-header-clock.vue'; +import uiHeaderNav from './ui-header-nav.vue'; +import uiHeaderNotifications from './ui-header-notifications.vue'; +import uiHeaderPostButton from './ui-header-post-button.vue'; +import uiHeaderSearch from './ui-header-search.vue'; +import uiNotification from './ui-notification.vue'; import home from './home.vue'; import timeline from './timeline.vue'; import timelinePost from './timeline-post.vue'; @@ -9,13 +17,23 @@ import subPostContent from './sub-post-content.vue'; import window from './window.vue'; import postFormWindow from './post-form-window.vue'; import repostFormWindow from './repost-form-window.vue'; +import analogClock from './analog-clock.vue'; Vue.component('mk-ui', ui); +Vue.component('mk-ui-header', uiHeader); +Vue.component('mk-ui-header-account', uiHeaderAccount); +Vue.component('mk-ui-header-clock', uiHeaderClock); +Vue.component('mk-ui-header-nav', uiHeaderNav); +Vue.component('mk-ui-header-notifications', uiHeaderNotifications); +Vue.component('mk-ui-header-post-button', uiHeaderPostButton); +Vue.component('mk-ui-header-search', uiHeaderSearch); +Vue.component('mk-ui-notification', uiNotification); Vue.component('mk-home', home); Vue.component('mk-timeline', timeline); Vue.component('mk-timeline-post', timelinePost); Vue.component('mk-timeline-post-sub', timelinePostSub); Vue.component('mk-sub-post-content', subPostContent); Vue.component('mk-window', window); -Vue.component('post-form-window', postFormWindow); -Vue.component('repost-form-window', repostFormWindow); +Vue.component('mk-post-form-window', postFormWindow); +Vue.component('mk-repost-form-window', repostFormWindow); +Vue.component('mk-analog-clock', analogClock); diff --git a/src/web/app/desktop/views/components/settings-window.vue b/src/web/app/desktop/views/components/settings-window.vue new file mode 100644 index 000000000..56d839851 --- /dev/null +++ b/src/web/app/desktop/views/components/settings-window.vue @@ -0,0 +1,15 @@ + + + diff --git a/src/web/app/desktop/views/components/timeline.vue b/src/web/app/desktop/views/components/timeline.vue index 161eebdf7..933e44825 100644 --- a/src/web/app/desktop/views/components/timeline.vue +++ b/src/web/app/desktop/views/components/timeline.vue @@ -14,7 +14,12 @@ import Vue from 'vue'; export default Vue.extend({ - props: ['posts'], + props: { + posts: { + type: Array, + default: [] + } + }, computed: { _posts(): any { return this.posts.map(post => { diff --git a/src/web/app/desktop/views/components/ui-header-account.vue b/src/web/app/desktop/views/components/ui-header-account.vue index 435a0dcaf..8dbd9e5e3 100644 --- a/src/web/app/desktop/views/components/ui-header-account.vue +++ b/src/web/app/desktop/views/components/ui-header-account.vue @@ -32,6 +32,7 @@