Browse Source
Merge pull request #8012 from abpframework/cms-kit/refactoring
Cms Kit - Unified Fixes
pull/8022/head
İlkay İlknur
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
19 additions and
22 deletions
-
modules/cms-kit/host/Volo.CmsKit.Web.Unified/CmsKitWebUnifiedModule.cs
-
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/Index.cshtml
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Pages/Default.cshtml
|
|
@ -40,6 +40,9 @@ using Volo.Abp.VirtualFileSystem; |
|
|
using Volo.CmsKit.Admin.Web; |
|
|
using Volo.CmsKit.Admin.Web; |
|
|
using Volo.CmsKit.Public.Web; |
|
|
using Volo.CmsKit.Public.Web; |
|
|
using System; |
|
|
using System; |
|
|
|
|
|
using Volo.CmsKit.Tags; |
|
|
|
|
|
using Volo.CmsKit.Comments; |
|
|
|
|
|
using Volo.CmsKit.MediaDescriptors; |
|
|
using Volo.CmsKit.Reactions; |
|
|
using Volo.CmsKit.Reactions; |
|
|
|
|
|
|
|
|
namespace Volo.CmsKit |
|
|
namespace Volo.CmsKit |
|
|
@ -137,6 +140,21 @@ namespace Volo.CmsKit |
|
|
|
|
|
|
|
|
private void ConfigureCmsKit(ServiceConfigurationContext context) |
|
|
private void ConfigureCmsKit(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
|
|
|
Configure<CmsKitTagOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.EntityTypes.Add(new TagEntityTypeDefiniton("quote")); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Configure<CmsKitCommentOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.EntityTypes.Add(new CommentEntityTypeDefinition("quote")); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Configure<CmsKitMediaOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.EntityTypes.Add(new MediaDescriptorDefinition("quote")); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
Configure<CmsKitReactionOptions>(options => |
|
|
Configure<CmsKitReactionOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.EntityTypes.Add( |
|
|
options.EntityTypes.Add( |
|
|
|
|
|
@ -43,24 +43,6 @@ |
|
|
</abp-card> |
|
|
</abp-card> |
|
|
|
|
|
|
|
|
<hr /> |
|
|
<hr /> |
|
|
<h3>Media added content editor</h3> |
|
|
|
|
|
<abp-card> |
|
|
|
|
|
<abp-card-body> |
|
|
|
|
|
@if (CurrentUser.Id != null) |
|
|
|
|
|
{ |
|
|
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<MediaFeature>()) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
<div id="content-editor"></div> |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
<span>Please Login</span> |
|
|
|
|
|
} |
|
|
|
|
|
</abp-card-body> |
|
|
|
|
|
</abp-card> |
|
|
|
|
|
|
|
|
|
|
|
<abp-row> |
|
|
<abp-row> |
|
|
<abp-column size-md="_6"> |
|
|
<abp-column size-md="_6"> |
|
|
|
|
|
@ -1,9 +1,6 @@ |
|
|
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap |
|
|
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap |
|
|
@using Volo.Abp.AspNetCore.Mvc.UI.Layout |
|
|
|
|
|
@model Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Pages.PageViewModel |
|
|
|
|
|
@inject IPageLayout PageLayout |
|
|
|
|
|
|
|
|
|
|
|
<h1>@Model.Title</h1> |
|
|
@model Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Pages.PageViewModel |
|
|
|
|
|
|
|
|
<abp-card> |
|
|
<abp-card> |
|
|
<abp-card-body> |
|
|
<abp-card-body> |
|
|
|