Skip to content

Commit 13fc824

Browse files
committed
Pull upstream changes
1 parent eeb824f commit 13fc824

File tree

21 files changed

+72
-58
lines changed

21 files changed

+72
-58
lines changed

apps/website/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { createSystemPrompt } from "./utils";
1212
export const maxDuration = 800;
1313

1414
interface RequestBody {
15-
messages: MyUIMessage[];
1615
currentRoute: string;
16+
messages: MyUIMessage[];
1717
pageContext?: {
1818
title: string;
1919
url: string;

apps/website/app/styles/geistdocs.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,9 @@
168168
}
169169

170170
.line-numbers code .line::before {
171-
@apply mr-6 inline-block w-6 text-right tabular-nums text-muted-foreground;
172-
173171
content: counter(step);
174172
counter-increment: step;
173+
@apply mr-6 inline-block w-6 text-right tabular-nums text-muted-foreground;
175174
}
176175
}
177176

apps/website/components/geistdocs/ask-ai.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import { MessageCircleIcon } from "lucide-react";
44
import { useChatContext } from "@/hooks/geistdocs/use-chat";
55

6-
type AskAIProps = {
6+
interface AskAIProps {
77
href: string;
8-
};
8+
}
99

1010
export const AskAI = ({ href }: AskAIProps) => {
1111
const { setIsOpen, setPrompt } = useChatContext();

apps/website/components/geistdocs/chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ export const useChatPersistence = () => {
135135
};
136136
};
137137

138-
type ChatProps = {
138+
interface ChatProps {
139139
basePath: string | undefined;
140140
suggestions: string[];
141-
};
141+
}
142142

143143
type ChatInnerProps = ChatProps & {
144144
isOpen: boolean;

apps/website/components/geistdocs/code-block.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ import { Button } from "@/components/ui/button";
1313
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
1414
import { cn } from "@/lib/utils";
1515

16-
type CodeBlockProps = {
16+
interface CodeBlockProps {
1717
children: ReactNode;
1818
className?: string;
19+
"data-line-highlighting"?: string;
20+
"data-line-numbers"?: string;
1921
icon?: ReactNode;
2022
style?: CSSProperties;
2123
tabIndex?: number;
2224
title?: string;
23-
"data-line-numbers"?: string;
24-
"data-line-highlighting"?: string;
25-
};
25+
}
2626

2727
export const CodeBlock = ({
2828
children,

apps/website/components/geistdocs/copy-page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import { useCopyButton } from "fumadocs-ui/utils/use-copy-button";
44
import { CheckIcon, CopyIcon } from "lucide-react";
55

6-
type CopyPageProps = {
6+
interface CopyPageProps {
77
text: string;
8-
};
8+
}
99

1010
export const CopyPage = ({ text }: CopyPageProps) => {
1111
const [checked, handleCopy] = useCopyButton(async () => {

apps/website/components/geistdocs/desktop-menu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import {
1111
import { useIsMobile } from "@/hooks/use-mobile";
1212
import { cn } from "@/lib/utils";
1313

14-
type DesktopMenuProps = {
15-
items: { label: string; href: string }[];
14+
interface DesktopMenuProps {
1615
className?: string;
17-
};
16+
items: { label: string; href: string }[];
17+
}
1818

1919
export const DesktopMenu = ({ items, className }: DesktopMenuProps) => {
2020
const isMobile = useIsMobile();

apps/website/components/geistdocs/docs-layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {
88
} from "@/components/geistdocs/sidebar";
99
import { i18n } from "@/lib/geistdocs/i18n";
1010

11-
type DocsLayoutProps = {
12-
tree: ComponentProps<typeof FumadocsDocsLayout>["tree"];
11+
interface DocsLayoutProps {
1312
children: ReactNode;
14-
};
13+
tree: ComponentProps<typeof FumadocsDocsLayout>["tree"];
14+
}
1515

1616
export const DocsLayout = ({ tree, children }: DocsLayoutProps) => (
1717
<FumadocsDocsLayout

apps/website/components/geistdocs/edit-source.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { SiGithub } from "@icons-pack/react-simple-icons";
22
import { github } from "@/geistdocs";
33

4-
type EditSourceProps = {
4+
interface EditSourceProps {
55
path: string | undefined;
6-
};
6+
}
77

88
export const EditSource = ({ path }: EditSourceProps) => {
99
let url: string | undefined;

apps/website/components/geistdocs/feedback.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import { Textarea } from "../ui/textarea";
1818

1919
type Emotion = (typeof emotions)[number]["name"];
2020

21-
export type Feedback = {
21+
export interface Feedback {
2222
emotion: Emotion;
23-
url?: string;
2423
message: string;
25-
};
24+
url?: string;
25+
}
2626

2727
export const Feedback = () => {
2828
const url = usePathname();

0 commit comments

Comments
 (0)