[dep] update to eslint 9

This commit is contained in:
Purp1e
2024-11-11 10:04:00 +08:00
parent e308309fb8
commit b1d505fd6b
36 changed files with 353 additions and 218 deletions

View File

@@ -1,3 +1,3 @@
export default function Page() {
return <div>Console</div>;
return <div>Console</div>
}

View File

@@ -1,3 +1,3 @@
export default function Page() {
return <div>Gear</div>;
return <div>Gear</div>
}

View File

@@ -1,12 +1,12 @@
"use client";
"use client"
import CommonDir from "@/components/cstb/CommonDir";
import FastLaunch from "@/components/cstb/FastLaunch";
import ForceQuit from "@/components/cstb/ForceQuit";
import LaunchOption from "@/components/cstb/LaunchOption";
import Notice from "@/components/cstb/Notice";
import PowerPlan from "@/components/cstb/PowerPlan";
import SmartTransfer from "@/components/cstb/SmartTranser";
import CommonDir from "@/components/cstb/CommonDir"
import FastLaunch from "@/components/cstb/FastLaunch"
import ForceQuit from "@/components/cstb/ForceQuit"
import LaunchOption from "@/components/cstb/LaunchOption"
import Notice from "@/components/cstb/Notice"
import PowerPlan from "@/components/cstb/PowerPlan"
import SmartTransfer from "@/components/cstb/SmartTranser"
const Home = () => {
return (
@@ -25,7 +25,7 @@ const Home = () => {
<FastLaunch />
</div>
</section>
);
};
)
}
export default Home;
export default Home

View File

@@ -1,14 +1,14 @@
"use client"
import Header from "@/components/window/Header";
import Nav from "@/components/window/Nav";
import SideBar from "@/components/window/SideBar";
import clsx from "clsx";
import Header from "@/components/window/Header"
import Nav from "@/components/window/Nav"
import SideBar from "@/components/window/SideBar"
import clsx from "clsx"
// import { platform } from "@tauri-apps/plugin-os"
export default function BaseLayout({
children,
}: {
children: React.ReactNode;
children: React.ReactNode
}) {
return (
<div className="w-full h-full bg-transparent">
@@ -20,7 +20,7 @@ export default function BaseLayout({
<main
className={clsx(
"flex flex-col h-full pb-5 pr-5 ml-20 overflow-hidden"
"flex flex-col h-full pb-5 pr-5 ml-20 overflow-hidden",
// platform() === "windows" ? "ml-20" : "ml-[4.25rem]"
)}
>

View File

@@ -1,3 +1,3 @@
export default function Page() {
return <div>Movie</div>;
return <div>Movie</div>
}

View File

@@ -1,12 +1,26 @@
"use client"
import { Card, CardHeader, CardIcon, CardTool, CardBody } from "@/components/window/Card"
import {
Card,
CardBody,
CardHeader,
CardIcon,
CardTool,
} from "@/components/window/Card"
import { ToolButton } from "@/components/window/ToolButton"
import { SettingConfig, UploadOne, HardDisk, AssemblyLine, Videocamera } from "@icon-park/react"
import {
AssemblyLine,
HardDisk,
SettingConfig,
UploadOne,
Videocamera,
} from "@icon-park/react"
import clsx from "clsx"
import { usePathname, useRouter } from "next/navigation"
// import { platform } from "@tauri-apps/plugin-os"
export default function PreferenceLayout({ children }: { children: React.ReactNode }) {
export default function PreferenceLayout({
children,
}: { children: React.ReactNode }) {
const router = useRouter()
const pathname = usePathname()

View File

@@ -1,3 +1,3 @@
export default function Page() {
return <div>Tool</div>;
return <div>Tool</div>
}