From ea6dc74dd50a1fc7a677c493f9949928b39310ab Mon Sep 17 00:00:00 2001 From: Dest1n1 Date: Fri, 2 Aug 2024 01:30:14 +0800 Subject: [PATCH 1/4] feat(ui): create model page --- ui/src/components/app/navbar.tsx | 9 ++++++ ui/src/components/model/model-card.tsx | 40 ++++++++++++++++++++++++++ ui/src/main.tsx | 5 ++++ ui/src/routes/models/page.tsx | 15 ++++++++++ 4 files changed, 69 insertions(+) create mode 100644 ui/src/components/model/model-card.tsx create mode 100644 ui/src/routes/models/page.tsx diff --git a/ui/src/components/app/navbar.tsx b/ui/src/components/app/navbar.tsx index 34cf336..6279562 100644 --- a/ui/src/components/app/navbar.tsx +++ b/ui/src/components/app/navbar.tsx @@ -28,6 +28,15 @@ export const AppNavbar = () => { > Dictionaries + + Models + diff --git a/ui/src/components/model/model-card.tsx b/ui/src/components/model/model-card.tsx new file mode 100644 index 0000000..6774e4c --- /dev/null +++ b/ui/src/components/model/model-card.tsx @@ -0,0 +1,40 @@ +import { useState } from "react"; +import { Button } from "../ui/button"; +import { Card, CardContent, CardHeader, CardTitle } from "../ui/card"; +import { Textarea } from "../ui/textarea"; + +const ModelCustomInputArea = () => { + const [customInput, setCustomInput] = useState(""); + const submit = async () => {}; + const disabled = false; + return ( +
+

Custom Input

+