smart-house-web: leptos эсперименты
This commit is contained in:
1
smart-house-web/frontend/.gitignore
vendored
Normal file
1
smart-house-web/frontend/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/dist/
|
||||
@@ -4,4 +4,5 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
leptos = { version = "0.8.19", features = ["csr"] }
|
||||
console_error_panic_hook = "0.1"
|
||||
leptos = { version = "0.8", features = ["csr"] }
|
||||
|
||||
10
smart-house-web/frontend/README.md
Normal file
10
smart-house-web/frontend/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Фронтэнд умного дома
|
||||
|
||||
Запуск сервера разработки (sh):
|
||||
|
||||
RUSTFLAGS="--cfg erase_components" trunk serve
|
||||
|
||||
Запуск сервера разработки (powershell):
|
||||
|
||||
$env:RUSTFLAGS = '--cfg erase_components'
|
||||
trunk serve
|
||||
@@ -1,5 +1,6 @@
|
||||
use leptos::prelude::*;
|
||||
|
||||
fn main() {
|
||||
console_error_panic_hook::set_once();
|
||||
leptos::mount::mount_to_body(|| view! { <p>"Hello, world!"</p> })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user