Skip to content

Commit

Permalink
Merge pull request #7992 from abpframework/cms-kit/template
Browse files Browse the repository at this point in the history
CmsKit in Startup Template
  • Loading branch information
enisn committed Mar 9, 2021
2 parents 70fae28 + 738dede commit 0d2cb31
Show file tree
Hide file tree
Showing 156 changed files with 517,533 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<ProjectReference Include="..\..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.Application.Contracts\Volo.Abp.TenantManagement.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.Application.Contracts\Volo.Abp.FeatureManagement.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.Application.Contracts\Volo.Abp.SettingManagement.Application.Contracts.csproj" />
<!--<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>-->
<ProjectReference Include="..\..\..\..\..\modules\cms-kit\src\Volo.CmsKit.Application.Contracts\Volo.CmsKit.Application.Contracts.csproj" />
<!--</TEMPLATE-REMOVE>-->
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
using Volo.Abp.PermissionManagement;
using Volo.Abp.SettingManagement;
using Volo.Abp.TenantManagement;
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
using Volo.CmsKit.Admin;
//</TEMPLATE-REMOVE>

namespace MyCompanyName.MyProjectName
{
Expand All @@ -17,6 +20,9 @@ namespace MyCompanyName.MyProjectName
typeof(AbpPermissionManagementApplicationContractsModule),
typeof(AbpSettingManagementApplicationContractsModule),
typeof(AbpTenantManagementApplicationContractsModule),
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
typeof(CmsKitAdminApplicationContractsModule),
//</TEMPLATE-REMOVE>
typeof(AbpObjectExtendingModule)
)]
public class MyProjectNameApplicationContractsModule : AbpModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<ProjectReference Include="..\..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.Application\Volo.Abp.TenantManagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.Application\Volo.Abp.FeatureManagement.Application.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.Application\Volo.Abp.SettingManagement.Application.csproj" />
<!--<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>-->
<ProjectReference Include="..\..\..\..\..\modules\cms-kit\src\Volo.CmsKit.Application\Volo.CmsKit.Application.csproj" />
<!--</TEMPLATE-REMOVE>-->
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
using Volo.Abp.PermissionManagement;
using Volo.Abp.SettingManagement;
using Volo.Abp.TenantManagement;
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
using Volo.CmsKit;
//</TEMPLATE-REMOVE>

namespace MyCompanyName.MyProjectName
{
Expand All @@ -17,6 +20,9 @@ namespace MyCompanyName.MyProjectName
typeof(AbpPermissionManagementApplicationModule),
typeof(AbpTenantManagementApplicationModule),
typeof(AbpFeatureManagementApplicationModule),
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
typeof(CmsKitApplicationModule),
//</TEMPLATE-REMOVE>
typeof(AbpSettingManagementApplicationModule)
)]
public class MyProjectNameApplicationModule : AbpModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<ProjectReference Include="..\..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.Domain.Shared\Volo.Abp.FeatureManagement.Domain.Shared.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.Domain.Shared\Volo.Abp.PermissionManagement.Domain.Shared.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.Domain.Shared\Volo.Abp.SettingManagement.Domain.Shared.csproj" />
<!--<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>-->
<ProjectReference Include="..\..\..\..\..\modules\cms-kit\src\Volo.CmsKit.Domain.Shared\Volo.CmsKit.Domain.Shared.csproj" />
<!--</TEMPLATE-REMOVE>-->
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
using Volo.Abp.TenantManagement;
using Volo.Abp.Validation.Localization;
using Volo.Abp.VirtualFileSystem;
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
using Volo.CmsKit;
//</TEMPLATE-REMOVE>

namespace MyCompanyName.MyProjectName
{
Expand All @@ -23,6 +26,9 @@ namespace MyCompanyName.MyProjectName
typeof(AbpIdentityServerDomainSharedModule),
typeof(AbpPermissionManagementDomainSharedModule),
typeof(AbpSettingManagementDomainSharedModule),
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
typeof(CmsKitDomainSharedModule),
//</TEMPLATE-REMOVE>
typeof(AbpTenantManagementDomainSharedModule)
)]
public class MyProjectNameDomainSharedModule : AbpModule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Volo.Abp.Threading;
using Volo.Abp.GlobalFeatures;
using Volo.Abp.Threading;

namespace MyCompanyName.MyProjectName
{
Expand All @@ -10,6 +11,13 @@ public static void Configure()
{
OneTimeRunner.Run(() =>
{
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
GlobalFeatureManager.Instance.Modules.CmsKit(cmsKit =>
{
cmsKit.EnableAll();
});
//</TEMPLATE-REMOVE>
/* You can configure (enable/disable) global features of the used modules here.
*
* YOU CAN SAFELY DELETE THIS CLASS AND REMOVE ITS USAGES IF YOU DON'T NEED TO IT!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<ProjectReference Include="..\..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.Domain\Volo.Abp.TenantManagement.Domain.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.Domain\Volo.Abp.FeatureManagement.Domain.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.Domain\Volo.Abp.SettingManagement.Domain.csproj" />
<!--<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>-->
<ProjectReference Include="..\..\..\..\..\modules\cms-kit\src\Volo.CmsKit.Domain\Volo.CmsKit.Domain.csproj" />
<!--</TEMPLATE-REMOVE>-->
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
using Volo.Abp.PermissionManagement.IdentityServer;
using Volo.Abp.SettingManagement;
using Volo.Abp.TenantManagement;
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
using Volo.CmsKit;
//</TEMPLATE-REMOVE>

namespace MyCompanyName.MyProjectName
{
Expand All @@ -27,6 +30,9 @@ namespace MyCompanyName.MyProjectName
typeof(AbpPermissionManagementDomainIdentityServerModule),
typeof(AbpSettingManagementDomainModule),
typeof(AbpTenantManagementDomainModule),
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
typeof(CmsKitDomainModule),
//</TEMPLATE-REMOVE>
typeof(AbpEmailingModule)
)]
public class MyProjectNameDomainModule : AbpModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
using Volo.Abp.PermissionManagement.EntityFrameworkCore;
using Volo.Abp.SettingManagement.EntityFrameworkCore;
using Volo.Abp.TenantManagement.EntityFrameworkCore;
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
using Volo.CmsKit.EntityFrameworkCore;
//</TEMPLATE-REMOVE>

namespace MyCompanyName.MyProjectName.EntityFrameworkCore
{
Expand Down Expand Up @@ -39,6 +42,9 @@ protected override void OnModelCreating(ModelBuilder builder)
builder.ConfigureIdentityServer();
builder.ConfigureFeatureManagement();
builder.ConfigureTenantManagement();
//<TEMPLATE-REMOVE IF-NOT='CMS-KIT'>
builder.ConfigureCmsKit();
//</TEMPLATE-REMOVE>

/* Configure your own tables/entities inside the ConfigureMyProjectName method */

Expand Down

0 comments on commit 0d2cb31

Please sign in to comment.