Added TuiEditor bundle contributors

pull/301/head
Halil ibrahim Kalkan 7 years ago
parent 262c71d46f
commit 9c027157b3

@ -0,0 +1,25 @@
using System.Collections.Generic;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Codemirror;
using Volo.Abp.AspNetCore.Mvc.UI.Packages.HighlightJs;
using Volo.Abp.AspNetCore.Mvc.UI.Packages.MarkdownIt;
using Volo.Abp.Modularity;
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.TuiEditor
{
[DependsOn(
typeof(HighlightJsScriptContributor),
typeof(CodemirrorScriptContributor),
typeof(MarkdownItScriptContributor)
)]
public class TuiEditorScriptContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/to-mark/to-mark.min.js");
context.Files.AddIfNotContains("/libs/tui-code-snippet/tui-code-snippet.min.js");
context.Files.AddIfNotContains("/libs/squire-rte/squire.js");
context.Files.AddIfNotContains("/libs/tui-editor/tui-editor-Editor.min.js");
}
}
}

@ -0,0 +1,21 @@
using System.Collections.Generic;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Codemirror;
using Volo.Abp.AspNetCore.Mvc.UI.Packages.HighlightJs;
using Volo.Abp.Modularity;
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.TuiEditor
{
[DependsOn(
typeof(CodemirrorStyleContributor),
typeof(HighlightJsStyleContributor)
)]
public class TuiEditorStyleContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/tui-editor/tui-editor.min.css");
context.Files.AddIfNotContains("/libs/tui-editor/tui-editor-contents.min.css");
}
}
}

@ -19,11 +19,11 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling
typeof(LodashScriptContributor),
typeof(JQueryValidationUnobtrusiveScriptContributor),
typeof(JQueryFormScriptContributor),
typeof(Select2ScriptContributor),
typeof(DatatablesNetBs4ScriptContributor),
typeof(SweetalertScriptContributor),
typeof(ToastrScriptBundleContributor),
typeof(TimeagoScriptContributor),
typeof(Select2ScriptContributor))]
typeof(TimeagoScriptContributor))]
public class SharedThemeGlobalScriptContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)

Loading…
Cancel
Save