mirror of https://github.com/abpframework/abp.git
12 changed files with 150 additions and 11 deletions
@ -0,0 +1,24 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.Identity.Web |
|||
{ |
|||
public class AbpIdentityWebMainMenuContributor : IMenuContributor |
|||
{ |
|||
public Task ConfigureMenuAsync(MenuConfigurationContext context) |
|||
{ |
|||
if (context.Menu.Name != StandardMenus.Main) |
|||
{ |
|||
return Task.CompletedTask; |
|||
} |
|||
|
|||
context.Menu |
|||
.AddItem( |
|||
new ApplicationMenuItem("Identity", "Identity") |
|||
.AddItem(new ApplicationMenuItem("Users", "Users", url: "/Users")) |
|||
); |
|||
|
|||
return Task.CompletedTask; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
using System.Reflection; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
using Volo.Abp.EmbeddedFiles; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.Identity.Web |
|||
{ |
|||
[DependsOn(typeof(AbpAspNetCoreMvcModule), typeof(AbpIdentityApplicationContractsModule))] |
|||
public class AbpIdentityWebModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(IServiceCollection services) |
|||
{ |
|||
services.AddAssemblyOf<AbpIdentityWebModule>(); |
|||
|
|||
services.Configure<NavigationOptions>(options => |
|||
{ |
|||
options.MenuContributors.Add(new AbpIdentityWebMainMenuContributor()); |
|||
}); |
|||
|
|||
services.Configure<EmbeddedFileOptions>(options => |
|||
{ |
|||
options.Sources.Add( |
|||
new EmbeddedFileSet( |
|||
"/Views/", |
|||
GetType().GetTypeInfo().Assembly, |
|||
"Volo.Abp.Identity.Web.Views" |
|||
) |
|||
); |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
@ -1,11 +1,10 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
using Volo.Abp.Identity; |
|||
|
|||
namespace AbpDesk.Web.Mvc.Controllers |
|||
namespace Volo.Abp.Identity.Web.Controllers |
|||
{ |
|||
//TODO: Move to Volo.Abp.Identity.AspNetCore.Mvc or a similar module as a seperated area!
|
|||
//TODO: to a seperated area, named Identity!
|
|||
public class UsersController : AbpController |
|||
{ |
|||
private readonly IUserAppService _userAppService; |
|||
@ -0,0 +1,27 @@ |
|||
{ |
|||
"iisSettings": { |
|||
"windowsAuthentication": false, |
|||
"anonymousAuthentication": true, |
|||
"iisExpress": { |
|||
"applicationUrl": "http://localhost:49677/", |
|||
"sslPort": 0 |
|||
} |
|||
}, |
|||
"profiles": { |
|||
"IIS Express": { |
|||
"commandName": "IISExpress", |
|||
"launchBrowser": true, |
|||
"environmentVariables": { |
|||
"ASPNETCORE_ENVIRONMENT": "Development" |
|||
} |
|||
}, |
|||
"Volo.Abp.Identity.Web": { |
|||
"commandName": "Project", |
|||
"launchBrowser": true, |
|||
"launchUrl": "http://localhost:5000", |
|||
"environmentVariables": { |
|||
"ASPNETCORE_ENVIRONMENT": "Development" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> |
|||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> |
|||
</PropertyGroup> |
|||
|
|||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> |
|||
<PropertyGroup Label="Globals"> |
|||
<ProjectGuid>17b14a48-5248-4f4c-a8e6-6926aa94eb7c</ProjectGuid> |
|||
<RootNamespace>Volo.Abp.Identity.Web</RootNamespace> |
|||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> |
|||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> |
|||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> |
|||
</PropertyGroup> |
|||
|
|||
<PropertyGroup> |
|||
<SchemaVersion>2.0</SchemaVersion> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<DnxInvisibleContent Include="bower.json" /> |
|||
<DnxInvisibleContent Include=".bowerrc" /> |
|||
</ItemGroup> |
|||
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> |
|||
</Project> |
|||
@ -0,0 +1,23 @@ |
|||
{ |
|||
"dependencies": { |
|||
"Volo.Abp.AspNetCore.Mvc": "1.0.0-*", |
|||
"Volo.Abp.Identity.Application.Contracts": "1.0.0-*" |
|||
}, |
|||
|
|||
"tools": { |
|||
}, |
|||
|
|||
"frameworks": { |
|||
"netstandard1.6": { |
|||
"imports": "dnxcore50" |
|||
} |
|||
}, |
|||
|
|||
"buildOptions": { |
|||
"embed": { |
|||
"include": [ |
|||
"Views/**/*.*" |
|||
] |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue