refactor: ♻️ Replace HeadlessUI with Ark UI, improve UI

This commit is contained in:
Jesse Wierzbinski 2024-06-04 14:03:15 -10:00
parent d109e09a72
commit 3c68c2e788
No known key found for this signature in database
15 changed files with 231 additions and 242 deletions

View file

@ -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<ApplicationEvents>();

View file

@ -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 () => {