split RenderMode and Runtime configuration
This commit is contained in:
@ -2,7 +2,9 @@ namespace Oqtane.Shared
|
||||
{
|
||||
public enum Runtime
|
||||
{
|
||||
Web,
|
||||
Server,
|
||||
WebAssembly,
|
||||
Auto,
|
||||
Hybrid
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
8
Oqtane.Shared/Shared/Runtimes.cs
Normal file
8
Oqtane.Shared/Shared/Runtimes.cs
Normal 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";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user