From dbb65c7ee880cd440941e244ef586398a47c00ef Mon Sep 17 00:00:00 2001 From: Ewan Lyon Date: Wed, 10 Feb 2021 14:02:06 +1100 Subject: [PATCH] Remove dependencies and bump version --- package-lock.json | 2 +- package.json | 16 ++++------ src/dashboard/setup/server/server.tsx | 42 --------------------------- 3 files changed, 6 insertions(+), 54 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0cffc78..bfb9066 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nodecg-csgo-manager", - "version": "0.6.0", + "version": "0.7.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 67e9fb8..a7fdda3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodecg-csgo-manager", - "version": "0.6.0", + "version": "0.7.0", "description": "Layouts for CSGO spectating", "homepage": "", "author": { @@ -135,14 +135,9 @@ "@material-ui/core": "^4.11.2", "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.57", - "@types/recharts": "^1.8.18", - "@types/ws": "^7.4.0", "big-integer": "^1.6.48", - "deep-equal": "^2.0.5", - "fast-deep-equal": "^3.1.3", "gsap": "^3.6.0", "hltv": "^2.21.1", - "livesplit-core": "^0.10.2", "lodash": "^4.17.20", "node-fetch": "^2.6.1", "nodecg": "^1.7.4", @@ -150,15 +145,14 @@ "react": "^16.14.0", "react-beautiful-dnd": "^13.0.0", "react-dom": "^16.14.0", - "react-is": "^16.13.1", "react-twemoji": "^0.3.0", - "recharts": "^2.0.0-beta.8", "styled-components": "^5.2.1", "trash-cli": "^3.1.0", "typeface-roboto": "1.1.13", "use-nodecg": "^0.4.0", "uuid": "^8.3.2", - "ws": "^7.4.1" + "ws": "^7.4.1", + "typescript": "^4.1.3" }, "devDependencies": { "@types/deep-equal": "^1.0.1", @@ -168,6 +162,7 @@ "@types/react-dom": "^16.9.10", "@types/styled-components": "^5.1.7", "@types/uuid": "^8.3.0", + "@types/ws": "^7.4.0", "@typescript-eslint/eslint-plugin": "^4.11.0", "@typescript-eslint/parser": "^4.11.0", "eslint": "^7.16.0", @@ -176,7 +171,6 @@ "eslint-plugin-prettier": "^3.3.0", "eslint-plugin-react": "^7.21.5", "eslint-plugin-react-hooks": "^4.2.0", - "prettier": "^2.2.1", - "typescript": "^4.1.3" + "prettier": "^2.2.1" } } diff --git a/src/dashboard/setup/server/server.tsx b/src/dashboard/setup/server/server.tsx index 57a0dce..ee45801 100644 --- a/src/dashboard/setup/server/server.tsx +++ b/src/dashboard/setup/server/server.tsx @@ -10,7 +10,6 @@ import { theme } from '../../theme'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import { ThemeProvider } from '@material-ui/styles'; -// Import { Tooltip, YAxis, AreaChart, Area } from 'recharts'; // Interfaces import { bundleStatus as ExampleBundle } from '../../../extension/example-data'; @@ -29,27 +28,11 @@ interface ActiveProps { active?: boolean; } -// Const beginningData = [ -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 }, -// { rate: 0 } -// ]; - export const Server: React.FunctionComponent = () => { const [bundleStatus] = useReplicant('bundleStatus', ExampleBundle); const [serverRateRep] = useReplicant('serverRate', 0); const [hlaeActiveRep] = useReplicant('hlaeActive', false); const serverBtn = useRef(null); - // Const [serverData, setServerData] = useState(beginningData); - // const [serverIter, setServerIter] = useState(0); function toggleServer(): void { if (bundleStatus.isServerOn) { @@ -73,20 +56,6 @@ export const Server: React.FunctionComponent = () => { } }, [bundleStatus]); - // UseEffect(() => { - // const interval = setInterval(() => { - // const oldServerData = serverData; - // oldServerData.shift(); - // oldServerData.push({ rate: serverRateRep }); - // setServerData(oldServerData); - // setServerIter(serverIter + 1); - // }, 1000); - - // return (): void => { - // clearInterval(interval); - // }; - // }, [serverData, serverIter, serverRateRep]); - /* This button should only be used for dev Match kills should be cleared at the end of a match or when a new one is started @@ -120,17 +89,6 @@ export const Server: React.FunctionComponent = () => { Msg/s {~~serverRateRep} - {/* - - - - */} HLAE is currently {hlaeActiveRep ? 'active': 'inactive'}