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

0
Dockerfile Normal file
View File

5
Makefile Normal file
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/

View File

@@ -1,6 +1,6 @@
use leptos::*; use leptos::*;
//use leptos_meta::*; //use leptos_meta::*;
use leptos_router::*; //use leptos_router::*;
#[component] #[component]
pub fn Links() -> impl IntoView { pub fn Links() -> impl IntoView {

View File

@@ -19,8 +19,8 @@ pub async fn add_value(device: String, value: String) -> Result<(), ServerFnErro
#[component] #[component]
pub fn FormValues() -> impl IntoView { pub fn FormValues() -> impl IntoView {
let value_action = create_server_action::<ValueAction>(); let value_action = create_server_action::<ValueAction>();
let value = value_action.value(); //let value = value_action.value();
let has_error = move || value.with(|val| matches!(val, Some(Err(_)))); //let has_error = move || value.with(|val| matches!(val, Some(Err(_))));
view! { view! {
<div class="my-0 mx-auto w-72 text-center"> <div class="my-0 mx-auto w-72 text-center">

File diff suppressed because one or more lines are too long