Exemple #1
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            var jqueryCdnPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js";

            bundles.Add(new ScriptBundle(Links.bundles.scripts.jquery, jqueryCdnPath)
            {
                CdnFallbackExpression = "window.jquery"
            }.
                        Include("~/Scripts/jquery-{version}.js"));

            // Libraries
            var libraryBundle = new ScriptBundle(Links.bundles.scripts.common);

            libraryBundle.Include("~/Scripts/modernizr-2.6.2.js");
            libraryBundle.Include("~/Scripts/bootstrap.js");
            libraryBundle.Include("~/Scripts/knockout-2.2.0.debug.js");
            libraryBundle.Include("~/Scripts/jquery.validate.js");
            libraryBundle.Include("~/Scripts/jquery.validate.unobtrusive.js");
            libraryBundle.Include("~/Scripts/jquery.unobtrusive-ajax.js");
            bundles.Add(libraryBundle);

            // CSS
            var cssBundle = new StyleBundle(Links.bundles.styles.common);

            cssBundle.Include("~/Content/Styles/bootstrap.css");
            cssBundle.Include("~/Content/Styles/bootstrap-responsive.css");
            cssBundle.Include("~/Content/Styles/main.css");
            bundles.Add(cssBundle);

            // Enable bundling
            BundleTable.EnableOptimizations = true;
        }
Exemple #2
0
        private static void RegisterCssBundles(BundleCollection bundles)
        {
            StyleBundle learnMoreBundle = new StyleBundle("~/earn/styles/learnmorestylebundle");

            learnMoreBundle.Include("~/offers/earn/content/css/reset.min.css");
            learnMoreBundle.Include("~/offers/earn/content/css/footer.min.css");
            learnMoreBundle.Include("~/offers/earn/content/css/learn.min.css");
            learnMoreBundle.Include("~/offers/earn/content/css/animate.css");
            learnMoreBundle.Include("~/offers/earn/content/css/socialbar.css");
            bundles.Add(learnMoreBundle);

            StyleBundle faqBundle = new StyleBundle("~/earn/styles/faqBundle");

            faqBundle.Include("~/offers/earn/content/css/reset.min.css");
            faqBundle.Include("~/offers/earn/content/css/footer.min.css");
            faqBundle.Include("~/offers/earn/content/css/faq.min.css");
            faqBundle.Include("~/offers/earn/content/css/socialbar.min.css");
            bundles.Add(faqBundle);

            StyleBundle accountsBundle = new StyleBundle("~/earn/styles/accountsBundle");

            accountsBundle.Include("~/offers/earn/content/css/reset.min.css");
            accountsBundle.Include("~/offers/earn/content/css/footer.min.css");
            accountsBundle.Include("~/offers/earn/content/css/accounts.min.css");
            accountsBundle.Include("~/offers/earn/content/css/socialbar.min.css");
            bundles.Add(accountsBundle);

            StyleBundle enrollBundle = new StyleBundle("~/earn/styles/enrollBundle");

            enrollBundle.Include("~/offers/earn/content/css/reset.min.css");
            enrollBundle.Include("~/offers/earn/content/css/footer.min.css");
            enrollBundle.Include("~/offers/earn/content/css/enroll.min.css");
            enrollBundle.Include("~/offers/earn/content/css/socialbar.css");
            bundles.Add(enrollBundle);
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            var scriptBundle = new ScriptBundle("~/Scripts/bundle");
            var styleBundle  = new StyleBundle("~/Content/bundle");

            // jQuery
            scriptBundle
            .Include("~/Scripts/jquery-2.2.3.js");

            // Bootstrap
            scriptBundle
            .Include("~/Scripts/bootstrap.js");

            // Bootstrap
            styleBundle
            .Include("~/Content/bootstrap.css");

            // Custom site styles
            styleBundle
            .Include("~/Content/Site.css");

            bundles.Add(scriptBundle);
            bundles.Add(styleBundle);

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
Exemple #4
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            var jqueryCdnPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js";

            bundles.Add(new ScriptBundle(Links.bundles.scripts.jquery, jqueryCdnPath) { CdnFallbackExpression = "window.jquery" }.
                Include("~/Scripts/jquery-{version}.js"));

            // Libraries
            var libraryBundle = new ScriptBundle(Links.bundles.scripts.common);
            libraryBundle.Include("~/Scripts/modernizr-2.6.2.js");
            libraryBundle.Include("~/Scripts/bootstrap.js");
            libraryBundle.Include("~/Scripts/knockout-2.2.0.debug.js");
            libraryBundle.Include("~/Scripts/jquery.validate.js");
            libraryBundle.Include("~/Scripts/jquery.validate.unobtrusive.js");
            libraryBundle.Include("~/Scripts/jquery.unobtrusive-ajax.js");
            bundles.Add(libraryBundle);

            // CSS
            var cssBundle = new StyleBundle(Links.bundles.styles.common);
            cssBundle.Include("~/Content/Styles/bootstrap.css");
            cssBundle.Include("~/Content/Styles/bootstrap-responsive.css");
            cssBundle.Include("~/Content/Styles/main.css");
            bundles.Add(cssBundle);

            // Enable bundling
            BundleTable.EnableOptimizations = true;
        }
Exemple #5
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            StyleBundle UserHomeCss = new StyleBundle("~/UserHome");

            UserHomeCss.Include("~/Styles/Style_user.css");
            UserHomeCss.Include("~/Styles/bootstrap.min.css");
            UserHomeCss.Include("~/Styles/easyzoom.css");

            bundles.Add(UserHomeCss);

            StyleBundle UserDashBoardCss = new StyleBundle("~/UserDashboard");

            UserDashBoardCss.Include("~/Styles/Style_user.css");
            UserDashBoardCss.Include("~/Styles/AdminLTE.min.css");

            bundles.Add(UserDashBoardCss);

            StyleBundle AdminCss = new StyleBundle("~/Admin");

            AdminCss.Include("~/Styles/Style.css");
            AdminCss.Include("~/Styles/w3.css");
            AdminCss.Include("~/Styles/table.css");
            AdminCss.Include("~/Styles/AdminLTE.min.css");

            bundles.Add(AdminCss);

            BundleTable.EnableOptimizations = true;
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            //Scripts bundles
            ScriptBundle scripts = new ScriptBundle("~/ScriptsBundle");

            scripts.Include("~/Scripts/jquery-2.2.4.min.js");
            scripts.Include("~/Scripts/bootstrap.min.js");
            scripts.Include("~/Scripts/easing.min.js");
            scripts.Include("~/Scripts/hoverIntent.js");
            scripts.Include("~/Scripts/superfish.min.js");
            scripts.Include("~/Scripts/jquery.ajaxchimp.min.js");
            scripts.Include("~/Scripts/jquery.magnific-popup.min.js");
            scripts.Include("~/Scripts/owl.carousel.min.js");
            scripts.Include("~/Scripts/jquery.nice-select.min");
            scripts.Include("~/Scripts/mail-script.js");
            scripts.Include("~/Scripts/main.js");
            bundles.Add(scripts);

            //CSS bundles
            StyleBundle styles = new StyleBundle("~/StylesBundle");

            styles.Include("~/Styles/bootstrap.css");
            styles.Include("~/Styles/mystyles.css");
            bundles.Add(styles);

            //< link rel = "stylesheet" href = "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic" >
        }
Exemple #7
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            ///Script bundle
            ///
            ScriptBundle thirdPartyScripts = new ScriptBundle("~/Scripts/ThirdParty");

            thirdPartyScripts.Include(
                "~/Scripts/JQuery/jquery-3.3.1.js",
                "~/Scripts/Bootstrap/bootstrap.js"
                );

            ///Style bundle
            ///
            StyleBundle thirdPartyStyles = new StyleBundle("~/Styles/ThirdParty");

            thirdPartyStyles
            .Include("~/Content/Bootstrap/css/bootstrap.min.css", new CssRewriteUrlTransform())
            .Include("~/Content/Font-Awesome/font-awesome.min.css", new CssRewriteUrlTransform());

            ///Apllication Wide styles
            ///
            StyleBundle applicationWideStyles = new StyleBundle("~/Styles/ApplicationWide");

            thirdPartyStyles.Include(
                "~/Content/CSS/Application/appStyle.css",
                "~/Content/CSS/Application/Pretty-Footer.css",
                "~/Content/CSS/Application/Google-Style-Login.css"
                );

            bundles.Add(thirdPartyScripts);
            bundles.Add(thirdPartyStyles);
            bundles.Add(applicationWideStyles);

            BundleTable.EnableOptimizations = true;
        }
