Skip to content

Commit

Permalink
Merge pull request #46 from derechtenap/dev
Browse files Browse the repository at this point in the history
The v0.1.0 Update
  • Loading branch information
derechtenap authored Oct 25, 2023
2 parents 7348297 + e90ec11 commit 38faf81
Show file tree
Hide file tree
Showing 35 changed files with 1,761 additions and 801 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"dayjs",
"embla",
"esnext",
"filesize",
"mantine",
"Marston",
"nextron",
"tabler",
"tanstack",
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

## :sparkles: Features

- **Create & Manage Profiles:** Easily create and manage player profiles for your games.
- **Create A Game With Up to 8 Players:** Set up a game with up to 8 players and customize various game settings.
- **Create & Manage Profiles:** Easily create and manage player profiles for your matches.
- **Create A Match:** Set up a game with and customize various game settings.
- **Analyze Your Latest Matches:** Gain valuable insights into your performance and track your progress.

## :robot: Scripts

Expand Down
51 changes: 34 additions & 17 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
},
"dependencies": {
"@tanstack/react-query": "^4.33.0",
"@tanstack/react-query-devtools": "^4.33.0",
"electron-serve": "^1.1.0",
"electron-store": "^8.1.0"
"electron-store": "^8.1.0",
"filesize": "^10.0.12"
},
"devDependencies": {
"@emotion/react": "^11.11.1",
Expand All @@ -40,6 +40,7 @@
"@next/eslint-plugin-next": "^13.4.19",
"@tabler/icons-react": "^2.32.0",
"@tanstack/eslint-plugin-query": "^4.34.1",
"@tanstack/react-query-devtools": "^4.36.1",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-avatar-editor": "^13.0.0",
Expand Down
20 changes: 20 additions & 0 deletions renderer/components/content/ActionButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { ActionIconProps } from "@mantine/core";
import { ActionIcon, Tooltip } from "@mantine/core";

interface ActionButtonProps extends ActionIconProps {
action: () => void;
icon: JSX.Element;
label: string;
}

const ActionButton = ({ action, icon, label, ...rest }: ActionButtonProps) => {
return (
<Tooltip label={label} withArrow>
<ActionIcon {...rest} onClick={() => action()}>
{icon}
</ActionIcon>
</Tooltip>
);
};

export default ActionButton;
15 changes: 15 additions & 0 deletions renderer/components/content/BadgeMatchStatus.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Badge } from "@mantine/core";
import type { BadgeProps, MantineColor } from "@mantine/core";
import type { MatchStatus } from "types/match";

interface BadgeMatchStatusProps extends BadgeProps {
matchStatus: MatchStatus;
}

const BadgeMatchStatus = ({ matchStatus }: BadgeMatchStatusProps) => {
const badgeColor: MantineColor = matchStatus === "finished" ? "blue" : "red";

return <Badge color={badgeColor}>Status: {matchStatus}</Badge>;
};

export default BadgeMatchStatus;
9 changes: 5 additions & 4 deletions renderer/components/content/PageHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Title, Text, Box } from "@mantine/core";
import { Box, Title, Text } from "@mantine/core";
import type { SpaceProps } from "@mantine/core";

type Props = {
interface PageHeaderProps extends SpaceProps {
children: React.ReactNode;
title: string;
};
}

const PageHeader = ({ children, title }: Props) => {
const PageHeader = ({ children, title }: PageHeaderProps) => {
return (
<Box mb="xl" component="header">
<Title>{title}</Title>
Expand Down
Loading

0 comments on commit 38faf81

Please sign in to comment.