From a3a3404398df7306ab522ddde1643d4707cac1c9 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Tue, 27 Aug 2024 08:32:22 +0900 Subject: [PATCH] wip --- .../frontend-embed/src/components/EmNote.vue | 3 +- .../src/components/EmNoteDetailed.vue | 3 +- .../src/components/EmNoteSimple.vue | 3 +- .../src/components/EmNoteSub.vue | 5 +- .../src/components/MkReactionsViewer.vue | 112 ++++++++++++++++++ 5 files changed, 117 insertions(+), 9 deletions(-) create mode 100644 packages/frontend-embed/src/components/MkReactionsViewer.vue diff --git a/packages/frontend-embed/src/components/EmNote.vue b/packages/frontend-embed/src/components/EmNote.vue index 62cbff7263..7219d683c8 100644 --- a/packages/frontend-embed/src/components/EmNote.vue +++ b/packages/frontend-embed/src/components/EmNote.vue @@ -47,7 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- + {{ showContent ? i18n.ts._cw.hide : i18n.ts._cw.show }}

@@ -119,7 +119,6 @@ import EmNoteHeader from '@/components/EmNoteHeader.vue'; import EmNoteSimple from '@/components/EmNoteSimple.vue'; import EmReactionsViewer from '@/components/EmReactionsViewer.vue'; import EmMediaList from '@/components/EmMediaList.vue'; -import EmCwButton from '@/components/EmCwButton.vue'; import EmPoll from '@/components/EmPoll.vue'; import { userPage } from '@/utils.js'; import { i18n } from '@/i18n.js'; diff --git a/packages/frontend-embed/src/components/EmNoteDetailed.vue b/packages/frontend-embed/src/components/EmNoteDetailed.vue index ffc096b2c6..9db9ddf7c4 100644 --- a/packages/frontend-embed/src/components/EmNoteDetailed.vue +++ b/packages/frontend-embed/src/components/EmNoteDetailed.vue @@ -59,7 +59,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- + {{ showContent ? i18n.ts._cw.hide : i18n.ts._cw.show }}

({{ i18n.ts.private }}) @@ -132,7 +132,6 @@ import EmMediaList from '@/components/EmMediaList.vue'; import EmNoteSub from '@/components/EmNoteSub.vue'; import EmNoteSimple from '@/components/EmNoteSimple.vue'; import EmReactionsViewer from '@/components/EmReactionsViewer.vue'; -import EmCwButton from '@/components/EmCwButton.vue'; import EmPoll from '@/components/EmPoll.vue'; import EmA from '@/components/EmA.vue'; import EmAvatar from '@/components/EmAvatar.vue'; diff --git a/packages/frontend-embed/src/components/EmNoteSimple.vue b/packages/frontend-embed/src/components/EmNoteSimple.vue index 64944d5af8..ab75ed85aa 100644 --- a/packages/frontend-embed/src/components/EmNoteSimple.vue +++ b/packages/frontend-embed/src/components/EmNoteSimple.vue @@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- + {{ showContent ? i18n.ts._cw.hide : i18n.ts._cw.show }}

@@ -26,7 +26,6 @@ import { ref } from 'vue'; import * as Misskey from 'misskey-js'; import EmNoteHeader from '@/components/EmNoteHeader.vue'; import EmSubNoteContent from '@/components/EmSubNoteContent.vue'; -import EmCwButton from '@/components/EmCwButton.vue'; const props = defineProps<{ note: Misskey.entities.Note; diff --git a/packages/frontend-embed/src/components/EmNoteSub.vue b/packages/frontend-embed/src/components/EmNoteSub.vue index f0ceaf88c3..411bf60d9d 100644 --- a/packages/frontend-embed/src/components/EmNoteSub.vue +++ b/packages/frontend-embed/src/components/EmNoteSub.vue @@ -13,7 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- + {{ showContent ? i18n.ts._cw.hide : i18n.ts._cw.show }}

@@ -35,9 +35,8 @@ import { ref } from 'vue'; import * as Misskey from 'misskey-js'; import EmNoteHeader from '@/components/EmNoteHeader.vue'; import EmSubNoteContent from '@/components/EmSubNoteContent.vue'; -import EmCwButton from '@/components/EmCwButton.vue'; import { notePage } from '@/utils.js'; -import { misskeyApi } from '@/scripts/misskey-api.js'; +import { misskeyApi } from '@/misskey-api.js'; import { i18n } from '@/i18n.js'; const props = withDefaults(defineProps<{ diff --git a/packages/frontend-embed/src/components/MkReactionsViewer.vue b/packages/frontend-embed/src/components/MkReactionsViewer.vue new file mode 100644 index 0000000000..5252009fec --- /dev/null +++ b/packages/frontend-embed/src/components/MkReactionsViewer.vue @@ -0,0 +1,112 @@ + + + + + + +