Refactor and update various components of EchoHub.Server

- Updated launchSettings.json for consistency.
- Refactored FileValidationHelper to improve image validation logic.
- Enhanced ServerDirectoryService for better connection handling and user count updates.
- Improved DatabaseSetup for legacy database handling and seeding default channels.
- Refined FirstRunSetup to ensure JWT secret generation.
- Removed appsettings.Development.json as it is no longer needed.
- Updated EchoHub.Tests project file for consistency.
- Added unit tests for FileValidationHelper and PresenceTracker with improved assertions.
- Updated ValidationConstantsTests to ensure regex validations are correct.
- Cleaned up solution file formatting for better readability.
This commit is contained in:
HueByte
2026-02-19 10:12:28 +01:00
parent 32e01e8d71
commit 9975f4e4be
57 changed files with 4401 additions and 4378 deletions
+83 -83
View File
@@ -1,83 +1,83 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json",
"metadata": [
{
"src": [
{
"src": "../src/EchoHub.Core/bin/Release/net10.0",
"files": ["EchoHub.Core.dll"]
}
],
"dest": "_api_meta/core",
"filter": "filterConfig.yml"
},
{
"src": [
{
"src": "../src/EchoHub.Server/bin/Release/net10.0",
"files": ["EchoHub.Server.dll"]
}
],
"dest": "_api_meta/server",
"filter": "filterConfig.yml"
},
{
"src": [
{
"src": "../src/EchoHub.Client/bin/Release/net10.0",
"files": ["EchoHub.Client.dll"]
}
],
"dest": "_api_meta/client",
"filter": "filterConfig.yml"
}
],
"build": {
"content": [
{
"files": ["**/*.{md,yml}"],
"exclude": ["_site/**", "_api_meta/**"]
},
{
"src": "_api_meta/core",
"dest": "api/core",
"files": ["*.yml"],
"exclude": ["toc.yml"]
},
{
"src": "_api_meta/server",
"dest": "api/server",
"files": ["*.yml"],
"exclude": ["toc.yml"]
},
{
"src": "_api_meta/client",
"dest": "api/client",
"files": ["*.yml"],
"exclude": ["toc.yml"]
}
],
"resource": [
{
"files": ["images/**"]
}
],
"output": "_site",
"template": ["default", "modern", "templates/echohub"],
"globalMetadata": {
"_appName": "EchoHub",
"_appTitle": "EchoHub Documentation",
"_appLogoPath": "images/hue_icon.svg",
"_appFaviconPath": "images/hue_icon.svg",
"_appFooter": "<div class='footer-custom'><div class='footer-inner'><span class='footer-brand'>EchoHub</span><span class='footer-sep'>&middot;</span><a href='https://github.com/HueByte/EchoHub'>GitHub</a><span class='footer-sep'>&middot;</span><a href='https://echohub.voidcube.cloud'>Website</a><span class='footer-sep'>&middot;</span><span class='footer-credit'>Built with <a href='https://dotnet.github.io/docfx'>DocFX</a></span></div></div>",
"_enableSearch": true,
"_disableContribution": false,
"_gitContribute": {
"repo": "https://github.com/HueByte/EchoHub",
"branch": "master",
"path": "docs"
}
},
"markdownEngineName": "markdig"
}
}
{
"$schema": "https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json",
"metadata": [
{
"src": [
{
"src": "../src/EchoHub.Core/bin/Release/net10.0",
"files": ["EchoHub.Core.dll"]
}
],
"dest": "_api_meta/core",
"filter": "filterConfig.yml"
},
{
"src": [
{
"src": "../src/EchoHub.Server/bin/Release/net10.0",
"files": ["EchoHub.Server.dll"]
}
],
"dest": "_api_meta/server",
"filter": "filterConfig.yml"
},
{
"src": [
{
"src": "../src/EchoHub.Client/bin/Release/net10.0",
"files": ["EchoHub.Client.dll"]
}
],
"dest": "_api_meta/client",
"filter": "filterConfig.yml"
}
],
"build": {
"content": [
{
"files": ["**/*.{md,yml}"],
"exclude": ["_site/**", "_api_meta/**"]
},
{
"src": "_api_meta/core",
"dest": "api/core",
"files": ["*.yml"],
"exclude": ["toc.yml"]
},
{
"src": "_api_meta/server",
"dest": "api/server",
"files": ["*.yml"],
"exclude": ["toc.yml"]
},
{
"src": "_api_meta/client",
"dest": "api/client",
"files": ["*.yml"],
"exclude": ["toc.yml"]
}
],
"resource": [
{
"files": ["images/**"]
}
],
"output": "_site",
"template": ["default", "modern", "templates/echohub"],
"globalMetadata": {
"_appName": "EchoHub",
"_appTitle": "EchoHub Documentation",
"_appLogoPath": "images/hue_icon.svg",
"_appFaviconPath": "images/hue_icon.svg",
"_appFooter": "<div class='footer-custom'><div class='footer-inner'><span class='footer-brand'>EchoHub</span><span class='footer-sep'>&middot;</span><a href='https://github.com/HueByte/EchoHub'>GitHub</a><span class='footer-sep'>&middot;</span><a href='https://echohub.voidcube.cloud'>Website</a><span class='footer-sep'>&middot;</span><span class='footer-credit'>Built with <a href='https://dotnet.github.io/docfx'>DocFX</a></span></div></div>",
"_enableSearch": true,
"_disableContribution": false,
"_gitContribute": {
"repo": "https://github.com/HueByte/EchoHub",
"branch": "master",
"path": "docs"
}
},
"markdownEngineName": "markdig"
}
}