From 5cf251042854cacb01f36c28b6b49c9359d5ba11 Mon Sep 17 00:00:00 2001 From: khorne07 Date: Mon, 8 Nov 2021 02:57:32 -0500 Subject: [PATCH] Added websocket --- web/src/App.jsx | 30 +++-- web/src/components/EndpointTable.jsx | 84 +++++++------- web/src/components/Endpoints.jsx | 157 +++++++++++---------------- web/src/components/Footer.jsx | 108 +++++++++--------- web/src/components/Header.jsx | 2 +- web/src/hooks/index.js | 2 + web/src/hooks/useSocket.js | 53 +++++++++ 7 files changed, 226 insertions(+), 210 deletions(-) create mode 100644 web/src/hooks/index.js create mode 100644 web/src/hooks/useSocket.js diff --git a/web/src/App.jsx b/web/src/App.jsx index 56e0b7d..95cc2ba 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -1,19 +1,17 @@ -import { useState } from 'react' -import Header from './components/Header' -import Footer from './components/Footer' -import Endpoints from './components/Endpoints' -import { QueryClient, QueryClientProvider, useQuery } from 'react-query' -const queryClient = new QueryClient() +import Header from "./components/Header"; +import Footer from "./components/Footer"; +import Endpoints from "./components/Endpoints"; + function App() { - return ( - -
-
- -
-