本文整理汇总了C#中Orchard.UI.Resources.ResourceManifestBuilder类的典型用法代码示例。如果您正苦于以下问题:C# ResourceManifestBuilder类的具体用法?C# ResourceManifestBuilder怎么用?C# ResourceManifestBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ResourceManifestBuilder类属于Orchard.UI.Resources命名空间,在下文中一共展示了ResourceManifestBuilder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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");
}
示例2: 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");
}
示例3: 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");
}
示例4: 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");
}
示例5: 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");
}
示例6: 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");
}
示例7: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
builder.Add().DefineStyle("WorkflowsAdmin").SetUrl("orchard-workflows-admin.css").SetDependencies("~/Themes/TheAdmin/Styles/Site.css");
builder.Add().DefineStyle("WorkflowsActivities-Branch").SetUrl("workflows-activity-branch.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-ContentCreate").SetUrl("workflows-activity-contentcreated.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-ContentPublished").SetUrl("workflows-activity-contentpublished.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-ContentRemoved").SetUrl("workflows-activity-contentremoved.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-ContentVersioned").SetUrl("workflows-activity-contentversioned.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-Delete-Publish").SetUrl("workflows-activity-delete-publish.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-Decision").SetUrl("workflows-activity-decision.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-IsInRole").SetUrl("workflows-activity-isinrole.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-Notify").SetUrl("workflows-activity-notify.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-Publish").SetUrl("workflows-activity-publish.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-SendEmail").SetUrl("workflows-activity-sendemail.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-Timer").SetUrl("workflows-activity-timer.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities-UserTask").SetUrl("workflows-activity-usertask.css").SetDependencies("WorkflowsAdmin");
builder.Add().DefineStyle("WorkflowsActivities").SetUrl("workflows-activity.css")
.SetDependencies(
"WorkflowsActivities-Branch",
"WorkflowsActivities-ContentCreate",
"WorkflowsActivities-ContentPublished",
"WorkflowsActivities-ContentRemoved",
"WorkflowsActivities-ContentVersioned",
"WorkflowsActivities-Delete-Publish",
"WorkflowsActivities-Decision",
"WorkflowsActivities-IsInRole",
"WorkflowsActivities-Notify",
"WorkflowsActivities-Publish",
"WorkflowsActivities-SendEmail",
"WorkflowsActivities-Timer",
"WorkflowsActivities-UserTask"
);
}
示例8: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineScript("TagsAutocomplete").SetUrl("orchard-tags-autocomplete.js").SetDependencies("jQueryUI_Widgets");
manifest.DefineStyle("TagsAdmin").SetUrl("orchard-tags-admin.css");
}
示例9: 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");
}
示例10: BuildManifests
public void BuildManifests(ResourceManifestBuilder builder)
{
var manifest = builder.Add();
manifest.DefineScript("AceEditor.NoConflict").SetUrl("ace/src-min-noconflict/ace.js", "ace/src-noconflict/ace.js").SetCdn("//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js");
manifest.DefineScript("AceEditor").SetUrl("ace/src-min/ace.js", "ace/src/ace.js");
}
示例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("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");
}
示例13: 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");
}
示例14: 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);
}
示例15: 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");
}