From ea75ddfa853550bba6591e5231372f2c1b2bdd36 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Fri, 9 Feb 2024 14:34:33 -0500 Subject: [PATCH] rename RenderMode class and adding usings --- Oqtane.Client/Oqtane.Client.csproj | 1 + Oqtane.Client/UI/{RenderMode.cs => InteractiveRenderMode.cs} | 2 +- Oqtane.Client/UI/ModuleInstance.razor | 2 +- Oqtane.Client/UI/PaneLayout.razor | 5 ----- Oqtane.Client/_Imports.razor | 3 +++ Oqtane.Server/Components/App.razor | 4 ++-- 6 files changed, 8 insertions(+), 9 deletions(-) rename Oqtane.Client/UI/{RenderMode.cs => InteractiveRenderMode.cs} (94%) delete mode 100644 Oqtane.Client/UI/PaneLayout.razor diff --git a/Oqtane.Client/Oqtane.Client.csproj b/Oqtane.Client/Oqtane.Client.csproj index b59b3909..306c9a36 100644 --- a/Oqtane.Client/Oqtane.Client.csproj +++ b/Oqtane.Client/Oqtane.Client.csproj @@ -18,6 +18,7 @@ Oqtane true true + Default diff --git a/Oqtane.Client/UI/RenderMode.cs b/Oqtane.Client/UI/InteractiveRenderMode.cs similarity index 94% rename from Oqtane.Client/UI/RenderMode.cs rename to Oqtane.Client/UI/InteractiveRenderMode.cs index a6c1c865..a840fe68 100644 --- a/Oqtane.Client/UI/RenderMode.cs +++ b/Oqtane.Client/UI/InteractiveRenderMode.cs @@ -4,7 +4,7 @@ using Oqtane.Shared; namespace Oqtane.UI { - public static class RenderMode + public static class InteractiveRenderMode { public static IComponentRenderMode GetInteractiveRenderMode(string runtime, bool prerender) { diff --git a/Oqtane.Client/UI/ModuleInstance.razor b/Oqtane.Client/UI/ModuleInstance.razor index b217749b..28118899 100644 --- a/Oqtane.Client/UI/ModuleInstance.razor +++ b/Oqtane.Client/UI/ModuleInstance.razor @@ -9,7 +9,7 @@ else {
Render Mode: @ModuleState.RenderMode

- + } @code { diff --git a/Oqtane.Client/UI/PaneLayout.razor b/Oqtane.Client/UI/PaneLayout.razor deleted file mode 100644 index d91733fe..00000000 --- a/Oqtane.Client/UI/PaneLayout.razor +++ /dev/null @@ -1,5 +0,0 @@ -@namespace Oqtane.UI - -@code { - // panelayouts are deprecated - this component is included for backward compatibility -} \ No newline at end of file diff --git a/Oqtane.Client/_Imports.razor b/Oqtane.Client/_Imports.razor index 45403934..73af8f3a 100644 --- a/Oqtane.Client/_Imports.razor +++ b/Oqtane.Client/_Imports.razor @@ -5,10 +5,13 @@ @using System.Net.Http.Json @using Microsoft.AspNetCore.Components.Authorization +@using Microsoft.AspNetCore.Components.Forms @using Microsoft.AspNetCore.Components.Routing @using Microsoft.AspNetCore.Components.Web +@using Microsoft.AspNetCore.Components.Web.Virtualization @using Microsoft.Extensions.Localization @using Microsoft.JSInterop +@using static Microsoft.AspNetCore.Components.Web.RenderMode @using Oqtane.Client @using Oqtane.Models diff --git a/Oqtane.Server/Components/App.razor b/Oqtane.Server/Components/App.razor index 8e6ca4c0..3d5ab3e5 100644 --- a/Oqtane.Server/Components/App.razor +++ b/Oqtane.Server/Components/App.razor @@ -53,7 +53,7 @@ } else { - + } @((MarkupString)_headResources) @@ -66,7 +66,7 @@ } else { - + }