Commit c63dc682 authored by yangxiaodong's avatar yangxiaodong

add node page

parent e6343e3d
...@@ -102,10 +102,11 @@ namespace DotNetCore.CAP.Dashboard ...@@ -102,10 +102,11 @@ namespace DotNetCore.CAP.Dashboard
Routes.AddRazorPage( Routes.AddRazorPage(
"/received/(?<StatusName>.+)", "/received/(?<StatusName>.+)",
x => new ReceivedPage(x.Groups["StatusName"].Value)); x => new ReceivedPage(x.Groups["StatusName"].Value));
Routes.AddRazorPage("/subscribers", x => new SubscriberPage());
//Routes.AddRazorPage("/servers", x => new ServersPage()); Routes.AddRazorPage("/subscribers", x => new SubscriberPage());
//Routes.AddRazorPage("/retries", x => new RetriesPage());
Routes.AddRazorPage("/nodes", x => new NodePage());
#endregion Razor pages and commands #endregion Razor pages and commands
} }
......
...@@ -36,9 +36,9 @@ namespace DotNetCore.CAP.Dashboard ...@@ -36,9 +36,9 @@ namespace DotNetCore.CAP.Dashboard
Metric = DashboardMetrics.SubscriberCount Metric = DashboardMetrics.SubscriberCount
}); });
Items.Add(page => new MenuItem(Strings.NavigationMenu_Servers, page.Url.To("/servers")) Items.Add(page => new MenuItem(Strings.NavigationMenu_Servers, page.Url.To("/nodes"))
{ {
Active = page.RequestPath.Equals("/servers"), Active = page.RequestPath.Equals("/nodes"),
Metric = DashboardMetrics.ServerCount Metric = DashboardMetrics.ServerCount
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment