From 2f3cbd236c2e8cc583d1f9bb907c677d30953902 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 20 Feb 2018 23:17:04 +0900 Subject: [PATCH] wip --- src/web/app/common/views/components/index.ts | 2 ++ src/web/app/common/views/components/post-html.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/app/common/views/components/index.ts b/src/web/app/common/views/components/index.ts index 646fa3b71..021e45a8d 100644 --- a/src/web/app/common/views/components/index.ts +++ b/src/web/app/common/views/components/index.ts @@ -18,6 +18,7 @@ import messaging from './messaging.vue'; import messagingForm from './messaging-form.vue'; import messagingRoom from './messaging-room.vue'; import messagingMessage from './messaging-message.vue'; +import urlPreview from './url-preview.vue'; Vue.component('mk-signin', signin); Vue.component('mk-signup', signup); @@ -37,3 +38,4 @@ Vue.component('mk-messaging', messaging); Vue.component('mk-messaging-form', messagingForm); Vue.component('mk-messaging-room', messagingRoom); Vue.component('mk-messaging-message', messagingMessage); +Vue.component('mk-url-preview', urlPreview); diff --git a/src/web/app/common/views/components/post-html.ts b/src/web/app/common/views/components/post-html.ts index 88ced0342..d365bdc49 100644 --- a/src/web/app/common/views/components/post-html.ts +++ b/src/web/app/common/views/components/post-html.ts @@ -44,7 +44,7 @@ export default Vue.component('mk-post-html', { case 'url': return createElement(MkUrl, { props: { - href: escape(token.content), + url: escape(token.content), target: '_blank' } });