Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 3 additions & 10 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: clippy
on:
workflow_dispatch:
pull_request:
branches: [main, riir]
types:
- ready_for_review

Expand Down Expand Up @@ -45,17 +46,9 @@ jobs:
toolchain: nightly
override: true
components: clippy
- name: Cache .cargo and target
uses: actions/cache@v4
with:
path: |
~/.cargo
key: ${{ runner.os }}-cargo-leptos-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-leptos-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-leptos
- uses: cargo-bins/cargo-binstall@main
- name: Install LeptosFmt
run: cargo install leptosfmt --version 0.1.33
run: cargo binstall --disable-telemetry --no-confirm leptosfmt --version 0.1.33
- name: Check LeptosFmt
run: leptosfmt --check src

Expand Down
10 changes: 6 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ reqwest = { version = "0.13.4", features = [
rustlanges-components = { path="design-system-components", features = ["leptos"] }
leptos-use = { version = "0.19.0", features = [] }
console_error_panic_hook = { version = "0.1.7", optional = true }
rand = "0.10.3"
getrandom = { version = "0.4.3", features = ["wasm_js"] }
# leptos_theme = "0.1.2"

[features]
Expand Down
6 changes: 3 additions & 3 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ args = ["fmt", "--all"]

[tasks.fmt-all]
script = '''
leptosfmt .
leptosfmt src
cargo fmt --all
cargo clippy --fix --features ssr -- -D warnings
'''

[tasks.check]
script = '''
leptosfmt --check .
leptosfmt --check src
cargo fmt --all --check
cargo clippy --features ssr -- -D warnings
'''

[tasks.leptos-format]
install_crate = "leptosfmt"
command = "leptosfmt"
args = ["."]
args = ["src"]

[tasks.format]
dependencies = ["cargo-format", "leptos-format"]
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
rustToolchain

# WASM tools
nodejs
tailwindcss_4
wasm-bindgen-cli_0_2_126

Expand Down
4 changes: 2 additions & 2 deletions src/components/contributors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn Contributors() -> impl IntoView {
</div>
</Card>
</div>
};

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Phosphorus-M mira lo que le hicieron a tu hijo, dejó de funcionar por que no borraron el ;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya me disculpeeee

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Increible, me estas diciendo que estan mandando commits sin probar? inesperado

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mira te explico

}
})
.collect_view();

