From 29818a067befa489540ea238ec394921e6cac5e3 Mon Sep 17 00:00:00 2001 From: Free Date: Sun, 23 Apr 2023 00:21:38 +0000 Subject: [PATCH] Notes refactoring (?) + new CW design (#9888) Moved a lot of the duplicated code in the different note components into the SubNoteContent component I've also replaced the detailed note stuff with just the MkNote component Co-authored-by: Freeplay Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9888 Co-authored-by: Free Co-committed-by: Free --- packages/client/src/components/MkCwButton.vue | 61 ++- packages/client/src/components/MkNote.vue | 260 +++--------- .../client/src/components/MkNoteDetailed.vue | 401 +----------------- .../client/src/components/MkNoteSimple.vue | 39 +- packages/client/src/components/MkNoteSub.vue | 82 +--- .../src/components/MkSubNoteContent.vue | 365 ++++++++++------ 6 files changed, 340 insertions(+), 868 deletions(-) diff --git a/packages/client/src/components/MkCwButton.vue b/packages/client/src/components/MkCwButton.vue index b4a69ac6a5..e327fe18f9 100644 --- a/packages/client/src/components/MkCwButton.vue +++ b/packages/client/src/components/MkCwButton.vue @@ -1,8 +1,14 @@ diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 311a80fa01..3d0464bf24 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -10,11 +10,11 @@ :class="{ renote: isRenote }" > -
+
@@ -77,93 +77,34 @@ />
-

- -
- -

+
-
+ +
+ {{ + i18n.t("translatedFrom", { + x: translation.sourceLang, + }) + }}: + - -
- -
- {{ - i18n.t("translatedFrom", { - x: translation.sourceLang, - }) - }}: - - -
-
-
- -
- - -
- -
- -
+
+ + + +