Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
81980cd
feat(pnpm): Allow builds for parcel/watcher, swc/core, tailwindcss/ox…
MarioYellowy Aug 5, 2026
8354fd8
fix(format): apply format according to prettier
MarioYellowy Aug 5, 2026
e9ff184
fix(style): Modify output path for build process
MarioYellowy Aug 7, 2026
cc8f7f0
Merge branch 'RustLangES:dev' into dev
MarioYellowy Aug 7, 2026
ce2d63a
Merge branch 'RustLangES:dev' into dev
MarioYellowy Aug 8, 2026
4df8bbc
feat(flake): Remove specific version 22, delegate the latest stable i…
MarioYellowy Aug 8, 2026
c5e8b9d
feat(gitignore): Add the .envrc folder
MarioYellowy Aug 9, 2026
b5b8310
feat(flake): Add node, pnpm and rust toolchain configuration accordin…
MarioYellowy Aug 9, 2026
2cf7248
feat(nixos): Add the .envrc file for eaasy setup
MarioYellowy Aug 9, 2026
26af37c
feat(pnpm): Update pnpm-lock file
MarioYellowy Aug 9, 2026
ed28cdd
feat(styles/package.json): Update version from 4.1.8 to 4.3.3, change…
MarioYellowy Aug 9, 2026
f1a36ea
feat(dependencies/pnpm): Update prettier and prettier-plugin-tailwind…
MarioYellowy Aug 9, 2026
568d3c1
feat(vue): Upgrade dependencies
MarioYellowy Aug 9, 2026
7005429
fix(vue): extends modify from node22 to node24
MarioYellowy Aug 9, 2026
0abc6bd
feat(showcase): Upgrade dependencies
MarioYellowy Aug 9, 2026
a46b1c9
fix(vue): Upgrade eslint version
MarioYellowy Aug 9, 2026
2f1a443
fix(dependencies): Downgrade typescript to compatible version fo eslint
MarioYellowy Aug 9, 2026
324201b
fix(dependencies): Downgrade typescript to available version for eslint
MarioYellowy Aug 9, 2026
396fc60
feat(project): Apply formatting
MarioYellowy Aug 10, 2026
10c8115
fix(leptos): Apply format
MarioYellowy Aug 10, 2026
298f4db
fix(react): eslint plugins declaration for acoid incompatibilities
MarioYellowy Aug 10, 2026
b6f2ec7
fix(react): command for build use directly tailwindcss
MarioYellowy Aug 10, 2026
9c7e2f9
fix(react): Add eslint configuration and types node
MarioYellowy Aug 10, 2026
c6f5bb7
fix(react): Refactor disname strategy according to the last standarst
MarioYellowy Aug 10, 2026
050e4ca
fix(showcase): Implement parserOption to avoid problems with the lsp …
MarioYellowy Aug 10, 2026
f1abebc
fix(showcase): update vue version and refactor the command for build …
MarioYellowy Aug 10, 2026
7d6389b
fix(showcase): Add the eslint config file and types node
MarioYellowy Aug 10, 2026
8fc760b
fix(showcase): Refactor dirname strategy
MarioYellowy Aug 10, 2026
0e11d50
fix(vue): Add parser options
MarioYellowy Aug 10, 2026
6988d58
fix(vue): Change the build command for tailwindcss
MarioYellowy Aug 10, 2026
f286df2
fix(vue): Add lib block
MarioYellowy Aug 10, 2026
b66a165
fix(vue): Refactor dirname strategy
MarioYellowy Aug 10, 2026
6b9ab71
feat(pnpm-lock): Update
MarioYellowy Aug 10, 2026
00d20cb
fix(leptos): Apply format
MarioYellowy Aug 10, 2026
55772f5
fix(showcase): Apply formatting
MarioYellowy Aug 10, 2026
c2e7b25
fix(styles/package.json): Fix tailwindcss command
MarioYellowy Aug 10, 2026
9e3ea30
fix(vite.config.ts): Refactor, use import.meta.resolve instead of the…
MarioYellowy Aug 11, 2026
f2f5860
fix(vite.config.ts): Apply formatting
MarioYellowy Aug 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export PATH="$HOME/.cargo/bin:$PATH"

use flake
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/target

package-lock.json

.direnv
8 changes: 2 additions & 6 deletions crates/leptos/src/avatar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ pub fn Avatar(
let class = crate::tw!(concat!(BASE_CLASS, "-avatar"), class);

view! {
<div
class={class}
style:width={format!("{size}px")}
style:height={format!("{size}px")}
>
<img class="rustlanges-avatar__img" src={url} alt={alt} />
<div class=class style:width=format!("{size}px") style:height=format!("{size}px")>
<img class="rustlanges-avatar__img" src=url alt=alt />
</div>
}
}
8 changes: 3 additions & 5 deletions crates/leptos/src/badge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ pub fn Badge(
};

