Skip to content

Commit

Permalink
remove most leptos code
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 9, 2023
1 parent 3cf8112 commit a9d51cf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 110 deletions.
3 changes: 1 addition & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ watch-nix-health *ARGS:

alias wh := watch-nix-health

# Run tests (backend & frontend)
# Run tests
test:
cargo test
cargo leptos test

# Run end-to-end tests against release server
e2e-release:
Expand Down
1 change: 0 additions & 1 deletion src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ pub fn App(cx: Scope) -> impl IntoView {
provide_signal::<Refresh>(cx, false.into()); // refresh flag is unused, but we may add it to UI later.
view! { cx,
<Stylesheet id="leptos" href="/pkg/nix-browser.css"/>
<Title formatter=|s| format!("{s} ― nix-browser")/>
<Router fallback=|cx| {
view! { cx, <NotFound/> }
Expand Down
20 changes: 0 additions & 20 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,6 @@ use crate::logging;

#[derive(Parser, Debug)]
pub struct Args {
/// Do not automatically open the application in the local browser
///
/// Enabled by default if the app is running under `cargo leptos ...`
#[arg(short = 'n', long = "no-open", env = "NIX_BROWSER_NO_OPEN")]
pub no_open: bool,

/// The address to serve the application on
///
/// Format: `IP_ADDRESS:PORT`
///
/// Uses localhost and random port by default. To use a different port, pass
/// `127.0.0.1:8080`
#[arg(
short = 's',
long = "site-addr",
default_value = "127.0.0.1:0",
env = "LEPTOS_SITE_ADDR"
)]
pub site_addr: Option<SocketAddr>,

#[command(flatten)]
pub verbosity: logging::Verbosity,
}
87 changes: 0 additions & 87 deletions src/server.rs

This file was deleted.

0 comments on commit a9d51cf

Please sign in to comment.