mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
3.1 KiB
66 lines
3.1 KiB
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
|
|
using Volo.Abp.Mapperly;
|
|
using Volo.Abp.Http.ProxyScripting.Generators.JQuery;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.VirtualFileSystem;
|
|
using Volo.CmsKit.Reactions;
|
|
using Volo.CmsKit.Web.Icons;
|
|
using Markdig;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.CmsKit.GlobalFeatures;
|
|
using Volo.CmsKit.Web.Contents;
|
|
|
|
namespace Volo.CmsKit.Web;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreMvcUiThemeSharedModule),
|
|
typeof(CmsKitCommonApplicationContractsModule),
|
|
typeof(AbpMapperlyModule)
|
|
)]
|
|
public class CmsKitCommonWebModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.AddMapperlyObjectMapper<CmsKitCommonWebModule>();
|
|
|
|
Configure<CmsKitUiOptions>(options =>
|
|
{
|
|
options.ReactionIcons[StandardReactions.Smile] = new LocalizableIconDictionary("fas fa-smile text-warning");
|
|
options.ReactionIcons[StandardReactions.ThumbsUp] = new LocalizableIconDictionary("fa fa-thumbs-up text-primary");
|
|
options.ReactionIcons[StandardReactions.Confused] = new LocalizableIconDictionary("fas fa-surprise text-warning");
|
|
options.ReactionIcons[StandardReactions.Eyes] = new LocalizableIconDictionary("fas fa-meh-rolling-eyes text-warning");
|
|
options.ReactionIcons[StandardReactions.Heart] = new LocalizableIconDictionary("fa fa-heart text-danger");
|
|
options.ReactionIcons[StandardReactions.HeartBroken] = new LocalizableIconDictionary("fas fa-heart-broken text-danger");
|
|
options.ReactionIcons[StandardReactions.Wink] = new LocalizableIconDictionary("fas fa-grin-wink text-warning");
|
|
options.ReactionIcons[StandardReactions.Pray] = new LocalizableIconDictionary("fas fa-praying-hands text-info");
|
|
options.ReactionIcons[StandardReactions.Rocket] = new LocalizableIconDictionary("fa fa-rocket text-success");
|
|
options.ReactionIcons[StandardReactions.ThumbsDown] = new LocalizableIconDictionary("fa fa-thumbs-down text-secondary");
|
|
options.ReactionIcons[StandardReactions.Victory] = new LocalizableIconDictionary("fas fa-hand-peace text-warning");
|
|
options.ReactionIcons[StandardReactions.Rock] = new LocalizableIconDictionary("fas fa-hand-rock text-warning");
|
|
});
|
|
|
|
context.Services
|
|
.AddSingleton(_ => new MarkdownPipelineBuilder()
|
|
.UseAutoLinks()
|
|
.UseBootstrap()
|
|
.UseGridTables()
|
|
.UsePipeTables()
|
|
.Build());
|
|
|
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
|
{
|
|
options.FileSets.AddEmbedded<CmsKitCommonWebModule>();
|
|
});
|
|
|
|
Configure<DynamicJavaScriptProxyOptions>(options =>
|
|
{
|
|
options.DisableModule(CmsKitCommonRemoteServiceConsts.ModuleName);
|
|
});
|
|
|
|
Configure<CmsKitContentWidgetOptions>(options =>
|
|
{
|
|
options.AddWidgetIfFeatureEnabled(typeof(CommentsFeature), "Comment", "CmsCommenting", "CmsKitCommentConfiguration");
|
|
});
|
|
}
|
|
}
|
|
|
|
|