Skip to content

Commit

Permalink
change pagetitle components to metadatacomponent
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Jul 28, 2024
1 parent de8dd99 commit 47acb1f
Show file tree
Hide file tree
Showing 33 changed files with 38 additions and 78 deletions.
6 changes: 3 additions & 3 deletions src/web/Jordnaer/Components/Account/Pages/ConfirmEmail.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@inject UserManager<ApplicationUser> UserManager
@inject IdentityRedirectManager RedirectManager

<PageTitle>Bekræft email</PageTitle>
<MetadataComponent Title="Bekræft email" />

<h1>Bekræft email</h1>
<StatusMessage Message="@_statusMessage" />
Expand Down Expand Up @@ -42,11 +42,11 @@
var result = await UserManager.ConfirmEmailAsync(user, code);
if (result.Succeeded)
{
_statusMessage = new AlertMessage("Tak fordi du bekræftede din email.");
_statusMessage = new AlertMessage("Tak fordi du bekræftede din email.");
}
else
{
_statusMessage = new AlertMessage("Fejl ved bekræftelse af email.", true);
_statusMessage = new AlertMessage("Fejl ved bekræftelse af email.", true);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@inject SignInManager<ApplicationUser> SignInManager
@inject IdentityRedirectManager RedirectManager

<PageTitle>Bekræft ændring af email</PageTitle>
<MetadataComponent Title="Bekræft ændring af email" />

<h1>Bekræft ændring af email</h1>

Expand Down
6 changes: 3 additions & 3 deletions src/web/Jordnaer/Components/Account/Pages/ExternalLogin.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
@inject JordnaerDbContext Context
@inject IMediator Mediator

<PageTitle>Register</PageTitle>
<MetadataComponent Title="Registrér"/>

<StatusMessage Message="@_message" />
<h1>Register</h1>
<h2>Associate your @ProviderDisplayName account.</h2>
<h1>Registrér</h1>
<h2>Forbind din @ProviderDisplayName konto.</h2>
<hr />

<div class="alert alert-info">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@inject NavigationManager NavigationManager
@inject IdentityRedirectManager RedirectManager

<PageTitle>Glemt din adgangskode?</PageTitle>
<MetadataComponent Title="Glemt din adgangskode?" />

<h1>Glemt din adgangskode?</h1>
<h2>Indtast din email.</h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@page "/Account/ForgotPasswordConfirmation"

<PageTitle>Bekræftelse af glemt adgangskode</PageTitle>
<MetadataComponent Title="Bekræftelse af glemt adgangskode"/>

<h1>Bekræftelse af glemt adgangskode</h1>
<p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@page "/Account/InvalidPasswordReset"

<PageTitle>Ugyldig nulstilling af adgangskode</PageTitle>
<MetadataComponent Title="Ugyldig nulstilling af adgangskode"/>

<h1>Ugyldig nulstilling af adgangskode</h1>
<p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@page "/Account/InvalidUser"

<PageTitle>Ugyldig bruger</PageTitle>
<MetadataComponent Title="Ugyldig bruger" />

<h3>Ugyldig bruger</h3>

Expand Down
4 changes: 2 additions & 2 deletions src/web/Jordnaer/Components/Account/Pages/Lockout.razor
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/Lockout"

<PageTitle>Spærret</PageTitle>
<MetadataComponent Title="Spærret"/>

<header>
<h1 class="text-danger">Spærret</h1>
<p class="text-danger">Denne konto er blevet spærret, venligst prøv igen senere.</p>
<p class="text-danger">Denne konto er blevet spærret, prøv igen senere.</p>
</header>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject IdentityRedirectManager RedirectManager
@inject ILogger<LoginWith2fa> Logger

<PageTitle>To-faktor autentifikation</PageTitle>
<MetadataComponent Title="To-faktor autentifikation"/>

<h1>To-faktor autentifikation</h1>
<hr />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject IdentityRedirectManager RedirectManager
@inject ILogger<LoginWithRecoveryCode> Logger

<PageTitle>Verifikation af gendannelseskode</PageTitle>
<MetadataComponent Title="Verifikation af gendannelseskode"/>

<h1>Verifikation af gendannelseskode</h1>
<hr />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@inject IdentityRedirectManager RedirectManager
@inject ILogger<ChangePassword> Logger

<PageTitle>Skift adgangskode</PageTitle>
<MetadataComponent Title="Skift adgangskode"/>

<h3>Skift adgangskode</h3>
<StatusMessage Message="@_message" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@inject IdentityRedirectManager RedirectManager
@inject ILogger<DeletePersonalData> Logger

<PageTitle>Slet personlige data</PageTitle>
<MetadataComponent Title="Slet personlige data"/>

<StatusMessage Message="@_message" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject IdentityRedirectManager RedirectManager
@inject ILogger<Disable2fa> Logger

<PageTitle>Deaktiver to-faktor-autentificering (2FA)</PageTitle>
<MetadataComponent Title="Deaktiver to-faktor-autentificering (2FA)"/>

<StatusMessage />
<h3>Deaktiver to-faktor-autentificering (2FA)</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@inject IdentityUserAccessor UserAccessor
@inject NavigationManager NavigationManager

<PageTitle>Håndter email</PageTitle>
<MetadataComponent Title="Håndter email" />

<h3>Håndter email</h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@inject IdentityRedirectManager RedirectManager
@inject ILogger<EnableAuthenticator> Logger

<PageTitle>Konfigurer autentificeringsapp</PageTitle>
<MetadataComponent Title="Konfigurer autentificerings-app"/>

@if (_recoveryCodes is not null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@inject IUserStore<ApplicationUser> UserStore
@inject IdentityRedirectManager RedirectManager

<PageTitle>Håndter dine eksterne logins</PageTitle>
<MetadataComponent Title="Håndter dine eksterne logins"/>

<StatusMessage />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

@inject UserManager<ApplicationUser> UserManager
@inject IdentityUserAccessor UserAccessor
@inject IdentityRedirectManager RedirectManager
@inject ILogger<GenerateRecoveryCodes> Logger

<PageTitle>Generer To-faktor-autentificerings (2FA) gendannelseskoder</PageTitle>
<MetadataComponent Title="Generer To-faktor-autentificerings (2FA) gendannelseskoder"/>

@if (_recoveryCodes is not null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject IdentityUserAccessor UserAccessor
@inject IdentityRedirectManager RedirectManager

<PageTitle>Profil</PageTitle>
<MetadataComponent Title="Profil" />

<h3>Profil</h3>
<StatusMessage />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@inject IdentityUserAccessor UserAccessor

<PageTitle>Personlige Data</PageTitle>
<MetadataComponent Title="Personlige Data"/>

<StatusMessage />
<h3>Personlige Data</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@inject IdentityRedirectManager RedirectManager
@inject ILogger<ResetAuthenticator> Logger

<PageTitle>Nulstil autentificeringsnøgle</PageTitle>
<MetadataComponent Title="Nulstil autentificeringsnøgle" />

<StatusMessage />
<h3>Nulstil autentificeringsnøgle</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject IdentityUserAccessor UserAccessor
@inject IdentityRedirectManager RedirectManager

<PageTitle>Indstil adgangskode</PageTitle>
<MetadataComponent Title="Indstil adgangskode"/>

<h3>Indstil din adgangskode</h3>
<StatusMessage Message="@_message" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@inject IdentityUserAccessor UserAccessor
@inject IdentityRedirectManager RedirectManager

<PageTitle>To-faktor-autentificering (2FA)</PageTitle>
<MetadataComponent Title="To-faktor-autentificering (2FA)"/>

<StatusMessage />
<h3>To-faktor-autentificering (2FA)</h3>
Expand Down
3 changes: 1 addition & 2 deletions src/web/Jordnaer/Components/Account/Pages/Register.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
@inject IdentityRedirectManager RedirectManager
@inject IDbContextFactory<JordnaerDbContext> DbContextFactory

<PageTitle>Opret en ny konto</PageTitle>
@*TODO: This page needs some UI love*@
<MetadataComponent Title="Opret en ny konto" />
<MudContainer MaxWidth="MaxWidth.Small">

<MudPaper Elevation="3" Class="pa-4" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject NavigationManager NavigationManager
@inject IdentityRedirectManager RedirectManager

<PageTitle>Registreringsbekræftelse</PageTitle>
<MetadataComponent Title="Registreringsbekræftelse" />

<h1>Registreringsbekræftelse</h1>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
@inject UserManager<ApplicationUser> UserManager
@inject IEmailSender<ApplicationUser> EmailSender
@inject NavigationManager NavigationManager
@inject IdentityRedirectManager RedirectManager

<PageTitle>Gensend emailbekræftelse</PageTitle>
<MetadataComponent Title="Gensend emailbekræftelse"/>

<h1>Gensend emailbekræftelse</h1>
<h2>Indtast din email.</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject IdentityRedirectManager RedirectManager
@inject UserManager<ApplicationUser> UserManager

<PageTitle>Nulstil adgangskode</PageTitle>
<MetadataComponent Title="Nulstil adgangskode"/>

<h1>Nulstil adgangskode</h1>
<h2>Nulstil din adgangskode.</h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/Account/ResetPasswordConfirmation"
<PageTitle>Bekræftelse af nulstilling af adgangskode</PageTitle>
<MetadataComponent Title="Bekræftelse af nulstilling af adgangskode"/>

<h1>Bekræftelse af nulstilling af adgangskode</h1>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/web/Jordnaer/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="da">

<head>
<PageTitle>Mini Møder</PageTitle>
<MetadataComponent Title="Mini Møder" />

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
Expand Down
36 changes: 0 additions & 36 deletions src/web/Jordnaer/Components/Error.razor

This file was deleted.

1 change: 0 additions & 1 deletion src/web/Jordnaer/Features/Search/ZipCodeAutoComplete.razor
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
{
var location = $"{response.Content.Nr} {response.Content.Navn}";
await LocationValueChanged(location);
Snackbar.Add("Det lykkedes ikke at finde dit postnummer ud fra din nuværende lokation.", Severity.Info);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/web/Jordnaer/Pages/Groups/Members.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
EditTrigger="DataGridEditTrigger.OnRowClick"
RowStyle="cursor: pointer;">
<Columns>
<PropertyColumn Property="x => x.UserDisplayName" Title="Navn" IsEditable="false" />
<PropertyColumn Property="x => x.UserDisplayName" Title="Navn" Editable="false" />
<PropertyColumn Property="x => x.OwnershipLevel.ToStringFast()" Title="Ejerskabs Niveau">
<EditTemplate>
<MudSelect @bind-Value="context.Item.OwnershipLevel"
Expand Down
2 changes: 1 addition & 1 deletion src/web/Jordnaer/Pages/Shared/ChatNavLink.razor
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else
{
<MudIconButton Href="/chat"
Icon="@Icons.Material.Filled.Chat"
Title="Chat"/>
title="Chat"/>
}

@code {
Expand Down
6 changes: 3 additions & 3 deletions src/web/Jordnaer/Pages/Shared/TopBar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
else
{
} *@
<MudIconButton Title="Redigér Profil" Href="/profile" Icon="@Icons.Material.Filled.Person" />
<MudIconButton Title="Log ud" Href="/Account/Logout" Icon="@Icons.Material.Filled.Logout" />
<MudIconButton title="Redigér Profil" Href="/profile" Icon="@Icons.Material.Filled.Person" />
<MudIconButton title="Log ud" Href="/Account/Logout" Icon="@Icons.Material.Filled.Logout" />
</Authorized>
<NotAuthorized>
<MudIconButton Title="Log ind" Href="/Account/Login" Icon="@Icons.Material.Filled.Login" Variant="Variant.Outlined" Color="Color.Default" />
<MudIconButton title="Log ind" Href="/Account/Login" Icon="@Icons.Material.Filled.Login" Variant="Variant.Outlined" Color="Color.Default" />
</NotAuthorized>
</AuthorizeView>
</MudAppBar>

0 comments on commit 47acb1f

Please sign in to comment.