// Copyright (C) 2019 Intel Corporation. All rights reserved. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception import { useEffect, useState } from "react"; import "./App.css"; import CardMenu from "./CardMenu"; import { Divider, Typography, Col, Row, Button } from "antd"; import { Empty, Spin } from "antd"; import Description from "./Descrpition"; const { Title } = Typography; function App() { const [dataList, setDataList] = useState>([]); const [results, setResults] = useState({}); const [id, setId] = useState(); const [resultReload, setResultReload] = useState(0); const [tableLoading, setTableLoading] = useState(false); const [isLoaded, setIsLoaded] = useState(false); const [result, setResult] = useState({}); useEffect(() => { fetch(import.meta.env.VITE_SERVER_URL + "/get_list") .then((res) => { return res.json(); }) .then((body) => { setDataList(body.results); setIsLoaded(true); }); const timer = setInterval(() => { fetch(import.meta.env.VITE_SERVER_URL + "/get_list") .then((res) => { return res.json(); }) .then((body) => { setDataList(body.results); setIsLoaded(true); }); }, 3000); }, []); useEffect(() => { setTableLoading(true); fetch(import.meta.env.VITE_SERVER_URL + `/get_list?id=${id}`) .then((res) => { return res.json(); }) .then((body) => { setResults(body); console.log(results); setTableLoading(false); }); }, [id, resultReload]); const select_uuid = { res: dataList, setId, setResult }; if (!isLoaded) { return (
); } if (isLoaded && !dataList) { return (
); } return (

WebAssembly Micro Runtime fuzzing test system
{/* {dataList && } */} {} { }
); } export default App;