-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added nape-portal project and upgrade all nape dependencies
- Loading branch information
1 parent
9e6fe45
commit 430b8d5
Showing
10 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
|
||
# Other root-level ignore rules | ||
# ... | ||
dist/ | ||
.idea/ | ||
debug/ | ||
target/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "nape-portal" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
console_error_panic_hook = "0.1.7" | ||
leptos = { version = "0.7.4", features = ["csr"] } | ||
leptos_router = { version = "0.7.4"} | ||
reactive_stores = "0.1.3" | ||
send_wrapper = { version = "0.6", features = ["futures"] } | ||
|
||
[dev-dependencies] | ||
clippy = "*" | ||
|
||
|
||
[tool.clippy] | ||
deny = ["clippy::unwrap_used"] | ||
|
||
[tool.clippy.overrides.tests] | ||
allow = ["clippy::unwrap_used"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.PHONY: build-release clean fmt serve update-deps upgrade-deps | ||
|
||
build-release: | ||
trunk build --release | ||
|
||
clean: | ||
trunk clean | ||
cago cleam | ||
|
||
fmt: | ||
leptosfmt ./**/*.rs | ||
cargo clippy | ||
|
||
serve: | ||
trunk serve | ||
|
||
update-deps: | ||
cargo update --verbose | ||
|
||
upgrade-deps: | ||
cargo upgrade --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> </head> | ||
|
||
<body> </body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use leptos::{component, view, IntoView}; | ||
use leptos::prelude::ElementChild; | ||
|
||
#[component] | ||
pub fn App() -> impl IntoView { | ||
|
||
view! { | ||
<h1>NAPE Portal</h1> | ||
<p> Hello world, welcome to the NAPE Portal! </p> | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use leptos::mount::mount_to_body; | ||
use crate::app::App; | ||
|
||
mod app; | ||
|
||
fn main() { | ||
#[cfg(debug_assertions)] | ||
console_error_panic_hook::set_once(); | ||
|
||
mount_to_body(App); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters