Compare commits
No commits in common. "cd98df5a2365dc242308509166904a803ccef123" and "adbca10cbac8036a484c8804588217cce29293df" have entirely different histories.
cd98df5a23
...
adbca10cba
|
|
@ -17,7 +17,7 @@ public class ClubConfiguration : IEntityTypeConfiguration<Club>
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
builder.Property(x => x.LoginName)
|
builder.Property(x => x.LoginName)
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(10)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
// Enum als int (Default) – explizit ist oft schöner
|
// Enum als int (Default) – explizit ist oft schöner
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,40 +0,0 @@
|
||||||
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(50)
|
.HasMaxLength(10)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
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().Result)
|
@(_ = GetLastThrowMessage())
|
||||||
</MudAlert>
|
</MudAlert>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -339,8 +339,7 @@
|
||||||
messages.Add($"{prevName} ist ausgeschieden!");
|
messages.Add($"{prevName} ist ausgeschieden!");
|
||||||
}
|
}
|
||||||
|
|
||||||
var res = string.Join(" | ", messages);
|
return string.Join(" | ", messages);
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|
|
||||||
|
|
@ -139,17 +139,6 @@
|
||||||
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,7 +72,6 @@
|
||||||
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,6 +1,5 @@
|
||||||
@page "/"
|
@page "/"
|
||||||
@using Koogle.Web.Components.Layout
|
@using Koogle.Web.Components.Layout
|
||||||
@using Microsoft.AspNetCore.Components.Authorization
|
|
||||||
|
|
||||||
@layout PublicLayout
|
@layout PublicLayout
|
||||||
|
|
||||||
|
|
@ -27,20 +26,9 @@
|
||||||
<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>
|
||||||
|
<MudButton Variant="Variant.Filled" Color="Color.Success" StartIcon="@Icons.Material.Filled.Login" Href="/account/login">
|
||||||
|
Jetzt einloggen
|
||||||
<AuthorizeView>
|
</MudButton>
|
||||||
<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>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue