From fff0a6f5557dc49e955d9d159c8a6fcd11e1bbbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 26 Jun 2020 16:01:08 +0300 Subject: [PATCH] Resolved #4503: Introduce @libs/uppy npm package. --- .../Mvc/UI/Packages/Uppy/UppyScriptContributor.cs | 13 +++++++++++++ .../Mvc/UI/Packages/Uppy/UppyStyleContributor.cs | 13 +++++++++++++ npm/packs/uppy/abp.resourcemapping.js | 5 +++++ npm/packs/uppy/package.json | 12 ++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Uppy/UppyScriptContributor.cs create mode 100644 framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Uppy/UppyStyleContributor.cs create mode 100644 npm/packs/uppy/abp.resourcemapping.js create mode 100644 npm/packs/uppy/package.json diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Uppy/UppyScriptContributor.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Uppy/UppyScriptContributor.cs new file mode 100644 index 00000000000..691f377c6c5 --- /dev/null +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Uppy/UppyScriptContributor.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using Volo.Abp.AspNetCore.Mvc.UI.Bundling; + +namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.Uppy +{ + public class UppyScriptContributor : BundleContributor + { + public override void ConfigureBundle(BundleConfigurationContext context) + { + context.Files.AddIfNotContains("/libs/uppy/uppy.min.js"); + } + } +} \ No newline at end of file diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Uppy/UppyStyleContributor.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Uppy/UppyStyleContributor.cs new file mode 100644 index 00000000000..c10509515d2 --- /dev/null +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Uppy/UppyStyleContributor.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using Volo.Abp.AspNetCore.Mvc.UI.Bundling; + +namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.Uppy +{ + public class UppyStyleContributor : BundleContributor + { + public override void ConfigureBundle(BundleConfigurationContext context) + { + context.Files.AddIfNotContains("/libs/uppy/uppy.min.css"); + } + } +} \ No newline at end of file diff --git a/npm/packs/uppy/abp.resourcemapping.js b/npm/packs/uppy/abp.resourcemapping.js new file mode 100644 index 00000000000..8af675eb65d --- /dev/null +++ b/npm/packs/uppy/abp.resourcemapping.js @@ -0,0 +1,5 @@ +module.exports = { + mappings: { + "@node_modules/uppy/dist/*.*": "@libs/uppy/" + } +} \ No newline at end of file diff --git a/npm/packs/uppy/package.json b/npm/packs/uppy/package.json new file mode 100644 index 00000000000..93b3c4fce7c --- /dev/null +++ b/npm/packs/uppy/package.json @@ -0,0 +1,12 @@ +{ + "version": "2.9.0", + "name": "@abp/uppy", + "publishConfig": { + "access": "public" + }, + "dependencies": { + "@abp/core": "^2.9.0", + "uppy": "^1.16.1" + }, + "gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431" +}