feat(app): Added sidebar navigation and new page routes

- Added Nodes and Settings page routes
- Updated component import paths
- Imported database connection dependencies
This commit is contained in:
2025-10-10 09:09:19 +08:00
parent 4aba63cb93
commit 2a18061700
11 changed files with 96 additions and 32 deletions

View File

@@ -22,4 +22,6 @@ tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sea-orm = { version = "2.0.0-rc", features = [ "sqlx-sqlite", "runtime-tokio-native-tls", "macros" ] }
once_cell = "1.21.3"

0
src-tauri/src/entity.rs Normal file
View File

View File

@@ -1,6 +1,14 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use once_cell::sync::OnceCell;
use sea_orm::DatabaseConnection;
mod entity;
static DB: OnceCell<DatabaseConnection> = OnceCell::new();
fn main() {
spary_lib::run()
}

View File

@@ -15,6 +15,11 @@
"title": "spary",
"width": 800,
"height": 600
},
{
"title": "addGroup",
"width": 800,
"height": 600
}
],
"security": {