split RenderMode and Runtime configuration

This commit is contained in:
sbwalker
2024-02-01 09:08:39 -05:00
parent 97762712e6
commit 1e332ed075
22 changed files with 251 additions and 169 deletions

View File

@ -2,7 +2,9 @@ namespace Oqtane.Shared
{
public enum Runtime
{
Web,
Server,
WebAssembly,
Auto,
Hybrid
}
}

View File

@ -69,12 +69,17 @@ namespace Oqtane.Models
public string SiteGuid { get; set; }
/// <summary>
/// The default render mode for the site (ie. Static,InteractiveServer,InteractiveWebAssembly,InteractiveAuto)
/// The default render mode for the site ie. Static,Interactive,Headless
/// </summary>
public string RenderMode { get; set; }
/// <summary>
/// If the site supports prerendering (only applies to Interactive rendering)
/// The interactive render mode for the site ie. Server,WebAssembly,Auto (only applies to Interactive rendermode)
/// </summary>
public string Runtime { get; set; }
/// <summary>
/// If the site supports prerendering (only applies to Interactive rendermode)
/// </summary>
public bool Prerender { get; set; }

View File

@ -18,6 +18,7 @@ namespace Oqtane.Shared
public string DefaultContainer { get; set; }
public string DefaultAdminContainer { get; set; }
public string RenderMode { get; set; }
public string Runtime { get; set; }
public bool Register { get; set; }
}
}

View File

@ -1,8 +1,7 @@
namespace Oqtane.Shared {
public class RenderModes {
public const string StaticServer = "StaticServer";
public const string InteractiveServer = "InteractiveServer";
public const string InteractiveWebAssembly = "InteractiveWebAssembly";
public const string InteractiveAuto = "InteractiveAuto";
public const string Static = "Static";
public const string Interactive = "Interactive";
public const string Headless = "Headless";
}
}

View File

@ -0,0 +1,8 @@
namespace Oqtane.Shared {
public class Runtimes {
public const string Server = "Server";
public const string WebAssembly = "WebAssembly";
public const string Auto = "Auto";
public const string Hybrid = "Hybrid";
}
}