From 34b58a94a502fef994b4cf769cc099656c1cb252 Mon Sep 17 00:00:00 2001 From: Anduin Xue Date: Wed, 13 Nov 2024 05:10:49 +0000 Subject: [PATCH] Update package versions and clean code imports Updated various package references to their latest versions in the project and test files. Additionally, removed unnecessary `Aiursoft.AiurObserver.Extensions` imports from several controller files to clean up the code. --- src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj | 4 ++-- src/Aiursoft.ChessServer/Controllers/ChallengesController.cs | 2 +- src/Aiursoft.ChessServer/Controllers/ChatController.cs | 1 - src/Aiursoft.ChessServer/Controllers/GamesController.cs | 1 - src/Aiursoft.ChessServer/Controllers/PveController.cs | 1 - .../Aiursoft.ChessServer.Tests.csproj | 4 ++-- 6 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj b/src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj index 62f63c2..ccc4edc 100644 --- a/src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj +++ b/src/Aiursoft.ChessServer/Aiursoft.ChessServer.csproj @@ -10,8 +10,8 @@ enable - - + + diff --git a/src/Aiursoft.ChessServer/Controllers/ChallengesController.cs b/src/Aiursoft.ChessServer/Controllers/ChallengesController.cs index 1bf8849..f73cf1e 100644 --- a/src/Aiursoft.ChessServer/Controllers/ChallengesController.cs +++ b/src/Aiursoft.ChessServer/Controllers/ChallengesController.cs @@ -1,5 +1,5 @@ using System.ComponentModel.DataAnnotations; -using Aiursoft.AiurObserver.Extensions; +using Aiursoft.AiurObserver; using Aiursoft.AiurObserver.WebSocket.Server; using Aiursoft.ChessServer.Attributes; using Aiursoft.ChessServer.Data; diff --git a/src/Aiursoft.ChessServer/Controllers/ChatController.cs b/src/Aiursoft.ChessServer/Controllers/ChatController.cs index a9043f6..5ae7cfc 100644 --- a/src/Aiursoft.ChessServer/Controllers/ChatController.cs +++ b/src/Aiursoft.ChessServer/Controllers/ChatController.cs @@ -1,6 +1,5 @@ using System.Text.Json; using Aiursoft.AiurObserver; -using Aiursoft.AiurObserver.Extensions; using Aiursoft.AiurObserver.WebSocket.Server; using Aiursoft.ChessServer.Attributes; using Aiursoft.ChessServer.Data; diff --git a/src/Aiursoft.ChessServer/Controllers/GamesController.cs b/src/Aiursoft.ChessServer/Controllers/GamesController.cs index 4f47266..681368e 100644 --- a/src/Aiursoft.ChessServer/Controllers/GamesController.cs +++ b/src/Aiursoft.ChessServer/Controllers/GamesController.cs @@ -3,7 +3,6 @@ using Aiursoft.AiurObserver.WebSocket.Server; using Aiursoft.ChessServer.Data; using Aiursoft.ChessServer.Models.ViewModels; using Microsoft.AspNetCore.Mvc; -using Aiursoft.AiurObserver.Extensions; using Aiursoft.ChessServer.Attributes; using Aiursoft.WebTools.Attributes; using Microsoft.AspNetCore.Connections; diff --git a/src/Aiursoft.ChessServer/Controllers/PveController.cs b/src/Aiursoft.ChessServer/Controllers/PveController.cs index 082e000..5b31942 100644 --- a/src/Aiursoft.ChessServer/Controllers/PveController.cs +++ b/src/Aiursoft.ChessServer/Controllers/PveController.cs @@ -4,7 +4,6 @@ using Aiursoft.ChessServer.Data; using Aiursoft.ChessServer.Models; using Aiursoft.CSTools.Services; using Microsoft.AspNetCore.Mvc; -using Aiursoft.AiurObserver.Extensions; using Aiursoft.ChessServer.Services; using Chess; diff --git a/tests/Aiursoft.ChessServer.Tests/Aiursoft.ChessServer.Tests.csproj b/tests/Aiursoft.ChessServer.Tests/Aiursoft.ChessServer.Tests.csproj index 85f5e8b..9369143 100644 --- a/tests/Aiursoft.ChessServer.Tests/Aiursoft.ChessServer.Tests.csproj +++ b/tests/Aiursoft.ChessServer.Tests/Aiursoft.ChessServer.Tests.csproj @@ -15,8 +15,8 @@ - - + +