From f9fc6397b504626cdddaedd68eb70b5fd6ddb99f Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Mon, 9 Sep 2024 15:53:16 +0200 Subject: [PATCH] Added Settings Page --- Wave/Components/Layout/NavMenu.razor | 1 + Wave/Components/Pages/Settings.razor | 23 ++++ .../Components/Layout/NavMenu.de-DE.resx | 3 + Wave/Resources/Components/Layout/NavMenu.resx | 3 + .../Components/Pages/Settings.de-DE.resx | 107 +++++++++++++++++ .../Components/Pages/Settings.en-GB.resx | 101 ++++++++++++++++ Wave/Resources/Components/Pages/Settings.resx | 110 ++++++++++++++++++ 7 files changed, 348 insertions(+) create mode 100644 Wave/Components/Pages/Settings.razor create mode 100644 Wave/Resources/Components/Pages/Settings.de-DE.resx create mode 100644 Wave/Resources/Components/Pages/Settings.en-GB.resx create mode 100644 Wave/Resources/Components/Pages/Settings.resx diff --git a/Wave/Components/Layout/NavMenu.razor b/Wave/Components/Layout/NavMenu.razor index e3671a3..ea294f4 100644 --- a/Wave/Components/Layout/NavMenu.razor +++ b/Wave/Components/Layout/NavMenu.razor @@ -45,6 +45,7 @@
  • @Localizer["ManageApi_Label"]
  • @Localizer["Newsletter_Label"]
  • @Localizer["Subscribers_Label"]
  • +
  • @Localizer["Settings_Label"]
  • diff --git a/Wave/Components/Pages/Settings.razor b/Wave/Components/Pages/Settings.razor new file mode 100644 index 0000000..8b4cdfc --- /dev/null +++ b/Wave/Components/Pages/Settings.razor @@ -0,0 +1,23 @@ +@page "/settings" + +@attribute [Authorize(Roles = "Admin")] + +@inject IStringLocalizer Localizer + +@(Localizer["Title"] + TitlePostfix) + +

    @Localizer["Title"]

    + + + +

    @Localizer["Wave_Version_Label"] @Version

    +
    +
    + +@code { + [CascadingParameter(Name = "TitlePostfix")] + private string TitlePostfix { get; set; } = default!; + [CascadingParameter(Name = "Version")] + private string Version { get; set; } = string.Empty; + +} diff --git a/Wave/Resources/Components/Layout/NavMenu.de-DE.resx b/Wave/Resources/Components/Layout/NavMenu.de-DE.resx index a509eea..0a932e5 100644 --- a/Wave/Resources/Components/Layout/NavMenu.de-DE.resx +++ b/Wave/Resources/Components/Layout/NavMenu.de-DE.resx @@ -137,4 +137,7 @@ Abonnenten + + Einstellungen + \ No newline at end of file diff --git a/Wave/Resources/Components/Layout/NavMenu.resx b/Wave/Resources/Components/Layout/NavMenu.resx index a2c8616..3d2ef5c 100644 --- a/Wave/Resources/Components/Layout/NavMenu.resx +++ b/Wave/Resources/Components/Layout/NavMenu.resx @@ -140,4 +140,7 @@ Subscribers + + Settings + \ No newline at end of file diff --git a/Wave/Resources/Components/Pages/Settings.de-DE.resx b/Wave/Resources/Components/Pages/Settings.de-DE.resx new file mode 100644 index 0000000..d4dd0eb --- /dev/null +++ b/Wave/Resources/Components/Pages/Settings.de-DE.resx @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Einstellungen + + + Über Wave + + \ No newline at end of file diff --git a/Wave/Resources/Components/Pages/Settings.en-GB.resx b/Wave/Resources/Components/Pages/Settings.en-GB.resx new file mode 100644 index 0000000..4fdb1b6 --- /dev/null +++ b/Wave/Resources/Components/Pages/Settings.en-GB.resx @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Wave/Resources/Components/Pages/Settings.resx b/Wave/Resources/Components/Pages/Settings.resx new file mode 100644 index 0000000..1e62f75 --- /dev/null +++ b/Wave/Resources/Components/Pages/Settings.resx @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Settings + + + About Wave + + + Wave Version + + \ No newline at end of file