diff --git a/autogpt_platform/frontend/src/components/marketplace/AgentDetailContent.tsx b/autogpt_platform/frontend/src/components/marketplace/AgentDetailContent.tsx deleted file mode 100644 index cbaa72e990..0000000000 --- a/autogpt_platform/frontend/src/components/marketplace/AgentDetailContent.tsx +++ /dev/null @@ -1,96 +0,0 @@ -// "use client"; -// import Link from "next/link"; -// import { ArrowLeft, Download, Calendar, Tag } from "lucide-react"; -// import { Button } from "@/components/ui/button"; -// import BackendAPI, { GraphCreatable } from "@/lib/autogpt-server-api"; -// import "@xyflow/react/dist/style.css"; -// import { useToast } from "../ui/use-toast"; - -// function AgentDetailContent({ agent }: { agent: GraphCreatable }) { -// const { toast } = useToast(); - -// // const downloadAgent = async (id: string): Promise => { -// // const api = new MarketplaceAPI(); -// // try { -// // const file = await api.downloadAgentFile(id); -// // console.debug(`Agent file downloaded:`, file); - -// // // Create a Blob from the file content -// // const blob = new Blob([file], { type: "application/json" }); - -// // // Create a temporary URL for the Blob -// // const url = window.URL.createObjectURL(blob); - -// // // Create a temporary anchor element -// // const a = document.createElement("a"); -// // a.href = url; -// // a.download = `agent_${id}.json`; // Set the filename - -// // // Append the anchor to the body, click it, and remove it -// // document.body.appendChild(a); -// // a.click(); -// // document.body.removeChild(a); - -// // // Revoke the temporary URL -// // window.URL.revokeObjectURL(url); -// // } catch (error) { -// // console.error(`Error downloading agent:`, error); -// // throw error; -// // } -// // }; - -// return ( -//
-//
-// -// -// Back to Marketplace -// -//
-// -//
-//
-//
-//
-//

{agent.name}

-//

-// {agent.description} -//

-//
-//
-//
-//
-//
-// -// Last Updated -//
-//
-// {new Date(agent.updatedAt).toLocaleDateString()} -//
-//
-//
-//
-// -// Categories -//
-//
-// {agent.categories.join(", ")} -//
-//
-//
-//
-//
-//
-// ); -// } - -// export default AgentDetailContent; diff --git a/autogpt_platform/frontend/src/components/marketplace/actions.ts b/autogpt_platform/frontend/src/components/marketplace/actions.ts deleted file mode 100644 index d6ebec32a0..0000000000 --- a/autogpt_platform/frontend/src/components/marketplace/actions.ts +++ /dev/null @@ -1,18 +0,0 @@ -// "use server"; - -// import * as Sentry from "@sentry/nextjs"; -// import MarketplaceAPI, { AnalyticsEvent } from "@/lib/marketplace-api"; -// import { checkAuth } from "@/lib/supabase/server"; - -// export async function makeAnalyticsEvent(event: AnalyticsEvent) { -// return await Sentry.withServerActionInstrumentation( -// "makeAnalyticsEvent", -// {}, -// async () => { -// await checkAuth(); -// const apiUrl = process.env.AGPT_SERVER_API_URL; -// const api = new MarketplaceAPI(); -// await api.makeAnalyticsEvent(event); -// }, -// ); -// }