kopia lustrzana https://github.com/cloudflare/wildebeest
enable about page and server-settings pages
rodzic
0580e089ab
commit
da8285c8e0
|
@ -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 />
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue