Skip to content

Commit

Permalink
Bump dependencies, remove husky
Browse files Browse the repository at this point in the history
  • Loading branch information
JensForstmann committed Nov 5, 2023
1 parent 5d614e1 commit fe8ee47
Show file tree
Hide file tree
Showing 13 changed files with 161 additions and 126 deletions.
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

30 changes: 15 additions & 15 deletions backend/package-lock.json

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

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@tsoa/cli": "^5.1.1",
"@types/debug": "^4.1.10",
"@types/express": "^4.17.20",
"@types/node": "^20.8.7",
"@types/node": "^20.8.10",
"@types/steamid": "^2.0.2",
"@types/ws": "^8.5.8",
"nodemon": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion backend/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Commands = [
'VERSION',
'*',
] as const;
export type TCommand = typeof Commands[number];
export type TCommand = (typeof Commands)[number];

const commandMapping = new Map<string, TCommand>();
commandMapping.set('ban', 'BAN');
Expand Down
12 changes: 6 additions & 6 deletions common/types/electionStep.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const Whos = ['TEAM_A', 'TEAM_B', 'TEAM_X', 'TEAM_Y'] as const;
export type TWho = typeof Whos[number];
export type TWho = (typeof Whos)[number];

export const SideFixeds = [
'TEAM_A_CT',
Expand All @@ -11,16 +11,16 @@ export const SideFixeds = [
'TEAM_Y_CT',
'TEAM_Y_T',
] as const;
export type TSideFixed = typeof SideFixeds[number];
export type TSideFixed = (typeof SideFixeds)[number];

export const MapModesAdd = ['FIXED', 'PICK', 'RANDOM_PICK', 'AGREE'] as const;
export type TMapModeAdd = typeof MapModesAdd[number];
export type TMapModeAdd = (typeof MapModesAdd)[number];

export const MapModesSkip = ['BAN', 'RANDOM_BAN'] as const;
export type TMapModeSkip = typeof MapModesSkip[number];
export type TMapModeSkip = (typeof MapModesSkip)[number];

export const MapModes = [...MapModesAdd, ...MapModesSkip] as const;
export type TMapMode = typeof MapModes[number];
export type TMapMode = (typeof MapModes)[number];

export interface IFixedMap {
mode: 'FIXED';
Expand All @@ -46,7 +46,7 @@ export interface IRandomMapBan {
}

export const SideModes = ['FIXED', 'PICK', 'RANDOM', 'KNIFE'] as const;
export type TSideMode = typeof SideModes[number];
export type TSideMode = (typeof SideModes)[number];

export interface IFixedSide {
mode: 'FIXED';
Expand Down
4 changes: 2 additions & 2 deletions common/types/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { IPlayer } from './player';
import { ITeam, ITeamCreateDto } from './team';

export const MatchEndActions = ['KICK_ALL', 'QUIT_SERVER', 'NONE'] as const;
export type TMatchEndAction = typeof MatchEndActions[number];
export type TMatchEndAction = (typeof MatchEndActions)[number];

export const MatchStates = ['ELECTION', 'MATCH_MAP', 'FINISHED'] as const;
export type TMatchSate = typeof MatchStates[number];
export type TMatchSate = (typeof MatchStates)[number];

export type TMatchMode = 'SINGLE' | 'LOOP';

Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
90 changes: 45 additions & 45 deletions frontend/package-lock.json

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

6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"@solidjs/router": "^0.8.3",
"@tailwindcss/typography": "^0.5.10",
"autoprefixer": "^10.4.16",
"daisyui": "^3.9.3",
"daisyui": "^3.9.4",
"postcss": "^8.4.31",
"solid-js": "^1.8.3",
"tailwindcss": "^3.3.3",
"solid-js": "^1.8.5",
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite-plugin-solid": "^2.7.2"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/MatchList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const MatchTableColumnLabels: Record<TMatchTableColumns, string> = {
DETAILS: t('Details'),
};

export type TMatchTableColumns = typeof MatchTableColumns[number];
export type TMatchTableColumns = (typeof MatchTableColumns)[number];

export type TColumnsToShow = Partial<Record<TMatchTableColumns, boolean>>;

Expand Down
10 changes: 6 additions & 4 deletions frontend/src/pages/gameServers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ export const GameServersPage: Component = () => {
'DELETE',
`/api/gameservers/${managedGameServer.ip}/${managedGameServer.port}`
);
setData('managedGameServers', (exi) =>
exi?.filter(
(exi) => exi.ip !== managedGameServer.ip || exi.port !== managedGameServer.port
)
setData(
'managedGameServers',
(exi) =>
exi?.filter(
(exi) => exi.ip !== managedGameServer.ip || exi.port !== managedGameServer.port
)
);
};

Expand Down
Loading

0 comments on commit fe8ee47

Please sign in to comment.