Added better empty index.html
This commit is contained in:
1 parent
174d7e855a
commit
6092273c76
4 files changed
+34
-8
No files matched your search
+5
-4
@@ -135,9 +135,9 @@ fn run_web_ui_command_line_parser() -> Command {
|
||||
.arg(
|
||||
Arg::new("port")
|
||||
.long("port")
|
||||
.value_parser(clap::value_parser!(u16).range(3000..))
|
||||
.value_parser(clap::value_parser!(u16).range(2000..))
|
||||
.action(ArgAction::Set)
|
||||
.default_value("3200"),
|
||||
.default_value("2222"),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("enable-template-autoreload")
|
||||
@@ -241,7 +241,7 @@ fn process_run_wui_command_line(
|
||||
logic: &mut dyn CommandLineUserLogic,
|
||||
) {
|
||||
debug!("Processing run wui command line {:?}.", m);
|
||||
let mut port = m.get_one::<u16>("port").unwrap_or(&3200);
|
||||
let mut port = m.get_one::<u16>("port").unwrap_or(&2222);
|
||||
let enable_template_autoreload = m.get_flag("enable-template-autoreload");
|
||||
logic.run_webui(conn, *port, enable_template_autoreload);
|
||||
}
|
||||
@@ -505,7 +505,8 @@ impl CommandLineUserLogic for ProCommandLineLogic {
|
||||
|
||||
fn run_webui(&mut self, conn: &mut Connection, port: u16, enable_template_autoreload: bool) {
|
||||
info!("Serving web-ui on port {:?}", port);
|
||||
web_ui_main(port, enable_template_autoreload);
|
||||
web_ui_main(port,
|
||||
enable_template_autoreload);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ impl MiniJinjaRenderer {
|
||||
&self,
|
||||
tmpl: &str,
|
||||
ctx: impl Into<minijinja::value::Value>,
|
||||
) -> actix_web::Result<Html> {
|
||||
) -> Result<Html> {
|
||||
log::info!("Rendering template {:?}", tmpl);
|
||||
self.tmpl_env
|
||||
.acquire_env()
|
||||
|
||||
Reference in new issue
Block a user