mirror of https://github.com/abpframework/abp
parent
399e46e361
commit
5a1c67a554
@ -0,0 +1,9 @@
|
||||
@page
|
||||
@model Volo.Abp.SettingManagement.Web.Pages.SettingManagement.IndexModel
|
||||
@foreach (var group in Model.SettingPageCreationContext.Groups)
|
||||
{
|
||||
<h2 id="@group.Id">@group.DisplayName</h2>
|
||||
<div>
|
||||
@await Component.InvokeAsync(group.ComponentType)
|
||||
</div>
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
|
||||
|
||||
namespace Volo.Abp.SettingManagement.Web.Pages.SettingManagement
|
||||
{
|
||||
public class IndexModel : AbpPageModel
|
||||
{
|
||||
public SettingPageCreationContext SettingPageCreationContext { get; private set; }
|
||||
|
||||
private readonly SettingManagementPageOptions _options;
|
||||
|
||||
public IndexModel(IOptions<SettingManagementPageOptions> options)
|
||||
{
|
||||
_options = options.Value;
|
||||
}
|
||||
|
||||
public async Task OnGetAsync()
|
||||
{
|
||||
SettingPageCreationContext = new SettingPageCreationContext();
|
||||
|
||||
foreach (var contributor in _options.Contributors)
|
||||
{
|
||||
await contributor.ConfigureAsync(SettingPageCreationContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
{
|
||||
"iisSettings": {
|
||||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:62272/",
|
||||
"sslPort": 0
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"Volo.Abp.SettingManagement.Web": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "http://localhost:62273/"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue