From 3ce5803bb0ef29da0aabe3f2e8660c99754822b2 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 26213297a..3d78e7f9c 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 7d165fc00..3c856d3f2 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 8cb9d5e10..5ef8ffcda 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 2633a63f2..77a1e882c 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 @@