Skip to content

Commit

Permalink
Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR00st3r committed Dec 19, 2023
1 parent 688310b commit 722668b
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ dotnet_diagnostic.SA1309.severity = none
dotnet_diagnostic.SA1306.severity = none
dotnet_diagnostic.SA1600.severity = none
dotnet_diagnostic.SA1124.severity = none
dotnet_diagnostic.SA1602.severity = none

[**/Migrations/**/*.cs]
dotnet_analyzer_diagnostic.severity = none
4 changes: 2 additions & 2 deletions NetEvent/Client/Pages/Administration/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<MudStack AlignItems="AlignItems.Stretch">
<MudButton Variant="Variant.Filled" Href="/administration/users" Class="pa-4" Style="height: 200px;">
<MudStack Row="true">
<MudIcon Icon="@Icons.Outlined.Group" Size="Size.Large"></MudIcon>
<MudIcon Icon="@Icons.Material.Outlined.Group" Size="Size.Large"></MudIcon>
<MudText Typo="Typo.h6"><strong>@Users?.Count</strong> @Localize["Administration.Index.Users"]</MudText>
</MudStack>
</MudButton>
Expand All @@ -21,7 +21,7 @@
<MudStack AlignItems="AlignItems.Stretch">
<MudButton Variant="Variant.Filled" Href="/administration/events" Class="pa-4" Style="height: 200px;">
<MudStack Row="true">
<MudIcon Icon="@Icons.Outlined.Event" Size="Size.Large"></MudIcon>
<MudIcon Icon="@Icons.Material.Outlined.Event" Size="Size.Large"></MudIcon>
<MudText Typo="Typo.h6"><strong>@Events?.Count</strong> @Localize["Administration.Index.Events"]</MudText>
</MudStack>
</MudButton>
Expand Down
4 changes: 2 additions & 2 deletions NetEvent/Client/Pages/Administration/SystemInfo.razor
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
<MudTd DataLabel="Healthy">
@if (context.Healthy)
{
<MudIcon Icon="@Icons.Filled.CheckCircle" Color="Color.Success" />
<MudIcon Icon="@Icons.Material.Filled.CheckCircle" Color="Color.Success" />
}
else
{
<MudIcon Icon="@Icons.Filled.Error" Color="Color.Error" />
<MudIcon Icon="@Icons.Material.Filled.Error" Color="Color.Error" />
}
</MudTd>
</RowTemplate>
Expand Down
8 changes: 4 additions & 4 deletions NetEvent/Client/Pages/Administration/SystemInfo.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ namespace NetEvent.Client.Pages.Administration
public partial class SystemInfo
{
private readonly IList<SystemInfoComponentEntryDto> _ClientComponents = new List<SystemInfoComponentEntryDto>();
private readonly string _SearchStringComponents = string.Empty;
private readonly string _SearchStringClientComponents = string.Empty;
private readonly string _SearchStringVersions = string.Empty;
private readonly string _SearchStringHealth = string.Empty;
private string _SearchStringComponents = string.Empty;
private string _SearchStringClientComponents = string.Empty;
private string _SearchStringVersions = string.Empty;
private string _SearchStringHealth = string.Empty;
private SystemInfoDto _SystemInfos = new();

#region Injects
Expand Down
6 changes: 3 additions & 3 deletions NetEvent/Server.Tests/SystemModuleTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public async Task GetOrganizationSettingsHandler_Success_Test()
var testData = new[]
{
new SystemSettingValue { Key = SystemSettings.OrganizationData.OrganizationName, SerializedValue = "value" },
new SystemSettingValue { Key = SystemSettings.OrganizationData.Logo, SerializedValue = "ImageId" }
new SystemSettingValue { Key = SystemSettings.OrganizationData.Logo, SerializedValue = "ImageId" },
};

using (var scope = Application.Services.CreateScope())
Expand Down Expand Up @@ -57,7 +57,7 @@ public async Task GetOrganizationSettingHandler_Success_Test()
var testData = new[]
{
new SystemSettingValue { Key = SystemSettings.OrganizationData.OrganizationName, SerializedValue = "value" },
new SystemSettingValue { Key = SystemSettings.OrganizationData.Logo, SerializedValue = "ImageId" }
new SystemSettingValue { Key = SystemSettings.OrganizationData.Logo, SerializedValue = "ImageId" },
};

using (var scope = Application.Services.CreateScope())
Expand All @@ -83,7 +83,7 @@ public async Task GetAuthenticationSettingsHandler_Success_Test()
var testData = new[]
{
new SystemSettingValue { Key = SystemSettings.AuthenticationData.Standard, SerializedValue = "True" },
new SystemSettingValue { Key = SystemSettings.AuthenticationData.Steam, SerializedValue = "False" }
new SystemSettingValue { Key = SystemSettings.AuthenticationData.Steam, SerializedValue = "False" },
};

using (var scope = Application.Services.CreateScope())
Expand Down
2 changes: 1 addition & 1 deletion NetEvent/Server/Data/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected override void OnModelCreating(ModelBuilder builder)
NormalizedEmail = "admin@admin.de".ToUpper(CultureInfo.InvariantCulture),
FirstName = "Admin",
EmailConfirmed = true,
LastName = "istrator"
LastName = "istrator",
};
adminUser.PasswordHash = new PasswordHasher<ApplicationUser>().HashPassword(adminUser, "Test123..");
_ = entity.HasData(adminUser);
Expand Down
2 changes: 1 addition & 1 deletion NetEvent/Server/Models/PublishState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ public enum PublishState
{
Draft,
Preview,
Published
Published,
}
}
2 changes: 1 addition & 1 deletion NetEvent/Server/Models/VisibilityState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ public enum VisibilityState
{
Everyone,
LoggedIn,
Invited
Invited,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected async Task<bool> SendConfirmEmailAsync(ApplicationUser user, HttpConte
var uriBuilder = new UriBuilder(encodedUrl)
{
Path = string.Empty,
Query = string.Empty
Query = string.Empty,
};

var baseUri = uriBuilder.ToString();
Expand All @@ -43,13 +43,13 @@ protected async Task<bool> SendConfirmEmailAsync(ApplicationUser user, HttpConte

var subjectModel = new NetEventEmailRenderModel(new Dictionary<string, string>()
{
{ "firstName", user.FirstName ?? string.Empty }
{ "firstName", user.FirstName ?? string.Empty },
});

var contentModel = new NetEventEmailRenderModel(new Dictionary<string, string>()
{
{ "firstName", user.FirstName ?? string.Empty },
{ "confirmUrl", url }
{ "confirmUrl", url },
});

if (user.Email == null)
Expand Down
2 changes: 1 addition & 1 deletion NetEvent/Server/Modules/ReturnType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ public enum ReturnType
None,
Ok,
NotFound,
Error
Error,
}
}
2 changes: 1 addition & 1 deletion NetEvent/Server/Services/SendGridEmailSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task SendEmailAsync(string recipient, string subject, string conten
From = new EmailAddress(_SendGridConfiguration.EmailSenderAddress),
Subject = subject,
PlainTextContent = content,
HtmlContent = content
HtmlContent = content,
};

msg.AddTo(new EmailAddress(recipient));
Expand Down
2 changes: 1 addition & 1 deletion NetEvent/Server/Services/SmtpEmailSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task SendEmailAsync(string recipient, string subject, string conten
Subject = subject,
Body = content,
IsBodyHtml = true,
From = new MailAddress(_SmtpConfig.EmailSenderAddress)
From = new MailAddress(_SmtpConfig.EmailSenderAddress),
};

message.To.Add(recipient);
Expand Down
2 changes: 1 addition & 1 deletion NetEvent/Shared/Config/SystemSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private SystemSettings()
{
new OrganizationData(),
new StyleData(),
new AuthenticationData()
new AuthenticationData(),
};
}

Expand Down
2 changes: 1 addition & 1 deletion NetEvent/Shared/Dto/PublishStateDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ public enum PublishStateDto
{
Draft,
Preview,
Published
Published,
}
2 changes: 1 addition & 1 deletion NetEvent/Shared/Dto/VisibilityStateDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ public enum VisibilityStateDto
{
Everyone,
LoggedIn,
Invited
Invited,
}

0 comments on commit 722668b

Please sign in to comment.