Exemple #8
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            ScriptBundle jqueryBundle =
                new ScriptBundle("~/bundles/jquery");

            jqueryBundle.Include("" +
                                 "~/Scripts/jquery-{version}.min.js",
                                 "~/Scripts/jquery.validate.min.js",
                                 "~/Scripts/jquery.validate.unobtrusive.min.js"
                                 );

            ScriptBundle bootstrapScriptBundle =
                new ScriptBundle("~/bundles/bootstrap");

            bootstrapScriptBundle.Include("~/Scripts/bootstarp.min.js");

            StyleBundle bootstrapStyleBundle = new StyleBundle("~/bundles/css");

            bootstrapStyleBundle.Include("~/Content/Site.css");
            bootstrapStyleBundle.Include("~/Content/bootstrap.min.css");

            bundles.Add(jqueryBundle);
            bundles.Add(bootstrapStyleBundle);
            bundles.Add(bootstrapScriptBundle);

            BundleTable.EnableOptimizations = true;
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            // Enable bundling optimizations, even when the site is in debug mode or local.
            BundleTable.EnableOptimizations = true;


            // Bundle the Handlebars plugins
            var handlebarsScripts = new ScriptBundle("~/bundles/scripts/handlebars");

            handlebarsScripts.Include(
                "~/Content/scripts/vendor/handlebars.js",
                "~/Content/scripts/vendor/handlebars.extended.js");
            handlebarsScripts.Orderer = new NonOrderingBundleOrderer();

            bundles.Add(handlebarsScripts);



            // Bundle the vendor's styles
            var vendorStyles = new StyleBundle("~/bundles/styles/vendor");

            vendorStyles.Include("~/Content/scripts/vendor/kendo/styles/kendo.common-bootstrap.min.css", new CssRewriteUrlTransformer());
            vendorStyles.Include("~/Content/scripts/vendor/kendo/styles/kendo.bootstrap.min.css", new CssRewriteUrlTransformer());

            bundles.Add(vendorStyles);
        }
Exemple #10
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/angular-core").Include(
                "~/Scripts/angular.js",
                "~/Scripts/angular-resource.js"
                ));

            bundles.Add(new ScriptBundle("~/bundles/angular-app").IncludeDirectory("~/app","*.js"));

            bundles.Add(new ScriptBundle("~/bundles/less-js").Include("~/Scripts/less-1.5.1.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                "~/Scripts/bootstrap.js",
                "~/Scripts/respond.js"));

            var lessBundle = new StyleBundle("~/Content/css");
            lessBundle.Include("~/less/bootstrap/bootstrap.less");
            lessBundle.Include("~/less/font-awesome/font-awesome.less");
            lessBundle.Include("~/content/site.less");

            bundles.Add(lessBundle);
        }
Exemple #11
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var scriptBundle = new ScriptBundle("~/Scripts/bundle");
            var styleBundle  = new StyleBundle("~/Content/bundle");

            // jQuery
            scriptBundle
            .Include("~/Scripts/jquery-{version}.js")
            .Include("~/Scripts/jquery.validate.min.js")
            .Include("~/Scripts/jquery.validate.unobtrusive.min.js")
            .Include("~/Scripts/jquery.unobtrusive-ajax.min.js");

            // Bootstrap
            scriptBundle
            .Include("~/Scripts/bootstrap.js");

            // Bootstrap
            styleBundle
            .Include("~/Content/bootstrap.css");

            // Custom site styles
            styleBundle
            .Include("~/Content/Site.css")
            .Include("~/Content/custom.css");

            bundles.Add(scriptBundle);
            bundles.Add(styleBundle);

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            var styleBundle  = new StyleBundle("~/Content/DevExtremeBundle");
            var scriptBundle = new ScriptBundle("~/Scripts/DevExtremeBundle");

            // Adding the UTF-8 charset to display icons correctly
            styleBundle.Include("~/Content/Charset.css");

            // Uncomment to use the Gantt control
            //styleBundle.Include("~/Content/dx-gantt.css");

            // Uncomment to use the Diagram control
            //styleBundle.Include("~/Content/dx-diagram.css");

            styleBundle.Include("~/Content/dx.common.css");

            // Predefined themes: https://js.devexpress.com/DevExtreme/Guide/Themes_and_Styles/Predefined_Themes/
            styleBundle.Include("~/Content/dx.light.css");

            // Uncomment to use the Gantt control
            //scriptBundle.Include("~/Scripts/dx-gantt.js");

            // Uncomment to use the Diagram control
            //scriptBundle.Include("~/Scripts/dx-diagram.js");

            // NOTE: jQuery may already be included in the default script bundle. Check the BundleConfig.cs file.
            //scriptBundle.Include("~/Scripts/jquery-3.6.0.js");

            // Uncomment to use Globalize for localization
            // Docs: https://docs.devexpress.com/DevExtremeAspNetMvc/400706#globalize
            //scriptBundle.Include("~/Scripts/cldr.js");
            //scriptBundle.Include("~/Scripts/cldr/event.js");
            //scriptBundle.Include("~/Scripts/cldr/supplemental.js");
            //scriptBundle.Include("~/Scripts/cldr/unresolved.js");
            //scriptBundle.Include("~/Scripts/globalize.js");
            //scriptBundle.Include("~/Scripts/globalize/message.js");
            //scriptBundle.Include("~/Scripts/globalize/number.js");
            //scriptBundle.Include("~/Scripts/globalize/currency.js");
            //scriptBundle.Include("~/Scripts/globalize/date.js");

            // Uncomment to enable client-side export
            //scriptBundle.Include("~/Scripts/jszip.js");

            scriptBundle.Include("~/Scripts/dx.all.js");

            // Uncomment to provide geo-data for the VectorMap control
            // Docs: https://js.devexpress.com/DevExtreme/Guide/Widgets/VectorMap/Providing_Data/#Data_for_Areas
            //scriptBundle.Include("~/Scripts/vectormap-data/world.js");

            scriptBundle.Include("~/Scripts/aspnet/dx.aspnet.mvc.js");
            scriptBundle.Include("~/Scripts/aspnet/dx.aspnet.data.js");

            bundles.Add(styleBundle);
            bundles.Add(scriptBundle);

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
 private static void RegisterStyleBundles(BundleCollection bundles)
 {
     var cssBundle = new StyleBundle("~/Assets/Styles/before");
     cssBundle.Include("~/Assets/Styles/Bootstrap.css");
     cssBundle.Include("~/Assets/Styles/Ionicons.css");
     cssBundle.Include("~/Assets/Styles/So.css");
     bundles.Add(cssBundle);
 }
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var jsBundles = new ScriptBundle("~/jsBundles/jquery");
            jsBundles.Orderer = new AsDefinedBundleOrderer();
            jsBundles.Include("~/Scripts/modernizr-{version}.js");
            jsBundles.Include("~/Scripts/jquery-{version}.js");
            jsBundles.Include("~/Scripts/linq.js");
            jsBundles.Include("~/Scripts/bootstrap.js");
            jsBundles.Include("~/Scripts/jquery-ui.js");
            jsBundles.Include("~/Scripts/jquery.ikecode.extenders.js");

            //plugins
            jsBundles.Include("~/Scripts/jquery.cookie.js");
            jsBundles.Include("~/Scripts/jquery.bootgrid.js");
            jsBundles.Include("~/Scripts/jquery.bootgrid.fa.js");
            jsBundles.Include("~/Scripts/bootstrap.file-input.js");
            jsBundles.Include("~/Scripts/plugins/bootstrapvalidator/bootstrapValidator.min.js");
            jsBundles.Include("~/Scripts/plugins/jquery.mask-1.13.4.js");

            jsBundles.Include("~/Scripts/plugins/snarl.js");
            jsBundles.Include("~/Scripts/moment.js");
            jsBundles.Include("~/Scripts/fullcalendar.js");
            jsBundles.Include("~/Scripts/gcal.js");
            jsBundles.Include("~/Scripts/lang/pt-br.js");

            jsBundles.Include("~/Scripts/knockout-{version}.js");
            jsBundles.Include("~/Scripts/knockout.mapping-latest.js");
            jsBundles.Include("~/Scripts/knockout.validation.js");

            jsBundles.Include("~/Scripts/ApiConfigs.js");
            jsBundles.Include("~/Scripts/Models/EnumCache.js");
            jsBundles.Include("~/Scripts/Models/PocoModels.js");
            jsBundles.Include("~/Scripts/Models/ConfirmModalModel.js");
            jsBundles.Include("~/Scripts/common.js");
            jsBundles.Include("~/Scripts/DataGridHelper.js");
            jsBundles.Include("~/Scripts/Models/BaseDataGridModel.js");
            bundles.Add(jsBundles);

            var styleBundle = new StyleBundle("~/cssBundles/styles");
            styleBundle.Orderer = new AsDefinedBundleOrderer();
            styleBundle.Include("~/Content/bootstrap.css", new CssRewriteUrlTransform());
            styleBundle.Include("~/Content/jquery-ui.css", new CssRewriteUrlTransform());
            styleBundle.Include("~/Content/bootstrap.theme.css", new CssRewriteUrlTransform());
            styleBundle.Include("~/Content/snarl.min.css", new CssRewriteUrlTransform());
            styleBundle.Include("~/Content/fullcalendar.css", new CssRewriteUrlTransform());
            styleBundle.Include("~/Content/jquery.bootgrid.css", new CssRewriteUrlTransform());

            styleBundle.Include("~/Content/common.css", new CssRewriteUrlTransform());
            bundles.Add(styleBundle);

            var loginStyleBundle = new StyleBundle("~/cssBundles/loginStyles");
            loginStyleBundle.Orderer = new AsDefinedBundleOrderer();
            loginStyleBundle.Include("~/Content/login/css/main.css", new CssRewriteUrlTransform());
            loginStyleBundle.Include("~/Content/login/css/style.css", new CssRewriteUrlTransform());
            loginStyleBundle.Include("~/Content/login/css/animate-custom.css", new CssRewriteUrlTransform());
            bundles.Add(loginStyleBundle);
        }
