[chore] remove unusable files

This commit is contained in:
Purp1e
2025-03-12 22:20:06 +08:00
parent a78b63259a
commit 71858e5fec
21 changed files with 142 additions and 326 deletions

View File

@@ -1,10 +1,9 @@
"use client"
import { appStore } from "@/store/app"
import { useEffect } from "react"
import { useSnapshot } from "valtio"
export default function Page() {
appStore.start()
void appStore.start()
const app = useSnapshot(appStore.state)
return (

View File

@@ -7,6 +7,7 @@ import {
CardTool,
} from "@/components/window/Card"
import { ToolButton } from "@/components/window/ToolButton"
import { cn } from "@heroui/react"
import {
AssemblyLine,
HardDisk,
@@ -14,7 +15,6 @@ import {
UploadOne,
Videocamera,
} from "@icon-park/react"
import { cn } from "@heroui/react"
import { usePathname, useRouter } from "next/navigation"
// import { platform } from "@tauri-apps/plugin-os"

View File

@@ -1,10 +1,9 @@
"use client"
import { currentUser, steamStore } from "@/store/steam"
import { useEffect } from "react"
import { useSnapshot } from "valtio"
export default function Page() {
steamStore.start()
void steamStore.start()
const steam = useSnapshot(steamStore.state)
return (

View File

@@ -1,8 +1,8 @@
"use client"
import React from "react"
import { useRouter } from "next/navigation"
import { open } from "@tauri-apps/plugin-dialog"
import { useRouter } from "next/navigation"
import React from "react"
const Home = () => {
const router = useRouter()
@@ -21,7 +21,9 @@ const Home = () => {
className="flex flex-col items-center justify-center w-full h-screen gap-6"
data-tauri-drag-region
>
<h1 className="text-4xl font-bold tracking-wide text-zinc-800">CS </h1>
<h1 className="text-4xl font-bold tracking-wide text-zinc-800">
CS
</h1>
<button
type="button"
onClick={() => router.push("/home")}
@@ -29,7 +31,11 @@ const Home = () => {
>
</button>
<button type="button" onClick={openFile} className="px-4 py-1 text-white bg-blue-500 rounded">
<button
type="button"
onClick={openFile}
className="px-4 py-1 text-white bg-blue-500 rounded"
>
</button>
<p className="text-center bg-zinc-50">{file}</p>

View File

@@ -1,10 +1,9 @@
"use client"
import { steamStore, setDir, setCsDir, currentUser } from "@/store/steam"
import { useEffect } from "react"
import { currentUser, setCsDir, setDir, steamStore } from "@/store/steam"
import { useSnapshot } from "valtio"
export default function Page() {
steamStore.start()
void steamStore.start()
const steam = useSnapshot(steamStore.state)
return (
<div

View File

@@ -6,7 +6,7 @@ import { ThemeProvider as NextThemesProvider } from "next-themes"
export default function Providers({ children }: { children: React.ReactNode }) {
return (
<HeroUIProvider className="h-full bg-transparent">
<NextThemesProvider attribute="class" defaultTheme="light" >
<NextThemesProvider attribute="class" defaultTheme="light">
<ToastProvider toastOffset={10} placement="top-center" />
{children}
</NextThemesProvider>