mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
895 B
28 lines
895 B
using System.Collections.Generic;
|
|
using DashboardDemo.Localization.DashboardDemo;
|
|
using DashboardDemo.Pages.widgets;
|
|
using DashboardDemo.Widgets;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Dashboards;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Widgets;
|
|
using Volo.Abp.Localization;
|
|
|
|
namespace DashboardDemo.Dashboards
|
|
{
|
|
public static class DashboardDefinitionProvider
|
|
{
|
|
public static List<DashboardDefinition> GetDefinitions()
|
|
{
|
|
var myDashboard = new DashboardDefinition(
|
|
DashboardNames.MyDashboard,
|
|
LocalizableString.Create<DashboardDemoResource>("MyDashboard")
|
|
)
|
|
.WithWidget(RoleListWidgetViewComponent.WidgetName)
|
|
.WithWidget(UserCountWidgetViewComponent.WidgetName);
|
|
|
|
return new List<DashboardDefinition>
|
|
{
|
|
myDashboard
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|