view! {
<div
class={class}
>
<div class={concat!(BASE_CLASS, "-badge__dot")} />
<span>{display_value}</span>
<div class=class>
<div class=concat!(BASE_CLASS, "-badge__dot") />
<span>{display_value}</span>
</div>
}
}
2 changes: 1 addition & 1 deletion crates/leptos/src/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn Button(
let class = crate::tw!("text-button", var, concat!(BASE_CLASS, "-button"), class);

view! {
<button class={class} on:click=on_click>
<button class=class on:click=on_click>
{(variant != Variant::Icon).then_some(label)}
{icon.into_view()}
</button>
Expand Down
26 changes: 14 additions & 12 deletions crates/leptos/src/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@ pub fn Card(
class = format!("{}-card--resource relative", BASE_CLASS);

return view! {
<div class={class}>
<svg viewBox="0 0 334 444" fill="none" xmlns="http://www.w3.org/2000/svg" class="text-primary-50 dark:text-neutral-900">
<path d="M267.221 2C275.589 2 283.519 5.74306 288.838 12.2038L325.617 56.8794C329.744 61.892 332 68.1829 332 74.6756V414C332 429.464 319.464 442 304 442H30C14.536 442 2 429.464 2 414V30C2 14.536 14.536 2 30 2H267.221Z" fill="currentColor" stroke-width="2"/>
<div class=class>
<svg
viewBox="0 0 334 444"
fill="none"
xmlns="http://www.w3.org/2000/svg"
class="text-primary-50 dark:text-neutral-900"
>
<path
d="M267.221 2C275.589 2 283.519 5.74306 288.838 12.2038L325.617 56.8794C329.744 61.892 332 68.1829 332 74.6756V414C332 429.464 319.464 442 304 442H30C14.536 442 2 429.464 2 414V30C2 14.536 14.536 2 30 2H267.221Z"
fill="currentColor"
stroke-width="2"
/>
</svg>
<div class="rustlanges-card--resource-body">
{children()}
</div>
<div class="rustlanges-card--resource-body">{children()}</div>
</div>
}.into_any();
}

view! {
<div class={class}>
{children()}
</div>
}
.into_any()
view! { <div class=class>{children()}</div> }.into_any()
}
20 changes: 10 additions & 10 deletions crates/leptos/src/flap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,29 @@ pub fn Flap(
let class = crate::tw!(concat!(BASE_CLASS, "-flap"), class);

view! {
<div title={label.clone()} class={class}>
<div title=label.clone() class=class>
<svg
viewBox="0 0 145 49"
fill="none"
preserveAspectRatio="none"
class={crate::tw!(concat!(BASE_CLASS, "-flap__svg"), variant)}
class=crate::tw!(concat!(BASE_CLASS, "-flap__svg"), variant)
>
<path
d="M120.962 5.00869L141.872 30.4082C147.78 37.5847 142.676 48.3997 133.38 48.3997L12.488 48.3996C3.19249 48.3996 -1.91244 37.5847 3.99561 30.4082L24.906 5.00869C26.9955 2.47056 30.1108 1.00009 33.3984 1.00009L112.47 1.0001C115.757 1.0001 118.872 2.47057 120.962 5.00869Z"
fill="currentColor"
stroke="black"
/>
</svg>
<span
class={crate::tw!(
concat!(BASE_CLASS, "-flap__view"),
<span class=crate::tw!(
concat!(BASE_CLASS, "-flap__view"),
(variant == Variant::Highlight).then_some(concat!(BASE_CLASS, "-flap__view--icon")),
)}
>
)>
{(variant == Variant::Highlight).then_some(view! { <StarBold /> })}
<span class={concat!("text-paragraph-2 ", BASE_CLASS, "-flap__view-text")}>
{label.clone()}
</span>
<span class=concat!(
"text-paragraph-2 ",
BASE_CLASS,
"-flap__view-text",
)>{label.clone()}</span>
</span>
</div>
}
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/alert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Alert(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
9 changes: 3 additions & 6 deletions crates/leptos/src/icons/arrow_down.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ pub fn ArrowDown(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7 10L12 15L17 10"
fill="currentColor"
/>
<path d="M7 10L12 15L17 10" fill="currentColor" />
</svg>
}
}
9 changes: 3 additions & 6 deletions crates/leptos/src/icons/arrow_left.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ pub fn ArrowLeft(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M14 7L9 12L14 17"
fill="currentColor"
/>
<path d="M14 7L9 12L14 17" fill="currentColor" />
</svg>
}
}
9 changes: 3 additions & 6 deletions crates/leptos/src/icons/arrow_right.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ pub fn ArrowRight(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M10 17L15 12L10 7"
fill="currentColor"
/>
<path d="M10 17L15 12L10 7" fill="currentColor" />
</svg>
}
}
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/arrow_up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn ArrowUp(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/book.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Book(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
9 changes: 3 additions & 6 deletions crates/leptos/src/icons/close.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ pub fn Close(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7 7L17 17M7 17L17 7"
fill="currentColor"
/>
<path d="M7 7L17 17M7 17L17 7" fill="currentColor" />
</svg>
}
}
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/discord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Discord(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/ferris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Ferris(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn File(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Filter(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Github(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Link(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/linkedin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Linkedin(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Location(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Menu(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/moon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Moon(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Project(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/roadmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Roadmap(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Search(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions crates/leptos/src/icons/share.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn Share(
) -> impl IntoView {
view! {
<svg
width={size}
height={size}
width=size
height=size
viewBox="0 0 24 24"
class=class
xmlns="http://www.w3.org/2000/svg"
Expand Down
Loading
Loading