Browse Source

Moved mongo blog views inside the module.

pull/81/head
Halil İbrahim Kalkan 10 years ago
parent
commit
0bc3dd7ccf
  1. 2
      src/AbpDesk/AbpDesk.MongoBlog/AbpDesk.MongoBlog.xproj
  2. 19
      src/AbpDesk/AbpDesk.MongoBlog/AbpDesk/Blogging/AbpDeskMongoBlogModule.cs
  3. 3
      src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Controllers/PostsController.cs
  4. 0
      src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml
  5. 19
      src/AbpDesk/AbpDesk.MongoBlog/Properties/launchSettings.json
  6. 13
      src/AbpDesk/AbpDesk.MongoBlog/project.json
  7. 1
      src/Volo.Abp.Identity.Web/AbpIdentityWebModule.cs
  8. 2
      src/Volo.Abp.Identity.Web/Navigation/AbpIdentityWebMainMenuContributor.cs

2
src/AbpDesk/AbpDesk.MongoBlog/AbpDesk.MongoBlog.xproj

@ -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>

19
src/AbpDesk/AbpDesk.MongoBlog/AbpDesk/Blogging/AbpDeskMongoBlogModule.cs

@ -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>();
}
}

3
src/AbpDesk/AbpDesk.Web.Mvc/Areas/Blog/Controllers/PostsController.cs → src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Controllers/PostsController.cs

@ -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
src/AbpDesk/AbpDesk.Web.Mvc/Areas/Blog/Views/Posts/Index.cshtml → src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml

19
src/AbpDesk/AbpDesk.MongoBlog/Properties/launchSettings.json

@ -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"
}
}
}
}

13
src/AbpDesk/AbpDesk.MongoBlog/project.json

@ -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/**/*.*"
]
}
}
}

1
src/Volo.Abp.Identity.Web/AbpIdentityWebModule.cs

@ -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;

2
src/Volo.Abp.Identity.Web/AbpIdentityWebMainMenuContributor.cs → src/Volo.Abp.Identity.Web/Navigation/AbpIdentityWebMainMenuContributor.cs

@ -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