enable about page and server-settings pages

pull/361/head
Dario Piotrowicz 2023-03-02 09:29:01 +00:00
rodzic 0580e089ab
commit da8285c8e0
2 zmienionych plików z 1 dodań i 13 usunięć

Wyświetl plik

@ -1,16 +1,7 @@
import { component$, Slot } from '@builder.io/qwik'
import { WildebeestLogo } from '~/components/MastodonLogo'
import { loader$ } from '@builder.io/qwik-city'
import { getNotFoundHtml } from '~/utils/getNotFoundHtml/getNotFoundHtml'
export const loader = loader$(({ html }) => {
html(404, getNotFoundHtml())
})
export default component$(() => {
loader()
return (
<div class="flex w-screen min-h-screen justify-center">
<AccountSidebar />

Wyświetl plik

@ -15,7 +15,6 @@ import { getAdmins } from 'wildebeest/functions/api/wb/settings/server/admins'
import { emailSymbol } from 'wildebeest/backend/src/activitypub/actors'
import { loadLocalMastodonAccount } from 'wildebeest/backend/src/mastodon/account'
import { AccountCard } from '~/components/AccountCard/AccountCard'
import { getNotFoundHtml } from '~/utils/getNotFoundHtml/getNotFoundHtml'
type AboutInfo = {
image: string
@ -27,9 +26,7 @@ type AboutInfo = {
}
}
export const aboutInfoLoader = loader$<Promise<AboutInfo>>(async ({ resolveValue, request, platform, html }) => {
throw html(404, getNotFoundHtml())
export const aboutInfoLoader = loader$<Promise<AboutInfo>>(async ({ resolveValue, request, platform }) => {
// TODO: fetching the instance for the thumbnail, but that should be part of the settings
const instance = await resolveValue(instanceLoader)