Loading cli/import_map.g.json +1 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ "pkijs": "npm:pkijs@^3.2.4", "uri-template-router": "npm:uri-template-router@^0.0.16", "url-template": "npm:url-template@^3.1.1", "@fedify/fedify/compat": "../src/./compat/mod.ts", "@cliffy/ansi": "jsr:@cliffy/ansi@1.0.0-rc.4", "@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.4", "@cliffy/prompt": "jsr:@cliffy/prompt@1.0.0-rc.4", Loading cli/inbox/view.tsx +13 −7 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ const Layout: FC<PropsWithChildren<LayoutProps>> = ( <title> {props.title == null ? "" // deno-lint-ignore jsx-curly-braces : <Fragment>{props.title} —{" "}</Fragment>}Fedify Ephemeral Inbox ({props.handle}) </title> Loading Loading @@ -353,9 +354,11 @@ const Log: FC<LogProps> = ( <div class="d-flex w-100 justify-content-between"> <p class="mb-1" style="white-space: pre-wrap; word-break: break-word;"> {message.map((m, i) => i % 2 == 0 ? m : <code>{typeof m === "string" ? m : Deno.inspect(m)}</code> i % 2 == 0 ? m : ( <code key={i}> {typeof m === "string" ? m : Deno.inspect(m)} </code> ) )} </p> <time Loading @@ -367,7 +370,10 @@ const Log: FC<LogProps> = ( </time> </div> <small class="text-body-secondary"> {category.map((c, i) => i < 1 ? c : <Fragment>{" "}/ {c}</Fragment>)} {category.map((c, i) => // deno-lint-ignore jsx-curly-braces i < 1 ? c : <Fragment key={i.toString()}>{" "}/ {c}</Fragment> )} </small> </li> ); Loading @@ -380,7 +386,7 @@ interface LogListProps { const LogList: FC<LogListProps> = ({ logs }: LogListProps) => { return ( <ul class="list-group mt-3"> {logs.map((log) => <Log log={log} />)} {logs.map((log) => <Log key={log.timestamp} log={log} />)} </ul> ); }; Loading Loading @@ -543,12 +549,12 @@ const ActivityList: FC<ActivityListProps> = ( <code>{entry.request.method} {url.pathname + url.search}</code> {entry.activity == null ? "" : ( <Fragment> {" "}· <code>{entry.activity.constructor.name}</code> {} · <code>{entry.activity.constructor.name}</code> </Fragment> )} {entry.response == null ? "" : ( <Fragment> {" "}→{" "} {} →{" "} <code> {entry.response.status} {entry.response.statusText === "" ? getStatusText(entry.response.status) Loading examples/blog/components/PostForm.tsx +3 −3 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ export function PostForm( type="text" id="title" name="title" required={true} required aria-invalid={error?.title == null ? undefined : "true"} value={defaultValues?.title} /> Loading @@ -41,7 +41,7 @@ export function PostForm( name="content" cols={80} rows={7} required={true} required aria-invalid={error?.content == null ? undefined : "true"} value={defaultValues?.content} /> Loading @@ -57,7 +57,7 @@ export function PostForm( type="password" id="password" name="password" required={true} required aria-invalid={error?.password == null ? undefined : "true"} /> {error?.password && ( Loading examples/blog/components/Setup.tsx +4 −4 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ export default function Setup({ url, error, defaultValues }: SetupProps) { id="handle" name="handle" placeholder="your-handle" required={true} required pattern="^[A-Za-z._\-]{3,20}$" title="Must be 3-20 characters long and contain only letters, periods, underscores, and hyphens" aria-invalid={error?.handle == null ? undefined : "true"} Loading @@ -55,7 +55,7 @@ export default function Setup({ url, error, defaultValues }: SetupProps) { id="title" name="title" placeholder="My blog" required={true} required aria-invalid={error?.title == null ? undefined : "true"} value={defaultValues?.title} /> Loading @@ -75,7 +75,7 @@ export default function Setup({ url, error, defaultValues }: SetupProps) { id="description" name="description" placeholder="A blog about…" required={true} required aria-invalid={error?.description == null ? undefined : "true"} value={defaultValues?.description} /> Loading @@ -95,7 +95,7 @@ export default function Setup({ url, error, defaultValues }: SetupProps) { type="password" id="password" name="password" required={true} required aria-invalid={error?.password == null ? undefined : "true"} /> <small> Loading examples/blog/deno.json +21 −6 Original line number Diff line number Diff line Loading @@ -5,27 +5,39 @@ "codegen": "deno task -f @fedify/fedify codegen", "check": { "command": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "cli": { "command": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "manifest": { "command": "deno task cli manifest $(pwd)", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "start": { "command": "deno run -A --watch=static/,routes/ --unstable-kv dev.ts", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "build": { "command": "deno run -A dev.ts build", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "preview": { "command": "deno run -A main.ts", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "update": "deno run -A -r https://fresh.deno.dev/update ." }, Loading @@ -34,6 +46,9 @@ "tags": [ "fresh", "recommended" ], "exclude": [ "react-no-danger" ] } }, Loading Loading
cli/import_map.g.json +1 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ "pkijs": "npm:pkijs@^3.2.4", "uri-template-router": "npm:uri-template-router@^0.0.16", "url-template": "npm:url-template@^3.1.1", "@fedify/fedify/compat": "../src/./compat/mod.ts", "@cliffy/ansi": "jsr:@cliffy/ansi@1.0.0-rc.4", "@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.4", "@cliffy/prompt": "jsr:@cliffy/prompt@1.0.0-rc.4", Loading
cli/inbox/view.tsx +13 −7 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ const Layout: FC<PropsWithChildren<LayoutProps>> = ( <title> {props.title == null ? "" // deno-lint-ignore jsx-curly-braces : <Fragment>{props.title} —{" "}</Fragment>}Fedify Ephemeral Inbox ({props.handle}) </title> Loading Loading @@ -353,9 +354,11 @@ const Log: FC<LogProps> = ( <div class="d-flex w-100 justify-content-between"> <p class="mb-1" style="white-space: pre-wrap; word-break: break-word;"> {message.map((m, i) => i % 2 == 0 ? m : <code>{typeof m === "string" ? m : Deno.inspect(m)}</code> i % 2 == 0 ? m : ( <code key={i}> {typeof m === "string" ? m : Deno.inspect(m)} </code> ) )} </p> <time Loading @@ -367,7 +370,10 @@ const Log: FC<LogProps> = ( </time> </div> <small class="text-body-secondary"> {category.map((c, i) => i < 1 ? c : <Fragment>{" "}/ {c}</Fragment>)} {category.map((c, i) => // deno-lint-ignore jsx-curly-braces i < 1 ? c : <Fragment key={i.toString()}>{" "}/ {c}</Fragment> )} </small> </li> ); Loading @@ -380,7 +386,7 @@ interface LogListProps { const LogList: FC<LogListProps> = ({ logs }: LogListProps) => { return ( <ul class="list-group mt-3"> {logs.map((log) => <Log log={log} />)} {logs.map((log) => <Log key={log.timestamp} log={log} />)} </ul> ); }; Loading Loading @@ -543,12 +549,12 @@ const ActivityList: FC<ActivityListProps> = ( <code>{entry.request.method} {url.pathname + url.search}</code> {entry.activity == null ? "" : ( <Fragment> {" "}· <code>{entry.activity.constructor.name}</code> {} · <code>{entry.activity.constructor.name}</code> </Fragment> )} {entry.response == null ? "" : ( <Fragment> {" "}→{" "} {} →{" "} <code> {entry.response.status} {entry.response.statusText === "" ? getStatusText(entry.response.status) Loading
examples/blog/components/PostForm.tsx +3 −3 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ export function PostForm( type="text" id="title" name="title" required={true} required aria-invalid={error?.title == null ? undefined : "true"} value={defaultValues?.title} /> Loading @@ -41,7 +41,7 @@ export function PostForm( name="content" cols={80} rows={7} required={true} required aria-invalid={error?.content == null ? undefined : "true"} value={defaultValues?.content} /> Loading @@ -57,7 +57,7 @@ export function PostForm( type="password" id="password" name="password" required={true} required aria-invalid={error?.password == null ? undefined : "true"} /> {error?.password && ( Loading
examples/blog/components/Setup.tsx +4 −4 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ export default function Setup({ url, error, defaultValues }: SetupProps) { id="handle" name="handle" placeholder="your-handle" required={true} required pattern="^[A-Za-z._\-]{3,20}$" title="Must be 3-20 characters long and contain only letters, periods, underscores, and hyphens" aria-invalid={error?.handle == null ? undefined : "true"} Loading @@ -55,7 +55,7 @@ export default function Setup({ url, error, defaultValues }: SetupProps) { id="title" name="title" placeholder="My blog" required={true} required aria-invalid={error?.title == null ? undefined : "true"} value={defaultValues?.title} /> Loading @@ -75,7 +75,7 @@ export default function Setup({ url, error, defaultValues }: SetupProps) { id="description" name="description" placeholder="A blog about…" required={true} required aria-invalid={error?.description == null ? undefined : "true"} value={defaultValues?.description} /> Loading @@ -95,7 +95,7 @@ export default function Setup({ url, error, defaultValues }: SetupProps) { type="password" id="password" name="password" required={true} required aria-invalid={error?.password == null ? undefined : "true"} /> <small> Loading
examples/blog/deno.json +21 −6 Original line number Diff line number Diff line Loading @@ -5,27 +5,39 @@ "codegen": "deno task -f @fedify/fedify codegen", "check": { "command": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "cli": { "command": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "manifest": { "command": "deno task cli manifest $(pwd)", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "start": { "command": "deno run -A --watch=static/,routes/ --unstable-kv dev.ts", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "build": { "command": "deno run -A dev.ts build", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "preview": { "command": "deno run -A main.ts", "dependencies": ["codegen"] "dependencies": [ "codegen" ] }, "update": "deno run -A -r https://fresh.deno.dev/update ." }, Loading @@ -34,6 +46,9 @@ "tags": [ "fresh", "recommended" ], "exclude": [ "react-no-danger" ] } }, Loading