From ad0826d83165a61376627768e3edf4d7e6296dec Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 22 Mar 2020 14:38:33 +0900 Subject: [PATCH] Refactoring --- src/client/components/link.vue | 4 ++-- src/client/components/note.vue | 6 +++--- src/client/components/url-preview-popup.vue | 6 +++--- src/client/components/url.vue | 4 ++-- .../pages/{messaging.vue => messaging/index.vue} | 8 ++++---- .../{ => messaging}/messaging-room.form.vue | 10 +++++----- .../{ => messaging}/messaging-room.message.vue | 16 ++++++++-------- .../pages/{ => messaging}/messaging-room.vue | 8 ++++---- src/client/router.ts | 6 +++--- 9 files changed, 34 insertions(+), 34 deletions(-) rename src/client/pages/{messaging.vue => messaging/index.vue} (97%) rename src/client/pages/{ => messaging}/messaging-room.form.vue (95%) rename src/client/pages/{ => messaging}/messaging-room.message.vue (95%) rename src/client/pages/{ => messaging}/messaging-room.vue (98%) diff --git a/src/client/components/link.vue b/src/client/components/link.vue index f4e07c162..11de68852 100644 --- a/src/client/components/link.vue +++ b/src/client/components/link.vue @@ -13,7 +13,7 @@ import Vue from 'vue'; import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons'; import { url as local } from '../config'; -import XUrlPreview from './url-preview-popup.vue'; +import MkUrlPreview from './url-preview-popup.vue'; export default Vue.extend({ props: { @@ -44,7 +44,7 @@ export default Vue.extend({ if (!document.body.contains(this.$el)) return; if (this.preview) return; - this.preview = new XUrlPreview({ + this.preview = new MkUrlPreview({ parent: this, propsData: { url: this.url, diff --git a/src/client/components/note.vue b/src/client/components/note.vue index b3126e067..48e37c33d 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -49,7 +49,7 @@ - +
@@ -97,7 +97,7 @@ import XReactionsViewer from './reactions-viewer.vue'; import XMediaList from './media-list.vue'; import XCwButton from './cw-button.vue'; import XPoll from './poll.vue'; -import XUrlPreview from './url-preview.vue'; +import MkUrlPreview from './url-preview.vue'; import MkReactionPicker from './reaction-picker.vue'; import pleaseLogin from '../scripts/please-login'; import { focusPrev, focusNext } from '../scripts/focus'; @@ -115,7 +115,7 @@ export default Vue.extend({ XMediaList, XCwButton, XPoll, - XUrlPreview, + MkUrlPreview, }, props: { diff --git a/src/client/components/url-preview-popup.vue b/src/client/components/url-preview-popup.vue index 26fdbf44a..938566e9e 100644 --- a/src/client/components/url-preview-popup.vue +++ b/src/client/components/url-preview-popup.vue @@ -1,19 +1,19 @@