Add rider files and use options
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 1m13s

This commit is contained in:
2025-07-28 23:10:43 +02:00
parent a1cc9dec99
commit 564cadb945
13 changed files with 127 additions and 6 deletions

13
src/GameIdeas/.idea/.idea.GameIdeas/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/projectSettingsUpdater.xml
/.idea.GameIdeas.iml
/modules.xml
/contentModel.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

51
src/GameIdeas/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,51 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"dotNetConfig": {},
"name": "Debug Blazor Application",
"type": "blazorwasm",
"request": "launch",
"browser": "chrome",
"cwd": "${workspaceFolder}/Client/GameIdeas.BlazorApp",
"url": "http://localhost:5172",
"presentation": {
"group": "group 2: Single",
"order": 2
},
},
{
"name": "Debug API Server",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "Build API Server",
"program": "${workspaceFolder}/Server/GameIdeas.WebAPI/bin/Debug/net9.0/GameIdeas.WebAPI.dll",
"cwd": "${workspaceFolder}/Server/GameIdeas.WebAPI",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"presentation": {
"group": "group 2: Single",
"order": 2
}
}
],
"compounds": [
{
"name": "Launch GameIdeas",
"configurations": [
"Debug API Server",
"Debug Blazor Application"
],
"stopAll": true,
"presentation": {
"group": "group 1: Group",
"order": 1
},
}
]
}

27
src/GameIdeas/.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command": "dotnet build",
"label": "Build API Server",
"isBackground": true,
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher":{
"pattern": {
"regexp": "^.*$",
"file": 0,
"location": 1,
"message": 2
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "Compiled|Failed|compiled|failed|ready"
}
}
}
]
}

View File

@@ -1,3 +1,3 @@
namespace GameIdeas.WebAPI.Exceptions;
namespace GameIdeas.Shared.Exceptions;
public class UserInvalidException(string message) : Exception(message);

View File

@@ -1,3 +1,3 @@
namespace GameIdeas.WebAPI.Exceptions;
namespace GameIdeas.Shared.Exceptions;
public class UserUnauthorizedException(string message) : Exception(message);

View File

@@ -0,0 +1,12 @@
namespace GameIdeas.Shared.Options;
public class GameIdeasOptions
{
public string DbHost { get; set; } = string.Empty;
public string DbUsername { get; set; } = string.Empty;
public string DbPassword { get; set; } = string.Empty;
public string DbDatabase { get; set; } = string.Empty;
public string JwtKey { get; set; } = string.Empty;
public string JwtIssuer { get; set; } = string.Empty;
public string JwtAudience { get; set; } = string.Empty;
}

View File

@@ -1,6 +1,6 @@
using GameIdeas.Shared.Constants;
using GameIdeas.Shared.Dto;
using GameIdeas.WebAPI.Exceptions;
using GameIdeas.Shared.Exceptions;
using GameIdeas.WebAPI.Services.Users;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

View File

@@ -28,4 +28,8 @@
<ProjectReference Include="..\..\GameIdeas.Shared\GameIdeas.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Extensions\" />
</ItemGroup>
</Project>

View File

@@ -134,7 +134,6 @@ async Task LoadTranslations()
app.Services.GetRequiredService<TranslationService>().Initialize(dictionary);
ResourcesKey.Initialize(app.Services.GetRequiredService<Translations>());
}
string GetConnectionString()

View File

@@ -4,13 +4,13 @@ using GameIdeas.Shared.Constants;
using GameIdeas.Shared.Dto;
using GameIdeas.Shared.Model;
using GameIdeas.WebAPI.Context;
using GameIdeas.WebAPI.Exceptions;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using GameIdeas.Shared.Exceptions;
namespace GameIdeas.WebAPI.Services.Users;

View File

@@ -1,7 +1,7 @@
using GameIdeas.Resources;
using GameIdeas.Shared.Dto;
using GameIdeas.Shared.Exceptions;
using GameIdeas.Shared.Model;
using GameIdeas.WebAPI.Exceptions;
using Microsoft.AspNetCore.Identity;
namespace GameIdeas.WebAPI.Services.Users;