204 Commits

Author SHA1 Message Date
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
Martin Berg Alstad
cb9371b33b Fixed bugs when disconnecting and reconnecting, disconnect message is sent before closing websocket connection 2023-07-21 13:54:44 +02:00
Martin Berg Alstad
554b8cff2a Moved event to Game, added leave game button 2023-07-20 23:54:20 +02:00
Martin Berg Alstad
7af502f570 fixed state not updating when joining from lobby 2023-07-20 22:56:35 +02:00
Martin Berg Alstad
f0a701a2fd Added gameId to Game path 2023-07-20 18:26:41 +02:00
Martin Berg Alstad
35334f0308 State for map 2023-07-20 18:09:18 +02:00
Martin Berg Alstad
1db515d796 Json is being handled with camelCase 2023-07-20 18:06:30 +02:00
Martin Berg Alstad
0c9ba333ea Added createGame button 2023-07-20 16:14:27 +02:00
Martin Berg Alstad
bc0bfbea0f Created method to remove a player from a game 2023-07-20 15:00:03 +02:00
Martin Berg Alstad
5e21947870 Created simple login page, and User model 2023-07-20 14:47:13 +02:00
Martin Berg Alstad
745f292eee Reformat UserName to Username, Added DAL with admin login method 2023-07-19 23:25:54 +02:00
Martin Berg Alstad
8f4e8ed481 Switched Component type to React.FC type 2023-07-19 22:53:47 +02:00
Martin Berg Alstad
65b69a763f Added endpoint for creating and joining a game 2023-07-19 18:45:40 +02:00
Martin Berg Alstad
7e8dc44ce9 Ghost characters are saved in backend after each move 2023-07-19 17:09:47 +02:00
Martin Berg Alstad
23ee40c96d Refactored DiceCup to store the previous value 2023-07-19 16:19:51 +02:00
Martin Berg Alstad
767189821d Players can rejoin when refreshing window, changed Name to UserName 2023-07-19 16:03:43 +02:00
Martin Berg Alstad
01757f825e Tests, comments and createGame method 2023-07-18 18:19:54 +02:00
Martin Berg Alstad
c7bc473572 Split up methods in controllers, added tests for GameService, refactored GameGroup name to Game and directory Game to GameStuff 2023-07-18 17:09:27 +02:00
Martin Berg Alstad
fab3e3d13f Separated WebSocketService to another service 2023-07-18 14:12:53 +02:00