Skip to content

Commit

Permalink
mix - update multilingual
Browse files Browse the repository at this point in the history
  • Loading branch information
nhathoang989 committed Aug 6, 2023
1 parent 4335606 commit 7463c4c
Show file tree
Hide file tree
Showing 80 changed files with 4,383 additions and 3,759 deletions.
6 changes: 4 additions & 2 deletions src/applications/Mixcore/Controllers/ModuleDataController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ public ModuleDataController(IHttpContextAccessor httpContextAccessor,
MixIdentityService mixIdentityService,
UnitOfWorkInfo<MixCmsContext> uow,
IQueueService<MessageQueueModel> queueService,
IPortalHubClientService portalHub)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub)
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration,
cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ public PageContentApiController(
IQueueService<MessageQueueModel> queueService,
MixRepoDbRepository mixRepoDbRepository,
IMixMetadataService metadataService,
IPortalHubClientService portalHub)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub)
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration,
cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
_mixRepoDbRepository = mixRepoDbRepository;
_metadataService = metadataService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ public PostContentApiController(
MixRepoDbRepository mixRepoDbRepository,
IMixMetadataService metadataService,
MixRepoDbRepository repoDbRepository,
IPortalHubClientService portalHub)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub)
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration,
cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
_postService = postService;
_mixRepoDbRepository = mixRepoDbRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ public static IApplicationBuilder UseMixRoutes(this IApplicationBuilder app)
// pattern: "portal-apps/{appFolder:" + urlPathPattern + "}/{param1?}/{param2?}/{param3?}/{param4?}");
routes.MapFallbackToFile("/index.html");
});
//app.MapWhen(
// context =>
// {
// var path = context.Request.Path.Value.ToLower();
// return
// path.StartsWith("/mix-app") ||
// path.StartsWith("/mix-content");
// },
// config => config.UseStaticFiles());

return app;
}
Expand Down
5 changes: 3 additions & 2 deletions src/applications/Mixcore/Domain/Services/PostService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ public MixcorePostService(
UnitOfWorkInfo<MixCmsContext> uow,
IMixMetadataService metadataService,
IHttpContextAccessor httpContextAccessor,
MixCacheService cacheService)
: base(uow, metadataService, httpContextAccessor, cacheService)
MixCacheService cacheService,
IMixTenantService mixTenantService)
: base(uow, metadataService, httpContextAccessor, cacheService, mixTenantService)
{
}
}
Expand Down
Loading

0 comments on commit 7463c4c

Please sign in to comment.