Loading examples/sveltekit-sample/src/lib/fetch.ts +1 −0 Original line number Diff line number Diff line import { Note, type RequestContext } from "@fedify/fedify"; import type { Post, User } from "./types"; import { postStore } from "./store"; export const getUser = async ( ctx: RequestContext<unknown>, Loading examples/sveltekit-sample/src/routes/+page.svelte +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ <a href="https://svelte.dev/"> <img src="/svelte-horizontal.svg" alt="Next.js" alt="Svelte" class="inline-block w-24" /> </a> Loading examples/sveltekit-sample/src/routes/users/[identifier]/+page.svelte +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ </a>–<a href="https://svelte.dev/"> <img src="/svelte-horizontal.svg" alt="Next.js" alt="Svelte" class="inline-block h-5" /> </a> integration. Loading examples/sveltekit-sample/src/routes/users/[identifier]/posts/+page.server.ts +2 −2 Original line number Diff line number Diff line Loading @@ -12,8 +12,8 @@ const post: Action = async (event) => { const content = data.get("content") as string; const identifier = data.get("identifier") as string; if (typeof content !== "string" && typeof identifier !== "string") { error(400, "Title and content are required"); if (typeof content !== "string" || typeof identifier !== "string") { error(400, "Content and identifier are required"); } const ctx = federation.createContext(event.request, undefined); const id = crypto.randomUUID(); Loading Loading
examples/sveltekit-sample/src/lib/fetch.ts +1 −0 Original line number Diff line number Diff line import { Note, type RequestContext } from "@fedify/fedify"; import type { Post, User } from "./types"; import { postStore } from "./store"; export const getUser = async ( ctx: RequestContext<unknown>, Loading
examples/sveltekit-sample/src/routes/+page.svelte +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ <a href="https://svelte.dev/"> <img src="/svelte-horizontal.svg" alt="Next.js" alt="Svelte" class="inline-block w-24" /> </a> Loading
examples/sveltekit-sample/src/routes/users/[identifier]/+page.svelte +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ </a>–<a href="https://svelte.dev/"> <img src="/svelte-horizontal.svg" alt="Next.js" alt="Svelte" class="inline-block h-5" /> </a> integration. Loading
examples/sveltekit-sample/src/routes/users/[identifier]/posts/+page.server.ts +2 −2 Original line number Diff line number Diff line Loading @@ -12,8 +12,8 @@ const post: Action = async (event) => { const content = data.get("content") as string; const identifier = data.get("identifier") as string; if (typeof content !== "string" && typeof identifier !== "string") { error(400, "Title and content are required"); if (typeof content !== "string" || typeof identifier !== "string") { error(400, "Content and identifier are required"); } const ctx = federation.createContext(event.request, undefined); const id = crypto.randomUUID(); Loading