|
|
|
@ -45,11 +45,9 @@ using Volo.Abp.MultiTenancy; |
|
|
|
using Volo.Abp.UI.Navigation; |
|
|
|
using Volo.Abp.UI.Navigation.Urls; |
|
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
|
using Yarp.ReverseProxy.Transforms; |
|
|
|
using Volo.CmsKit.Comments; |
|
|
|
using Volo.CmsKit; |
|
|
|
using Volo.CmsKit.Public.Web; |
|
|
|
using Volo.CmsKit.Ratings; |
|
|
|
using Yarp.ReverseProxy.Transforms; |
|
|
|
|
|
|
|
namespace EShopOnAbp.PublicWeb; |
|
|
|
|
|
|
|
@ -72,7 +70,7 @@ namespace EShopOnAbp.PublicWeb; |
|
|
|
typeof(CmskitServiceHttpApiClientModule), |
|
|
|
typeof(CmsKitDomainModule), |
|
|
|
typeof(CmsKitPublicWebModule) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)] |
|
|
|
public class EShopOnAbpPublicWebModule : AbpModule |
|
|
|
@ -110,8 +108,6 @@ public class EShopOnAbpPublicWebModule : AbpModule |
|
|
|
|
|
|
|
ConfigureBasketHttpClient(context); |
|
|
|
|
|
|
|
ConfigureCmskit(); |
|
|
|
|
|
|
|
context.Services.AddAutoMapperObjectMapper<EShopOnAbpPublicWebModule>(); |
|
|
|
Configure<AbpAutoMapperOptions>(options => { options.AddMaps<EShopOnAbpPublicWebModule>(validate: true); }); |
|
|
|
|
|
|
|
@ -256,19 +252,6 @@ public class EShopOnAbpPublicWebModule : AbpModule |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private void ConfigureCmskit() |
|
|
|
{ |
|
|
|
Configure<CmsKitCommentOptions>(options => |
|
|
|
{ |
|
|
|
options.EntityTypes.Add(new CommentEntityTypeDefinition("quote")); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<CmsKitRatingOptions>(options => |
|
|
|
{ |
|
|
|
options.EntityTypes.Add(new RatingEntityTypeDefinition("quote")); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|
|
|
{ |
|
|
|
var app = context.GetApplicationBuilder(); |
|
|
|
|