From b554d198851124d56a85255e26c0bc189de4e422 Mon Sep 17 00:00:00 2001 From: Johannes Pahle Date: Tue, 6 Jun 2023 10:52:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20cleanup=20for=20v1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 6 ++-- src/utils/storage.tsx | 78 ++----------------------------------------- 2 files changed, 5 insertions(+), 79 deletions(-) diff --git a/public/index.html b/public/index.html index 551ecac..fc43287 100644 --- a/public/index.html +++ b/public/index.html @@ -2,11 +2,11 @@ - + - + - React App + Beerpong Stats diff --git a/src/utils/storage.tsx b/src/utils/storage.tsx index 0d20587..3303378 100644 --- a/src/utils/storage.tsx +++ b/src/utils/storage.tsx @@ -2,32 +2,7 @@ import { Game, Player, Team } from "./types"; import { v4 as uuidv4 } from "uuid"; -const Scoreboard: Player[] = [ - { - id: "ba85ca19-aa52-418c-bc95-8e310a29e56c", - name: "Tom", - games: 8, - wins: 8, - }, - { - id: "c416c1f4-c58f-4251-86f8-6f5737a3e1a4", - name: "Yannic", - games: 1, - wins: 1, - }, - { - id: "11457752-1ff5-4ad0-a77a-68ebc5231bf3", - name: "Johannes", - games: 10, - wins: 6, - }, - { - id: "97ae4c1a-7b5d-47e8-9f13-49fe8b6dd7cf", - name: "Hanne", - games: 8, - wins: 8, - }, -]; +const Scoreboard: Player[] = []; export const getScoreboard = () => { return Scoreboard; @@ -45,56 +20,7 @@ export const addPlayer = (name: string) => { return newPlayer; }; -const Games: Game[] = [ - { - id: "a0903ee2-248b-4c40-89b1-946821ebcea6", - red: [ - "11457752-1ff5-4ad0-a77a-68ebc5231bf3", - "97ae4c1a-7b5d-47e8-9f13-49fe8b6dd7cf", - ], - blue: [ - "ba85ca19-aa52-418c-bc95-8e310a29e56c", - "c416c1f4-c58f-4251-86f8-6f5737a3e1a4", - ], - winner: Team.RED, - }, - { - id: "acbdc1a4-811c-47da-9023-4d324fc5a299", - red: [ - "ba85ca19-aa52-418c-bc95-8e310a29e56c", - "97ae4c1a-7b5d-47e8-9f13-49fe8b6dd7cf", - ], - blue: [ - "c416c1f4-c58f-4251-86f8-6f5737a3e1a4", - "11457752-1ff5-4ad0-a77a-68ebc5231bf3", - ], - winner: Team.BLUE, - }, - { - id: "a0673ee2-248b-4c40-89b1-946821ebaea6", - red: [ - "c416c1f4-c58f-4251-86f8-6f5737a3e1a4", - "11457752-1ff5-4ad0-a77a-68ebc5231bf3", - ], - blue: [ - "ba85ca19-aa52-418c-bc95-8e310a29e56c", - "97ae4c1a-7b5d-47e8-9f13-49fe8b6dd7cf", - ], - winner: Team.BLUE, - }, - { - id: "a0903ee2-248b-4c40-89b1-946821ebaea6", - red: [ - "c416c1f4-c58f-4251-86f8-6f5737a3e1a4", - "97ae4c1a-7b5d-47e8-9f13-49fe8b6dd7cf", - ], - blue: [ - "ba85ca19-aa52-418c-bc95-8e310a29e56c", - "11457752-1ff5-4ad0-a77a-68ebc5231bf3", - ], - winner: Team.RED, - }, -]; +const Games: Game[] = []; export const getGames = () => { return Games;