test deploy

This commit is contained in:
Romulus21
2024-10-19 15:51:53 +02:00
parent c931845899
commit 4c4227df4d
5 changed files with 9 additions and 737 deletions
View File
+5
View 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 -1
View File
@@ -1,6 +1,6 @@
use leptos::*;
//use leptos_meta::*;
use leptos_router::*;
//use leptos_router::*;
#[component]
pub fn Links() -> impl IntoView {
+2 -2
View File
@@ -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">
+1 -734
View File
File diff suppressed because one or more lines are too long