|
|
@ -1,4 +1,7 @@ |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|
|
using System.Collections.Generic; |
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Bootstrap; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Bootstrap; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.BootstrapDatepicker; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.BootstrapDatepicker; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.BootstrapDaterangepicker; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.BootstrapDaterangepicker; |
|
|
@ -13,6 +16,7 @@ using Volo.Abp.AspNetCore.Mvc.UI.Packages.Select2; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.SweetAlert2; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.SweetAlert2; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Timeago; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Timeago; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Toastr; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.Toastr; |
|
|
|
|
|
using Volo.Abp.AspNetCore.Security; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling; |
|
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling; |
|
|
@ -35,6 +39,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling; |
|
|
)] |
|
|
)] |
|
|
public class SharedThemeGlobalScriptContributor : BundleContributor |
|
|
public class SharedThemeGlobalScriptContributor : BundleContributor |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
public override void ConfigureBundle(BundleConfigurationContext context) |
|
|
public override void ConfigureBundle(BundleConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
context.Files.AddRange(new[] |
|
|
context.Files.AddRange(new[] |
|
|
@ -49,5 +54,10 @@ public class SharedThemeGlobalScriptContributor : BundleContributor |
|
|
"/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert2/abp-sweetalert2.js", |
|
|
"/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert2/abp-sweetalert2.js", |
|
|
"/libs/abp/aspnetcore-mvc-ui-theme-shared/toastr/abp-toastr.js" |
|
|
"/libs/abp/aspnetcore-mvc-ui-theme-shared/toastr/abp-toastr.js" |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (context.ServiceProvider.GetRequiredService<IOptions<AbpSecurityHeadersOptions>>().Value.UseContentSecurityPolicyNonce) |
|
|
|
|
|
{ |
|
|
|
|
|
context.Files.AddIfNotContains("/libs/abp/aspnetcore-mvc-ui-theme-shared/csp/abp-csp-style-loader.js"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|