From 3d3e3862be1fde3590958b6fdf78a753049b9f9a Mon Sep 17 00:00:00 2001 From: joseph le Date: Tue, 12 Sep 2023 16:57:58 +0700 Subject: [PATCH] add component ShowLog --- app/utils/runtimeCheckLogs.ts | 2 +- manage-view/src/App.js | 5 +---- manage-view/src/pages/ManageValues.jsx | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/utils/runtimeCheckLogs.ts b/app/utils/runtimeCheckLogs.ts index 4831f51..a94cf04 100644 --- a/app/utils/runtimeCheckLogs.ts +++ b/app/utils/runtimeCheckLogs.ts @@ -79,7 +79,7 @@ export async function runtimeCheckLogs(folderPath) { const filePath = `${folderPath}/${fileName}`; const scan = fs.watchFile( filePath, - { interval: 5000 }, + { interval: 300000 }, async (eventType) => { //check special item, extra RAM, error in log let lines = []; diff --git a/manage-view/src/App.js b/manage-view/src/App.js index 28d4025..21195a5 100644 --- a/manage-view/src/App.js +++ b/manage-view/src/App.js @@ -17,10 +17,7 @@ function App() { }> {/* Render the UserProfile component */} - -

abshjvsakjgvhaskj

- }> + }> diff --git a/manage-view/src/pages/ManageValues.jsx b/manage-view/src/pages/ManageValues.jsx index f60ecde..2976f53 100644 --- a/manage-view/src/pages/ManageValues.jsx +++ b/manage-view/src/pages/ManageValues.jsx @@ -1,6 +1,7 @@ import axios from "axios"; import React, { useEffect, useState } from "react"; import { addKeyValue, deleteValue, getKeyValues } from "../api/apiLog"; +import { Link } from "react-router-dom"; const ManageValues = () => { const [keyValue, setKeyValue] = useState([]); const [key, setKey] = useState([]);