diff --git a/components/social-elements/notes/attachment-dialog.vue b/components/social-elements/notes/attachment-dialog.vue deleted file mode 100644 index 9424608..0000000 --- a/components/social-elements/notes/attachment-dialog.vue +++ /dev/null @@ -1,57 +0,0 @@ -t - - \ No newline at end of file diff --git a/components/social-elements/notes/attachment.vue b/components/social-elements/notes/attachment.vue deleted file mode 100644 index 31fa60a..0000000 --- a/components/social-elements/notes/attachment.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - \ No newline at end of file diff --git a/components/social-elements/notes/header.vue b/components/social-elements/notes/header.vue deleted file mode 100644 index 83f3ba1..0000000 --- a/components/social-elements/notes/header.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - \ No newline at end of file diff --git a/components/social-elements/notes/interactions/button.vue b/components/social-elements/notes/interactions/button.vue deleted file mode 100644 index 63a6620..0000000 --- a/components/social-elements/notes/interactions/button.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/components/social-elements/notes/interactions/row.vue b/components/social-elements/notes/interactions/row.vue deleted file mode 100644 index ab92503..0000000 --- a/components/social-elements/notes/interactions/row.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - \ No newline at end of file diff --git a/components/social-elements/notes/mention.vue b/components/social-elements/notes/mention.vue deleted file mode 100644 index 8eb42cb..0000000 --- a/components/social-elements/notes/mention.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - \ No newline at end of file diff --git a/components/social-elements/notes/note-content.vue b/components/social-elements/notes/note-content.vue deleted file mode 100644 index f64ef6a..0000000 --- a/components/social-elements/notes/note-content.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - - - \ No newline at end of file diff --git a/components/social-elements/notes/note-menu.vue b/components/social-elements/notes/note-menu.vue deleted file mode 100644 index 8bd9c92..0000000 --- a/components/social-elements/notes/note-menu.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - \ No newline at end of file diff --git a/components/social-elements/notes/note.vue b/components/social-elements/notes/note.vue deleted file mode 100644 index 259b7db..0000000 --- a/components/social-elements/notes/note.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - \ No newline at end of file diff --git a/components/social-elements/notes/reply-header.vue b/components/social-elements/notes/reply-header.vue deleted file mode 100644 index 8a3b0ce..0000000 --- a/components/social-elements/notes/reply-header.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - \ No newline at end of file diff --git a/composables/ParsedContent.ts b/composables/ParsedContent.ts index 22025cf..876ba77 100644 --- a/composables/ParsedContent.ts +++ b/composables/ParsedContent.ts @@ -1,7 +1,5 @@ import type { Account, Emoji } from "@versia/client/types"; -import { renderToString } from "vue/server-renderer"; import { SettingIds, type Settings } from "~/settings"; -import MentionComponent from "../components/social-elements/notes/mention.vue"; const emojisRegex = /\p{RI}\p{RI}|\p{Emoji}(\p{EMod}|\uFE0F\u20E3?|[\u{E0020}-\u{E007E}]+\u{E007F})?(\u200D(\p{RI}\p{RI}|\p{Emoji}(\p{EMod}|\uFE0F\u20E3?|[\u{E0020}-\u{E007E}]+\u{E007F})?))*/gu; @@ -70,25 +68,6 @@ export const useParsedContent = ( ); } - // Replace links containing mentions with interactive mentions - const links = contentHtml.querySelectorAll("a"); - - for (const link of links) { - const mention = toValue(mentions).find( - (m) => link.textContent === `@${m.acct}`, - ); - if (!mention) { - continue; - } - - const renderedMention = h(MentionComponent); - renderedMention.props = { - account: mention, - }; - - link.outerHTML = await renderToString(renderedMention); - } - result.value = contentHtml.innerHTML; }, { immediate: true }, diff --git a/layouts/app.vue b/layouts/app.vue index 084ae8a..64cec35 100644 --- a/layouts/app.vue +++ b/layouts/app.vue @@ -4,14 +4,12 @@ -