Theme Viewer + Theme Updater (#2952)
This commit is contained in:
parent
24302d4fcc
commit
38e7c1c131
35 changed files with 4563 additions and 284 deletions
|
|
@ -130,6 +130,10 @@ public static class MessageFactory
|
|||
/// Order, Visibility, etc has changed on the Sidenav. UI will refresh the layout
|
||||
/// </summary>
|
||||
public const string SideNavUpdate = "SideNavUpdate";
|
||||
/// <summary>
|
||||
/// A Theme was updated and UI should refresh to get the latest version
|
||||
/// </summary>
|
||||
public const string SiteThemeUpdated = "SiteThemeUpdated";
|
||||
|
||||
public static SignalRMessage DashboardUpdateEvent(int userId)
|
||||
{
|
||||
|
|
@ -485,7 +489,7 @@ public static class MessageFactory
|
|||
return new SignalRMessage()
|
||||
{
|
||||
Name = SiteThemeProgress,
|
||||
Title = "Scanning Site Theme",
|
||||
Title = "Processing Site Theme", // TODO: Localize SignalRMessage titles
|
||||
SubTitle = subtitle,
|
||||
EventType = eventType,
|
||||
Progress = ProgressType.Indeterminate,
|
||||
|
|
@ -496,6 +500,25 @@ public static class MessageFactory
|
|||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sends an event to the UI informing of a SiteTheme update and UI needs to refresh the content
|
||||
/// </summary>
|
||||
/// <param name="themeName"></param>
|
||||
/// <returns></returns>
|
||||
public static SignalRMessage SiteThemeUpdatedEvent(string themeName)
|
||||
{
|
||||
return new SignalRMessage()
|
||||
{
|
||||
Name = SiteThemeUpdated,
|
||||
Title = "SiteTheme Update",
|
||||
Progress = ProgressType.None,
|
||||
Body = new
|
||||
{
|
||||
ThemeName = themeName,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static SignalRMessage BookThemeProgressEvent(string subtitle, string themeName, string eventType)
|
||||
{
|
||||
return new SignalRMessage()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue