mirror of https://github.com/abpframework/abp.git
20 changed files with 6500 additions and 94 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,17 +0,0 @@ |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Widgets; |
|||
|
|||
namespace Volo.CmsKit.Admin.Web.Components.MySettingGroup; |
|||
|
|||
[Widget( |
|||
ScriptFiles = new[] { "/Components/CommentsSetting/index.js" } |
|||
)] |
|||
[ViewComponent(Name = "CmsKitCommentOptions")] |
|||
public class CommentSettingViewComponent: AbpViewComponent |
|||
{ |
|||
public virtual IViewComponentResult Invoke() |
|||
{ |
|||
return View("~/Components/CommentsSetting/Index.cshtml"); |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|||
|
|||
namespace Volo.CmsKit.Admin.Web.Pages.CmsKit.Shared.Components.Comments; |
|||
|
|||
public class CommentSettingScriptBundleContributor : BundleContributor |
|||
{ |
|||
public override void ConfigureBundle(BundleConfigurationContext context) |
|||
{ |
|||
context.Files.AddIfNotContains("/client-proxies/cms-kit-common-proxy.js"); |
|||
context.Files.AddIfNotContains("/Pages/CmsKit/Shared/Components/Comments/index.js"); |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Widgets; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
|
|||
namespace Volo.CmsKit.Admin.Web.Pages.CmsKit.Shared.Components.Comments; |
|||
[ViewComponent(Name = "CmsCommentSetting")] |
|||
[Widget( |
|||
ScriptTypes = new[] { typeof(CommentSettingScriptBundleContributor) }, |
|||
// RefreshUrl = "/CmsKitPublicWidgets/Commenting",
|
|||
AutoInitialize = true |
|||
)] |
|||
public class CommentSettingViewComponent : AbpViewComponent |
|||
{ |
|||
public virtual IViewComponentResult Invoke() |
|||
{ |
|||
return View("~/Pages/CmsKit/Shared/Components/Comments/Index.cshtml"); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue