Commit Graph

199 Commits

Author SHA1 Message Date
Anduin 038124e7db Update default initialization and script import paths
Changed the default initialization of Accepter, GameId, and Game properties in Challenge model. Also modified how the 'autodark.js' and 'player.js' scripts are imported in 'layout.js' to use relative paths for better compatibility.
2024-05-19 16:28:52 +00:00
Anduin ab1fbea2c7 Add functionality to accept a challenge in chess game
Introduced capability to accept a challenge, updated challenge viewer model to include challenge id, and updated the In-Memory database to handle adding new games. The corresponding endpoint was updated and the front-end scripts were added to handle challenge acceptance and game redirection. Changes were also made to ensure challenges are only seen when not accepted in the public view.
2024-05-19 16:18:02 +00:00
Nuget Ninja 202a157f14 Auto csproj fix and update by bot. 2024-03-31 03:31:18 +00:00
Nuget Ninja e286939cbc Auto csproj fix and update by bot. 2024-03-25 03:22:31 +00:00
Nuget Ninja 3088c02a32 Auto csproj fix and update by bot. 2024-03-22 03:22:14 +00:00
Nuget Ninja eb4fe921b8 Auto csproj fix and update by bot. 2024-03-20 03:22:10 +00:00
Nuget Ninja 6d709b36e9 Auto csproj fix and update by bot. 2024-03-17 19:02:52 +00:00
Nuget Ninja b767083eb4 Auto csproj fix and update by bot. 2024-03-17 15:53:08 +00:00
Nuget Ninja dafdfafb07 Auto csproj fix and update by bot. 2024-03-17 12:26:44 +00:00
Nuget Ninja 1ae979f803 Auto csproj fix and update by bot. 2024-03-17 03:22:37 +00:00
Nuget Ninja 1596d34f69 Auto csproj fix and update by bot. 2024-03-16 03:22:12 +00:00
xuef 73cc40ac5b Upgrade packages. 2024-03-15 07:42:00 +00:00
Nuget Ninja 6339925ca4 Auto csproj fix and update by bot. 2024-03-14 03:22:20 +00:00
Nuget Ninja 2ee4baec5a Auto csproj fix and update by bot. 2024-03-13 03:22:14 +00:00
Nuget Ninja 255d56b16b Auto csproj fix and update by bot. 2024-02-28 14:06:05 +00:00
xuef d9e55bef15 Add WebTools Attributes import in GamesController
A new import statement for 'Aiursoft.WebTools.Attributes' has been added to the GamesController. This additional library will enhance the functionality and capabilities of the GamesController in the ChessServer project.
2024-02-21 09:19:33 +00:00
xuef c93ef4f495 Update Aiursoft.WebTools package and enforce websocket
The Aiursoft.WebTools package has been upgraded from version 8.0.0 to version 8.0.1. Also, the 'EnforceWebSocket' attribute has been added to the 'GetWebSocket' method in the GamesController to ensure that it only accepts WebSocket requests.
2024-02-21 09:19:16 +00:00
Nuget Ninja 5299228616 Auto csproj fix and update by bot. 2024-02-19 09:37:37 +00:00
Anduin Xue 9bc85ed98c Refactor code for better readability and efficiency
The changes primarily focus on simplifying constructors to increase readability. This is done by organizing class properties and functions in a more efficient manner. In addition, strings are accessed using indexing rather than substrings - a technique that enhances execution speed. Not only does this change clarify the controllers and classes, but also significantly improves the overall code quality and efficiency.
2024-02-19 09:23:23 +00:00
Anduin Xue 4a70a611e4 Replace 'Add' with 'Append' in CORS header methods
In the AllowCrossOriginMiddleware, the method for adding headers to the response has been adjusted. Instead of the 'Add' method which could lead to potential overwriting, 'Append' method is used to ensure that CORS headers are always updated correctly.
2024-02-19 09:21:02 +00:00
Anduin Xue 621644efe4 Upgrade to net8.0 2024-02-19 09:12:42 +00:00
Nuget Ninja 20482fa303 Auto csproj fix and update by bot. 2024-02-17 03:22:13 +00:00
Nuget Ninja 1e842de49b Auto csproj fix and update by bot. 2024-02-15 03:22:09 +00:00
Nuget Ninja 04ab88c8a7 Auto csproj fix and update by bot. 2024-02-04 11:18:01 +00:00
Nuget Ninja 9598d99be2 Auto csproj fix and update by bot. 2024-02-03 03:22:11 +00:00
Nuget Ninja b5d6570e0c Auto csproj fix and update by bot. 2024-02-02 09:11:42 +00:00
Nuget Ninja 6a43be4b31 Auto csproj fix and update by bot. 2024-02-02 03:22:10 +00:00
AnduinXue 4480a78b42 Upgrade packages. 2024-01-21 06:56:24 +00:00
AnduinXue 4bfbbd8e5c Fix usings. 2024-01-16 15:06:43 +00:00
AnduinXue 56846d4074 Refactor namespace. 2024-01-16 15:00:35 +00:00
AnduinXue 50f7b07e5b Fix a layout. 2024-01-13 14:45:10 +00:00
AnduinXue 8095dee409 FIx more issues with challenges. 2024-01-13 11:21:05 +00:00
AnduinXue 701826fbf2 Better formats. 2024-01-13 11:17:19 +00:00
AnduinXue 04f5c3ed3c Move new files. 2024-01-13 11:13:35 +00:00
AnduinXue 5e9bde7e51 Remove some hacks. 2024-01-13 11:11:06 +00:00
AnduinXue 7453a05b98 More room features. 2024-01-13 10:45:32 +00:00
AnduinXue 5a0c99a95b More index features. 2024-01-13 07:15:04 +00:00
Nuget Ninja c142c8d399 Auto csproj fix and update by bot. 2024-01-12 03:21:40 +00:00
AnduinXue 5b341cf241 Settings.json. 2024-01-11 14:16:41 +00:00
Nuget Ninja 20e87d7bbb Auto csproj fix and update by bot. 2024-01-05 17:25:26 +00:00
AnduinXue 1d648ff9ce Upgrade packages. 2024-01-05 16:53:29 +00:00
Nuget Ninja 771f752b26 Auto csproj fix and update by bot. 2024-01-04 13:34:33 +00:00
Anduin Xue 6e01773bf1 New high performance. 2024-01-04 07:02:30 +00:00
Anduin Xue e67b4907ac Pure websocket game. 2024-01-02 06:37:00 +00:00
Anduin Xue 91b01b6341 Add challenge APIs. 2024-01-02 05:48:45 +00:00
AnduinXue bece11f2c8 favicon 2024-01-01 11:46:31 +00:00
AnduinXue b40b2e0eda 1.2.0 2024-01-01 11:33:10 +00:00
AnduinXue ef482eae6a 1.1.2 autodark.js 2024-01-01 09:12:24 +00:00
AnduinXue b76e5b3b08 New readme. 2024-01-01 07:45:09 +00:00
AnduinXue 62ad261e50 fix header. 2024-01-01 07:35:15 +00:00