Compare commits
3 Commits
adbca10cba
...
cd98df5a23
| Author | SHA1 | Date |
|---|---|---|
|
|
cd98df5a23 | |
|
|
0767992a57 | |
|
|
10aedca9a2 |
|
|
@ -17,7 +17,7 @@ public class ClubConfiguration : IEntityTypeConfiguration<Club>
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
builder.Property(x => x.LoginName)
|
builder.Property(x => x.LoginName)
|
||||||
.HasMaxLength(10)
|
.HasMaxLength(50)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
// Enum als int (Default) – explizit ist oft schöner
|
// Enum als int (Default) – explizit ist oft schöner
|
||||||
|
|
|
||||||
1633
src/Koogle.Infrastructure/Data/Migrations/20260107082529_IncreaseClubLoginNameLength.Designer.cs
generated
Normal file
1633
src/Koogle.Infrastructure/Data/Migrations/20260107082529_IncreaseClubLoginNameLength.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -176,8 +176,8 @@ namespace Koogle.Infrastructure.Data.Migrations
|
||||||
|
|
||||||
b.Property<string>("LoginName")
|
b.Property<string>("LoginName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(10)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("nvarchar(10)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<DateTime?>("ModifiedAt")
|
b.Property<DateTime?>("ModifiedAt")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
@if (_model.LastThrow != null)
|
@if (_model.LastThrow != null)
|
||||||
{
|
{
|
||||||
<MudAlert Severity="@GetLastThrowSeverity()" Class="mb-4" Dense="true">
|
<MudAlert Severity="@GetLastThrowSeverity()" Class="mb-4" Dense="true">
|
||||||
@(_ = GetLastThrowMessage())
|
@(_ = GetLastThrowMessage().Result)
|
||||||
</MudAlert>
|
</MudAlert>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -339,7 +339,8 @@
|
||||||
messages.Add($"{prevName} ist ausgeschieden!");
|
messages.Add($"{prevName} ist ausgeschieden!");
|
||||||
}
|
}
|
||||||
|
|
||||||
return string.Join(" | ", messages);
|
var res = string.Join(" | ", messages);
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,17 @@
|
||||||
Profil
|
Profil
|
||||||
</MudNavLink>
|
</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>
|
</MudNavMenu>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@
|
||||||
Label="Login-Name"
|
Label="Login-Name"
|
||||||
Variant="Variant.Outlined"
|
Variant="Variant.Outlined"
|
||||||
Required="true"
|
Required="true"
|
||||||
|
MaxLength="10"
|
||||||
HelperText="Eindeutiger Kurzname (z.B. meinclub)"
|
HelperText="Eindeutiger Kurzname (z.B. meinclub)"
|
||||||
Style="text-transform: lowercase;"
|
Style="text-transform: lowercase;"
|
||||||
Class="mb-3" />
|
Class="mb-3" />
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
@page "/"
|
@page "/"
|
||||||
@using Koogle.Web.Components.Layout
|
@using Koogle.Web.Components.Layout
|
||||||
|
@using Microsoft.AspNetCore.Components.Authorization
|
||||||
|
|
||||||
@layout PublicLayout
|
@layout PublicLayout
|
||||||
|
|
||||||
|
|
@ -26,9 +27,20 @@
|
||||||
<MudButton Variant="Variant.Outlined" Color="Color.Inherit" StartIcon="@Icons.Material.Filled.Info" Href="#features">
|
<MudButton Variant="Variant.Outlined" Color="Color.Inherit" StartIcon="@Icons.Material.Filled.Info" Href="#features">
|
||||||
Mehr erfahren
|
Mehr erfahren
|
||||||
</MudButton>
|
</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">
|
<MudButton Variant="Variant.Filled" Color="Color.Success" StartIcon="@Icons.Material.Filled.Login" Href="/account/login">
|
||||||
Jetzt einloggen
|
Jetzt einloggen
|
||||||
</MudButton>
|
</MudButton>
|
||||||
|
</NotAuthorized>
|
||||||
|
</AuthorizeView>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue