2024-09-21 02:25:23 +08:00
|
|
|
"use client"
|
|
|
|
|
|
2025-03-12 13:16:25 +08:00
|
|
|
import { steamStore, setDir, setCsDir, currentUser } from "@/store/steam"
|
|
|
|
|
import { useEffect } from "react"
|
|
|
|
|
import { useSnapshot } from "valtio"
|
2024-09-21 01:05:40 +08:00
|
|
|
export default function Page() {
|
2025-03-12 22:17:12 +08:00
|
|
|
steamStore.start()
|
2025-03-12 13:16:25 +08:00
|
|
|
const steam = useSnapshot(steamStore.state)
|
2024-09-21 01:05:40 +08:00
|
|
|
return (
|
|
|
|
|
<div
|
2024-09-27 11:20:48 +08:00
|
|
|
className="flex flex-col items-center justify-center w-full h-screen gap-6"
|
2024-09-21 01:05:40 +08:00
|
|
|
data-tauri-drag-region
|
|
|
|
|
>
|
2024-11-11 10:04:00 +08:00
|
|
|
<h1 className="text-4xl font-bold tracking-wide text-zinc-800">
|
|
|
|
|
CS工具箱
|
|
|
|
|
</h1>
|
2024-09-21 01:05:40 +08:00
|
|
|
<p>准备环节</p>
|
2024-09-21 02:25:23 +08:00
|
|
|
|
|
|
|
|
<div className="flex flex-col w-full gap-6 p-5 border rounded-lg bg-white/40">
|
|
|
|
|
<input
|
|
|
|
|
className="px-2 py-1 rounded-lg"
|
2025-03-12 13:16:25 +08:00
|
|
|
value={steam.dir}
|
2024-09-27 16:13:05 +08:00
|
|
|
onChange={(e) => setDir(e.target.value)}
|
2024-09-21 02:25:23 +08:00
|
|
|
/>
|
|
|
|
|
<input
|
|
|
|
|
className="px-2 py-1 rounded-lg"
|
2025-03-12 13:16:25 +08:00
|
|
|
value={steam.csDir}
|
2024-09-27 16:13:05 +08:00
|
|
|
onChange={(e) => setCsDir(e.target.value)}
|
2024-09-21 02:25:23 +08:00
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<p>{currentUser().steamID64}</p>
|
|
|
|
|
</div>
|
2024-09-21 01:05:40 +08:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|