diff --git a/bun.lockb b/bun.lockb
index 391a574..a7b0a45 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/package.json b/package.json
index 2dc12f7..b186be7 100644
--- a/package.json
+++ b/package.json
@@ -39,7 +39,7 @@
"@tauri-store/valtio": "2.1.1",
"@types/throttle-debounce": "^5.0.2",
"ahooks": "^3.9.0",
- "framer-motion": "^12.23.0",
+ "framer-motion": "^12.23.3",
"next": "15.2.3",
"next-themes": "^0.4.6",
"react": "^19.1.0",
@@ -56,7 +56,7 @@
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/jest": "^29.5.14",
- "@types/node": "^22.16.0",
+ "@types/node": "^22.16.2",
"@types/react": "19.0.10",
"@types/react-dom": "19.0.4",
"@typescript-eslint/eslint-plugin": "^8.36.0",
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index f7fc72c..14b8396 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -44,7 +44,7 @@
},
"productName": "CS工具箱",
"mainBinaryName": "cstb",
- "version": "0.0.6-beta.2",
+ "version": "0.0.6-beta.3",
"identifier": "upup.cool",
"plugins": {
"deep-link": {
diff --git a/src/components/cstb/LaunchOption.tsx b/src/components/cstb/LaunchOption.tsx
index 78e379c..107031c 100644
--- a/src/components/cstb/LaunchOption.tsx
+++ b/src/components/cstb/LaunchOption.tsx
@@ -25,6 +25,7 @@ const LaunchOption = () => {
{tool.state.launchOptions.map((option, index) =>
editMode ? (
{
color="foreground"
className="p-0 rounded-md bg-opacity-85"
content={
-
) : (
- // {
- // setSteamDir(value)
- // steam.setDir(value)
- // }}
- // description="steam.exe所在文件夹"
- // errorMessage={"路径无效"}
- // isInvalid={!steam.state.steamDirValid}
- // />
- tool.setLaunchIndex(index)}>
+ tool.setLaunchIndex(index)} selected={index === tool.state.launchIndex}>
{option.name || index + 1}
)
diff --git a/src/components/window/ToolButton.tsx b/src/components/window/ToolButton.tsx
index 582e902..56770bc 100644
--- a/src/components/window/ToolButton.tsx
+++ b/src/components/window/ToolButton.tsx
@@ -1,13 +1,21 @@
+import { cn } from "@heroui/react"
import type { ReactNode } from "react"
interface ToolButtonProps extends React.ButtonHTMLAttributes {
children?: ReactNode
+ className?: string
+ selected?: boolean
}
-export const ToolButton = ({ children, ...rest }: ToolButtonProps) => {
+export const ToolButton = ({ children, className, selected, ...rest }: ToolButtonProps) => {
return (
{children}
diff --git a/src/store/tool.ts b/src/store/tool.ts
index 4b123f5..e8584c2 100644
--- a/src/store/tool.ts
+++ b/src/store/tool.ts
@@ -117,9 +117,9 @@ export const VideoSettingTemplate = {
const defaultValue = {
launchOptions: [
- { option: "-novid -high -freq 144 -fullscreen", name: "" },
- { option: "-novid -high -w 1920 -h 1080 -freq 144 -sw -noborder", name: "test" },
- { option: "-novid -high -freq 144 -fullscreen -allow_third_party_software", name: "" },
+ { option: "-novid -high -freq 144 -fullscreen", name: "游戏" },
+ { option: "-novid -high -w 1920 -h 1080 -freq 144 -sw -noborder", name: "录像" },
+ { option: "-novid -high -freq 144 -fullscreen -allow_third_party_software", name: "测试" },
] as LaunchOption[],
launchIndex: 0,
powerPlan: 0,