本文整理汇总了C#中Orchard.UI.Resources.ResourceManifestBuilder.Add方法的典型用法代码示例。如果您正苦于以下问题:C# ResourceManifestBuilder.Add方法的具体用法?C# ResourceManifestBuilder.Add怎么用?C# ResourceManifestBuilder.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Orchard.UI.Resources.ResourceManifestBuilder
的用法示例。
在下文中一共展示了ResourceManifestBuilder.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
builder.Add().DefineStyle("ImageGalleryAdmin").SetUrl("image-gallery-admin.css");
builder.Add().DefineStyle("ImageGallery").SetUrl("image-gallery.css");
builder.Add().DefineScript("jQueryMultiFile").SetDependencies("jquery").SetUrl("jquery.MultiFile.pack.js");
}
示例2: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
builder.Add().DefineStyle("ImageGalleryAdmin").SetUrl("image-gallery-admin.css");
builder.Add().DefineStyle("ImageGallery").SetUrl("image-gallery.css");
builder.Add().DefineScript("jQueryMultiFile").SetDependencies("jquery").SetUrl("jquery.MultiFile.pack.js");
builder.Add().DefineScript("jQueryUISortable").SetDependencies("jquery").SetUrl("sortable-interaction-jquery-ui-1.8.10.custom.min.js");
}
示例3: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
var manifest = builder.Add();
manifest.DefineStyle("FlipCard").SetUrl("flipcard.css");
manifest.DefineScript("FlipCard").SetVersion("1.1.1").SetUrl("flipcard.js").SetDependencies("jQuery");
}
示例4: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineStyle("ThemesAdmin").SetUrl("orchard-themes-admin.css");
manifest.DefineScript("jQuery_metadata").SetUrl("jquery.metadata.js").SetDependencies("jQuery");
manifest.DefineScript("mbTabset").SetUrl("mbTabset.min.js", "mbTabset.js").SetDependencies("jQuery", "jQueryUI_Core", "jQueryUI_Sortable", "jQuery_metadata");
}
示例5: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
var manifest = builder.Add();
var mainScript = "rx";
var jqueryRx = "rx.jQuery";
var version = "1.0.10621.0";
manifest.DefineScript(mainScript).SetUrl("rx.min.js").SetVersion(version);
//.SetDependencies("jQuery")
manifest.DefineScript("rx.aggregates").SetUrl("rx.aggregates.min.js")
.SetDependencies(mainScript)
.SetVersion(version);
manifest.DefineScript("rx.coincidence").SetUrl("rx.coincidence.min.js")
.SetDependencies(mainScript)
.SetVersion(version);
manifest.DefineScript("rx.joinpatterns").SetUrl("rx.joinpatterns.min.js")
.SetDependencies(mainScript)
.SetVersion(version);
manifest.DefineScript("rx.time").SetUrl("rx.time.min.js")
.SetDependencies(mainScript)
.SetVersion(version);
manifest.DefineScript("rx.default").SetDependencies(mainScript, "rx.time");
manifest.DefineScript(jqueryRx).SetUrl("rx.jquery.min.js", "rx.jQuery.js")
.SetDependencies(mainScript)
.SetVersion(version);
}
示例6: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
var manifest = builder.Add();
manifest.DefineStyle("LatoFont").SetUrl("//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic|Shadows+Into+Light");
manifest.DefineStyle("VirtoCommerceStore").SetUrl("virtocommerce-store.css");
}
示例7: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
Orchard.UI.Resources.ResourceManifest manifest = builder.Add();
manifest.DefineScript("myscript").SetUrl("myjqueryscript.js").SetDependencies("jQuery");
manifest.DefineStyle("mystyle").SetUrl("mystyle.css");
}
示例8: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineScript("BlurbWidget").SetUrl("blurb-widget.js").SetDependencies("jQuery");
manifest.DefineStyle("BlurbWidget").SetUrl("blurb-widget.css");
}
示例9: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
// Create and add a new manifest
var manifest = builder.Add();
// Define a "common" style sheet
manifest.DefineStyle("Cascade.WebShop.Common").SetUrl("common.css");
// Define the "shoppingcart" style sheet
//manifest.DefineStyle("Cascade.WebShop.ShoppingCart").SetUrl("shoppingcart.css").SetDependencies("Cascade.WebShop.Common");
// Define the Checkout Summary style sheet
//manifest.DefineStyle("Cascade.WebShop.Checkout.Summary").SetUrl("checkout-summary.css").SetDependencies("Cascade.WebShop.Common");
// Order
manifest.DefineStyle("Cascade.WebShop.Order").SetUrl("order.css").SetDependencies("Cascade.WebShop.Common");
// Simulated PSP
manifest.DefineStyle("Cascade.WebShop.SimulatedPSP").SetUrl("simulated-psp.css").SetDependencies("Cascade.WebShop.Common");
// define the shoppingcartwidget style sheet
manifest.DefineStyle("Cascade.WebShop.ShoppingCartWidget").SetUrl("shoppingcartwidget.css").SetDependencies("Cascade.WebShop.Common");
// Define Globalization resources
manifest.DefineScript("Globalize").SetUrl("globalize.js").SetDependencies("jQuery");
manifest.DefineScript("Globalize.Cultures").SetBasePath(manifest.BasePath + "scripts/cultures/").SetUrl("globalize.culture.js").SetCultures("en-US", "en-AU", "en-UK", "nl-NL").SetDependencies("Globalize", "jQuery");
manifest.DefineScript("Globalize.SetCulture").SetUrl("~/Cascade.WebShop/Resource/SetCultureScript").SetDependencies("Globalize.Cultures");
// Define the "shoppingcart" script and set a dependency on the "jQuery" resource
manifest.DefineScript("Cascade.WebShop.ShoppingCart").SetUrl("shoppingcart.js").SetDependencies("jQuery", "jQuery_LinqJs", "Knockout");
manifest.DefineScript("AddToShoppingCart").SetUrl("addtocartbutton.js").SetDependencies("jQuery");
manifest.DefineScript("WebShop.Summary").SetUrl("summary.js").SetDependencies("jQuery", "Knockout");
manifest.DefineScript("Knockout").SetUrl("knockout-3.3.0.js", "knockout-3.3.0.debug.js");
}
示例10: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
var manifest = builder.Add();
// scripts
manifest.DefineScript("PhotoSwipe")
.SetVersion("4.0")
.SetUrl("PhotoSwipe.min.js", "photoswipe.js");
manifest.DefineScript("PhotoSwipe.UI")
.SetVersion("4.0")
.SetDependencies("PhotoSwipe")
.SetUrl("PhotoSwipe-ui-cascade.min.js", "PhotoSwipe-ui-cascade.js");
manifest.DefineScript("InitializePhotoSwipe")
.SetDependencies("PhotoSwipe")
.SetUrl("InitializePhotoSwipe.min.js", "InitializePhotoSwipe.js");
// styles
manifest.DefineStyle("PhotoSwipe")
.SetVersion("4.0")
.SetUrl("photoswipe.css");
manifest.DefineStyle("PhotoSwipe.DefaultSkin")
.SetDependencies("PhotoSwipe", "FontAwesome")
.SetVersion("4.0")
.SetUrl("cascade-skin.css");
manifest.DefineStyle("FontAwesome")
.SetVersion("4.2.0")
.SetCdn("//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css");
}
示例11: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
var manifest = builder.Add();
//Styles
manifest.DefineStyle("Monarch.Bootstrap")
.SetUrl(ModuleStyle("bootstrap/less/bootstrap.css"));
manifest.DefineStyle("Monarch.Bootstrap-responsive")
.SetUrl(ModuleStyle("bootstrap/less/responsive.css"))
.SetDependencies("Monarch.Bootstrap");
manifest.DefineStyle("Monarch.Custom")
.SetUrl(ModuleStyle("bootstrap/less/custom.css"))
.SetDependencies("Monarch.Bootstrap");
// Scripts
manifest.DefineScript("Monarch.Bootstrap").SetUrl(ModuleScript("bootstrap.js")).SetVersion("2.0.2").SetDependencies("jQuery");
manifest.DefineScript("Monarch.Bootstrap-alert").SetUrl(ModuleScript("plugins/bootstrap-alert.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-button").SetUrl(ModuleScript("plugins/bootstrap-button.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-carousel").SetUrl(ModuleScript("plugins/bootstrap-carousel.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-collapse").SetUrl(ModuleScript("plugins/bootstrap-collapse.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-dropdown").SetUrl(ModuleScript("plugins/bootstrap-dropdown.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-modal").SetUrl(ModuleScript("plugins/bootstrap-modal.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-popover").SetUrl(ModuleScript("plugins/bootstrap-popover.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-scrollspy").SetUrl(ModuleScript("plugins/bootstrap-scrollspy.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-tab").SetUrl(ModuleScript("plugins/bootstrap-tab.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-tooltip").SetUrl(ModuleScript("plugins/bootstrap-tooltip.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-transition").SetUrl(ModuleScript("plugins/bootstrap-transition.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
manifest.DefineScript("Monarch.Bootstrap-typeahead").SetUrl(ModuleScript("plugins/bootstrap-typeahead.js")).SetVersion("2.0.2").SetDependencies("Monarch.Bootstrap");
}
示例12: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineStyle("BlogsAdmin").SetUrl("orchard-blogs-admin.css");
manifest.DefineStyle("BlogsArchives").SetUrl("orchard-blogs-archives.css");
manifest.DefineScript("BlogsArchives").SetUrl("orchard-blogs-archives.js").SetDependencies("jQuery");
}
示例13: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineStyle("CategoriesAdmin").SetUrl("obalroku-categories-admin.css");
manifest.DefineStyle("BannerWidget").SetUrl("obalroku-banner-widget.css?3");
manifest.DefineScript("BannerWidget").SetUrl("header-banner.js");
}
示例14: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest
.DefineScript("Angular_SignalR")
.SetUrl("angular-signalr-hub.min.js", "angular-signalr-hub.js")
.SetDependencies("AngularJS");
}
示例15: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineScript("jQuery").SetUrl("jQuery-1.8.2.js");
manifest.DefineStyle("GalleriaImageGallery").SetUrl("GalleriaImageGallery.css");
manifest.DefineScript("GalleriaImageGallery").SetUrl("GalleriaImageGallery.js");
}