From e41ba1d177cda1aad83ba184c04abbd3a78dbc5a Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Tue, 27 Aug 2024 19:47:25 +0900
Subject: [PATCH] wip
---
.../frontend-embed/src/components/EmAcct.vue | 24 +++++++++++++++++++
.../src/components/EmMention.vue | 12 ----------
.../src/components/EmNoteDetailed.vue | 2 ++
.../src/components/EmUserName.vue | 21 ++++++++++++++++
packages/frontend-embed/src/style.scss | 7 ++++++
.../src/components/MkEmbedCodeGenDialog.vue | 18 ++++++--------
6 files changed, 61 insertions(+), 23 deletions(-)
create mode 100644 packages/frontend-embed/src/components/EmAcct.vue
create mode 100644 packages/frontend-embed/src/components/EmUserName.vue
diff --git a/packages/frontend-embed/src/components/EmAcct.vue b/packages/frontend-embed/src/components/EmAcct.vue
new file mode 100644
index 0000000000..07315e6a8b
--- /dev/null
+++ b/packages/frontend-embed/src/components/EmAcct.vue
@@ -0,0 +1,24 @@
+
+
+
+
+ @{{ user.username }}
+ @{{ user.host || host }}
+
+
+
+
diff --git a/packages/frontend-embed/src/components/EmMention.vue b/packages/frontend-embed/src/components/EmMention.vue
index 521afad332..5eadf828c7 100644
--- a/packages/frontend-embed/src/components/EmMention.vue
+++ b/packages/frontend-embed/src/components/EmMention.vue
@@ -5,7 +5,6 @@ SPDX-License-Identifier: AGPL-3.0-only
-
@{{ username }}
@{{ toUnicode(host) }}
@@ -31,8 +30,6 @@ const url = `/${canonical}`;
const bg = tinycolor(getComputedStyle(document.documentElement).getPropertyValue('--mention'));
bg.setAlpha(0.1);
const bgCss = bg.toRgbString();
-
-const avatarUrl = `/avatar/@${props.username}@${props.host}`;