Autonomous security and compliance scanning agent for git repositories. Features: SAST (Semgrep), SBOM (Syft), CVE monitoring (OSV.dev/NVD), GDPR/OAuth pattern detection, LLM triage, issue creation (GitHub/GitLab/Jira), PR reviews, and Dioxus fullstack dashboard. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
898 B
Rust
34 lines
898 B
Rust
use dioxus::prelude::*;
|
|
|
|
#[component]
|
|
pub fn Pagination(
|
|
current_page: u64,
|
|
total_pages: u64,
|
|
on_page_change: EventHandler<u64>,
|
|
) -> Element {
|
|
if total_pages <= 1 {
|
|
return rsx! {};
|
|
}
|
|
|
|
rsx! {
|
|
div { class: "pagination",
|
|
button {
|
|
class: "btn btn-ghost",
|
|
disabled: current_page <= 1,
|
|
onclick: move |_| on_page_change.call(current_page.saturating_sub(1)),
|
|
"Previous"
|
|
}
|
|
span {
|
|
style: "color: var(--text-secondary); font-size: 14px;",
|
|
"Page {current_page} of {total_pages}"
|
|
}
|
|
button {
|
|
class: "btn btn-ghost",
|
|
disabled: current_page >= total_pages,
|
|
onclick: move |_| on_page_change.call(current_page + 1),
|
|
"Next"
|
|
}
|
|
}
|
|
}
|
|
}
|