feat: add attack surface component

This commit is contained in:
Pablo Lara
2024-08-19 16:43:45 +02:00
parent 109a477f9e
commit a864c76955
6 changed files with 7 additions and 9 deletions
+2 -1
View File
@@ -67,7 +67,7 @@ export function StatusChart() {
dataKey="number"
nameKey="findings"
innerRadius={60}
strokeWidth={5}
strokeWidth={50}
>
<Label
content={({ viewBox }) => {
@@ -76,6 +76,7 @@ export function StatusChart() {
<text
x={viewBox.cx}
y={viewBox.cy}
radius={70}
textAnchor="middle"
dominantBaseline="middle"
>
+1
View File
@@ -1 +1,2 @@
export * from "./SeverityChart";
export * from "./StatusChart";
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import ActionCard from "../ui/action-card/ActionCard";
import { ActionCard } from "@/components/ui";
const cardData = [
{
+1 -3
View File
@@ -16,9 +16,7 @@ export const ServiceCard: React.FC<CardServiceProps> = ({
<div className="flex space-x-4 items-center">
{getAWSIcon(serviceAlias)}
<div className="flex flex-col">
<h4 className="font-bold text-md 3xl:text-lg leading-5">
{serviceAlias}
</h4>
<h4 className="font-bold text-md leading-5">{serviceAlias}</h4>
<small className="text-default-500">
{fidingsFailed > 0
? `${fidingsFailed} Failed Findings`
+1 -1
View File
@@ -4,7 +4,7 @@ import React from "react";
export const ServiceSkeletonGrid = () => {
return (
<Card className="w-full h-fit p-4">
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 3xl:grid-cols-5 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4">
{[...Array(25)].map((_, index) => (
<div key={index} className="flex flex-col space-y-4">
<Skeleton className="h-16 rounded-lg">
+1 -3
View File
@@ -14,7 +14,7 @@ export type ActionCardProps = CardProps & {
description: string;
};
const ActionCard = React.forwardRef<HTMLDivElement, ActionCardProps>(
export const ActionCard = React.forwardRef<HTMLDivElement, ActionCardProps>(
({ color, title, icon, description, children, className, ...props }, ref) => {
const colors = React.useMemo(() => {
switch (color) {
@@ -82,5 +82,3 @@ const ActionCard = React.forwardRef<HTMLDivElement, ActionCardProps>(
);
ActionCard.displayName = "ActionCard";
export default ActionCard;