👁️
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

add titles to pages

+22 -1
+3
src/routes/cards/index.tsx
··· 28 28 sort: (search.sort as string) || undefined, 29 29 }; 30 30 }, 31 + head: () => ({ 32 + meta: [{ title: "Cards | DeckBelcher" }], 33 + }), 31 34 }); 32 35 33 36 function MetadataDisplay() {
+3
src/routes/deck/new.tsx
··· 5 5 6 6 export const Route = createFileRoute("/deck/new")({ 7 7 component: NewDeckPage, 8 + head: () => ({ 9 + meta: [{ title: "New Deck | DeckBelcher" }], 10 + }), 8 11 }); 9 12 10 13 function NewDeckPage() {
+3
src/routes/oauth/callback.tsx
··· 6 6 export const Route = createFileRoute("/oauth/callback")({ 7 7 component: OAuthCallback, 8 8 ssr: false, 9 + head: () => ({ 10 + meta: [{ title: "Signing In... | DeckBelcher" }], 11 + }), 9 12 }); 10 13 11 14 function OAuthCallback() {
+3
src/routes/pm-demo.tsx
··· 7 7 8 8 export const Route = createFileRoute("/pm-demo")({ 9 9 component: ProseMirrorDemo, 10 + head: () => ({ 11 + meta: [{ title: "Editor Demo | DeckBelcher" }], 12 + }), 10 13 }); 11 14 12 15 const SAMPLE_DOC: Document = {
+1
src/routes/profile/$did/deck/$rkey/index.tsx
··· 38 38 import { formatDisplayName } from "@/lib/format-utils"; 39 39 import type { Document } from "@/lib/lexicons/types/com/deckbelcher/richtext"; 40 40 import { getCardByIdQueryOptions } from "@/lib/queries"; 41 + import { documentToPlainText } from "@/lib/richtext-convert"; 41 42 import type { ScryfallId } from "@/lib/scryfall-types"; 42 43 import { getImageUri } from "@/lib/scryfall-utils"; 43 44 import { getSelectedCards, type StatsSelection } from "@/lib/stats-selection";
+6 -1
src/routes/profile/$did/index.tsx
··· 30 30 }), 31 31 loader: async ({ context, params }) => { 32 32 // Prefetch deck list, collection lists, and DID document during SSR 33 - await Promise.all([ 33 + const [, , didDocument] = await Promise.all([ 34 34 context.queryClient.ensureQueryData( 35 35 listUserDecksQueryOptions(params.did as Did), 36 36 ), ··· 41 41 didDocumentQueryOptions(params.did as Did), 42 42 ), 43 43 ]); 44 + return { handle: extractHandle(didDocument) }; 45 + }, 46 + head: ({ loaderData }) => { 47 + const display = loaderData?.handle ? `@${loaderData.handle}` : "Profile"; 48 + return { meta: [{ title: `${display} | DeckBelcher` }] }; 44 49 }, 45 50 }); 46 51
+3
src/routes/signin.tsx
··· 7 7 8 8 export const Route = createFileRoute("/signin")({ 9 9 component: SignIn, 10 + head: () => ({ 11 + meta: [{ title: "Sign In | DeckBelcher" }], 12 + }), 10 13 }); 11 14 12 15 function SignIn() {