diff --git a/clients/tabby-playground/app/playground/layout.tsx b/clients/tabby-playground/app/layout.tsx similarity index 95% rename from clients/tabby-playground/app/playground/layout.tsx rename to clients/tabby-playground/app/layout.tsx index 3d0d91e..700044b 100644 --- a/clients/tabby-playground/app/playground/layout.tsx +++ b/clients/tabby-playground/app/layout.tsx @@ -11,8 +11,8 @@ import { Header } from '@/components/header' export const metadata: Metadata = { title: { - default: 'Tabby Playground', - template: `%s - Tabby Playground` + default: 'Tabby - Home', + template: `Tabby - %s` }, description: 'Tabby, an opensource, self-hosted AI coding assistant.', themeColor: [ diff --git a/clients/tabby-playground/app/page.tsx b/clients/tabby-playground/app/page.tsx new file mode 100644 index 0000000..1c5c7bf --- /dev/null +++ b/clients/tabby-playground/app/page.tsx @@ -0,0 +1,14 @@ +import { Button, buttonVariants } from "@/components/ui/button" +import { IconSlack } from "@/components/ui/icons" + +export default function IndexPage() { + return
Connect with other contributors building Tabby. Share knowledge, get help, and contribute to the open-source project.
+
+
You can start a conversation here or try the following examples:
diff --git a/clients/tabby-playground/components/header.tsx b/clients/tabby-playground/components/header.tsx
index 62e5c81..f2bccbb 100644
--- a/clients/tabby-playground/components/header.tsx
+++ b/clients/tabby-playground/components/header.tsx
@@ -6,6 +6,7 @@ import { cn } from '@/lib/utils'
import { buttonVariants } from '@/components/ui/button'
import { IconGitHub, IconExternalLink } from '@/components/ui/icons'
import dynamic from 'next/dynamic'
+import Link from 'next/link'
const ThemeToggle = dynamic(
() => import('@/components/theme-toggle').then(x => x.ThemeToggle),
@@ -13,10 +14,20 @@ const ThemeToggle = dynamic(
)
export function Header() {
+ const [isChatEnabled, setIsChatEnabled] = React.useState(false);
+ React.useEffect(() => {
+ fetchIsChatEnabled().then(setIsChatEnabled);
+ }, []);
return (
Connect with other contributors building Tabby. Share knowledge, get help, and contribute to the open-source project. You can start a conversation here or try the following examples:404
This page could not be found.
Join the Tabby community
Welcome to Tabby Playground!