mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
사소한 리팩토링 2
This commit is contained in:
@@ -130,7 +130,7 @@
|
||||
{#if files.length > 0}
|
||||
<RowVirtualizer
|
||||
count={files.length}
|
||||
itemHeight={(index) => 48 + (index + 1 < files.length ? 4 : 0)}
|
||||
itemHeight={(index) => 56 + (index + 1 < files.length ? 4 : 0)}
|
||||
>
|
||||
{#snippet item(index)}
|
||||
{@const file = files[index]!}
|
||||
|
||||
7
src/routes/(main)/menu/+page.server.ts
Normal file
7
src/routes/(main)/menu/+page.server.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createCaller } from "$trpc/router.server";
|
||||
import type { PageServerLoad } from "./$types";
|
||||
|
||||
export const load: PageServerLoad = async (event) => {
|
||||
const { nickname } = await createCaller(event).user.get();
|
||||
return { nickname };
|
||||
};
|
||||
@@ -1,7 +0,0 @@
|
||||
import { trpc } from "$trpc/client";
|
||||
import type { PageLoad } from "./$types";
|
||||
|
||||
export const load: PageLoad = async ({ fetch }) => {
|
||||
const { nickname } = await trpc(fetch).user.get.query();
|
||||
return { nickname };
|
||||
};
|
||||
Reference in New Issue
Block a user