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>
39 lines
1023 B
Rust
39 lines
1023 B
Rust
use dioxus::prelude::*;
|
|
|
|
use crate::components::app_shell::AppShell;
|
|
use crate::pages::*;
|
|
|
|
#[derive(Debug, Clone, Routable, PartialEq)]
|
|
#[rustfmt::skip]
|
|
pub enum Route {
|
|
#[layout(AppShell)]
|
|
#[route("/")]
|
|
OverviewPage {},
|
|
#[route("/repositories")]
|
|
RepositoriesPage {},
|
|
#[route("/findings")]
|
|
FindingsPage {},
|
|
#[route("/findings/:id")]
|
|
FindingDetailPage { id: String },
|
|
#[route("/sbom")]
|
|
SbomPage {},
|
|
#[route("/issues")]
|
|
IssuesPage {},
|
|
#[route("/settings")]
|
|
SettingsPage {},
|
|
}
|
|
|
|
const FAVICON: Asset = asset!("/assets/favicon.svg");
|
|
const MAIN_CSS: Asset = asset!("/assets/main.css");
|
|
const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css");
|
|
|
|
#[component]
|
|
pub fn App() -> Element {
|
|
rsx! {
|
|
document::Link { rel: "icon", href: FAVICON }
|
|
document::Link { rel: "stylesheet", href: TAILWIND_CSS }
|
|
document::Link { rel: "stylesheet", href: MAIN_CSS }
|
|
Router::<Route> {}
|
|
}
|
|
}
|