Exemple #15
0
        static StyleBundle CreateStyleBundle()
        {
            var bundle = new StyleBundle(StyleBundlePath);

            bundle.Include("~/Content/DevExtreme/dx-diagram.min.css");
            bundle.Include("~/Content/DevExtreme/dx-gantt.min.css");
            bundle.Include("~/Content/DevExtreme/dx.common.css");
            return(bundle);
        }
Exemple #16
0
        public static void Config(BundleCollection bundles)
        {
            var cssBundle = new StyleBundle(Path);

            cssBundle.Include("~/Content/bootstrap.css");
            cssBundle.Include("~/Content/bootstrap-theme.css");
            cssBundle.Include("~/Content/site.css");

            bundles.Add(cssBundle);
        }
        static Bundle GetCSS()
        {
            StyleBundle css = new StyleBundle("~/Content/css");

            css.IncludeDirectory("~/Content/", "*.css");
            css.Include("~/Content/Site.css");
            css.Include("~/Content/datepicker.css");
            css.Include("~/Content/timepicker.css");
            return(css);
        }
Exemple #18
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        /// <summary>
        /// Registers the bundles.
        /// </summary>
        /// <param name="bundles">The bundles.</param>
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                            "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                            "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                            "~/Scripts/bootstrap.js",
                            "~/Scripts/profile.js",

                            "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/bundles/css").Include(
                            "~/Content/bootstrap.css",
                            "~/Content/Fyotx.css",
                            "~/Content/site.css"));

            // Adding support for DropZone
            bundles.Add(new ScriptBundle("~/bundles/dropzonescripts").Include(
                            "~/Scripts/dropzone/dropzone.js"));

            var DZSB = new StyleBundle("~/bundles/dropzonecss");

            DZSB.Include("~/Scripts/dropzone/basic.css",
                         "~/Scripts/dropzone/dropzone.css");
            bundles.Add(DZSB);

            // Adding support for Star Rating...
            bundles.Add(new ScriptBundle("~/bundles/starrating").Include(
                            "~/Scripts/bootstrap-star-rating/js/star-rating.js"));

            var SRSB = new StyleBundle("~/bundles/star-rating");

            SRSB.Include("~/Scripts/bootstrap-star-rating/css/star-rating.css");
            SRSB.Include("~/Scripts/bootstrap-star-rating/css/theme-krajee-svg.css");
            SRSB.Include("~/Scripts/bootstrap-star-rating/css/theme-krajee-fa.css");
            bundles.Add(SRSB);

            bundles.Add(new StyleBundle("~/Content/httpErrors").Include(
                            "~/Content/HttpErrorPages/Layout.css"));


            // Set EnableOptimizations to false for debugging. For more information,
            // visit http://go.microsoft.com/fwlink/?LinkId=301862
            BundleTable.EnableOptimizations = false;
        }
Exemple #19
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var scriptBundle = new ScriptBundle("~/Scripts/bundle");
            var styleBundle  = new StyleBundle("~/Content/bundle");

            // jQuery
            scriptBundle
            .Include("~/Scripts/jquery-3.4.1.js");

            scriptBundle
            .Include("~/Scripts/jquery.mask.js");


            // jqeury validadte
            scriptBundle
            .Include("~/Scripts/bootstrap.js");

            scriptBundle
            .Include("~/Scripts/jquery.validate.js");

            scriptBundle
            .Include("~/Scripts/jquery.validate.pt-br.js");

            scriptBundle
            .Include("~/Scripts/Mascara.js");

            scriptBundle
            .Include("~/Scripts/toastr.js");

            // Bootstrap
            styleBundle
            .Include("~/Content/bootstrap.css");

            styleBundle
            .Include("~/Content/validate.css");

            // Custom site styles
            styleBundle
            .Include("~/Content/Site.css");

            styleBundle
            .Include("~/Content/toastr.css");



            bundles.Add(scriptBundle);
            bundles.Add(styleBundle);

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
Exemple #20
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            StyleBundle estilos = new StyleBundle("~/bundles/estilos");
            estilos.Include("~/Content/bootstrap/css/bootstrap.css");
            estilos.Include("~/Content/Style.css");
            bundles.Add(estilos);

            ScriptBundle scripts = new ScriptBundle("~/bundles/scripts");
            scripts.Include("~/Scripts/jquery-2.1.1.js");
            scripts.Include("~/Scripts/jquery.validate.js");
            scripts.Include("~/Scripts/jquery.validate.unobtrusive.js");
            bundles.Add(scripts);
        }
Exemple #21
0
        public static void RegisterBundles(AssetViewModel asset)
        {
            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.

            Bundle cssBundle = new StyleBundle(BundleConfig.CSSBundles);

            cssBundle.Include(
                "~/Content/site.css",
                "~/Content/objects/ad.css",
                "~/Content/objects/header.css",
                "~/Content/objects/footer.css",
                "~/Content/objects/genericBlock.css",
                "~/Content/objects/navigation.css",
                "~/Content/objects/comment.css",
                //"~/Content/objects/review.css",
                "~/Content/objects/socialLinks.css",
                "~/Content/objects/subsiteNav.css"
                );
            foreach (string path in asset.IncludeCSSPaths)
            {
                cssBundle.Include(path);
            }
            BundleTable.Bundles.Add(cssBundle);

            Bundle headJSBundle = new ScriptBundle(BundleConfig.HeadJSBundles);

            headJSBundle.Include(
                "~/Scripts/vendor/modernizr-2.6.2.min.js",
                "~/Scripts/vendor/responsive-nav.min.js");
            foreach (string path in asset.IncludeHeadJSPaths)
            {
                headJSBundle.Include(path);
            }
            BundleTable.Bundles.Add(headJSBundle);

            Bundle tailJSBundle = new ScriptBundle(BundleConfig.TailJSBundles);

            tailJSBundle.Include(
                "~/Scripts/vendor/media.match.min.js",
                "~/Scripts/vendor/enquire.js",
                "~/Scripts/objects/header.js");
            foreach (string path in asset.IncludeTailJSPaths)
            {
                tailJSBundle.Include(path);
            }
            BundleTable.Bundles.Add(tailJSBundle);
            // Enable minification js to be bundled even in Debug mode
            BundleTable.EnableOptimizations = true;
        }
Exemple #22
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var styleBundle = new StyleBundle("~/Content/css");

            styleBundle.Include("~/Content/bootstrap.css");
            styleBundle.Include("~/Content/site.css");
            styleBundle.Include("~/Content/MyStyle.css");

            bundles.Add(styleBundle);

            bundles.Add(new ScriptBundle("~/bundles/js/lib").Include(
                            "~/Scripts/jquery-{version}.js",
                            "~/Scripts/jquery.validate*",
                            "~/Scripts/modernizr-*",
                            "~/Scripts/bootstrap.js",
                            "~/Scripts/respond.js",
                            "~/Scripts/angular.js",
                            "~/Scripts/angular-route.js",
                            "~/Scripts/angular-cookies.js",
                            "~/Scripts/spin.js",
                            "~/Scripts/angular-spinner.js",
                            "~/Scripts/akFileUploader.js"
                            ));

            bundles.Add(new ScriptBundle("~/bundles/js/app").Include(
                            //Main Angular module
                            "~/App_Scripts/app.module.js",
                            "~/App_Scripts/app.config.js",

                            //Home
                            "~/App_Scripts/Home/header.controller.js",
                            "~/App_Scripts/Home/home.controller.js",
                            //Quote
                            "~/App_Scripts/Quote/app.add.quote.module.js",
                            "~/App_Scripts/Quote/quote.controller.js",
                            "~/App_Scripts/Quote/quote.service.js",
                            "~/App_Scripts/Quote/add.quote.controller.js",
                            //AddRecipe
                            "~/App_Scripts/AddRecipe/app.add.recipe.module.js",
                            "~/App_Scripts/AddRecipe/add.recipe.controller.js",
                            "~/App_Scripts/AddRecipe/add.recipe.service.js",
                            //Advisor
                            "~/App_Scripts/Advisor/app.advisor.module.js",
                            "~/App_Scripts/Advisor/advisor.controller.js",
                            "~/App_Scripts/Advisor/advisor.service.js",
                            //Error
                            "~/App_Scripts/Error/app.error.module.js",
                            "~/App_Scripts/Error/error.controller.js"
                            ));
        }
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        /// <summary>
        /// Registers the bundles.
        /// </summary>
        /// <param name="bundles">The bundles.</param>
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/profile.js",

                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/bundles/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/Fyotx.css",
                      "~/Content/site.css"));

            // Adding support for DropZone
            bundles.Add(new ScriptBundle("~/bundles/dropzonescripts").Include(
                     "~/Scripts/dropzone/dropzone.js"));

            var DZSB = new StyleBundle("~/bundles/dropzonecss");
            DZSB.Include("~/Scripts/dropzone/basic.css",
                     "~/Scripts/dropzone/dropzone.css");
            bundles.Add(DZSB);

            // Adding support for Star Rating...
            bundles.Add(new ScriptBundle("~/bundles/starrating").Include(
                "~/Scripts/bootstrap-star-rating/js/star-rating.js"));

            var SRSB = new StyleBundle("~/bundles/star-rating");
            SRSB.Include("~/Scripts/bootstrap-star-rating/css/star-rating.css");
            SRSB.Include("~/Scripts/bootstrap-star-rating/css/theme-krajee-svg.css");
            SRSB.Include("~/Scripts/bootstrap-star-rating/css/theme-krajee-fa.css");
            bundles.Add(SRSB);

            bundles.Add(new StyleBundle("~/Content/httpErrors").Include(
              "~/Content/HttpErrorPages/Layout.css"));

            // Set EnableOptimizations to false for debugging. For more information,
            // visit http://go.microsoft.com/fwlink/?LinkId=301862
            BundleTable.EnableOptimizations = false;
        }