Expand All @@ -74,7 +74,7 @@ pub fn Contributors() -> impl IntoView {

<div class="flex flex-row justify-center items-center gap-4 max-w-full m-auto">
<div class="items-center gap-8 overflow-x-auto p-4 xl:grid xl:grid-cols-3">
{{ contributors_list }}
{contributors_list}
</div>
</div>
<div class="flex flex-row justify-center items-center m-auto w-full mt-10">
Expand Down
2 changes: 2 additions & 0 deletions src/components/icons/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod linkedin_icon;
mod location_icon;
mod logo_rust_page;
mod next;
mod sponsor_block;
mod telegram_icon;
mod twitter_icon;
mod web_icon;
Expand All @@ -17,6 +18,7 @@ pub use github_icon::*;
pub use linkedin_icon::*;
pub use location_icon::*;
pub use next::*;
pub use sponsor_block::*;
pub use telegram_icon::*;
pub use twitter_icon::*;

Expand Down
34 changes: 34 additions & 0 deletions src/components/icons/sponsor_block.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
use leptos::prelude::*;

#[component]
pub fn SponsorBlockIcon(#[prop(optional)] class: String) -> impl IntoView {
view! {
<svg
xmlns="http://www.w3.org/2000/svg"
width="143"
height="74"
viewBox="0 0 143 74"
class=class
>
<mask id="path-1-inside-1_715_7648" fill="black">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M12.8464 2C12.8464 0.895431 13.7418 0 14.8464 0H33.9233C35.0279 0 35.9233 0.895431 35.9233 2V9.2303H43.6161V2C43.6161 0.895431 44.5116 0 45.6161 0H64.6931C65.7976 0 66.6931 0.895431 66.6931 2V9.2303H74.3853V2C74.3853 0.895431 75.2807 0 76.3853 0H95.4622C96.5668 0 97.4622 0.895431 97.4622 2V9.2303H105.155V2C105.155 0.895431 106.05 0 107.155 0H126.232C127.336 0 128.232 0.895431 128.232 2V9.2303H138.077C140.286 9.2303 142.077 11.0212 142.077 13.2303V73.8457H0.538879V13.2303C0.538879 11.0212 2.32974 9.2303 4.53888 9.2303H12.8464V2Z"
/>
</mask>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M12.8464 2C12.8464 0.895431 13.7418 0 14.8464 0H33.9233C35.0279 0 35.9233 0.895431 35.9233 2V9.2303H43.6161V2C43.6161 0.895431 44.5116 0 45.6161 0H64.6931C65.7976 0 66.6931 0.895431 66.6931 2V9.2303H74.3853V2C74.3853 0.895431 75.2807 0 76.3853 0H95.4622C96.5668 0 97.4622 0.895431 97.4622 2V9.2303H105.155V2C105.155 0.895431 106.05 0 107.155 0H126.232C127.336 0 128.232 0.895431 128.232 2V9.2303H138.077C140.286 9.2303 142.077 11.0212 142.077 13.2303V73.8457H0.538879V13.2303C0.538879 11.0212 2.32974 9.2303 4.53888 9.2303H12.8464V2Z"
fill="currentColor"
stroke="black"
/>
<path
d="M35.9233 9.2303H34.9233V10.2303H35.9233V9.2303ZM43.6161 9.2303V10.2303H44.6161V9.2303H43.6161ZM66.6931 9.2303H65.6931V10.2303H66.6931V9.2303ZM74.3853 9.2303V10.2303H75.3853V9.2303H74.3853ZM97.4622 9.2303H96.4622V10.2303H97.4622V9.2303ZM105.155 9.2303V10.2303H106.155V9.2303H105.155ZM128.232 9.2303H127.232V10.2303H128.232V9.2303ZM142.077 73.8457V74.8457H143.077V73.8457H142.077ZM0.538879 73.8457H-0.461121V74.8457H0.538879V73.8457ZM12.8464 9.2303V10.2303H13.8464V9.2303H12.8464ZM14.8464 -1C13.1895 -1 11.8464 0.343147 11.8464 2H13.8464C13.8464 1.44772 14.2941 1 14.8464 1V-1ZM33.9233 -1H14.8464V1H33.9233V-1ZM36.9233 2C36.9233 0.343144 35.5802 -1 33.9233 -1V1C34.4756 1 34.9233 1.44772 34.9233 2H36.9233ZM36.9233 9.2303V2H34.9233V9.2303H36.9233ZM43.6161 8.2303H35.9233V10.2303H43.6161V8.2303ZM42.6161 2V9.2303H44.6161V2H42.6161ZM45.6161 -1C43.9593 -1 42.6161 0.343147 42.6161 2H44.6161C44.6161 1.44772 45.0639 1 45.6161 1V-1ZM64.6931 -1H45.6161V1H64.6931V-1ZM67.6931 2C67.6931 0.343145 66.3499 -1 64.6931 -1V1C65.2453 1 65.6931 1.44772 65.6931 2H67.6931ZM67.6931 9.2303V2H65.6931V9.2303H67.6931ZM74.3853 8.2303H66.6931V10.2303H74.3853V8.2303ZM73.3853 2V9.2303H75.3853V2H73.3853ZM76.3853 -1C74.7285 -1 73.3853 0.343147 73.3853 2H75.3853C75.3853 1.44772 75.833 1 76.3853 1V-1ZM95.4622 -1H76.3853V1H95.4622V-1ZM98.4622 2C98.4622 0.343141 97.1191 -1 95.4622 -1V1C96.0145 1 96.4622 1.44772 96.4622 2H98.4622ZM98.4622 9.2303V2H96.4622V9.2303H98.4622ZM105.155 8.2303H97.4622V10.2303H105.155V8.2303ZM106.155 9.2303V2H104.155V9.2303H106.155ZM106.155 2C106.155 1.44772 106.603 1 107.155 1V-1C105.498 -1 104.155 0.343147 104.155 2H106.155ZM107.155 1H126.232V-1H107.155V1ZM126.232 1C126.784 1 127.232 1.44772 127.232 2H129.232C129.232 0.343141 127.889 -1 126.232 -1V1ZM127.232 2V9.2303H129.232V2H127.232ZM138.077 8.2303H128.232V10.2303H138.077V8.2303ZM143.077 13.2303C143.077 10.4689 140.839 8.2303 138.077 8.2303V10.2303C139.734 10.2303 141.077 11.5734 141.077 13.2303H143.077ZM143.077 73.8457V13.2303H141.077V73.8457H143.077ZM0.538879 74.8457H142.077V72.8457H0.538879V74.8457ZM-0.461121 13.2303V73.8457H1.53888V13.2303H-0.461121ZM4.53888 8.2303C1.77746 8.2303 -0.461121 10.4689 -0.461121 13.2303H1.53888C1.53888 11.5734 2.88203 10.2303 4.53888 10.2303V8.2303ZM12.8464 8.2303H4.53888V10.2303H12.8464V8.2303ZM11.8464 2V9.2303H13.8464V2H11.8464Z"
fill="black"
mask="url(#path-1-inside-1_715_7648)"
/>
</svg>
}
}
Loading