Skip to content

Commit

Permalink
can I steal some time
Browse files Browse the repository at this point in the history
Signed-off-by: MisileLab <[email protected]>
  • Loading branch information
MisileLab committed Nov 26, 2023
1 parent 8bdde1a commit 498fa28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 4 additions & 8 deletions projects/qubit/components/main.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/**
* This code was generated by v0 by Vercel.
* @see https://v0.dev/t/jvl9wKojugu
*/
import Link from "next/link"
import { CardTitle, CardHeader, CardContent, Card } from "@/components/ui/card"
import { readFileSync } from "fs"

export function Main() {
const data = JSON.parse(readFileSync("data.json", "utf-8"));
return (
<div className="flex flex-col h-screen">
<header className="flex items-center justify-between h-16 px-6 shadow-sm bg-white dark:bg-gray-800">
Expand Down Expand Up @@ -113,8 +111,7 @@ export function Main() {
</svg>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">23</div>
<p className="text-xs text-zinc-500 dark:text-zinc-400">in the last 24 hours</p>
<div className="text-2xl font-bold">{data.resnum.recscan}</div>
</CardContent>
</Card>
<Card>
Expand All @@ -138,8 +135,7 @@ export function Main() {
</svg>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">17</div>
<p className="text-xs text-zinc-500 dark:text-zinc-400">in the last 24 hours</p>
<div className="text-2xl font-bold">{data.resnum.vulfound}</div>
</CardContent>
</Card>
{/*<Card>
Expand Down
8 changes: 8 additions & 0 deletions projects/qubit/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"resnum": {"recscan": 1, "vulfound": 1},
"scans": [
{"path": "/home/misile/bruhnojs", "leaks": [
{"name": "XZ", "description": "a", "Line": 1, "Column": 1}
]}
]
}

0 comments on commit 498fa28

Please sign in to comment.