bmbp_lib_ui

Crates.iobmbp_lib_ui
lib.rsbmbp_lib_ui
version0.1.6
sourcesrc
created_at2024-08-07 14:30:47.116243
updated_at2024-08-31 09:56:26.585354
descriptionBMBP TERA CONTEXT VARS
homepagehttps://github.com/bmbper/bmbp_lib_ui
repositoryhttps://github.com/bmbper/bmbp_lib_ui
max_upload_size
id1328463
size5,044,738
(bmbper)

documentation

https://github.com/bmbper/bmbp_lib_ui

README

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;
}

Commit count: 0

cargo fmt