Skip to content

Commit

Permalink
Remove dependencies and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Feb 10, 2021
1 parent 7f3d215 commit dbb65c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 54 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 5 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodecg-csgo-manager",
"version": "0.6.0",
"version": "0.7.0",
"description": "Layouts for CSGO spectating",
"homepage": "",
"author": {
Expand Down Expand Up @@ -135,30 +135,24 @@
"@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",
"parcel": "^1.12.4",
"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",
Expand All @@ -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",
Expand All @@ -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"
}
}
42 changes: 0 additions & 42 deletions src/dashboard/setup/server/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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>('bundleStatus', ExampleBundle);
const [serverRateRep] = useReplicant<number>('serverRate', 0);
const [hlaeActiveRep] = useReplicant<boolean>('hlaeActive', false);
const serverBtn = useRef<StyledToggleButton>(null);
// Const [serverData, setServerData] = useState(beginningData);
// const [serverIter, setServerIter] = useState(0);

function toggleServer(): void {
if (bundleStatus.isServerOn) {
Expand All @@ -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
Expand Down Expand Up @@ -120,17 +89,6 @@ export const Server: React.FunctionComponent = () => {
</Grid>
</Grid>
<Typography>Msg/s {~~serverRateRep}</Typography>
{/* <AreaChart width={242} height={100} data={serverData} margin={{ left: -40 }} key={serverIter}>
<Area
type="monotone"
dataKey="rate"
stroke="#8884d8"
fill="#8884d8"
animationDuration={0}
/>
<Tooltip />
<YAxis domain={[0, 60]} />
</AreaChart> */}
<HlaeActive active={hlaeActiveRep}>
HLAE is currently {hlaeActiveRep ? 'active': 'inactive'}
</HlaeActive>
Expand Down

0 comments on commit dbb65c7

Please sign in to comment.