Exemple #24
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var libsBundle = new ScriptBundle("~/bundle/libs");

            libsBundle.Include("~/Libs/bootstrap.min.js");
            libsBundle.Include("~/Libs/ui-bootstrap-tpls-0.4.0.min.js");
            libsBundle.Include("~/Libs/angular-resource.js");
            libsBundle.Include("~/Libs/date.js");
            libsBundle.Include("~/Libs/underscore.js");

            var cssBundle = new StyleBundle("~/bundle/css");

            cssBundle.Include("~/Assets/css/bootstrap.min.css");
            cssBundle.Include("~/Assets/css/page-global.css");

            var angularScriptBundle = new ScriptBundle("~/bundle/angular/libs");

            angularScriptBundle.Include("~/Assets/js/resources/resources.js");

            var animalScriptBundle = new ScriptBundle("~/bundle/animal/libs");

            animalScriptBundle.Include("~/Assets/js/apps/animal.js");
            animalScriptBundle.Include("~/Assets/js/controllers/animal/index.js");
            animalScriptBundle.Include("~/Assets/js/controllers/animal/employee-application.js");

            var adminScriptBundle = new ScriptBundle("~/bundle/admin/libs");

            adminScriptBundle.Include("~/Assets/js/apps/admin.js");
            adminScriptBundle.Include("~/Assets/js/controllers/admin/approve-employee.js");

            var animalStyleBundle = new StyleBundle("~/bundle/animal/css");

            animalStyleBundle.Include("~/Assets/css/page-animal.css");

            var adminStyleBundle = new StyleBundle("~/bundle/admin/css");

            adminStyleBundle.Include("~/Assets/css/page-admin.css");


            bundles.Add(libsBundle);
            bundles.Add(cssBundle);
            bundles.Add(angularScriptBundle);

            bundles.Add(animalScriptBundle);
            bundles.Add(adminScriptBundle);

            bundles.Add(animalStyleBundle);
            bundles.Add(adminStyleBundle);
        }
Exemple #25
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            StyleBundle style = new StyleBundle("~/bundles/styles");

            style.Include("~/Content/bootstrap/css/bootstrap.css");
            style.Include("~/Content/Style.css");
            bundles.Add(style);

            ScriptBundle script = new ScriptBundle("~/bundles/scripts");

            script.Include("~/Scripts/jquery-1.7.1.js");
            script.Include("~/Scripts/jquery.validate.js");
            script.Include("~/Scripts/jquery.validate.unobtrusive.js");
            bundles.Add(script);
        }
Exemple #26
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            StyleBundle  estilos = new StyleBundle("~/bundles/estilos");
            ScriptBundle scripts = new ScriptBundle("~/bundles/scripts");

            estilos.Include("~/Content/bootstrap/css/bootstrap.css");
            estilos.Include("~/Content/Style.css");

            scripts.Include("~/Scripts/jquery-1.7.1.js");
            scripts.Include("~/Scripts/jquery.validade.js");
            scripts.Include("~/Scripts/jquery.validade.unobtrusive.js");

            bundles.Add(estilos);
            bundles.Add(scripts);
        }
Exemple #27
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.IgnoreList.Clear();
            bundles.DirectoryFilter.Clear();
            bundles.DirectoryFilter.Ignore("font-awesome.*", OptimizationMode.Always);

            var css = new StyleBundle("~/bundles/css");
            css.Include("~/content/css/font-awesome.css", new CssRewriteUrlTransform());
            css.Include("~/content/css/kube.min.css");
            css.Include("~/content/css/kube.responsive.min.css");
            css.Include("~/content/css/forms.css");
            css.Include("~/content/css/site.css");

            bundles.Add(css);
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            var scriptBundle = new ScriptBundle("~/Scripts/bundle");
            var styleBundle  = new StyleBundle("~/Content/bundle");

            // jQuery
            scriptBundle
            .Include("~/Scripts/jquery-3.1.0.js");


            // Bootstrap
            scriptBundle
            .Include("~/Scripts/bootstrap.js");

            // My Scripts
            bundles.Add(new ScriptBundle("~/bundles/MyScripts").Include(
                            "~/MyScripts/aes.js",
                            "~/MyScripts/MyFunctions.js",
                            "~/MyScripts/jquery.maskedinput-1.3.1.min.js",
                            "~/Templates/assets/js/Load.js",
                            "~/Templates/Alert/jquery-confirm.min.js"));

            // Bootstrap
            styleBundle
            .Include
            (
                "~/Content/bootstrap.css",
                "~/Content/Site.css",
                "~/Templates/Alert/jquery-confirm.min.css"
            );


            // Custom site styles
            styleBundle
            .Include();

            //bundles.Add(new ScriptBundle("~/bundles/MyScripts").Include(
            //            //"~/JScripts/jquery.js",
            //            "~/MyScripts/aes.js",
            //           "~/MyScripts/MyFunctions.js"));

            bundles.Add(scriptBundle);
            bundles.Add(styleBundle);

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
Exemple #29
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.ResetAll();
            // create an object of ScriptBundle and
            // specify bundle name (as virtual path) as constructor parameter
            ScriptBundle scriptJs = new ScriptBundle("~/bundles/js");
            StyleBundle  styleCss = new StyleBundle("~/content/css/bundles");

            //use Include() method to add all the script files with their paths
            scriptJs.Include(
                "~/content/js/jquery-1.11.1.min.js",
                "~/content/js/bootstrap.min.js",
                "~/content/js/jquery.validate.min.js",
                "~/content/js/myscript.js"
                );

            styleCss.Include(
                "~/content/css/bootstrap.min.css",
                "~/content/css/bootstrap-theme.min.css",
                "~/content/css/style_sheet.css",
                "~/content/css/responsive.css",
                "~/content/css/font-awesome.min.css"
                );

            ////Add the bundle into BundleCollection

            bundles.Add(styleCss);
            bundles.Add(scriptJs);


            BundleTable.EnableOptimizations = true;
        }
        /// <summary>
        /// 动态捆绑多个样式
        /// </summary>
        /// <param name="htmlHelper"></param>
        /// <param name="styles">样式</param>
        /// <returns></returns>
        public static IHtmlString BundleStyles(this HtmlHelper htmlHelper, params Func <object, object>[] styles)
        {
            if (styles == null)
            {
                throw new ArgumentNullException("styles");
            }

            var inputs = new StringBuilder();

            foreach (var style in styles)
            {
                inputs.AppendLine(style.Invoke(null).ToString().ToLower());
            }

            var applicationPath           = htmlHelper.ViewContext.HttpContext.Request.ApplicationPath.ToLower();
            Func <string, string> fixHref = (href) => applicationPath == "/" ? "~" + href : href.Replace(applicationPath, "~");

            var hrefs = inputs.ToString().Matches(@"(?<=href="").+?\.css(?="")").Select(item => fixHref(item)).ToArray();
            var path  = string.Format("~/{0}.css", Math.Abs(string.Join(string.Empty, hrefs).GetHashCode()));

            if (BundleTable.Bundles.GetBundleFor(path) == null)
            {
                Bundle bundle = new StyleBundle(path);
                foreach (var href in hrefs)
                {
                    bundle = bundle.Include(href, new StyleUrlTransform(applicationPath));
                }
                BundleTable.Bundles.Add(bundle);
            }
            return(Styles.Render(path));
        }
        // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));





            StyleBundle styleBundle1 = new StyleBundle("~/Content/jQuery-File-Upload");
            styleBundle1.Include(
                  "~/Content/global/plugins/fancybox/source/jquery.fancybox.css"
                , "~/Content/global/plugins/jquery-file-upload/blueimp-gallery/blueimp-gallery.min.css"
                , "~/Content/global/plugins/jquery-file-upload/css/jquery.fileupload.css"
                , "~/Content/global/plugins/jquery-file-upload/css/jquery.fileupload-ui.css");
            bundles.Add(styleBundle1);


            ScriptBundle scriptBndl = new ScriptBundle("~/bundles/Blueimp-Gallerry2");

            scriptBndl.Include(
                                "~/Content/global/plugins/fancybox/source/jquery.fancybox.pack.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/vendor/jquery.ui.widget.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/vendor/tmpl.min.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/vendor/load-image.min.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/vendor/canvas-to-blob.min.js"
                              , "~/Content/global/plugins/jquery-file-upload/blueimp-gallery/jquery.blueimp-gallery.min.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/jquery.iframe-transport.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/jquery.fileupload.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/jquery.fileupload-process.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/jquery.fileupload-image.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/jquery.fileupload-audio.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/jquery.fileupload-video.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/jquery.fileupload-validate.js"
                              , "~/Content/global/plugins/jquery-file-upload/js/jquery.fileupload-ui.js");
                              


            //Add the bundle into BundleCollection
            bundles.Add(scriptBndl);

            BundleTable.EnableOptimizations = true;


        }
        // Para obtener más información sobre las uniones, visite https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            #region Styles CSS
            var StylesBundle = new StyleBundle("~/Content/css");
            StylesBundle
            .Include("~/Content/themes/base/all.css")
            .Include("~/Content/css/materialize.min.css")
            .Include("~/Content/custom.css");

            bundles.Add(StylesBundle);
            #endregion

            #region Scripts
            var jsscripts = new ScriptBundle("~/Content/scripts");
            jsscripts
            .Include("~/Scripts/jquery-{version}.js")
            .Include("~/Scripts/jquery-ui-1.12.1.min.js")
            .Include("~/Scripts/modernizr-*")
            .Include("~/Scripts/jquery.validate.js")
            .Include("~/Scripts/jquery.validate.unobtrusive.js")
            .Include("~/Scripts/js/materialize.min.js");

            bundles.Add(jsscripts);
            #endregion
        }
