feat: add Streamlit, NextJS and VanillaJS templates
This commit is contained in:
parent
98da0487e4
commit
c2f4f0b6ff
@ -37,43 +37,41 @@ import { useRouter } from "next/navigation"
|
|||||||
import { Loader2 } from "lucide-react"
|
import { Loader2 } from "lucide-react"
|
||||||
import { Button } from "../ui/button"
|
import { Button } from "../ui/button"
|
||||||
|
|
||||||
type TOptions = "react" | "node" | "python" | "more"
|
|
||||||
|
|
||||||
const data: {
|
const data: {
|
||||||
id: TOptions
|
id: string
|
||||||
name: string
|
name: string
|
||||||
icon: string
|
icon: string
|
||||||
description: string
|
description: string
|
||||||
disabled: boolean
|
disabled: boolean
|
||||||
}[] = [
|
}[] = [
|
||||||
{
|
{
|
||||||
id: "react",
|
id: "reactjs",
|
||||||
name: "React",
|
name: "React",
|
||||||
icon: "/project-icons/react.svg",
|
icon: "/project-icons/react.svg",
|
||||||
description: "A JavaScript library for building user interfaces",
|
description: "A JavaScript library for building user interfaces",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "node",
|
id: "vanillajs",
|
||||||
name: "Node",
|
name: "HTML/JS",
|
||||||
|
icon: "/project-icons/more.svg",
|
||||||
|
description: "More coming soon, feel free to contribute on GitHub",
|
||||||
|
disabled: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "nextjs",
|
||||||
|
name: "NextJS",
|
||||||
icon: "/project-icons/node.svg",
|
icon: "/project-icons/node.svg",
|
||||||
description: "A JavaScript runtime built on the V8 JavaScript engine",
|
description: "A JavaScript runtime built on the V8 JavaScript engine",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "python",
|
id: "streamlit",
|
||||||
name: "Python",
|
name: "Streamlit",
|
||||||
icon: "/project-icons/python.svg",
|
icon: "/project-icons/python.svg",
|
||||||
description: "A high-level, general-purpose language, coming soon",
|
description: "A JavaScript runtime built on the V8 JavaScript engine",
|
||||||
disabled: true,
|
disabled: false,
|
||||||
},
|
}
|
||||||
{
|
|
||||||
id: "more",
|
|
||||||
name: "More Languages",
|
|
||||||
icon: "/project-icons/more.svg",
|
|
||||||
description: "More coming soon, feel free to contribute on GitHub",
|
|
||||||
disabled: true,
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|
||||||
const formSchema = z.object({
|
const formSchema = z.object({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user