From f789f111c12c5347a031f77b4a93549cc8125b05 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 13 Feb 2018 13:49:48 +0900 Subject: [PATCH] wip --- src/web/app/common/views/components/index.ts | 2 + src/web/app/common/views/components/time.vue | 125 ++++++++++-------- .../desktop/views/components/images-image.vue | 2 +- .../desktop/views/components/posts-post.vue | 11 +- 4 files changed, 80 insertions(+), 60 deletions(-) diff --git a/src/web/app/common/views/components/index.ts b/src/web/app/common/views/components/index.ts index 26213297a8..3d78e7f9c4 100644 --- a/src/web/app/common/views/components/index.ts +++ b/src/web/app/common/views/components/index.ts @@ -6,6 +6,7 @@ import forkit from './forkit.vue'; import nav from './nav.vue'; import postHtml from './post-html'; import reactionIcon from './reaction-icon.vue'; +import time from './time.vue'; Vue.component('mk-signin', signin); Vue.component('mk-signup', signup); @@ -13,3 +14,4 @@ Vue.component('mk-forkit', forkit); Vue.component('mk-nav', nav); Vue.component('mk-post-html', postHtml); Vue.component('mk-reaction-icon', reactionIcon); +Vue.component('mk-time', time); diff --git a/src/web/app/common/views/components/time.vue b/src/web/app/common/views/components/time.vue index 7d165fc006..3c856d3f26 100644 --- a/src/web/app/common/views/components/time.vue +++ b/src/web/app/common/views/components/time.vue @@ -1,63 +1,76 @@ - diff --git a/src/web/app/desktop/views/components/images-image.vue b/src/web/app/desktop/views/components/images-image.vue index 8cb9d5e108..5ef8ffcdae 100644 --- a/src/web/app/desktop/views/components/images-image.vue +++ b/src/web/app/desktop/views/components/images-image.vue @@ -4,7 +4,7 @@ @mousemove="onMousemove" @mouseleave="onMouseleave" @click.prevent="onClick" - :style="styles" + :style="style" :title="image.name"> diff --git a/src/web/app/desktop/views/components/posts-post.vue b/src/web/app/desktop/views/components/posts-post.vue index 2633a63f28..77a1e882c8 100644 --- a/src/web/app/desktop/views/components/posts-post.vue +++ b/src/web/app/desktop/views/components/posts-post.vue @@ -1,5 +1,5 @@