From 2860408ec0b8edd1a26658fe312b328d18891528 Mon Sep 17 00:00:00 2001 From: Purp1e <47248616+Purple-CSGO@users.noreply.github.com> Date: Sun, 23 Mar 2025 16:42:13 +0800 Subject: [PATCH] [feat] video setting panel and mock --- src/app/(main)/tool/page.tsx | 9 +- src/components/cstb/LaunchOption.tsx | 14 ++- src/components/cstb/Prepare.tsx | 2 +- src/components/cstb/VideoSetting.tsx | 172 +++++++++++++++++++++++++++ src/components/window/Card.tsx | 9 +- src/components/window/Header.tsx | 2 +- src/store/tool.ts | 47 ++++++-- 7 files changed, 238 insertions(+), 17 deletions(-) create mode 100644 src/components/cstb/VideoSetting.tsx diff --git a/src/app/(main)/tool/page.tsx b/src/app/(main)/tool/page.tsx index 894a47e..33b8ba1 100644 --- a/src/app/(main)/tool/page.tsx +++ b/src/app/(main)/tool/page.tsx @@ -1,4 +1,11 @@ "use client" + +import VideoSetting from "@/components/cstb/VideoSetting" + export default function Page() { - return
Tool
+ return ( +
+ +
+ ) } diff --git a/src/components/cstb/LaunchOption.tsx b/src/components/cstb/LaunchOption.tsx index 015e034..a419e51 100644 --- a/src/components/cstb/LaunchOption.tsx +++ b/src/components/cstb/LaunchOption.tsx @@ -3,6 +3,7 @@ import { Plus, SettingConfig, Switch } from "@icon-park/react" import { useEffect, useState } from "react" import { Card, CardBody, CardHeader, CardIcon, CardTool } from "../window/Card" import { ToolButton } from "../window/ToolButton" +import { input, Textarea } from "@heroui/react" const LaunchOption = () => { const tool = useToolStore() @@ -24,7 +25,7 @@ const LaunchOption = () => { {index + 1} ))} - tool.addLaunchOption("")}> + tool.addLaunchOption({ option: "", name: "" })}> 添加 @@ -37,13 +38,16 @@ const LaunchOption = () => {