當前位置: 首頁>>代碼示例>>C#>>正文


C# Resources.ResourceManifestBuilder類代碼示例

本文整理匯總了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");


        }
開發者ID:davegardner,項目名稱:Cascade.Photoswipe,代碼行數:34,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:davegardner,項目名稱:Cascade.WebShop,代碼行數:31,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:kanujhun,項目名稱:desrist,代碼行數:7,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:RasterImage,項目名稱:Orchard,代碼行數:7,代碼來源:ResourceManifest.cs

示例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");
 }
開發者ID:pavelvolek,項目名稱:SYBA.ObalRoku,代碼行數:7,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:CEBD,項目名稱:MerrickHomeConstruction,代碼行數:7,代碼來源:ResourceManifest.cs

示例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"
                );
        }
開發者ID:Timbioz,項目名稱:SciGitAzure,代碼行數:35,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:SeyDutch,項目名稱:Gilde,代碼行數:7,代碼來源:ResourceManifest.cs

示例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");
 }
開發者ID:Devqon,項目名稱:Devq.Employees,代碼行數:7,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:Lombiq,項目名稱:Orchard-Ace-Editor,代碼行數:7,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:GiscardBiamby,項目名稱:Orchard-Bootstrap-Module,代碼行數:29,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:dminik,項目名稱:voda_code,代碼行數:7,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:davegardner,項目名稱:Flipcard,代碼行數:7,代碼來源:ResourceManifest.cs

示例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); 

        }
開發者ID:matt4446,項目名稱:Orchard.RxJS,代碼行數:32,代碼來源:ResourceManifest.cs

示例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");
        }
開發者ID:priaonehaha,項目名稱:vc-orchard-cms,代碼行數:7,代碼來源:ResourceManifest.cs


注:本文中的Orchard.UI.Resources.ResourceManifestBuilder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。