From 7bafb3ab2e85d3877b172422b6f1fb300aee539a Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 28 Jun 2024 11:10:21 +0100 Subject: [PATCH] rename our components - fixes #534 --- packages/frontend/src/components/MkMediaList.vue | 2 +- packages/frontend/src/components/MkPostForm.vue | 2 +- .../src/components/{MkFormula.vue => SkFormula.vue} | 0 .../src/components/{MkMfmWindow.vue => SkMfmWindow.vue} | 0 .../src/components/{MkModPlayer.vue => SkModPlayer.vue} | 0 .../src/components/global/MkMisskeyFlavoredMarkdown.ts | 6 +++--- 6 files changed, 5 insertions(+), 5 deletions(-) rename packages/frontend/src/components/{MkFormula.vue => SkFormula.vue} (100%) rename packages/frontend/src/components/{MkMfmWindow.vue => SkMfmWindow.vue} (100%) rename packages/frontend/src/components/{MkModPlayer.vue => SkModPlayer.vue} (100%) diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index 3bf44aea8e..112a84f1fd 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -37,7 +37,7 @@ import 'photoswipe/style.css'; import XBanner from '@/components/MkMediaBanner.vue'; import XImage from '@/components/MkMediaImage.vue'; import XVideo from '@/components/MkMediaVideo.vue'; -import XModPlayer from '@/components/MkModPlayer.vue'; +import XModPlayer from '@/components/SkModPlayer.vue'; import * as os from '@/os.js'; import { FILE_TYPE_BROWSERSAFE, FILE_EXT_TRACKER_MODULES, FILE_TYPE_TRACKER_MODULES } from '@/const.js'; import { defaultStore } from '@/store.js'; diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index cfaaeecc34..cf472650fe 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -372,7 +372,7 @@ function watchForDraft() { } function MFMWindow() { - os.popup(defineAsyncComponent(() => import('@/components/MkMfmWindow.vue')), {}, {}, 'closed'); + os.popup(defineAsyncComponent(() => import('@/components/SkMfmWindow.vue')), {}, {}, 'closed'); } function checkMissingMention() { diff --git a/packages/frontend/src/components/MkFormula.vue b/packages/frontend/src/components/SkFormula.vue similarity index 100% rename from packages/frontend/src/components/MkFormula.vue rename to packages/frontend/src/components/SkFormula.vue diff --git a/packages/frontend/src/components/MkMfmWindow.vue b/packages/frontend/src/components/SkMfmWindow.vue similarity index 100% rename from packages/frontend/src/components/MkMfmWindow.vue rename to packages/frontend/src/components/SkMfmWindow.vue diff --git a/packages/frontend/src/components/MkModPlayer.vue b/packages/frontend/src/components/SkModPlayer.vue similarity index 100% rename from packages/frontend/src/components/MkModPlayer.vue rename to packages/frontend/src/components/SkModPlayer.vue diff --git a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts index 1bc33585f2..5b922804f6 100644 --- a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts +++ b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts @@ -80,7 +80,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext import('@/components/MkFormula.vue')); + const SkFormula = defineAsyncComponent(() => import('@/components/SkFormula.vue')); /** * Gen Vue Elements from MFM AST @@ -499,14 +499,14 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext