From 2244cf29957f1319bbd509b001deb96f98a94ba2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 30 Dec 2022 13:56:22 +0900 Subject: [PATCH] refactor --- packages/frontend/src/components/MkNote.vue | 30 +++++++++---------- .../src/components/MkNoteDetailed.vue | 26 ++++++++-------- .../frontend/src/components/MkNoteSimple.vue | 8 ++--- .../frontend/src/components/MkNoteSub.vue | 8 ++--- .../frontend/src/components/MkPostForm.vue | 10 +++---- .../src/components/MkSubNoteContent.vue | 8 ++--- .../frontend/src/pages/welcome.timeline.vue | 18 +++++------ 7 files changed, 54 insertions(+), 54 deletions(-) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index e2e542f514..11da49f2da 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -33,12 +33,12 @@
- +

- +

@@ -55,11 +55,11 @@
- +
- + -
+
@@ -70,12 +70,12 @@ {{ appearNote.channel.name }}
- + - + @@ -105,13 +105,13 @@ import { computed, inject, onMounted, onUnmounted, reactive, ref, Ref } from 'vu import * as mfm from 'mfm-js'; import * as misskey from 'misskey-js'; import MkNoteSub from '@/components/MkNoteSub.vue'; -import XNoteHeader from '@/components/MkNoteHeader.vue'; -import XNoteSimple from '@/components/MkNoteSimple.vue'; -import XReactionsViewer from '@/components/MkReactionsViewer.vue'; -import XMediaList from '@/components/MkMediaList.vue'; -import XCwButton from '@/components/MkCwButton.vue'; -import XPoll from '@/components/MkPoll.vue'; -import XRenoteButton from '@/components/MkRenoteButton.vue'; +import MkNoteHeader from '@/components/MkNoteHeader.vue'; +import MkNoteSimple from '@/components/MkNoteSimple.vue'; +import MkReactionsViewer from '@/components/MkReactionsViewer.vue'; +import MkMediaList from '@/components/MkMediaList.vue'; +import MkCwButton from '@/components/MkCwButton.vue'; +import MkPoll from '@/components/MkPoll.vue'; +import MkRenoteButton from '@/components/MkRenoteButton.vue'; import MkUrlPreview from '@/components/MkUrlPreview.vue'; import MkInstanceTicker from '@/components/MkInstanceTicker.vue'; import MkVisibility from '@/components/MkVisibility.vue'; @@ -158,7 +158,7 @@ const isRenote = ( const el = ref(); const menuButton = ref(); -const renoteButton = ref>(); +const renoteButton = ref>(); const renoteTime = ref(); const reactButton = ref(); let appearNote = $computed(() => isRenote ? note.renote as misskey.entities.Note : note); diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index c3c49420c5..14af580b26 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -49,7 +49,7 @@

- +

@@ -66,11 +66,11 @@
- +
- + -
+
{{ appearNote.channel.name }}
@@ -80,12 +80,12 @@ - + - + @@ -116,12 +116,12 @@ import { computed, inject, onMounted, onUnmounted, reactive, ref } from 'vue'; import * as mfm from 'mfm-js'; import * as misskey from 'misskey-js'; import MkNoteSub from '@/components/MkNoteSub.vue'; -import XNoteSimple from '@/components/MkNoteSimple.vue'; -import XReactionsViewer from '@/components/MkReactionsViewer.vue'; -import XMediaList from '@/components/MkMediaList.vue'; -import XCwButton from '@/components/MkCwButton.vue'; -import XPoll from '@/components/MkPoll.vue'; -import XRenoteButton from '@/components/MkRenoteButton.vue'; +import MkNoteSimple from '@/components/MkNoteSimple.vue'; +import MkReactionsViewer from '@/components/MkReactionsViewer.vue'; +import MkMediaList from '@/components/MkMediaList.vue'; +import MkCwButton from '@/components/MkCwButton.vue'; +import MkPoll from '@/components/MkPoll.vue'; +import MkRenoteButton from '@/components/MkRenoteButton.vue'; import MkUrlPreview from '@/components/MkUrlPreview.vue'; import MkInstanceTicker from '@/components/MkInstanceTicker.vue'; import MkVisibility from '@/components/MkVisibility.vue'; @@ -168,7 +168,7 @@ const isRenote = ( const el = ref(); const menuButton = ref(); -const renoteButton = ref>(); +const renoteButton = ref>(); const renoteTime = ref(); const reactButton = ref(); let appearNote = $computed(() => isRenote ? note.renote as misskey.entities.Note : note); diff --git a/packages/frontend/src/components/MkNoteSimple.vue b/packages/frontend/src/components/MkNoteSimple.vue index fc6bf40e9f..dcc2656c82 100644 --- a/packages/frontend/src/components/MkNoteSimple.vue +++ b/packages/frontend/src/components/MkNoteSimple.vue @@ -2,11 +2,11 @@
- +

- +

@@ -19,9 +19,9 @@