diff --git a/bun.lockb b/bun.lockb index 1724701..00db71e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/buttons/DropdownElement.vue b/components/buttons/DropdownElement.vue index 93355de..d4288c1 100644 --- a/components/buttons/DropdownElement.vue +++ b/components/buttons/DropdownElement.vue @@ -1,7 +1,6 @@ diff --git a/components/composer/composer.vue b/components/composer/composer.vue index 9b67950..4069dae 100644 --- a/components/composer/composer.vue +++ b/components/composer/composer.vue @@ -1,21 +1,12 @@ + + \ No newline at end of file diff --git a/components/composer/modal.vue b/components/composer/modal.vue deleted file mode 100644 index 3ea7676..0000000 --- a/components/composer/modal.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - \ No newline at end of file diff --git a/components/dropdowns/AdaptiveDropdown.vue b/components/dropdowns/AdaptiveDropdown.vue index ec06a94..ae14597 100644 --- a/components/dropdowns/AdaptiveDropdown.vue +++ b/components/dropdowns/AdaptiveDropdown.vue @@ -1,29 +1,34 @@ \ No newline at end of file diff --git a/components/headers/navbar.vue b/components/headers/navbar.vue deleted file mode 100644 index d9a8239..0000000 --- a/components/headers/navbar.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - - - \ No newline at end of file diff --git a/components/sidebars/navigation.vue b/components/sidebars/navigation.vue index 11ca9be..5229b18 100644 --- a/components/sidebars/navigation.vue +++ b/components/sidebars/navigation.vue @@ -70,23 +70,20 @@ @@ -102,33 +99,33 @@ @@ -142,6 +139,7 @@ \ No newline at end of file diff --git a/components/social-elements/notes/attachment.vue b/components/social-elements/notes/attachment.vue index 40f052f..3bc3dbf 100644 --- a/components/social-elements/notes/attachment.vue +++ b/components/social-elements/notes/attachment.vue @@ -1,55 +1,26 @@ \ No newline at end of file diff --git a/components/social-elements/notes/note.vue b/components/social-elements/notes/note.vue index 1c95624..5ca530a 100644 --- a/components/social-elements/notes/note.vue +++ b/components/social-elements/notes/note.vue @@ -24,17 +24,17 @@ class="text-gray-200 group-hover:group-enabled:text-blue-600" aria-hidden="true" /> {{ numberFormat(note?.replies_count) }} - - @@ -45,32 +45,30 @@ @@ -79,6 +77,7 @@ \ No newline at end of file diff --git a/composables/EventBus.ts b/composables/EventBus.ts index b0aa5a7..780a278 100644 --- a/composables/EventBus.ts +++ b/composables/EventBus.ts @@ -1,4 +1,5 @@ import mitt from "mitt"; +import type { Attachment } from "~/types/mastodon/attachment"; import type { Status } from "~/types/mastodon/status"; export type NotificationEvent = { @@ -24,6 +25,7 @@ type ApplicationEvents = { "composer:send": Status; "composer:close": undefined; "notification:new": NotificationEvent; + "attachment:view": Attachment; }; const emitter = mitt(); diff --git a/composables/NoteData.ts b/composables/NoteData.ts index 571df36..622ebd7 100644 --- a/composables/NoteData.ts +++ b/composables/NoteData.ts @@ -45,8 +45,11 @@ export const useNoteData = ( : null, ); - const url = computed( - () => `/@${renderedNote.value?.account.acct}/${renderedNote.value?.id}`, + const url = computed(() => + new URL( + `/@${renderedNote.value?.account.acct}/${renderedNote.value?.id}`, + window.location.origin, + ).toString(), ); const remove = async () => { diff --git a/layouts/app.vue b/layouts/app.vue index 6e8cb1e..723efc7 100644 --- a/layouts/app.vue +++ b/layouts/app.vue @@ -38,6 +38,7 @@ +