test deploy
This commit is contained in:
0
Dockerfile
Normal file
0
Dockerfile
Normal file
5
Makefile
Normal file
5
Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
deploy:
|
||||
npx tailwindcss -i ./input.css -o ./style/output.css --minify
|
||||
cargo run --no-default-features --features=ssr
|
||||
scp target/release/rust_leptos raspiwork:/var/www/rust_leptos/
|
||||
scp -r target/site raspiwork:/var/www/rust_leptos/site/
|
||||
@@ -1,6 +1,6 @@
|
||||
use leptos::*;
|
||||
//use leptos_meta::*;
|
||||
use leptos_router::*;
|
||||
//use leptos_router::*;
|
||||
|
||||
#[component]
|
||||
pub fn Links() -> impl IntoView {
|
||||
|
||||
@@ -19,8 +19,8 @@ pub async fn add_value(device: String, value: String) -> Result<(), ServerFnErro
|
||||
#[component]
|
||||
pub fn FormValues() -> impl IntoView {
|
||||
let value_action = create_server_action::<ValueAction>();
|
||||
let value = value_action.value();
|
||||
let has_error = move || value.with(|val| matches!(val, Some(Err(_))));
|
||||
//let value = value_action.value();
|
||||
//let has_error = move || value.with(|val| matches!(val, Some(Err(_))));
|
||||
|
||||
view! {
|
||||
<div class="my-0 mx-auto w-72 text-center">
|
||||
|
||||
735
style/output.css
735
style/output.css
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user