Skip to content

Commit 1e5dfb4

Browse files
style: auto-fix formatting
1 parent 6379cbb commit 1e5dfb4

7 files changed

Lines changed: 14 additions & 21 deletions

File tree

showcase/shell-docs/src/app/[[...slug]]/error.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ export default function DocsError({
2828
Something went wrong
2929
</h2>
3030
<p className="text-sm text-[var(--text-muted)] mb-4">
31-
We hit an error rendering this page. Please refresh, and if it
32-
keeps happening, report it with the ID below so we can track it
33-
down.
31+
We hit an error rendering this page. Please refresh, and if it keeps
32+
happening, report it with the ID below so we can track it down.
3433
</p>
3534
{error.digest && (
3635
<p className="text-xs text-[var(--text-faint)] mb-4 font-mono">

showcase/shell-docs/src/app/ag-ui/[[...slug]]/error.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ export default function AgUiError({
2828
Something went wrong
2929
</h2>
3030
<p className="text-sm text-[var(--text-muted)] mb-4">
31-
We hit an error rendering this page. Please refresh, and if it
32-
keeps happening, report it with the ID below so we can track it
33-
down.
31+
We hit an error rendering this page. Please refresh, and if it keeps
32+
happening, report it with the ID below so we can track it down.
3433
</p>
3534
{error.digest && (
3635
<p className="text-xs text-[var(--text-faint)] mb-4 font-mono">

showcase/shell-docs/src/app/ag-ui/[[...slug]]/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,10 @@ export default async function AgUiDocPage({
381381
notFound();
382382
}
383383

384-
const source = safeReadFileSync(CONTENT_DIR, path.relative(CONTENT_DIR, filePath));
384+
const source = safeReadFileSync(
385+
CONTENT_DIR,
386+
path.relative(CONTENT_DIR, filePath),
387+
);
385388
if (source === null) {
386389
console.error(`[ag-ui] Failed to read ${filePath}`);
387390
notFound();

showcase/shell-docs/src/app/reference/[...slug]/page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ export default async function ReferenceSlugPage({
4444
// slugPath is user-supplied (URL segments). Route the filesystem read
4545
// through safeReadFileSync so crafted paths like `..%2F..%2Fsecrets`
4646
// can't escape REFERENCE_CONTENT_DIR.
47-
const raw = safeReadFileSync(
48-
REFERENCE_CONTENT_DIR,
49-
`${slugPath}.mdx`,
50-
);
47+
const raw = safeReadFileSync(REFERENCE_CONTENT_DIR, `${slugPath}.mdx`);
5148
if (raw === null) {
5249
notFound();
5350
}

showcase/shell-docs/src/components/search-modal.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ export function SearchModal({ onClose }: { onClose: () => void }) {
4848
}, [selectedIndex]);
4949

5050
useEffect(() => {
51-
const focusId = window.setTimeout(
52-
() => inputRef.current?.focus(),
53-
50,
54-
);
51+
const focusId = window.setTimeout(() => inputRef.current?.focus(), 50);
5552
let cancelled = false;
5653
import("@/data/registry.json")
5754
.then((mod) => {

showcase/shell-docs/src/lib/docs-render.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,7 @@ export function inlineSnippets(
516516
// Previously a permission error / missing file mid-render
517517
// crashed the entire docs page. Log and leave the original
518518
// <Component /> reference in the rendered output.
519-
console.error(
520-
"[docs-render] failed to read snippet",
521-
snippetPath,
522-
err,
523-
);
519+
console.error("[docs-render] failed to read snippet", snippetPath, err);
524520
return match;
525521
}
526522
snippetContent = snippetContent.replace(/^---[\s\S]*?---\r?\n?/, "");

showcase/shell-docs/src/lib/reference-items.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,7 @@ export function loadAllReferenceItems(): ReferenceItem[] {
128128
* are statically generated too.
129129
*/
130130
export function referenceStaticParams(): { slug: string[] }[] {
131-
return loadAllReferenceItems().map((item) => ({ slug: item.slug.split("/") }));
131+
return loadAllReferenceItems().map((item) => ({
132+
slug: item.slug.split("/"),
133+
}));
132134
}

0 commit comments

Comments
 (0)