From d7b62b9dbcb1a5e406797eb0850e79bbedaabb17 Mon Sep 17 00:00:00 2001 From: maliming Date: Wed, 12 Apr 2023 10:55:06 +0800 Subject: [PATCH] Add `QRCodeScriptContributor`. --- .../UI/Packages/QRCode/QRCodeScriptContributor.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/QRCode/QRCodeScriptContributor.cs diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/QRCode/QRCodeScriptContributor.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/QRCode/QRCodeScriptContributor.cs new file mode 100644 index 00000000000..ee164746a8a --- /dev/null +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/QRCode/QRCodeScriptContributor.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; +using Volo.Abp.AspNetCore.Mvc.UI.Bundling; + +namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.QRCode; + +public class QRCodeScriptContributor : BundleContributor +{ + public override void ConfigureBundle(BundleConfigurationContext context) + { + context.Files.AddIfNotContains("/libs/qrcode/qrcode.min.js"); + } +}