mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 05:26:50 +00:00
Merge pull request #19 from hengfeiyang/fix/translate
This commit is contained in:
@@ -30,11 +30,11 @@ pub fn Home() -> Element {
|
|||||||
#[allow(clippy::redundant_closure)]
|
#[allow(clippy::redundant_closure)]
|
||||||
let service = use_signal(|| ServiceManager::new());
|
let service = use_signal(|| ServiceManager::new());
|
||||||
let conf = RustFSConfig::load().unwrap_or_else(|e| {
|
let conf = RustFSConfig::load().unwrap_or_else(|e| {
|
||||||
ServiceManager::show_error(&format!("加载配置失败:{e}"));
|
ServiceManager::show_error(&format!("load config failed: {e}"));
|
||||||
RustFSConfig::default()
|
RustFSConfig::default()
|
||||||
});
|
});
|
||||||
|
|
||||||
debug!("loaded configurations:{:?}", conf);
|
debug!("loaded configurations: {:?}", conf);
|
||||||
let config = use_signal(|| conf.clone());
|
let config = use_signal(|| conf.clone());
|
||||||
|
|
||||||
use dioxus_router::prelude::Link;
|
use dioxus_router::prelude::Link;
|
||||||
@@ -78,7 +78,7 @@ pub fn Home() -> Element {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
ServiceManager::show_error(&format!("服务启动失败:{e}"));
|
ServiceManager::show_error(&format!("start service failed: {e}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Only set loading to false when it's actually done
|
// Only set loading to false when it's actually done
|
||||||
@@ -104,7 +104,7 @@ pub fn Home() -> Element {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
ServiceManager::show_error(&format!("服务停止失败:{e}"));
|
ServiceManager::show_error(&format!("stop service failed: {e}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
debug!("service_state: {:?}", service_state.read());
|
debug!("service_state: {:?}", service_state.read());
|
||||||
@@ -143,6 +143,7 @@ pub fn Home() -> Element {
|
|||||||
Title { "RustFS APP" }
|
Title { "RustFS APP" }
|
||||||
Meta {
|
Meta {
|
||||||
name: "description",
|
name: "description",
|
||||||
|
// TODO: translate to english
|
||||||
content: "RustFS RustFS 用热门安全的 Rust 语言开发,兼容 S3 协议。适用于 AI/ML 及海量数据存储、大数据、互联网、工业和保密存储等全部场景。近乎免费使用。遵循 Apache 2 协议,支持国产保密设备和系统。",
|
content: "RustFS RustFS 用热门安全的 Rust 语言开发,兼容 S3 协议。适用于 AI/ML 及海量数据存储、大数据、互联网、工业和保密存储等全部场景。近乎免费使用。遵循 Apache 2 协议,支持国产保密设备和系统。",
|
||||||
}
|
}
|
||||||
div { class: "min-h-screen flex flex-col items-center bg-white",
|
div { class: "min-h-screen flex flex-col items-center bg-white",
|
||||||
@@ -166,7 +167,7 @@ pub fn Home() -> Element {
|
|||||||
}
|
}
|
||||||
LoadingSpinner {
|
LoadingSpinner {
|
||||||
loading: loading.read().to_owned(),
|
loading: loading.read().to_owned(),
|
||||||
text: "服务处理中...",
|
text: "processing...",
|
||||||
}
|
}
|
||||||
button { class: button_class, onclick: toggle_service,
|
button { class: button_class, onclick: toggle_service,
|
||||||
svg {
|
svg {
|
||||||
|
|||||||
Reference in New Issue
Block a user