6 releases

0.1.6 Aug 31, 2024
0.1.5 Aug 22, 2024

#9 in #min

21 downloads per month
Used in 2 crates

MIT license

2MB
5K SLoC

JavaScript 5K SLoC // 0.0% comments TSX 35 SLoC // 0.1% comments Rust 11 SLoC Shell 2 SLoC

bmbp_lib_ui

arco

bmbp/ui/lib/arco/arco-icon.min.js
bmbp/ui/lib/arco/arco.min.css
bmbp/ui/lib/arco/arco.min.js

bmbp style

bmbp/ui/lib/bmbp/bmbp.css

bootstrap5.3.0

bmbp/ui/lib/bootstrap5/css/bootstrap.css
bmbp/ui/lib/bootstrap5/css/bootstrap.min.css
bmbp/ui/lib/bootstrap5/js/bootstrap.js
bmbp/ui/lib/bootstrap5/js/bootstrap.min.js
bmbp/ui/lib/bootstrap5/js/popper.min.js

Reactjs

bmbp/ui/lib/react/react-dom.production.min.js
bmbp/ui/lib/react/react-dom.profiling.min.js
bmbp/ui/lib/react/react.production.min.js
bmbp/ui/lib/axios.min.js
bmbp/ui/lib/http.js

example

Cargo.toml


[dependencies]
bmbp_lib_ui = "0.1.1"
rust-embed = "8.5.0"
salvo = {version="0.69.0", features = ["serve-static"] }
tokio = { version = "1.38.0", features = ["full"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }

code

use bmbp_lib_ui::*;
use salvo::prelude::*;
#[tokio:main]
async fn main() {
  tracing_subscriber::fmt().init();
  let host = "0.0.0.0:7027";
  tracing::info!("启动初始化服务,监听地址:{}......", host);
  let acceptor = TcpListener::new(host).bind().await;
  let router = build_bmbp_ui_lib_router();
  Server::new(acceptor).serve(router).await;
}

Dependencies

~20–32MB
~575K SLoC