diff --git a/Wonky.Client/Components/AppSandbox.razor b/Wonky.Client/Components/AppSandbox.razor new file mode 100644 index 00000000..cf41197c --- /dev/null +++ b/Wonky.Client/Components/AppSandbox.razor @@ -0,0 +1,32 @@ +@* Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +*@ + +@using Wonky.Entity.Configuration +@using Microsoft.Extensions.Options + +@if (_app!.Sandbox) +{ +
EDU DEMO
+} +@code +{ + [Inject] IOptions? AppInfo { get; set; } + private AppInfo? _app; + + protected override void OnInitialized() + { + _app = AppInfo?.Value; + } +} diff --git a/Wonky.Client/Components/AppVersion.razor b/Wonky.Client/Components/AppVersion.razor index c564a578..ba1b0efc 100644 --- a/Wonky.Client/Components/AppVersion.razor +++ b/Wonky.Client/Components/AppVersion.razor @@ -18,21 +18,21 @@ @if (_production) { -
app version @_app?.Version
+
v.@_app?.Version
} else { -
app version @_app?.Version
+
v.@_app?.Version
} @if (_app!.Rc) { -
release candidate
+
RC
} @if (_app!.Sandbox) { -
sandbox
+
EDU DEMO
} @code { diff --git a/Wonky.Client/Shared/MainLayout.razor b/Wonky.Client/Shared/MainLayout.razor index 2e4e1a6d..e221dabb 100644 --- a/Wonky.Client/Shared/MainLayout.razor +++ b/Wonky.Client/Shared/MainLayout.razor @@ -23,6 +23,8 @@
+ +
@@ -31,6 +33,6 @@
@Body
- +