* cleanup: postactions styling * misc: fix first round of errors * pkg: remove vitest * fix: fix lint errors stage 2 * fix: fix lint errors stage 3 * fix: fix lint errors, stage 3 * misc: update eslint rules to warn for writable derived
16 lines
279 B
TypeScript
16 lines
279 B
TypeScript
import { getClient, site as siteStore } from '$lib/lemmy.svelte.js'
|
|
|
|
export async function load({ fetch }) {
|
|
const site = siteStore
|
|
|
|
if (!site.data) {
|
|
const res = await getClient(undefined, fetch).getSite()
|
|
|
|
site.data = res
|
|
}
|
|
|
|
return {
|
|
site: site.data,
|
|
}
|
|
}
|