Moving jQuery Colorbox resource manifest to a separate file

This commit is contained in:
Benedek Farkas
2025-10-02 18:46:12 +02:00
parent 3974207a95
commit 963ed7e3a8
3 changed files with 19 additions and 9 deletions
@@ -955,6 +955,7 @@
<ItemGroup>
<Compile Include="ResourceManifests\jQueryCalendars.cs" />
<Compile Include="ResourceManifests\jQueryFileUpload.cs" />
<Compile Include="ResourceManifests\jQueryColorbox.cs" />
<Compile Include="ResourceManifests\jQueryUtilities.cs" />
<Compile Include="ResourceManifests\jQueryUI.cs" />
<Compile Include="ResourceManifests\Uri.cs" />
@@ -0,0 +1,18 @@
using Orchard.UI.Resources;
namespace Orchard.Resources.ResourceManifests {
public class jQueryColorbox : IResourceManifestProvider {
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineScript("jQueryColorBox")
.SetUrl("jQuery.Colorbox/jquery.colorbox.min.js", "jQuery.Colorbox/jquery.colorbox.js")
.SetVersion("1.6.4")
.SetDependencies("jQuery");
manifest.DefineStyle("jQueryColorBox")
.SetUrl("jQuery.Colorbox/jquery.colorbox.min.css", "jQuery.Colorbox/jquery.colorbox.css")
.SetVersion("1.6.4");
}
}
}
@@ -48,15 +48,6 @@ namespace Orchard.Resources.ResourceManifests {
manifest.DefineStyle("jQueryDateTimeEditor")
.SetUrl("jquery-datetime-editor.min.css", "jquery-datetime-editor.css")
.SetDependencies("DateTimeEditor");
// jQuery Color Box.
manifest.DefineScript("jQueryColorBox")
.SetUrl("jQuery.Colorbox/jquery.colorbox.min.js", "jQuery.Colorbox/jquery.colorbox.js")
.SetVersion("1.6.3")
.SetDependencies("jQuery");
manifest.DefineStyle("jQueryColorBox")
.SetUrl("jQuery.Colorbox/jquery.colorbox.min.css", "jQuery.Colorbox/jquery.colorbox.css")
.SetVersion("1.6.3");
}
}
}