Exemple #33
0
        public static void Register(IKernel kernel)
        {
            if (!CurrentRequestData.DatabaseIsInstalled)
                return;

            foreach (IStylesheetBundle bundle in kernel.GetAll<IStylesheetBundle>())
            {
                var styleBundle = new StyleBundle(bundle.Url);
                foreach (string file in bundle.Files)
                {
                    styleBundle.Include(file);
                }
                BundleTable.Bundles.Add(styleBundle);
            }
            foreach (IScriptBundle bundle in kernel.GetAll<IScriptBundle>())
            {
                var styleBundle = new ScriptBundle(bundle.Url);
                foreach (string file in bundle.Files)
                {
                    styleBundle.Include(file);
                }
                BundleTable.Bundles.Add(styleBundle);
            }
            BundleTable.EnableOptimizations = kernel.Get<BundlingSettings>().EnableOptimisations;
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            {
                bundles.UseCdn = true;

                StyleBundle siteCSS = new StyleBundle("~/Content/siteCSS");
                siteCSS.Include("~/Content/navbar_style.css",
                  "~/Content/site_style.css");
                bundles.Add(siteCSS);

                StyleBundle bootstrapCSS = new StyleBundle("~/Content/bootstrapCSS", "//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css");
                bootstrapCSS.Include("~/Content/bootstrap.min.css");
                bundles.Add(bootstrapCSS);

                StyleBundle fontawesomeCSS = new StyleBundle("~/Content/fontawesomeCSS", "//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css");
                fontawesomeCSS.Include("~/Content/font-awesome.css");
                bundles.Add(fontawesomeCSS);

                ScriptBundle siteJS = new ScriptBundle("~/Scripts/siteJS");
                siteJS.Include("~/Scripts/jquery-2.1.4.min.js", "~/Scripts/bootstrap.min.js");
                bundles.Add(siteJS);

                BundleTable.EnableOptimizations = true;
            }
        }
Exemple #35
0
        public static void Register(IKernel kernel)
        {
            if (!CurrentRequestData.DatabaseIsInstalled)
            {
                return;
            }

            foreach (IStylesheetBundle bundle in kernel.GetAll <IStylesheetBundle>())
            {
                StyleBundle styleBundle = new StyleBundle(bundle.Url);
                foreach (string file in bundle.Files)
                {
                    styleBundle.Include(file);
                }
                BundleTable.Bundles.Add(styleBundle);
            }
            foreach (IScriptBundle bundle in kernel.GetAll <IScriptBundle>())
            {
                ScriptBundle styleBundle = new ScriptBundle(bundle.Url);
                foreach (string file in bundle.Files)
                {
                    styleBundle.Include(file);
                }
                BundleTable.Bundles.Add(styleBundle);
            }
            BundleTable.EnableOptimizations = kernel.Get <BundlingSettings>().EnableOptimisations;
        }
Exemple #36
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var scriptBundle = new ScriptBundle("~/Scripts/DevExtremeBundle");
            var styleBundle  = new StyleBundle("~/Content/DevExtremeBundle");

            // CLDR scripts
            scriptBundle
            .Include("~/Scripts/cldr.js")
            .Include("~/Scripts/cldr/event.js")
            .Include("~/Scripts/cldr/supplemental.js")
            .Include("~/Scripts/cldr/unresolved.js");

            // Globalize 1.x
            scriptBundle
            .Include("~/Scripts/globalize.js")
            .Include("~/Scripts/globalize/message.js")
            .Include("~/Scripts/globalize/number.js")
            .Include("~/Scripts/globalize/currency.js")
            .Include("~/Scripts/globalize/date.js");

            // NOTE: jQuery may already be included in the default script bundle. Check the BundleConfig.cs file​​​
            //scriptBundle
            //    .Include("~/Scripts/jquery-3.1.0.js");

            // JSZip for client side export
            //scriptBundle
            //    .Include("~/Scripts/jszip.js");

            // DevExtreme + extensions
            scriptBundle
            .Include("~/Scripts/dx.all.js")
            .Include("~/Scripts/aspnet/dx.aspnet.data.js")
            .Include("~/Scripts/aspnet/dx.aspnet.mvc.js");

            // dxVectorMap data (http://js.devexpress.com/Documentation/Guide/Data_Visualization/VectorMap/Providing_Data/#Data_for_Areas)
            //scriptBundle
            //    .Include("~/Scripts/vectormap-data/africa.js")
            //    .Include("~/Scripts/vectormap-data/canada.js")
            //    .Include("~/Scripts/vectormap-data/eurasia.js")
            //    .Include("~/Scripts/vectormap-data/europe.js")
            //    .Include("~/Scripts/vectormap-data/usa.js")
            //    .Include("~/Scripts/vectormap-data/world.js");


            // DevExtreme
            // NOTE: see the available theme list here: http://js.devexpress.com/Documentation/Guide/Themes/Predefined_Themes/
            styleBundle
            .Include("~/Content/dx.common.css")
            .Include("~/Content/dx.light.css");

            // User's script
            scriptBundle.Include("~/Scripts/User/*.js");

            bundles.Add(scriptBundle);
            bundles.Add(styleBundle);

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new ScriptBundle("~/bundles/app").Include(
                        "~/Scripts/app/*.js"));
            bundles.Add(new ScriptBundle("~/bundles/frameworks").Include(
                        "~/Scripts/frameworks/*.js"));

            var cssbundle = new StyleBundle("~/Content/css");
            cssbundle.Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css",
                      "~/Content/less/*.less");
            cssbundle.Transforms.Add(new LessTransform());

            bundles.Add(cssbundle);

            BundleTable.EnableOptimizations = true;
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            StyleBundle cssBundle = new StyleBundle("~/Content/IntelliDocsCSS");
            cssBundle.Include(
                "~/Content/bootstrap.css",
                "~/Content/font-awesome.css",
                "~/Content/jquery.auto-complete.css",
                "~/Content/IntelliDocs.css"
                );
            bundles.Add(cssBundle);

            ScriptBundle jsBundle = new ScriptBundle("~/Scripts/IntelliDocsJS");
            jsBundle.Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/jquery.form.js",
                "~/Scripts/jquery.auto-complete.js",
                "~/Scripts/bootstrap.js",
                "~/Scripts/IntelliDocs/IntelliDocs.js"
                );
            bundles.Add(jsBundle);

            ScriptBundle jqueryValBundle = new ScriptBundle("~/Scripts/jQueryVal");
            jqueryValBundle.Include(
                "~/Scripts/jquery.validate.js",
                "~/Scripts/jquery.validate.unobtrusive.js"
                );
            bundles.Add(jqueryValBundle);
        }
Exemple #39
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;

            /*
             * bundles.Add(new BabelBundle("~/Scripts/react").Include
             *  (
             *      "~/Scripts/src/maestro.jsx"
             *
             *  ));
             *
             * bundles.Add(new ScriptBundle("~/Scripts/dist").Include(
             *                  "~/Scripts/jquery-3.3.1.js",
             *                  "~/Scripts/bootstrap.bundle.js",
             *                  "~/Scripts/react.development.js",
             *                  "~/Scripts/react-dom.development.js"
             *  ));
             */
            StyleBundle styleBundle = new StyleBundle("~/Content/dist");

            styleBundle.Include(
                "~/Content/bootstrap.css",
                "~/Content/react-datepicker.min.css",
                "~/Content/site.css");

            bundles.Add(styleBundle);
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/Assets/js/bundles/scripts").Include(
                            "~/Assets/js/jquery-3.1.0.min.js",
                            "~/Assets/js/bootstrap.min.js"
                            ));

            var bundle = new StyleBundle("~/Assets/css/bundles/styles");

            bundle.Orderer = new AsIsBundleOrderer();
            bundle.Include("~/Assets/css/bootstrap.min.css",
                           "~/Assets/css/font-awesome.min.css",
                           "~/Assets/css/reset.css",
                           "~/Assets/css/forms.css",
                           "~/Assets/css/styles.css");
            bundles.Add(bundle);

            bundles.Add(new StyleBundle("~/Assets/css/bundles/mainstyles").Include(
                            "~/Assets/css/main/styles.css"
                            ));

            bundles.Add(new StyleBundle("~/Assets/css/bundles/panelstyles").Include(
                            "~/Assets/css/panel/styles.css"
                            ));

            bundles.Add(new StyleBundle("~/Assets/css/bundles/calender").Include(
                            "~/Assets/calender/css/clndr.css"
                            ));
            bundles.Add(new ScriptBundle("~/Assets/js/bundles/calender").Include(
                            "~/Assets/calender/js/jquery-1.11.1.min.js",
                            "~/Assets/calender/js/underscore-min.js",
                            "~/Assets/calender/js/moment-2.2.1.js",
                            "~/Assets/calender/js/clndr.js"
                            ));
        }
        private static void CssGeneral(BundleCollection bundles)
        {
            // Css Common Bundles
            var styleBunde = new StyleBundle("~/Content/common/css");

            styleBunde.Include(
                "~/Content/common/*.css",
                "~/Content/chosen/*.css",
                "~/Content/select2/*.css",
                "~/Content/tagedit/*.css"
                );

            bundles.Add(styleBunde);

            // Css Jquery UI bundles
            var jqUiBunde = new StyleBundle("~/Content/themes/humanity/css");

            jqUiBunde.Include("~/Content/themes/humanity/jquery-ui-1.8.23.custom.css");

            bundles.Add(jqUiBunde);

            var lessBundle = new StyleBundle("~/Content/less/less").Include(
                "~/Content/less/site.less",

                // Add the data.query styles
                "~/Content/less/DataQuery/data.query.table.less"
                );

            lessBundle.Transforms.Add(new CssTransformer());
            lessBundle.Transforms.Add(new CssMinify());

            bundles.Add(lessBundle);
        }
