mirror of https://github.com/abpframework/abp.git
10 changed files with 155 additions and 8 deletions
@ -0,0 +1,27 @@ |
|||||
|
using System.Reflection; |
||||
|
using Microsoft.Extensions.DependencyInjection; |
||||
|
using Volo.Abp.EmbeddedFiles; |
||||
|
using Volo.Abp.Modularity; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap |
||||
|
{ |
||||
|
[DependsOn(typeof(AbpAspNetCoreMvcUiModule))] |
||||
|
public class AbpAspNetCoreMvcUiBootstrapModule : AbpModule |
||||
|
{ |
||||
|
public override void ConfigureServices(IServiceCollection services) |
||||
|
{ |
||||
|
services.AddAssemblyOf<AbpAspNetCoreMvcUiBootstrapModule>(); |
||||
|
|
||||
|
services.Configure<EmbeddedFileOptions>(options => |
||||
|
{ |
||||
|
options.Sources.Add( |
||||
|
new EmbeddedFileSet( |
||||
|
"/Views/", |
||||
|
GetType().GetTypeInfo().Assembly, |
||||
|
"Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Views" |
||||
|
) |
||||
|
); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
{ |
||||
|
"iisSettings": { |
||||
|
"windowsAuthentication": false, |
||||
|
"anonymousAuthentication": true, |
||||
|
"iisExpress": { |
||||
|
"applicationUrl": "http://localhost:61183/", |
||||
|
"sslPort": 0 |
||||
|
} |
||||
|
}, |
||||
|
"profiles": { |
||||
|
"IIS Express": { |
||||
|
"commandName": "IISExpress", |
||||
|
"launchBrowser": true, |
||||
|
"environmentVariables": { |
||||
|
"ASPNETCORE_ENVIRONMENT": "Development" |
||||
|
} |
||||
|
}, |
||||
|
"Volo.Abp.AspNetCore.Mvc.UI.Bootstrap": { |
||||
|
"commandName": "Project", |
||||
|
"launchBrowser": true, |
||||
|
"launchUrl": "http://localhost:5000", |
||||
|
"environmentVariables": { |
||||
|
"ASPNETCORE_ENVIRONMENT": "Development" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,22 @@ |
|||||
|
@using System.Threading.Tasks |
||||
|
@model Volo.Abp.UI.Navigation.ApplicationMenu |
||||
|
<h2>@Model.DisplayName (BOOTSTRAP)</h2> |
||||
|
<ul> |
||||
|
@foreach (var menuItem in Model.Items) |
||||
|
{ |
||||
|
<li> |
||||
|
<a href="@menuItem.Url">@menuItem.DisplayName</a> |
||||
|
@if (menuItem.Items.Any()) |
||||
|
{ |
||||
|
<ul> |
||||
|
@foreach (var childMenuItem in menuItem.Items) |
||||
|
{ |
||||
|
<li> |
||||
|
<a href="@childMenuItem.Url">@childMenuItem.DisplayName</a> |
||||
|
</li> |
||||
|
} |
||||
|
</ul> |
||||
|
} |
||||
|
</li> |
||||
|
} |
||||
|
</ul> |
||||
@ -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>c761a3f7-787d-4c7e-a41c-5fab07f6b774</ProjectGuid> |
||||
|
<RootNamespace>Volo.Abp.AspNetCore.Mvc.UI.Bootstrap</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,22 @@ |
|||||
|
{ |
||||
|
"dependencies": { |
||||
|
"Volo.Abp.AspNetCore.Mvc.UI": "1.0.0-*" |
||||
|
}, |
||||
|
|
||||
|
"tools": { |
||||
|
}, |
||||
|
|
||||
|
"frameworks": { |
||||
|
"netstandard1.6": { |
||||
|
"imports": "dnxcore50" |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
"buildOptions": { |
||||
|
"embed": { |
||||
|
"include": [ |
||||
|
"Views/**/*.*" |
||||
|
] |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<configuration> |
||||
|
|
||||
|
<!-- |
||||
|
Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380 |
||||
|
--> |
||||
|
|
||||
|
<system.webServer> |
||||
|
<handlers> |
||||
|
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/> |
||||
|
</handlers> |
||||
|
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/> |
||||
|
</system.webServer> |
||||
|
</configuration> |
||||
Loading…
Reference in new issue