diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index e52d83c..36d032d 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2,6 +2,27 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "CS工具箱" +version = "0.0.1" +dependencies = [ + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-clipboard-manager", + "tauri-plugin-dialog", + "tauri-plugin-fs", + "tauri-plugin-global-shortcut", + "tauri-plugin-http", + "tauri-plugin-notification", + "tauri-plugin-os", + "tauri-plugin-process", + "tauri-plugin-shell", + "window-vibrancy", + "winreg", +] + [[package]] name = "addr2line" version = "0.22.0" @@ -68,27 +89,6 @@ version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" -[[package]] -name = "app" -version = "0.1.0" -dependencies = [ - "serde", - "serde_json", - "tauri", - "tauri-build", - "tauri-plugin-clipboard-manager", - "tauri-plugin-dialog", - "tauri-plugin-fs", - "tauri-plugin-global-shortcut", - "tauri-plugin-http", - "tauri-plugin-notification", - "tauri-plugin-os", - "tauri-plugin-process", - "tauri-plugin-shell", - "window-vibrancy", - "winreg", -] - [[package]] name = "arboard" version = "3.4.1" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index a300858..9b05463 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "app" -version = "0.1.0" +name = "CS工具箱" +version = "0.0.1" description = "A Tauri App" -authors = ["you"] +authors = ["Purp1e"] license = "" repository = "" -default-run = "app" +default-run = "CS工具箱" edition = "2021" rust-version = "1.66" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index a70248f..b6b89b3 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -50,11 +50,13 @@ { "fullscreen": false, "resizable": true, - "title": "CS Toolbox", - "width": 976, + "title": "CS工具箱", + "width": 920, "height": 720, - "minWidth": 600, - "minHeight": 480, + "minWidth": 920, + "minHeight": 720, + "maxWidth": 1440, + "maxHeight": 960, "decorations": false, "transparent": true, "theme": "Light", diff --git a/src/app/(main)/home/page.tsx b/src/app/(main)/home/page.tsx index bc2c6ee..c90c9af 100644 --- a/src/app/(main)/home/page.tsx +++ b/src/app/(main)/home/page.tsx @@ -1,11 +1,29 @@ "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"; const Home = () => { return ( -
- +
+
+ + +
+ + + + +
+ + + +
); }; diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index 526812a..da3724e 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -8,13 +8,13 @@ export default function BaseLayout({ children: React.ReactNode; }) { return ( -
+