172 Commits

Author SHA1 Message Date
martin
d299176a1e Cleaned up error handling in backend, all error should throw exception 2023-08-27 12:39:23 +02:00
martin
25f70b8ae4 Fixed bug showing game as Closed when disconnecting 2023-08-27 12:13:45 +02:00
martin
c5490ec332 Fixed redirect not working, added autoComplete attribute to login form and hidden lobby button when not logged in 2023-08-27 12:01:30 +02:00
martin
e850391056 Removed TODOs and moved some logic in algo to it's own method 2023-08-23 20:11:31 +02:00
martin
f3652005af Updated dependencies 2023-08-21 23:09:01 +02:00
martin
348eac8214 Redirect to lobby if game does not exists 2023-08-21 23:06:16 +02:00
Martin Berg Alstad
12edaab1f4
Merge pull request #12 from emberal/dependabot/npm_and_yarn/pac-man-board-game/ClientApp/web-vitals-3.4.0
Bump web-vitals from 2.1.4 to 3.4.0 in /pac-man-board-game/ClientApp
2023-08-18 21:04:04 +02:00
Martin Berg Alstad
3c6e8703ba
Merge pull request #13 from emberal/dependabot/npm_and_yarn/pac-man-board-game/ClientApp/types/react-18.2.20
Bump @types/react from 18.2.14 to 18.2.20 in /pac-man-board-game/ClientApp
2023-08-18 21:03:56 +02:00
dependabot[bot]
e973f5cbf8
Bump web-vitals from 2.1.4 to 3.4.0 in /pac-man-board-game/ClientApp
Bumps [web-vitals](https://github.com/GoogleChrome/web-vitals) from 2.1.4 to 3.4.0.
- [Changelog](https://github.com/GoogleChrome/web-vitals/blob/main/CHANGELOG.md)
- [Commits](https://github.com/GoogleChrome/web-vitals/compare/v2.1.4...v3.4.0)

---
updated-dependencies:
- dependency-name: web-vitals
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 19:02:26 +00:00
dependabot[bot]
faef4c6946 Bump vite-plugin-node-polyfills in /pac-man-board-game/ClientApp
Bumps [vite-plugin-node-polyfills](https://github.com/davidmyersdev/vite-plugin-node-polyfills) from 0.9.0 to 0.11.1.
- [Release notes](https://github.com/davidmyersdev/vite-plugin-node-polyfills/releases)
- [Commits](https://github.com/davidmyersdev/vite-plugin-node-polyfills/commits)

---
updated-dependencies:
- dependency-name: vite-plugin-node-polyfills
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 21:01:50 +02:00
dependabot[bot]
7503a906e8
Bump @types/react in /pac-man-board-game/ClientApp
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.14 to 18.2.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 19:01:47 +00:00
dependabot[bot]
adbfc29098 Bump Microsoft.AspNetCore.SpaProxy in /pac-man-board-game
Bumps [Microsoft.AspNetCore.SpaProxy](https://github.com/dotnet/aspnetcore) from 7.0.9 to 7.0.10.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.9...v7.0.10)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.SpaProxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 21:01:36 +02:00
dependabot[bot]
61a6322580 Bump react-router-dom in /pac-man-board-game/ClientApp
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.14.1 to 6.15.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.15.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 21:00:40 +02:00
dependabot[bot]
0302c1ad28 Bump autoprefixer in /pac-man-board-game/ClientApp
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.14 to 10.4.15.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.14...10.4.15)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 20:59:50 +02:00
martin
fdcc1b8f34 Error action 2023-08-07 22:18:28 +02:00
Martin Berg Alstad
f3b1641d4b
Merge pull request #7 from h600878/dependabot/npm_and_yarn/pac-man-board-game/ClientApp/vitest-0.34.1
Bump vitest from 0.31.4 to 0.34.1 in /pac-man-board-game/ClientApp
2023-08-07 17:21:08 +02:00
dependabot[bot]
d7af074dd9
Bump vitest from 0.31.4 to 0.34.1 in /pac-man-board-game/ClientApp
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.31.4 to 0.34.1.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.34.1/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 15:18:35 +00:00
Martin Berg Alstad
2fb5785b8b
Merge pull request #6 from h600878/dependabot/npm_and_yarn/pac-man-board-game/ClientApp/jotai-devtools-0.6.1
Bump jotai-devtools from 0.6.0 to 0.6.1 in /pac-man-board-game/ClientApp
2023-08-07 17:17:49 +02:00
Martin Berg Alstad
79d397cb1f
Merge pull request #9 from h600878/dependabot/npm_and_yarn/pac-man-board-game/ClientApp/vite-4.4.9
Bump vite from 4.4.2 to 4.4.9 in /pac-man-board-game/ClientApp
2023-08-07 17:17:27 +02:00
dependabot[bot]
7a66e864ba
Bump jotai-devtools from 0.6.0 to 0.6.1 in /pac-man-board-game/ClientApp
Bumps [jotai-devtools](https://github.com/jotaijs/jotai-devtools) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/jotaijs/jotai-devtools/releases)
- [Changelog](https://github.com/jotaijs/jotai-devtools/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jotaijs/jotai-devtools/compare/v0.6.0...v0.6.1)

---
updated-dependencies:
- dependency-name: jotai-devtools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 15:16:04 +00:00
dependabot[bot]
c7f0bad4e1
Bump vite from 4.4.2 to 4.4.9 in /pac-man-board-game/ClientApp
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.4.2 to 4.4.9.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.4.9/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 15:15:50 +00:00
Martin Berg Alstad
43b8f01231
Merge pull request #3 from h600878/dependabot/npm_and_yarn/pac-man-board-game/ClientApp/headlessui/react-1.7.16
Bump @headlessui/react from 1.7.15 to 1.7.16 in /pac-man-board-game/ClientApp
2023-08-07 17:15:32 +02:00
dependabot[bot]
a0350a841c
Bump @headlessui/react in /pac-man-board-game/ClientApp
Bumps [@headlessui/react](https://github.com/tailwindlabs/headlessui/tree/HEAD/packages/@headlessui-react) from 1.7.15 to 1.7.16.
- [Release notes](https://github.com/tailwindlabs/headlessui/releases)
- [Changelog](https://github.com/tailwindlabs/headlessui/blob/main/packages/@headlessui-react/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/headlessui/commits/@headlessui/react@v1.7.16/packages/@headlessui-react)

---
updated-dependencies:
- dependency-name: "@headlessui/react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 15:15:24 +00:00
Martin Berg Alstad
e4df1b1869
Merge pull request #8 from h600878/dependabot/npm_and_yarn/pac-man-board-game/ClientApp/jotai-2.3.0
Bump jotai from 2.2.2 to 2.3.0 in /pac-man-board-game/ClientApp
2023-08-07 17:13:58 +02:00
Martin Berg Alstad
2241149eaf
Merge pull request #2 from h600878/dependabot/nuget/pac-man-board-game/Microsoft.AspNetCore.SpaProxy-7.0.9
Bump Microsoft.AspNetCore.SpaProxy from 7.0.8 to 7.0.9 in /pac-man-board-game
2023-08-07 17:13:24 +02:00
dependabot[bot]
26af1a1c88
Bump jotai from 2.2.2 to 2.3.0 in /pac-man-board-game/ClientApp
Bumps [jotai](https://github.com/pmndrs/jotai) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/pmndrs/jotai/releases)
- [Commits](https://github.com/pmndrs/jotai/compare/v2.2.2...v2.3.0)

---
updated-dependencies:
- dependency-name: jotai
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 03:02:39 +00:00
dependabot[bot]
63906de907
Bump Microsoft.AspNetCore.SpaProxy in /pac-man-board-game
Bumps [Microsoft.AspNetCore.SpaProxy](https://github.com/dotnet/aspnetcore) from 7.0.8 to 7.0.9.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.8...v7.0.9)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.SpaProxy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-06 09:33:07 +00:00
Martin Berg Alstad
b10c89d3fe
Create dependabot.yml 2023-08-06 11:32:44 +02:00
martin
5ee2d99d42 Refactored setPlayerInfo to joinGame and some other refactoring and comments 2023-08-05 23:32:25 +02:00
martin
697a4ddd6d Created a homepage, started on a debug menu 2023-08-05 19:52:47 +02:00
martin
296025fd4c Refactored waitForOpen to use wait function, written TSDocs for WSService 2023-08-04 17:50:18 +02:00
martin
c9267d6c9f Added node and pnpm dependencies to pipepline 2023-08-03 21:33:54 +02:00
martin
32a141c7d3 Changed npm commands to pnpm, updated node version in docker to LTS 2023-08-02 22:22:18 +02:00
martin
89d2935323 Fixed test, deprecated method, and changes it's uses 2023-07-31 22:19:55 +02:00
Martin Berg Alstad
dd6b493830
migrated to pnpm 2023-07-30 14:20:43 +02:00
martin
1430f3685c Migrated to pnpm and added vitest coverage 2023-07-30 13:48:11 +02:00
Martin Berg Alstad
1bee3d60b3 Close profileDropdown if clicked outside, removed console.debugs 2023-07-23 12:26:58 +02:00
Martin Berg Alstad
05154798a6 Replaced logout button with profile button, created useToggle hook 2023-07-23 00:03:19 +02:00
Martin Berg Alstad
12b40702c8 Refactored box to use number instead of list of objects 2023-07-22 21:20:30 +02:00
Martin Berg Alstad
d98293e3e7 Class object now implements props 2023-07-22 20:56:30 +02:00
Martin Berg Alstad
f4d91e43d8 Better login screen 2023-07-22 20:44:12 +02:00
Martin Berg Alstad
51bc754ef1 Fixed thisPlayerAtom giving different result than playerAtom 2023-07-22 19:13:19 +02:00
Martin Berg Alstad
fc5f553042 Added protected routes, jotai dev tools 2023-07-22 18:49:48 +02:00
Martin Berg Alstad
2d248c2364 Merged getter and setter atom 2023-07-22 16:52:57 +02:00
Martin Berg Alstad
800ba32064 Created custom implemtation of atomWithStorage, in order to fix undefined on first render 2023-07-22 16:36:08 +02:00
Martin Berg Alstad
aeba6343e3 Started one a simple header 2023-07-22 12:14:21 +02:00
Martin Berg Alstad
bcb5171f78 Get map from global state 2023-07-21 22:03:37 +02:00
Martin Berg Alstad
5eb8738797 Fixed teleportations not working on new map 2023-07-21 17:18:18 +02:00
Martin Berg Alstad
7bb4316f25
Merge pull request #1 from h600878/lobby
Lobby, login, new map, new bugs
2023-07-21 16:51:52 +02:00
Martin Berg Alstad
71b24fedee Fixed typeError on vitest 2023-07-21 16:49:56 +02:00