Added Abp packages

pull/301/head
Halil ibrahim Kalkan 7 years ago
parent 725ce83677
commit d16f4e7f2c

@ -1,4 +1,6 @@
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.Abp.Core;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.Abp.JQuery;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.Bootstrap;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.DatatablesNet;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.DatatablesNetBs4;
@ -13,12 +15,11 @@ using Volo.Abp.Modularity;
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling
{
[DependsOn(
typeof(JQueryScriptContributor),
typeof(AbpCoreScriptContributor),
typeof(AbpJQueryScriptContributor),
typeof(BootstrapScriptContributor),
typeof(JQueryValidationScriptContributor),
typeof(JQueryValidationUnobtrusiveScriptContributor),
typeof(JQueryFormScriptContributor),
typeof(DatatablesNetScriptContributor),
typeof(DatatablesNetBs4ScriptContributor),
typeof(SweetalertScriptContributor),
typeof(ToastrScriptBundleContributor)
@ -29,10 +30,6 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling
{
context.Files.AddRange(new[]
{
//TODO: Move to their own contributors, but first consider to change abp.js a bit
"/libs/abp/core/abp.js",
"/libs/abp/jquery/abp.jquery.js",
"/libs/abp/aspnetcore.mvc.ui.theme.shared/jquery/jquery-extensions.js",
"/libs/abp/aspnetcore.mvc.ui.theme.shared/jquery-form/jquery-form-extensions.js",
"/libs/abp/aspnetcore.mvc.ui.theme.shared/bootstrap/dom-event-handlers.js",

@ -17,6 +17,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
//TODO: Should this go to Basic Theme???
context.Files.Add("/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.css");
}
}

@ -0,0 +1,10 @@
namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.Abp.Core
{
public class AbpCoreScriptContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.Add("/libs/abp/core/abp.js");
}
}
}

@ -0,0 +1,16 @@
using Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.Abp.Core;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.JQuery;
using Volo.Abp.Modularity;
namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling.Libraries.Abp.JQuery
{
[DependsOn(typeof(AbpCoreScriptContributor))]
[DependsOn(typeof(JQueryScriptContributor))]
public class AbpJQueryScriptContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.Add("/libs/abp/jquery/abp.jquery.js");
}
}
}
Loading…
Cancel
Save