mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
- Move stores/utils/types to their relative directories (i.e chat stores in chat directory) - Move utility files to shared/utils - Move component files to shared/components - Move type definitions to shared/types - Move stores to shared/stores - Update import paths across the project
26 lines
991 B
TypeScript
26 lines
991 B
TypeScript
import type { LoaderFunctionArgs } from '@remix-run/cloudflare';
|
|
import { json, type MetaFunction } from '@remix-run/cloudflare';
|
|
import { ClientOnly } from 'remix-utils/client-only';
|
|
import { BaseChat } from '~/chat/components/BaseChat';
|
|
import { GitUrlImport } from '~/shared/components/github/components/GitUrlImport.client';
|
|
import { Header } from '~/layout/header/components/Header';
|
|
import BackgroundRays from '~/shared/components/ui/BackgroundRays';
|
|
|
|
export const meta: MetaFunction = () => {
|
|
return [{ title: 'Bolt' }, { name: 'description', content: 'Talk with Bolt, an AI assistant from StackBlitz' }];
|
|
};
|
|
|
|
export async function loader(args: LoaderFunctionArgs) {
|
|
return json({ url: args.params.url });
|
|
}
|
|
|
|
export default function Index() {
|
|
return (
|
|
<div className="flex flex-col h-full w-full bg-bolt-elements-background-depth-1">
|
|
<BackgroundRays />
|
|
<Header />
|
|
<ClientOnly fallback={<BaseChat />}>{() => <GitUrlImport />}</ClientOnly>
|
|
</div>
|
|
);
|
|
}
|