Skip to content

Commit 0ee3688

Browse files
committed
updated the data
1 parent c0a6fe8 commit 0ee3688

File tree

4 files changed

+98
-2
lines changed

4 files changed

+98
-2
lines changed

data/data.ts

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
import { Agent } from "../types/types";
2+
3+
export const additionalAgents:Agent[] = [
4+
{
5+
longDescription: "This agent assists with React development by providing code snippets, best practices, and debugging tips.",
6+
createdByUser: "jane_doe",
7+
avatarSrc: "/images/avatars/react.png",
8+
action: [
9+
{
10+
detailDescription: "Generates a new React component with the specified name.",
11+
name: "Generate Component",
12+
description: "Creates a new React component.",
13+
actionPrompt: "Please provide the name of the component."
14+
},
15+
{
16+
detailDescription: "Provides best practices for React development.",
17+
name: "Best Practices",
18+
description: "Lists best practices for React development.",
19+
actionPrompt: "Would you like to see best practices for React development?"
20+
}
21+
],
22+
description: "React development assistant",
23+
id: "react-agent-001",
24+
title: "React Agent",
25+
avatarFallback: "R",
26+
slug: "react-agent",
27+
tags: ["React", "JavaScript", "TypeScript", "Web Development"],
28+
zipFilePath: "/downloads/react-agent.zip",
29+
featured: true,
30+
recommended: true,
31+
category: "Frameworks"
32+
},
33+
{
34+
longDescription: "This agent assists with Cloudflare Workers by providing code snippets, best practices, and debugging tips.",
35+
createdByUser: "alice_smith",
36+
avatarSrc: "/images/avatars/cloudflare.png",
37+
action: [
38+
{
39+
detailDescription: "Generates a new Cloudflare Worker with the specified name.",
40+
name: "Generate Worker",
41+
description: "Creates a new Cloudflare Worker.",
42+
actionPrompt: "Please provide the name of the worker."
43+
},
44+
{
45+
detailDescription: "Provides best practices for Cloudflare Workers development.",
46+
name: "Best Practices",
47+
description: "Lists best practices for Cloudflare Workers development.",
48+
actionPrompt: "Would you like to see best practices for Cloudflare Workers development?"
49+
}
50+
],
51+
description: "Cloudflare Workers development assistant",
52+
id: "cloudflare-agent-001",
53+
title: "Cloudflare Workers Agent",
54+
avatarFallback: "C",
55+
slug: "cloudflare-agent",
56+
tags: ["Cloudflare", "JavaScript", "Serverless", "Web Development"],
57+
zipFilePath: "/downloads/cloudflare-agent.zip",
58+
featured: true,
59+
recommended: true,
60+
category: "Serverless"
61+
},
62+
{
63+
longDescription: "This agent assists with Google Cloud Functions by providing code snippets, best practices, and debugging tips.",
64+
createdByUser: "bob_jones",
65+
avatarSrc: "/images/avatars/googlecloud.png",
66+
action: [
67+
{
68+
detailDescription: "Generates a new Google Cloud Function with the specified name.",
69+
name: "Generate Function",
70+
description: "Creates a new Google Cloud Function.",
71+
actionPrompt: "Please provide the name of the function."
72+
},
73+
{
74+
detailDescription: "Provides best practices for Google Cloud Functions development.",
75+
name: "Best Practices",
76+
description: "Lists best practices for Google Cloud Functions development.",
77+
actionPrompt: "Would you like to see best practices for Google Cloud Functions development?"
78+
}
79+
],
80+
description: "Google Cloud Functions development assistant",
81+
id: "googlecloud-agent-001",
82+
title: "Google Cloud Functions Agent",
83+
avatarFallback: "G",
84+
slug: "googlecloud-agent",
85+
tags: ["Google Cloud", "JavaScript", "Serverless", "Web Development"],
86+
zipFilePath: "/downloads/googlecloud-agent.zip",
87+
featured: true,
88+
recommended: true,
89+
category: "Serverless"
90+
},
91+
];

pages/agents/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ import Avatar, { genConfig } from 'react-nice-avatar'
66
import Footer from '../../components/footer';
77
import Switcher from '../../components/switcher';
88
import {Agent} from '../../types/types';
9+
import {additionalAgents} from '../../data/data';
10+
911
export async function getStaticProps() {
1012
const res = await fetch('https://codeboltai.web.app/api/agents/list');
1113
const agents = await res.json();
1214

15+
1316
return {props: {
14-
agents
17+
agents,
18+
additionalAgents
1519
}};
1620
}
1721

18-
const AgentsPage = ({agents}: {agents: Agent[]}) => {
22+
const AgentsPage = ({agents, additionalAgents}: {agents: Agent[], additionalAgents: Agent[]}) => {
1923
return (
2024
<>
2125
<Head>

public/images/agents/.donotdelete.tx

Whitespace-only changes.

types/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ export type Agent = {
1717
zipFilePath: string;
1818
featured?: boolean;
1919
recommended?: boolean;
20+
category?: string;
2021
};

0 commit comments

Comments
 (0)