mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 13:36:50 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user