copy url button

This commit is contained in:
zoe 2022-01-30 12:47:53 +01:00
parent 26e962e77f
commit cdf392a232
3 changed files with 3 additions and 5 deletions

View file

@ -23,7 +23,7 @@ struct Args {
// Port number for server // Port number for server
#[clap(short, long, default_value_t = 8000)] #[clap(short, long, default_value_t = 8000)]
port: u16, port: u16,
#[clap(short, long, default_value = "localhost")] #[clap(short, long, default_value = "http://127.0.0.1:8000")]
base_url: String, base_url: String,
} }

View file

@ -2,8 +2,6 @@ use std::collections::HashMap;
use rocket_dyn_templates::Template; use rocket_dyn_templates::Template;
use clap::Parser; use clap::Parser;
lazy_static! { lazy_static! {
static ref ARGS: Args = Args::parse(); static ref ARGS: Args = Args::parse();
} }
@ -11,7 +9,7 @@ lazy_static! {
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[clap(about, version, author)] #[clap(about, version, author)]
struct Args { struct Args {
#[clap(short, long, default_value = "localhost")] #[clap(short, long, default_value = "http://127.0.0.1:8000")]
base_url: String, base_url: String,
} }

View file

@ -58,7 +58,7 @@ footer {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
align-self: center; align-self: center;
height: 90%; min-height: 80%;
justify-content: center; justify-content: center;
} }