Exemple #42
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.ResetAll();
            // create an object of ScriptBundle and
            // specify bundle name (as virtual path) as constructor parameter
            ScriptBundle scriptJs = new ScriptBundle("~/bundles/js");
            StyleBundle  styleCss = new StyleBundle("~/content/css/bundles");

            //use Include() method to add all the script files with their paths
            scriptJs.Include(
                "~/content/js/jquery-3.3.1.js",
                "~/content/js/bootstrap.min.js",
                "~/content/js/modernizr.custom.86080.js",
                "~/content/js/custom.js"
                );

            styleCss.Include(
                "~/content/css/bootstrap.css",
                "~/content/css/bootstrap-grid.min.css",
                "~/content/css/bootstrap-reboot.min.css",
                "~/content/css/slider-style3.css",
                "~/content/css/style.css",
                "~/content/css/responsive.css"
                );

            ////Add the bundle into BundleCollection

            bundles.Add(styleCss);
            bundles.Add(scriptJs);


            BundleTable.EnableOptimizations = true;
        }
Exemple #43
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var orderer= new AsIsBundleOrderer();

            StyleBundle bootstrapBundle = new StyleBundle("~/Templates/Template1/Bootstrap");
            bootstrapBundle.Orderer = orderer;
            bootstrapBundle.Include(
                "~/Templates/Template1/css/bootstrap.css",
                "~/Templates/Template1/css/bootstrap-responsive.css",
                "~/Templates/Template1/css/font-awesome.css",
                "~/Templates/Template1/css/bootstrap-responsive.min.css");
            bundles.Add(bootstrapBundle);

            var jqueryBundle=new ScriptBundle("~/Templates/Template1/Jquery").Include(
                 "~/Templates/Template1/js/vendor/modernizr-2.6.2.min.js",
                "~/Templates/Template1/js/vendor/jquery-1.9.1.min.js",
                "~/Templates/Template1/js/jquery-ui-1.10.3.custom.min.js"
                ).ForceOrdered();
            //jqueryBundle.Orderer= orderer;
            bundles.Add(jqueryBundle);

            //bundles.FileSetOrderList.Clear();
            //BundleFileSetOrdering orderList = new BundleFileSetOrdering("modernizr");
            //orderList.Files.Add("~/Templates/Template1/css/bootstrap.css");
            //orderList.Files.Add("~/Templates/Template1/css/bootstrap-responsive.css");
            //orderList.Files.Add("~/Templates/Template1/css/font-awesome.css");
            //orderList.Files.Add("~/Templates/Template1/css/bootstrap-responsive.min.css");

            //orderList.Files.Add("~/Templates/Template1/js/vendor/modernizr-2.6.2.min.js");
            //orderList.Files.Add("~/Templates/Template1/js/vendor/jquery-1.9.1.min.js");
            //orderList.Files.Add("~/Templates/Template1/js/jquery-ui-1.10.3.custom.min.js");
            //bundles.FileSetOrderList.Add(orderList);
        }
Exemple #44
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/jquery-migrate-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            var CustomBund = new ScriptBundle("~/bundles/custom");
            CustomBund.Include("~/Scripts/jmp3.js");
            //CustomBund.Include("~/Scripts/gallery.js");
            CustomBund.Include("~/Scripts/Easing.js");
            CustomBund.Include("~/Scripts/jqFancyTransitions.1.8.js");

            bundles.Add(CustomBund);

            var Bund = new StyleBundle("~/Content/css");
            Bund.Include("~/Content/site.css");
            Bund.Include("~/Content/calendar.css");

            bundles.Add(Bund);

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery-ui.css",
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));
        }
Exemple #45
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Site.less", "~/Content/bootstrap/bootstrap.less");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            var commonBundle = new ScriptBundle("~/bundles/common");
            commonBundle.Include("~/Scripts/jquery-{version}.js")
                        .Include("~/Scripts/jquery.validate*")
                        .Include("~/Scripts/modernizr-*")
                        .Include("~/Scripts/respond.js")
                        .Include("~/Scripts/knockout-{version}.js");
            commonBundle.Transforms.Add(jsTransformer);
            commonBundle.Orderer = nullOrderer;
            bundles.Add(commonBundle);

            //var jqueryBundle = new ScriptBundle("~/bundles/jquery");
            //jqueryBundle.Include("~/Scripts/jquery-{version}.js");
            //jqueryBundle.Transforms.Add(jsTransformer);
            //jqueryBundle.Orderer = nullOrderer;
            //bundles.Add(jqueryBundle);

            //var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            //jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            //jqueryvalBundle.Transforms.Add(jsTransformer);
            //jqueryvalBundle.Orderer = nullOrderer;
            //bundles.Add(jqueryvalBundle);

            //// Use the development version of Modernizr to develop with and learn from. Then, when you're
            //// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.

            //var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            //modernizrBundle.Include("~/Scripts/modernizr-*");
            //modernizrBundle.Transforms.Add(jsTransformer);
            //modernizrBundle.Orderer = nullOrderer;
            //bundles.Add(modernizrBundle);

            //var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            //bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            //bootstrapBundle.Transforms.Add(jsTransformer);
            //bootstrapBundle.Orderer = nullOrderer;
            //bundles.Add(bootstrapBundle);

            //var knockoutBundle = new ScriptBundle("~/bundles/knockout");
            //knockoutBundle.Include("~/Scripts/knockout-{version}.js");
            //knockoutBundle.Transforms.Add(jsTransformer);
            //knockoutBundle.Orderer = nullOrderer;
            //bundles.Add(knockoutBundle);
        }
        private static void AddStyleBundle(BundleCollection bundles, string bundlePath, params string[] includePaths)
        {
            var scriptBundle = new StyleBundle(bundlePath);

            foreach (var includePath in includePaths)
            {
                scriptBundle.Include(includePath, cssUrlRewriter);
            }

            bundles.Add(scriptBundle);
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            var libsBundle = new ScriptBundle("~/bundle/libs");
            libsBundle.Include("~/Libs/bootstrap.min.js");
            libsBundle.Include("~/Libs/ui-bootstrap-tpls-0.4.0.min.js");
            libsBundle.Include("~/Libs/angular-resource.js");
            libsBundle.Include("~/Libs/date.js");
            libsBundle.Include("~/Libs/underscore.js");

            var cssBundle = new StyleBundle("~/bundle/css");
            cssBundle.Include("~/Assets/css/bootstrap.min.css");
            cssBundle.Include("~/Assets/css/page-global.css");

            var angularScriptBundle = new ScriptBundle("~/bundle/angular/libs");
            angularScriptBundle.Include("~/Assets/js/resources/resources.js");

            var animalScriptBundle = new ScriptBundle("~/bundle/animal/libs");
            animalScriptBundle.Include("~/Assets/js/apps/animal.js");
            animalScriptBundle.Include("~/Assets/js/controllers/animal/index.js");
            animalScriptBundle.Include("~/Assets/js/controllers/animal/employee-application.js");

            var adminScriptBundle = new ScriptBundle("~/bundle/admin/libs");
            adminScriptBundle.Include("~/Assets/js/apps/admin.js");
            adminScriptBundle.Include("~/Assets/js/controllers/admin/approve-employee.js");

            var animalStyleBundle = new StyleBundle("~/bundle/animal/css");
            animalStyleBundle.Include("~/Assets/css/page-animal.css");

            var adminStyleBundle = new StyleBundle("~/bundle/admin/css");
            adminStyleBundle.Include("~/Assets/css/page-admin.css");

            bundles.Add(libsBundle);
            bundles.Add(cssBundle);
            bundles.Add(angularScriptBundle);

            bundles.Add(animalScriptBundle);
            bundles.Add(adminScriptBundle);

            bundles.Add(animalStyleBundle);
            bundles.Add(adminStyleBundle);
        }
