Skip to content

Commit

Permalink
🔖 cleanup for v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ITegs committed Jun 6, 2023
1 parent 5ccb7da commit b554d19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 79 deletions.
6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#3d5a80" />
<meta name="description" content="" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icon.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -21,7 +21,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Beerpong Stats</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
78 changes: 2 additions & 76 deletions src/utils/storage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit b554d19

Please sign in to comment.