Add new setting view, component, and router to rustfs-gui (#223)

- Create `SettingViews` component in `views/setting.rs`.
- Update `views/mod.rs` to include the new `SettingViews` component.
- Update routing in `main.rs` to include the new route for `SettingViews`.
This commit is contained in:
houseme
2025-02-18 01:39:16 +08:00
committed by GitHub
parent 08bca5a129
commit 279f8397f7
7 changed files with 617 additions and 2 deletions
+3 -1
View File
@@ -3,7 +3,7 @@ use dioxus::logger::tracing::debug;
use dioxus::prelude::*;
use tracing_appender::rolling::{RollingFileAppender, Rotation};
use tracing_subscriber::{fmt, layer::SubscriberExt, util::SubscriberInitExt};
use views::HomeViews;
use views::{HomeViews, SettingViews};
mod components;
mod utils;
@@ -20,6 +20,8 @@ enum Route {
#[layout(Navbar)]
#[route("/")]
HomeViews {},
#[route("/settings")]
SettingViews {},
}
const FAVICON: Asset = asset!("/assets/favicon.ico");