Skip to content

Commit 8e35fc4

Browse files
author
Gerome El-assaad
committed
Remove dead code and unused components
- Remove unused fragment composer and library components - Remove unused prompt management files - Remove unused design scheme utilities - Remove unused publish action - Remove unused fireworksai logo - Update dependencies and clean up imports
1 parent 22a1379 commit 8e35fc4

22 files changed

Lines changed: 63 additions & 6982 deletions

app/actions/publish.ts

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

app/api/chat/codeInterpreter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,3 @@ async function getSandbox(sessionID: string) {
5454
}
5555
}
5656

57-
export function nonEmpty<T>(value: T | null | undefined): value is T {
58-
return value !== null && value !== undefined;
59-
}

app/page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { SetStateAction, useCallback, useEffect, useState } from 'react'
2626
import { useLocalStorage } from 'usehooks-ts'
2727
import { useEnhancedChat } from '@/hooks/use-enhanced-chat'
2828
import { HeroPillSecond } from '@/components/announcement'
29-
import templatesData from '@/lib/templates'
3029

3130
export default function Home() {
3231
const supabase = createSupabaseBrowserClient()
@@ -65,7 +64,7 @@ export default function Home() {
6564
teamID: userTeam?.id,
6665
model: modelsList.models.find(m => m.id === languageModel.model)!,
6766
config: languageModel,
68-
template: templatesData,
67+
template: templates,
6968
})
7069

7170
const handleChatSelected = async (chatId: string) => {
@@ -87,10 +86,6 @@ export default function Home() {
8786
)
8887
const lastMessage = messages[messages.length - 1]
8988

90-
useEffect(() => {
91-
if (lastMessage) {
92-
}
93-
}, [lastMessage])
9489

9590
const { object, submit, isLoading, stop, error } = useObject({
9691
api: '/api/chat',

components/announcement.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@
33
import { HeroPill } from "@/components/ui/hero-pill"
44
import { StarBorder } from "@/components/ui/star-border"
55

6-
export function HeroPillFirst() {
7-
return (
8-
<StarBorder color="hsl(var(--chart-1))">
9-
<HeroPill
10-
href="https://waitlist.codinit.dev"
11-
announcement="📣 Join The Launch Day Waitlist!"
12-
isExternal
13-
className="bg-slate-900/20 ring-1 ring-border [&_div]:bg-slate-100 [&_div]:text-slate-900 [&_p]:text-slate-900 [&_svg_path]:fill-slate-900 dark:[&_div]:bg-slate-900 dark:[&_div]:text-slate-100 dark:[&_p]:text-slate-100 dark:[&_svg_path]:fill-white"
14-
/>
15-
</StarBorder>
16-
)
17-
}
186

197
export function HeroPillSecond() {
208
return (

0 commit comments

Comments
 (0)