feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)

This commit is contained in:
Florian Sylvain committed 2026-10-15 05:25:44 +02:00
1 parent 3d81d2c717
commit 6b8990c55e
239 files changed
+9194 -1354

No files matched your search

+8 -2
View File
@@ -412,13 +412,19 @@ export async function mountPage(
} else {
kit.requestMock = vi.fn(async (path: string, init?: RequestInit) => dispatch(path, init))
vi.mocked(useApi).mockReturnValue({
getMe: vi.fn().mockResolvedValue({ verified: true, username: 'marta', id: 1 }),
getMe: vi.fn().mockResolvedValue({
verified: true,
username: 'marta',
id: 1,
}),
request: kit.requestMock,
})
}
await router.push(url)
const root = options.app
? defineComponent({ render: () => h(UApp, null, { default: () => h(MediaView) }) })
? defineComponent({
render: () => h(UApp, null, { default: () => h(MediaView) }),
})
: MediaView
kit.wrapper = mount(root, {
attachTo: document.body,