chore: 0.0.7: bump deps & light code cleanup
This commit is contained in:
parent
996f1e46a5
commit
4dfcb2646a
8 changed files with 601 additions and 2114 deletions
1278
examples/define-styles/Cargo.lock
generated
1278
examples/define-styles/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -6,4 +6,5 @@ rust-version = "1.88"
|
|||
publish = false
|
||||
|
||||
[dependencies]
|
||||
sabry = { path = "../../", features = ["nightly"] }
|
||||
sabry.path = "../../"
|
||||
sabry.features = ["nightly"]
|
||||
|
|
|
|||
|
|
@ -30,31 +30,32 @@ thiserror = "^1"
|
|||
tracing.version = "0.1"
|
||||
tracing.optional = true
|
||||
http = "^1"
|
||||
|
||||
# sabry with sass
|
||||
sabry = { path = "../../" }
|
||||
|
||||
sabry.path = "../../"
|
||||
# our component library
|
||||
leptos-components = { path = "../leptos-components" }
|
||||
leptos-components.version = "0.0.0"
|
||||
leptos-components.path = "../leptos-components"
|
||||
|
||||
[build-dependencies]
|
||||
# sabry for build with sass
|
||||
sabry = { path = "../../", features = ["build"] }
|
||||
sabry.path = "../../"
|
||||
sabry.features = ["build"]
|
||||
# lets depend on our styles
|
||||
define-styles = { path = "../define-styles" }
|
||||
define-styles.version = "0.0.0"
|
||||
define-styles.path = "../define-styles"
|
||||
|
||||
[features]
|
||||
hydrate = ["leptos/hydrate"]
|
||||
ssr = [
|
||||
"dep:axum",
|
||||
"dep:tokio",
|
||||
"dep:tower",
|
||||
"dep:tower-http",
|
||||
"dep:leptos_axum",
|
||||
"leptos/ssr",
|
||||
"leptos_meta/ssr",
|
||||
"leptos_router/ssr",
|
||||
"dep:tracing",
|
||||
"dep:axum",
|
||||
"dep:tokio",
|
||||
"dep:tower",
|
||||
"dep:tower-http",
|
||||
"dep:leptos_axum",
|
||||
"leptos/ssr",
|
||||
"leptos_meta/ssr",
|
||||
"leptos_router/ssr",
|
||||
"dep:tracing",
|
||||
]
|
||||
|
||||
[package.metadata.sabry]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,32 @@
|
|||
use leptos::prelude::*;
|
||||
use sabry::styly;
|
||||
|
||||
/// Renders the home page of your application.
|
||||
#[component]
|
||||
pub fn Route() -> impl IntoView {
|
||||
// Creates a reactive value to update the button
|
||||
let count = RwSignal::new(0);
|
||||
let on_click = move |_| *count.write() += 1;
|
||||
|
||||
view! {class = STYLE,
|
||||
<leptos_components::Aside/> // lets use our component
|
||||
<section class=style::table>
|
||||
<h2>"Welcome to Leptos"</h2>
|
||||
<h2 class="">
|
||||
"This head is styled with lepty-scopes feature"
|
||||
<br/>
|
||||
<span class="">"And this child too!"</span>
|
||||
</h2>
|
||||
|
||||
<button class=style::btn on:click=on_click>"Ima CRAZY button, clicked: " {count} " times!"</button>
|
||||
<button class=style::_dark(style::btn) on:click=on_click>"Ima CRAZY button, clicked: " {count} " times!"</button>
|
||||
<span class=style::card>"DISCLAIMER:"</span>
|
||||
<p class=style::pocwarn>"This isn't a design example! Its just proof of sabry's capabilities."</p>
|
||||
<p class=style::pocwarn>"Plz dont make websites/apps which look like this page :D"</p>
|
||||
</section>
|
||||
}
|
||||
}
|
||||
|
||||
styly!(style {"
|
||||
@use 'tokens';
|
||||
@use 'utils';
|
||||
|
|
@ -34,31 +60,4 @@ styly!(style {"
|
|||
@include theme.surface(secondary);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
"});
|
||||
|
||||
/// Renders the home page of your application.
|
||||
#[component]
|
||||
pub fn Route() -> impl IntoView {
|
||||
// Creates a reactive value to update the button
|
||||
let count = RwSignal::new(0);
|
||||
let on_click = move |_| *count.write() += 1;
|
||||
|
||||
view! {class = STYLE,
|
||||
<leptos_components::Aside/> // lets use our component
|
||||
<section class=style::table>
|
||||
<h2>"Welcome to Leptos"</h2>
|
||||
<h2 class="">
|
||||
"This head is styled with lepty-scopes feature"
|
||||
<br/>
|
||||
<span class="">"And this child too!"</span>
|
||||
</h2>
|
||||
|
||||
<button class=style::btn on:click=on_click>"Ima CRAZY button, clicked: " {count} " times!"</button>
|
||||
<button class=style::_dark(style::btn) on:click=on_click>"Ima CRAZY button, clicked: " {count} " times!"</button>
|
||||
<span class=style::card>"DISCLAIMER:"</span>
|
||||
<p class=style::pocwarn>"This isn't a design example! Its just proof of sabry's capabilities."</p>
|
||||
<p class=style::pocwarn>"Plz dont make websites/apps which look like this page :D"</p>
|
||||
</section>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "leptos-components"
|
||||
version = "0.1.0"
|
||||
version = "0.0.0"
|
||||
rust-version = "1.88"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
|
|
@ -12,12 +12,14 @@ crate-type = ["cdylib", "rlib"]
|
|||
leptos.version = "^0.8"
|
||||
leptos_meta.version = "^0.8"
|
||||
leptos_router.version = "^0.8"
|
||||
|
||||
sabry = { path = "../../", features = ["const-scoping"] }
|
||||
sabry.path = "../../"
|
||||
sabry.features = ["const-scoping"]
|
||||
|
||||
[build-dependencies]
|
||||
sabry = { path = "../../", features = ["build", "const-scoping"] }
|
||||
define-styles = { path = "../define-styles" }
|
||||
sabry.path = "../../"
|
||||
sabry.features = ["build", "const-scoping"]
|
||||
define-styles.version = "0.0.0"
|
||||
define-styles.path = "../define-styles"
|
||||
|
||||
[features]
|
||||
hydrate = ["leptos/hydrate"]
|
||||
|
|
|
|||
1137
examples/use-styles/Cargo.lock
generated
1137
examples/use-styles/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -6,11 +6,15 @@ rust-version = "1.88"
|
|||
publish = false
|
||||
|
||||
[dependencies]
|
||||
sabry = { path = "../../", features = ["nightly"] }
|
||||
sabry.version = "0.0.7"
|
||||
sabry.path = "../../"
|
||||
sabry.features = ["nightly"]
|
||||
|
||||
[build-dependencies]
|
||||
sabry = { path = "../../", features = ["build", "nightly"] }
|
||||
define-styles = { path = "../define-styles" }
|
||||
sabry.path = "../../"
|
||||
sabry.features = ["build"]
|
||||
define-styles.version = "0.0.0"
|
||||
define-styles.path = "../define-styles"
|
||||
|
||||
[package.metadata.sabry]
|
||||
css.bundle = "target/static/style.css"
|
||||
|
|
|
|||
Loading…
Reference in a new issue