mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
refactor: ♻️ Replace HeadlessUI with Ark UI, improve UI
This commit is contained in:
parent
d109e09a72
commit
3c68c2e788
15 changed files with 231 additions and 242 deletions
|
|
@ -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>();
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue