mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-29 09:38:59 +00:00
624889bae5
* Initialize rustfs-gui crate - Set up the `rustfs-gui` package in the workspace. - Add `dioxus` dependency with `router` feature. - Configure workspace settings for edition, license, repository, and rust-version. - Include lints configuration for the workspace. * Add utility functions and configurations for rustfs-gui - Implement `RustFSConfig` struct with default values and methods for loading, saving, and clearing configurations. - Add `ServiceCommand` enum for managing service commands. - Implement `ServiceManager` struct for starting, stopping, and restarting the service. - Include helper functions for checking service status, preparing the service, downloading files, and unzipping files. - Add logging and error handling for service operations.
18 lines
339 B
Rust
18 lines
339 B
Rust
mod components;
|
|
mod utils;
|
|
mod views;
|
|
|
|
use dioxus::prelude::*;
|
|
|
|
fn main() {
|
|
dioxus::launch(App);
|
|
}
|
|
|
|
#[component]
|
|
fn App() -> Element {
|
|
// The use signal hook runs once when the component is created and then returns the current value every run after the first
|
|
let name = use_signal(|| "RustFS");
|
|
|
|
rsx! { "hello {name}!" }
|
|
}
|