Compare commits

...

3 Commits

Author SHA1 Message Date
beo3000 cd98df5a23 fix show message 2026-01-07 17:52:32 +01:00
beo3000 0767992a57 added NavLinks to Home 2026-01-07 17:38:59 +01:00
beo3000 10aedca9a2 fix: ClubLoginNAme auf DB Ebene 50 Zeichen lang 2026-01-07 09:55:15 +01:00
8 changed files with 1706 additions and 8 deletions

View File

@ -17,7 +17,7 @@ public class ClubConfiguration : IEntityTypeConfiguration<Club>
.IsRequired();
builder.Property(x => x.LoginName)
.HasMaxLength(10)
.HasMaxLength(50)
.IsRequired();
// Enum als int (Default) explizit ist oft schöner

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Koogle.Infrastructure.Data.Migrations
{
/// <inheritdoc />
public partial class IncreaseClubLoginNameLength : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "LoginName",
schema: "app",
table: "Clubs",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(10)",
oldMaxLength: 10);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "LoginName",
schema: "app",
table: "Clubs",
type: "nvarchar(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50);
}
}
}

View File

@ -176,8 +176,8 @@ namespace Koogle.Infrastructure.Data.Migrations
b.Property<string>("LoginName")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("ModifiedAt")
.HasColumnType("datetime2");

View File

@ -46,7 +46,7 @@
@if (_model.LastThrow != null)
{
<MudAlert Severity="@GetLastThrowSeverity()" Class="mb-4" Dense="true">
@(_ = GetLastThrowMessage())
@(_ = GetLastThrowMessage().Result)
</MudAlert>
}
@ -339,7 +339,8 @@
messages.Add($"{prevName} ist ausgeschieden!");
}
return string.Join(" | ", messages);
var res = string.Join(" | ", messages);
return res;
}
public void Dispose()

View File

@ -139,6 +139,17 @@
Profil
</MudNavLink>
}
<MudDivider Class="my-2" />
<MudNavGroup Title="Website"
Icon="@Icons.Material.Filled.Web"
Expanded="false">
<MudNavLink Href="/"
Match="NavLinkMatch.Prefix"
Icon="@Icons.Material.Filled.Home">
Home
</MudNavLink>
</MudNavGroup>
</MudNavMenu>
@code {

View File

@ -72,6 +72,7 @@
Label="Login-Name"
Variant="Variant.Outlined"
Required="true"
MaxLength="10"
HelperText="Eindeutiger Kurzname (z.B. meinclub)"
Style="text-transform: lowercase;"
Class="mb-3" />

View File

@ -1,5 +1,6 @@
@page "/"
@using Koogle.Web.Components.Layout
@using Microsoft.AspNetCore.Components.Authorization
@layout PublicLayout
@ -26,9 +27,20 @@
<MudButton Variant="Variant.Outlined" Color="Color.Inherit" StartIcon="@Icons.Material.Filled.Info" Href="#features">
Mehr erfahren
</MudButton>
<MudButton Variant="Variant.Filled" Color="Color.Success" StartIcon="@Icons.Material.Filled.Login" Href="/account/login">
Jetzt einloggen
</MudButton>
<AuthorizeView>
<Authorized>
<MudButton Variant="Variant.Filled" Color="Color.Success" StartIcon="@Icons.Material.Filled.Dashboard" Href="/dashboard">
zur Anwendung
</MudButton>
</Authorized>
<NotAuthorized>
<MudButton Variant="Variant.Filled" Color="Color.Success" StartIcon="@Icons.Material.Filled.Login" Href="/account/login">
Jetzt einloggen
</MudButton>
</NotAuthorized>
</AuthorizeView>
</MudStack>
</MudStack>
</MudItem>