Exemple #48
0
 private static void IncludeCssFiles(StyleBundle cssBundle)
 {
     cssBundle.Include("~/Assets/CSS/apihelp.css");
     cssBundle.Include("~/Assets/CSS/htmldiff.css");
     cssBundle.Include("~/Assets/CSS/jquery-ui-bootstrap.css");
     cssBundle.Include("~/Assets/CSS/jquery.fileupload.css");
     cssBundle.Include("~/Assets/CSS/roadkill.css");
     cssBundle.Include("~/Assets/CSS/tagmanager.css");
     cssBundle.Include("~/Assets/CSS/toastr.css");
 }
    public static void RegisterBundles(BundleCollection bundles)
    {
        bundles.Add(new ScriptBundle("~/bundles/defaultscript").Include(
                    "~/include/js/jquery-2.1.0.min.js",
                    "~/include/js/jqueryCookie.js",
                    "~/include/js/GridUtil.js" ));

        //css bundles
        StyleBundle sb01 = new StyleBundle("~/bundles/defaultcss");
        sb01.Include("~/include/css/Common.css");
        bundles.Add(sb01);

        StyleBundle sb02 = new StyleBundle("~/bundles/mastercss");
        sb02.Include("~/include/css/Common.css");
        sb02.Include("~/include/css/forms.css");
        sb02.Include("~/include/css/StyleSheet.css");
        sb02.Include("~/include/css/TabStrip.Default.css");
        bundles.Add(sb02);

        bundles.Add(new ScriptBundle("~/bundles/masterjs").Include(
                    "~/include/js/jquery-2.1.0.min.js",
                    "~/include/js/jqueryCookie.js",
                    "~/include/js/shortcut.js",
                    "~/include/js/ControlUtils.js",
                    "~/include/js/GridUtil.js",
                    "~/include/js/keyboard.js",
                    "~/include/js/Module/Master/MasterPage.js"));

        bundles.Add(new ScriptBundle("~/bundles/popupscript").Include(
                   "~/include/js/jquery-2.1.0.min.js",
                   "~/include/js/GridUtil.js",
                   "~/include/js/ControlUtils.js",
                   "~/include/js/shortcut.js",
                   "~/include/js/Modules/PopupCRUD.js"));

        StyleBundle sb03 = new StyleBundle("~/bundles/popupcss");
        sb03.Include("~/include/css/forms.css");
        sb03.Include("~/include/css/Common.css");
        bundles.Add(sb03);
    }
Exemple #50
0
        // バンドルの詳細については、http://go.microsoft.com/fwlink/?LinkId=301862  を参照してください
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/mdl/material").Include(
                        "~/Scripts/mdl/material-{version}.js"));

            // 開発と学習には、Modernizr の開発バージョンを使用します。次に、実稼働の準備が
            // できたら、http://modernizr.com にあるビルド ツールを使用して、必要なテストのみを選択します。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/google-analytics").Include(
                      "~/Scripts/google-analytics.js"));

            bundles.Add(new ScriptBundle("~/bundles/article-editor").Include(
                      "~/Scripts/article-editor.js"));

            bundles.Add(new StyleBundle("~/Content/material").Include(
                "~/Content/mdl/material.css"));

            StyleBundle articlePageStyle = new StyleBundle("~/Content/article");
            articlePageStyle.Include("~/Content/article.min.css");
            bundles.Add(articlePageStyle);

            StyleBundle archivePageStyle = new StyleBundle("~/Content/archive");
            archivePageStyle.Include("~/Content/archive.min.css");
            bundles.Add(archivePageStyle);

            StyleBundle adminPageStyle = new StyleBundle("~/Content/admin");
            adminPageStyle.Include("~/Content/admin.min.css");
            bundles.Add(adminPageStyle);

            // 管理画面用
            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));
            bundles.Add(new StyleBundle("~/Content/bootstrap").Include(
                      "~/Content/bootstrap.css"));

            // デバッグを行うには EnableOptimizations を false に設定します。詳細については、
            // http://go.microsoft.com/fwlink/?LinkId=301862 を参照してください
            #if DEBUG
            BundleTable.EnableOptimizations = false;
            #else
            BundleTable.EnableOptimizations = true;
            #endif
        }
 public static void RegisterBundles(BundleCollection bundles)
 {
     bundles.Add((new ScriptBundle("~/bundles/jquery")).Include("~/Scripts/jquery-{version}.js", new IItemTransform[0]));
     bundles.Add((new ScriptBundle("~/bundles/jqueryui")).Include("~/Scripts/jquery-ui-{version}.js", new IItemTransform[0]));
     ScriptBundle scriptBundle = new ScriptBundle("~/bundles/jqueryval");
     string[] strArrays = new string[] { "~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*" };
     bundles.Add(scriptBundle.Include(strArrays));
     bundles.Add((new ScriptBundle("~/bundles/modernizr")).Include("~/Scripts/modernizr-*", new IItemTransform[0]));
     bundles.Add((new StyleBundle("~/Content/css")).Include("~/Content/site.css", new IItemTransform[0]));
     StyleBundle styleBundle = new StyleBundle("~/Content/themes/base/css");
     string[] strArrays1 = new string[] { "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Content/themes/base/jquery.ui.selectable.css", "~/Content/themes/base/jquery.ui.accordion.css", "~/Content/themes/base/jquery.ui.autocomplete.css", "~/Content/themes/base/jquery.ui.button.css", "~/Content/themes/base/jquery.ui.dialog.css", "~/Content/themes/base/jquery.ui.slider.css", "~/Content/themes/base/jquery.ui.tabs.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/themes/base/jquery.ui.progressbar.css", "~/Content/themes/base/jquery.ui.theme.css" };
     bundles.Add(styleBundle.Include(strArrays1));
 }
        private static void Configure(BundleCollection bundles)
        {
            // libraries
            bundles.Add(
                new ScriptBundle("~/bundles/script-lib")
                    .Include("~/Scripts/moment-with-locales.js",
                             "~/Scripts/linq.js",
                             "~/Scripts/angular.js",
                             "~/Scripts/angular-locale-nl_NL.js",
                             "~/Scripts/angular-resource.js",
                             "~/Scripts/angular-route.js",
                             "~/Scripts/angular-progress.js",
                             "~/Scripts/angular-ui/ui-bootstrap-tpls.js",
                             "~/Scripts/hotkeys.js",
                             "~/Scripts/angular-ng-google-chart.js"
                             ));

            bundles.Add(
                new StyleBundle("~/bundles/style-lib")
                    .Include("~/Content/animate.css")
                    .Include("~/Content/bootstrap.css")
                    .Include("~/Content/angular-progress.css"));

            // own
            ScriptBundle appScriptBundle =
                new ScriptBundle("~/bundles/script-app");
            appScriptBundle.IncludeDirectory("~/Scripts/App", "*.js", true);
            appScriptBundle.Transforms.Add(new JsMinify());

            bundles.Add(appScriptBundle);

            StyleBundle appStyleBundle = new StyleBundle("~/bundles/style-app");
            appStyleBundle.Include("~/Content/App/01Main.css", new CssRewriteUrlTransform());
            appStyleBundle.Include("~/Content/App/02Anonymous.css", new CssRewriteUrlTransform());
            appStyleBundle.Include("~/Content/App/03Authenticated.css", new CssRewriteUrlTransform());
            appStyleBundle.Transforms.Add(new CssMinify());

            bundles.Add(appStyleBundle);
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            var minifyAssets = MinifyAssets();

            var css = new StyleBundle("~/css");

            if (!minifyAssets)
            {
                css.Transforms.Clear();
            }

            css.Include(
                "~/assets/css/vendor/bootstrap-2.0.2.css",
                "~/assets/css/vendor/font-awesome.css",
                "~/assets/css/vendor/codemirror-2.23.css",
                "~/assets/css/vendor/codemirror-neat-2.23.css",
                "~/assets/css/compilify.css");

            bundles.Add(css);

            var vendorjs = new ScriptBundle("~/js/libs");
            if (!minifyAssets)
            {
                vendorjs.Transforms.Clear();
            }

            vendorjs.Include(
                "~/assets/js/vendor/json2.js",
                "~/assets/js/vendor/underscore-1.3.1.js",
                "~/assets/js/vendor/bootstrap-2.0.2.js",
                "~/assets/js/vendor/codemirror-2.23.js",
                "~/assets/js/vendor/codemirror-clike-2.23.js",
                "~/assets/js/vendor/jquery.signalr-0.5.2.js",
                "~/assets/js/vendor/jquery.validate-1.8.0.js",
                "~/assets/js/vendor/jquery.validate.unobtrusive.js",
                "~/assets/js/vendor/jquery.validate-hooks.js",
                "~/assets/js/vendor/shortcut.js");

            vendorjs.ConcatenationToken = ";";
            bundles.Add(vendorjs);

            var js = new ScriptBundle("~/js/app");
            if (!minifyAssets)
            {
                js.Transforms.Clear();
            }

            js.Include("~/assets/js/compilify.js");
            js.ConcatenationToken = ";";
            bundles.Add(js);
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            ScriptBundle thirdPartyScripts = new ScriptBundle("~/Scripts/ThirdParty");
            thirdPartyScripts.Include("~/Scripts/jquery-2.2.0.min.js",
                                "~/Scripts/jquery-ui-1.11.4.min.js");

            bundles.Add(thirdPartyScripts);

            StyleBundle thirdPartyStyles = new StyleBundle("~/styles/ThirdParty");
            thirdPartyStyles.Include("~/Content/bootstrap.min.js");

            bundles.Add(thirdPartyStyles);
            BundleTable.EnableOptimizations = true;
        }
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            SetupIgnorePatterns(bundles.IgnoreList);

            bundles.Add(new StyleBundle("~/Content/kendoui/css")
                .Include("~/Content/KendoUI/kendo.common.min.css","~/Content/KendoUI/kendo.default.min.css"));

            Bundle bootstrapBundle = new StyleBundle("~/Content/bootstrap/css/styles");
            bootstrapBundle.Include("~/Content/bootstrap/css/bootstrap.css", "~/Content/bootstrap/css/bootstrap-responsive.css");
            bundles.Add(bootstrapBundle);

            Bundle flattyBundle = new StyleBundle("~/Content/flatty/stylesheets/styles");
            flattyBundle.Include("~/Content/flatty/stylesheets/dark-theme.css", "~/Content/flatty/stylesheets/theme-colors.css", "~/Content/flatty/stylesheets/plugins/tabdrop/tabdrop.css");
            bundles.Add(flattyBundle);

            Bundle cssBundle = new StyleBundle("~/Content/css/styles");
            cssBundle.IncludeDirectory("~/Content/css", "*.css");
            cssBundle.IncludeDirectory("~/Content", "*.css");
            bundles.Add(cssBundle);

            Bundle lessBundle = new Bundle("~/Content/less", new LessMinify());
            lessBundle.Include("~/Content/Site.less");
            bundles.Add(lessBundle);

            Bundle scriptBundle = new ScriptBundle("~/bundles/scripts");
            scriptBundle.Include("~/Scripts/jquery-{version}.js");
            scriptBundle.Include("~/Scripts/knockout-{version}.js");
            scriptBundle.Include("~/Scripts/knockout.mapping-latest.js");
            scriptBundle.Include("~/Scripts/knockout.validation.js");
            scriptBundle.Include("~/Scripts/kendo.web.min.js");
            scriptBundle.Include("~/Scripts/knockout-kendo.min.js");
            scriptBundle.Include("~/Scripts/jquery.history.js");
            scriptBundle.Include("~/Scripts/moment.js");
            scriptBundle.Include("~/Scripts/signals.min.js");
            scriptBundle.Include("~/Scripts/crossroads.min.js");
            scriptBundle.Include("~/Content/bootstrap/js/bootstrap.js");
            scriptBundle.Include("~/Scripts/select2.js");
            scriptBundle.Include("~/Content/flatty/javascripts/plugins/mobile_events/jquery.mobile-events.min.js");
            scriptBundle.Include("~/Content/flatty/javascripts/jquery/jquery-migrate.min.js");
            scriptBundle.Include("~/Content/flatty/javascripts/nav.js");
            scriptBundle.Include("~/Content/flatty/javascripts/plugins/tabdrop/bootstrap-tabdrop.js");
            scriptBundle.Include("~/Scripts/toastr.js");
            scriptBundle.IncludeDirectory("~/App/Global", "*.js", true);
            scriptBundle.IncludeDirectory("~/App", "*.js", true);
            bundles.Add(scriptBundle);

            // Uncomment to see release configuration bundling.
            //BundleTable.EnableOptimizations = true;
        }
