Moved mongo blog views inside the module.

pull/81/head
Halil İbrahim Kalkan 9 years ago
parent d363619288
commit 0bc3dd7ccf

@ -16,5 +16,5 @@
<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>

@ -1,10 +1,14 @@
using Microsoft.Extensions.DependencyInjection;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.EmbeddedFiles;
using Volo.Abp.Modularity;
using Volo.Abp.MongoDB;
namespace AbpDesk.Blogging
{
[DependsOn(typeof(AbpMongoDbModule))]
//TODO: Make this a plugin
[DependsOn(typeof(AbpMongoDbModule), typeof(AbpAspNetCoreMvcModule))]
public class AbpDeskMongoBlogModule : AbpModule
{
public override void ConfigureServices(IServiceCollection services)
@ -14,6 +18,17 @@ namespace AbpDesk.Blogging
options.WithDefaultRepositories();
});
services.Configure<EmbeddedFileOptions>(options =>
{
options.Sources.Add(
new EmbeddedFileSet(
"/Areas/",
GetType().GetTypeInfo().Assembly,
"AbpDesk.MongoBlog.Areas"
)
);
});
services.AddAssemblyOf<AbpDeskMongoBlogModule>();
}
}

@ -5,9 +5,8 @@ using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Uow;
namespace AbpDesk.Web.Mvc.Areas.Blog.Controllers
namespace Areas.Blog.Controllers
{
//TODO: Move this controller to a plug-in
[Area("Blog")]
public class PostsController : AbpController
{

@ -0,0 +1,19 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:54356/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

@ -2,14 +2,21 @@
"version": "1.0.0-*",
"dependencies": {
"NETStandard.Library": "1.6.1",
"Volo.Abp": "1.0.0-*",
"Volo.Abp.MongoDB": "1.0.0-*"
"Volo.Abp.MongoDB": "1.0.0-*",
"Volo.Abp.AspNetCore.Mvc": "1.0.0-*"
},
"frameworks": {
"netstandard1.6": {
"imports": "dnxcore50"
}
},
"buildOptions": {
"embed": {
"include": [
"Areas/**/*.*"
]
}
}
}

@ -2,6 +2,7 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.EmbeddedFiles;
using Volo.Abp.Identity.Web.Navigation;
using Volo.Abp.Modularity;
using Volo.Abp.UI.Navigation;

@ -1,7 +1,7 @@
using System.Threading.Tasks;
using Volo.Abp.UI.Navigation;
namespace Volo.Abp.Identity.Web
namespace Volo.Abp.Identity.Web.Navigation
{
public class AbpIdentityWebMainMenuContributor : IMenuContributor
{
Loading…
Cancel
Save