diff --git a/client/build/asset-manifest.json b/client/build/asset-manifest.json
index 2ae5ae0..1945e6c 100644
--- a/client/build/asset-manifest.json
+++ b/client/build/asset-manifest.json
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.30760b67.css",
- "main.js": "/static/js/main.3cb52c96.js",
+ "main.js": "/static/js/main.9881449d.js",
"static/js/453.d456ce70.chunk.js": "/static/js/453.d456ce70.chunk.js",
"index.html": "/index.html",
"main.30760b67.css.map": "/static/css/main.30760b67.css.map",
- "main.3cb52c96.js.map": "/static/js/main.3cb52c96.js.map",
+ "main.9881449d.js.map": "/static/js/main.9881449d.js.map",
"453.d456ce70.chunk.js.map": "/static/js/453.d456ce70.chunk.js.map"
},
"entrypoints": [
"static/css/main.30760b67.css",
- "static/js/main.3cb52c96.js"
+ "static/js/main.9881449d.js"
]
}
\ No newline at end of file
diff --git a/client/build/index.html b/client/build/index.html
index f2c01c9..62137db 100644
--- a/client/build/index.html
+++ b/client/build/index.html
@@ -1 +1 @@
-
React App
\ No newline at end of file
+React App
\ No newline at end of file
diff --git a/client/src/History.js b/client/src/History.js
index b2d89c2..9a517a4 100644
--- a/client/src/History.js
+++ b/client/src/History.js
@@ -1,17 +1,5 @@
import React, { useState, useEffect } from 'react';
-import { Link } from 'react-router-dom';
import axios from 'axios';
-import {
- Area,
- XAxis,
- YAxis,
- CartesianGrid,
- Tooltip,
- Legend,
- ResponsiveContainer,
- ComposedChart,
- Bar,
-} from 'recharts';
import './App.css';
function History() {
@@ -61,87 +49,11 @@ function History() {
) : (
- {historyData.map((resource) => (
-
-
-
- {resource.name}
-
-
-
- Type: {resource.type} | Uptime: {resource.uptime}% | Avg Response: {resource.avgResponseTime}ms
-
-
- {resource.checks.length > 0 ? (
-
-
-
-
-
-
-
- {
- if (name === 'Response Time (ms)') return `${value}ms`;
- if (name === 'Status') return value === 1 ? 'UP' : 'DOWN';
- return value;
- }}
- />
-
-
-
-
-
-
- ) : (
-
- No check data available
-
- )}
-
- {/* Statistics Summary */}
-
-
-
{resource.checks.length}
-
Total Checks
-
-
-
{resource.uptime}%
-
Uptime
-
-
-
{resource.avgResponseTime}ms
-
Avg Response
-
-
-
- {resource.checks.filter((c) => c.status === 'up').length}/
- {resource.checks.length}
-
-
Successful Checks
-
-
+ {historyData && historyData.map((resource) => (
+
+
{resource.name}
+
Type: {resource.type} | Uptime: {resource.uptime}% | Avg Response: {resource.avgResponseTime}ms
+
Total checks: {resource.checks ? resource.checks.length : 0}
))}
@@ -150,18 +62,4 @@ function History() {
);
}
-function prepareChartData(checks) {
- return checks.map((check) => {
- const date = new Date(check.checked_at);
- return {
- time: date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }),
- date: date.toLocaleDateString(),
- responseTime: check.response_time || 0,
- status: check.status,
- statusNumeric: check.status === 'up' ? 1 : 0,
- statusCode: check.status_code,
- };
- });
-}
-
export default History;