From 498fa289df31358f8f38dc87396c1c7df4772c7e Mon Sep 17 00:00:00 2001 From: MisileLab Date: Sun, 26 Nov 2023 20:14:12 +0900 Subject: [PATCH] can I steal some time Signed-off-by: MisileLab --- projects/qubit/components/main.tsx | 12 ++++-------- projects/qubit/data.json | 8 ++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 projects/qubit/data.json diff --git a/projects/qubit/components/main.tsx b/projects/qubit/components/main.tsx index 629789487..a590f5494 100644 --- a/projects/qubit/components/main.tsx +++ b/projects/qubit/components/main.tsx @@ -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 (
@@ -113,8 +111,7 @@ export function Main() { -
23
-

in the last 24 hours

+
{data.resnum.recscan}
@@ -138,8 +135,7 @@ export function Main() { -
17
-

in the last 24 hours

+
{data.resnum.vulfound}
{/* diff --git a/projects/qubit/data.json b/projects/qubit/data.json new file mode 100644 index 000000000..2752b5a4a --- /dev/null +++ b/projects/qubit/data.json @@ -0,0 +1,8 @@ +{ + "resnum": {"recscan": 1, "vulfound": 1}, + "scans": [ + {"path": "/home/misile/bruhnojs", "leaks": [ + {"name": "XZ", "description": "a", "Line": 1, "Column": 1} + ]} + ] +}