From 6c24d5b2016dfdc0cce56285391ed13faf3ee025 Mon Sep 17 00:00:00 2001 From: imeepos Date: Fri, 11 Jul 2025 18:43:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python_core/config.py | 2 +- src-tauri/tauri.conf.json | 5 ++++- src/pages/HomePage.tsx | 10 +++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/python_core/config.py b/python_core/config.py index 391e20a..879e909 100644 --- a/python_core/config.py +++ b/python_core/config.py @@ -28,7 +28,7 @@ class Settings(BaseSettings): project_root: Path = Path(__file__).parent.parent temp_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "temp") cache_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "cache") - projects_dir: Path = Field(default_factory=lambda: Path.home() / "MixVideo Projects") + projects_dir: Path = Field(default_factory=lambda: Path.home() / "MixVideoProjects") # Video Processing max_video_resolution: str = "1920x1080" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b0f7be4..2240d29 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -28,7 +28,10 @@ "csp": "default-src 'self'; img-src 'self' asset: data: http://asset.localhost; media-src 'self' asset: http://asset.localhost; video-src 'self' asset: http://asset.localhost; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self' ipc: http://ipc.localhost", "assetProtocol": { "enable": true, - "scope": [] + "scope": [ + "**/**", + "$HOME/.mixvideo/**/**" + ] }, "freezePrototype": true } diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index f70385b..bd833a2 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -9,7 +9,15 @@ const HomePage: React.FC = () => { return (
- +
+ +
+
+ +
+
+ +
{/* Welcome Section */}