Initial commit: Compliance Scanner Agent
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>
This commit is contained in:
33
compliance-dashboard/src/components/pagination.rs
Normal file
33
compliance-dashboard/src/components/pagination.rs
Normal file
@@ -0,0 +1,33 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user