Exemple #56
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Site.less", "~/Content/bootstrap/bootstrap.less", "~/Content/FontAwsome/font-awesome.less");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            var jqueryBundle = new ScriptBundle("~/bundles/jquery");
            jqueryBundle.Include("~/Scripts/jquery-{version}.js");
            jqueryBundle.Transforms.Add(jsTransformer);
            jqueryBundle.Orderer = nullOrderer;
            bundles.Add(jqueryBundle);

            var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include("~/Scripts/jquery.validate*", "~/Scripts/jquery.unobtrusive-ajax*");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            jqueryvalBundle.Orderer = nullOrderer;
            bundles.Add(jqueryvalBundle);

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.

            var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-*");
            modernizrBundle.Transforms.Add(jsTransformer);
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);


            var sitescriptsBundle = new ScriptBundle("~/bundles/sitescripts");
            sitescriptsBundle.Include("~/Scripts/mbExtruder.js");
            sitescriptsBundle.Transforms.Add(jsTransformer);
            sitescriptsBundle.Orderer = nullOrderer;
            bundles.Add(sitescriptsBundle);
        }
        public static void Configure()
        {
            BundleTable.Bundles.IgnoreList.Clear();
            //if (!Debugger.IsAttached)
            //{
            //    BundleTable.EnableOptimizations = true;
            //}
            BundleTable.EnableOptimizations = false;
            var jsShivBundle = new ScriptBundle("~/Assets/js/compatibility");
            jsShivBundle.Include("~/Assets/js/libs/json2.js");
            jsShivBundle.Include("~/Assets/js/libs/modernizr-2.6.2.js");
            BundleTable.Bundles.Add(jsShivBundle);

            var jsBundle = new ScriptBundle("~/Assets/js/bundle");
            jsBundle.Include("~/Assets/js/jquery-2.0.3.min.js",
                "~/Assets/js/jquery-ui-1.9.0.min.js",
                "~/Assets/js/jquery.layout-latest.js",
                "~/Assets/js/lodash.compat.js",
                "~/Assets/js/bootstrap.min.js",
                "~/Assets/js/infobox.js");

            BundleTable.Bundles.Add(jsBundle);

            var ngBundle = new ScriptBundle("~/Assets/ng-libs");
            ngBundle.Include(
                "~/Assets/js/angular/angular.min.js",
                "~/Assets/js/angular/event.js",
                "~/Assets/js/angular/angular-ui-router.min.js");

            BundleTable.Bundles.Add(ngBundle);

            var appBundle = new ScriptBundle("~/Assets/app");
            appBundle.Include(
                "~/App/app.config.js",
                "~/App/app.main.js"
                );
            appBundle.IncludeDirectory("~/App", "*.js", true);
            BundleTable.Bundles.Add(appBundle);

            var cssBundle = new StyleBundle("~/Assets/css/styles");
            cssBundle.Include(
                "~/Assets/css/bootstrap.css",
                "~/Assets/css/layout-default-latest.css",
                "~/Assets/css/app.css"
                );
            BundleTable.Bundles.Add(cssBundle);
        }
        private static void RegisterHomeBundles(BundleCollection bundles)
        {
            var styleBundle = new StyleBundle("~/Home/css");
            styleBundle.Orderer = new NonOrderingBundleOrderer();
            styleBundle.Include(
                      "~/Views/Home/Test1.css",
                      "~/Views/Home/Test2.css");
            bundles.Add(styleBundle);

            var scriptBundle = new ScriptBundle("~/Home/js");
            scriptBundle.Orderer = new NonOrderingBundleOrderer();
            scriptBundle.Include(
                        "~/Views/Home/Test1.js",
                        "~/Views/Home/Test2.js"
                        );
            bundles.Add(scriptBundle);
        }
        private static void RegisterStyleSheets(BundleCollection bundles)
        {
            var vendorCss = new StyleBundle("~/styles/libs") { Orderer = DefaultBundleOrderer };
            vendorCss.Include(
                "~/assets/css/vendor/jquery.ui.core.css",
                "~/assets/css/vendor/jquery.ui.resizable.css",
                "~/assets/css/vendor/bootstrap.css",
                "~/assets/css/vendor/font-awesome.css",
                "~/assets/css/vendor/codemirror.css",
                "~/assets/css/vendor/codemirror.neat.css");
            bundles.Add(vendorCss);

            var less = new StyleBundle("~/styles/app") { Orderer = DefaultBundleOrderer };
            less.Transforms.Add(new CssTransformer());
            less.Include("~/assets/less/compilify.less");
            bundles.Add(less);
        }
        protected override void Handle(BundleCollection bundles, string bundleName, StreamWriter log,
            params string[] includeVirtualPathes)
        {
            if (bundleName.ToLower().EndsWith(".min.js"))
            {
                log.WriteLine("//{0},", bundleName);
                return;
            }
            var fileInfo = new FileInfo(bundleName);
            var bundleFileInfo = new FileInfo(bundleName);

            bool isCss = fileInfo.Name.EndsWith(".css");
            bool isJs = fileInfo.Name.StartsWith("jquery.") && fileInfo.Name.EndsWith(".js");

            if (!isCss && !isJs)
                return;

            int intPos = bundleName.LastIndexOf("/", StringComparison.Ordinal);

            bundleName = bundleName.Substring(0, intPos) + "/"
                         + Regex.Replace(bundleFileInfo.Name, @"(jquery\.)", "");

            Bundle bundle = null;
            if (isCss)
            {
                var styleBundle = new StyleBundle(bundleName);
                var trans = new CssRewriteUrlTransform();
                foreach (var file in includeVirtualPathes)
                {
                    styleBundle.Include(file, trans);
                }
                bundle = styleBundle;
            }
            else
            {
                bundle = new JQueryPluginSeajsBundle(bundleName);
                bundle.Include(includeVirtualPathes);
            }
            bundles.Add(bundle);

            log.WriteLine("\"{0}\":\"{1}\",",
                Regex.Replace(bundleFileInfo.Name, @"(jquery\.)|(-[\d.]+\d)", "", RegexOptions.IgnoreCase)
                    .Replace(".js", ""),
                bundleName.Replace("~/", "/"));
        }