Skip to content

Commit 811fdf1

Browse files
remove types file
1 parent fa07ce3 commit 811fdf1

29 files changed

+427
-491
lines changed

app-config.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
import type { AppConfig } from './lib/types';
1+
export interface AppConfig {
2+
pageTitle: string;
3+
pageDescription: string;
4+
companyName: string;
5+
6+
supportsChatInput: boolean;
7+
supportsVideoInput: boolean;
8+
supportsScreenShare: boolean;
9+
isPreConnectBufferEnabled: boolean;
10+
11+
logo: string;
12+
startButtonText: string;
13+
accent?: string;
14+
logoDark?: string;
15+
accentDark?: string;
16+
17+
sandboxId?: string;
18+
agentName?: string;
19+
}
220

321
export const APP_CONFIG_DEFAULTS: AppConfig = {
422
companyName: 'LiveKit',

app/api/connection-details/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NextResponse } from 'next/server';
22
import { AccessToken, type AccessTokenOptions, type VideoGrant } from 'livekit-server-sdk';
33
import { RoomConfiguration } from '@livekit/protocol';
4-
import type { ConnectionDetails } from '@/lib/types';
4+
import type { ConnectionDetails } from '@/hooks/useConnectionDetails';
55

66
// NOTE: you are expected to define the following environment variables in `.env.local`:
77
const API_KEY = process.env.LIVEKIT_API_KEY;

app/ui/_room-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import React from 'react';
44
import { Room } from 'livekit-client';
55
import { RoomContext } from '@livekit/components-react';
6+
import { AppConfig } from '@/app-config';
67
import { toastAlert } from '@/components/livekit/alert-toast';
78
import useConnectionDetails from '@/hooks/useConnectionDetails';
8-
import { AppConfig } from '@/lib/types';
99

1010
export function RoomProvider({
1111
appConfig,

app/ui/_tabs.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

app/ui/base/page.tsx

Lines changed: 0 additions & 140 deletions
This file was deleted.

app/ui/layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as React from 'react';
22
import { headers } from 'next/headers';
33
import { getAppConfig } from '@/lib/utils';
44
import { RoomProvider } from './_room-provider';
5-
import { Tabs } from './_tabs';
65

76
export default async function ComponentsLayout({ children }: { children: React.ReactNode }) {
87
const hdrs = await headers();
@@ -15,7 +14,6 @@ export default async function ComponentsLayout({ children }: { children: React.R
1514
A quick start UI overview for the LiveKit Voice Assistant.
1615
</p>
1716
</header>
18-
<Tabs />
1917
<RoomProvider appConfig={appConfig}>
2018
<main className="flex w-full flex-1 flex-col items-stretch gap-8">{children}</main>
2119
</RoomProvider>

0 commit comments

Comments
 (0)