示例#1
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.FileSetOrderList.Clear();

            // +++ GLOBAL SCRIPT BUNDLES +++
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-2.1.0.min.js"));
            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include("~/Scripts/jquery-ui-1.10.4.min.js", "~/Scripts/jquery-ui-i18n.min.js"));
            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include("~/Scripts/jquery.validate.min.js", "~/Scripts/jquery.validate.unobtrusive.min.js", "~/Scripts/jquery.unobtrusive-ajax.min.js"));
            // +++ GLOBAL SCRIPT BUNDLES +++


            // +++ LOGIN SCRIPT BUNDLES +++
            bundles.Add(new ScriptBundle("~/bundles/LoginScript").Include("~/Content/JS/Global.js", "~/Content/JS/Login.js"));
            // --- LOGIN SCRIPT BUNDLES ---

            // +++ LOGIN STYLE BUNDLES +++
            bundles.Add(new StyleBundle("~/bundles/LoginStyle").Include("~/Content/CSS/Standart.css", "~/Content/CSS/Icon.css", "~/Content/CSS/Login.css"));
            // --- LOGIN STYLE BUNDLES ---

            // +++ SCRIPT BUNDLES +++
            bundles.Add(new ScriptBundle("~/bundles/Script").Include("~/Content/JS/Choosen.js", "~/Content/JS/Textarea.js", "~/Content/JS/Numeric.js", "~/Content/JS/Mask.js", "~/Content/JS/PerfectScroll.js", "~/Content/JS/Scroll.js", "~/Content/JS/Tipsy.js", "~/Content/JS/Global.js", "~/Content/JS/Script.js"));
            // --- SCRIPT BUNDLES ---

            // +++ STYLE BUNDLES +++
            bundles.Add(new StyleBundle("~/bundles/Style").Include("~/Content/CSS/Standart.css", "~/Content/CSS/Icon.css", "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.theme.css", "~/Content/themes/base/jquery.ui.datepicker.css", "~/Content/CSS/Style.css"));
            // --- STYLE BUNDLES ---

            // +++ FORM STYLE BUNDLES +++
            bundles.Add(new StyleBundle("~/bundles/FormStyle").Include("~/Content/CSS/Form.css"));
            // --- FORM STYLE BUNDLES ---
        }
示例#2
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-1.10.2.js",
                            "~/Scripts/jquery-ui.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                            "~/Scripts/jquery.validate*"));
            bundles.Add(new ScriptBundle("~/bundles/frameWorkJs").Include(
                            "~/Scripts/notify.js", "~/Scripts/knockout-3.3.0.js",
                            "~/Scripts/knockout.validation.min.js",
                            "~/Scripts/Chart.min.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"));



            bundles.Add(new ScriptBundle("~/bundles/chatJs").Include(
                            "~/Scripts/ui/jquery.ui.core.js",
                            "~/Scripts/ui/jquery.ui.widget.js",
                            "~/Scripts/ui/jquery.ui.mouse.js",
                            "~/Scripts/ui/jquery.ui.draggable.js",
                            "~/Scripts/ui/jquery.ui.resizable.js",
                            "~/Scripts/jquery.signalR-2.2.0.js"));
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            ScriptBundle loginBundle = new ScriptBundle("~/js/login");
            loginBundle.Include("~/Content/js/lib/jquery-1.8.0.min.js");
            loginBundle.Include("~/Views/Documentation/Login.js");

            bundles.Add(loginBundle);

            ScriptBundle sandboxBundle = new ScriptBundle("~/js/sandbox");
            sandboxBundle.Include("~/Content/js/lib/jquery-1.8.0.min.js");
            sandboxBundle.Include("~/Content/js/lib/jquery.slideto.min.js");
            sandboxBundle.Include("~/Content/js/lib/jquery.wiggle.min.js");
            sandboxBundle.Include("~/Content/js/lib/jquery.ba-bbq.min.js");
            sandboxBundle.Include("~/Content/js/lib/handlebars-2.0.0.js");
            sandboxBundle.Include("~/Content/js/lib/underscore-min.js");
            sandboxBundle.Include("~/Content/js/lib/backbone-min.js");
            sandboxBundle.Include("~/Content/js/swagger-ui.js");
            sandboxBundle.Include("~/Content/js/lib/highlight.7.3.pack.js");
            sandboxBundle.Include("~/Content/js/lib/marked.js");
            sandboxBundle.Include("~/Content/js/lib/swagger-oauth.js");
            sandboxBundle.Include("~/Views/Documentation/Sandbox.js");

            bundles.Add(sandboxBundle);

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

            bundles.Add(new StyleBundle("~/css/sandbox").Include("~/Content/css/reset.css",
                                                                       "~/content/css/typography.css",
                                                                       "~/content/css/screen.css"));
        }
示例#4
0
        // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();
            BundleTable.EnableOptimizations = false;

            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"));

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

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



            //BundleTable.EnableOptimizations = true;
        }
示例#5
0
        void BundleIt(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.Add(new StyleBundle("~/resources/css").Include("~/content/site.css"));
            bundles.Add(new ScriptBundle("~/resources/js").Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/modernizr-{version}.js"
                ));

            bundles.Add(new StyleBundle("~/resources/backofficecss")
                .Include(
                    "~/content/bootstrap/bootstrap-glyphicons.css",
                    "~/content/bootstrap/bootstrap.css",
                    "~/content/backoffice.css"));

            bundles.Add(new ScriptBundle("~/resources/spajs").Include(
                "~/Scripts/bootstrap.js",
                "~/Scripts/angular.js",
                "~/Scripts/angular-sanitize.js",
                "~/Scripts/angular-resource.js",
                "~/Scripts/angular-route.js",
                "~/Scripts/angular-animate.js",
                "~/Scripts/i18n/angular-locale_de-de.js"
                ));

            bundles.Add(new ScriptBundle("~/resources/backofficejs")
                .IncludeDirectory("~/backofficeapp/js", "*.js", true)
                .Include("~/backofficeapp/App.js"));

            bundles.Add(new ScriptBundle("~/resources/jsval").Include(
                "~/Scripts/jquery.validate.js",
                "~/Scripts/jquery.validate.unobtrusive.js"
                ));
        }
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();

            bundles.Add(new ScriptBundle("~/bundles/js").Include(
                            "~/Scripts/jquery-{version}.js"
                            , "~/Scripts/jquery.validate.js"
                            , "~/Scripts/jquery.validate.unobtrusive.js"
                            //, "~/Scripts/jquery.unobtrusive-ajax.js"
                            , "~/Scripts/bootstrap.js"
                            , "~/Scripts/bootstrap-datepicker.js"
                            , "~/Scripts/knockout-{version}.js"
                            //, "~/Scripts/respond.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-{version}"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                            "~/Content/bootstrap.css"
                            , "~/Content/bootstrap-datepicker.css"
                            //, "~/Content/bootstrap-datepicker3.css"
                            , "~/Content/awesome-bootstrap-checkbox.mvcmodified.css"
                            //, "~/Content/PagedList.css"
                            , "~/Content/Site.css"
                            ));
        }
示例#7
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();
            bundles.UseCdn = true;

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


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

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

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

            bundles.Add(new StyleBundle("~/Content/Style").Include(
                            "~/Content/style.css"));
        }
示例#8
0
        public void GivenBundleNotFound_WhenProcessRequest_ThenNotFoundResponse()
        {
            bundles.Clear();
            var httpException = Assert.Throws <HttpException>(() => handler.ProcessRequest(null));

            httpException.GetHttpCode().ShouldEqual(404);
            response.VerifySet(r => r.StatusCode = 404);
        }
示例#9
0
    public static void RegisterBundles(BundleCollection bundles)
    {
        bundles.Clear();
        bundles.ResetAll();
        BundleTable.EnableOptimizations = false;

        bundles.Add(...);
    }
示例#10
0
        /// <summary>
        /// Registers the bundles.
        /// </summary>
        /// <param name="bundles">Bundles.</param>
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            var xmldoc = new XmlDocument();

            xmldoc.Load(HttpContext.Current.Server.MapPath("~/Configs/Retech.config"));
            var scriptBundles = xmldoc.SelectNodes("/RetechConfig/bundles/script/bundle");

            foreach (XmlNode bundleNode in scriptBundles)
            {
                ScriptBundle bundle = new ScriptBundle(bundleNode.Attributes["virtual"].Value);
                var          files  = bundleNode.SelectNodes("file");
                var          fs     = new List <string>();
                foreach (XmlNode file in files)
                {
                    fs.Add(file.Attributes["path"].Value);
                }
                bundle.Include(fs.ToArray());
                bundles.Add(bundle);
            }

            var styleBundles = xmldoc.SelectNodes("/bundles/style/bundle");

            foreach (XmlNode bundleNode in styleBundles)
            {
                if (bundleNode.Attributes["isSkin"] != null && bundleNode.Attributes["isSkin"].Value == "1")
                {
                    var skinNames = System.IO.Directory.GetDirectories(HttpContext.Current.Server.MapPath("~/themes/"));
                    foreach (var skinName in skinNames)
                    {
                        var         sname  = skinName.Substring(skinName.LastIndexOf('\\') + 1);
                        StyleBundle bundle = new StyleBundle(bundleNode.Attributes["virtual"].Value + "/" + sname);
                        var         files  = bundleNode.SelectNodes("file");
                        var         fs     = new List <string>();
                        foreach (XmlNode file in files)
                        {
                            fs.Add(file.Attributes["path"].Value.Replace("{skin}", sname));
                        }
                        bundle.Include(fs.ToArray());
                        bundles.Add(bundle);
                    }
                }
                else
                {
                    StyleBundle bundle = new StyleBundle(bundleNode.Attributes["virtual"].Value);
                    var         files  = bundleNode.SelectNodes("file");
                    var         fs     = new List <string>();
                    foreach (XmlNode file in files)
                    {
                        fs.Add(file.Attributes["path"].Value);
                    }
                    bundle.Include(fs.ToArray());
                    bundles.Add(bundle);
                }
            }
        }
示例#11
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive-ajax.js",
                        "~/Scripts/jquery.validate.js",
                        "~/Scripts/jquery.validate.unobtrusive.js"));
        }
示例#12
0
文件: BundleConfig.cs 项目: Kakyo/XYZ
        internal static void RegisterBundles(BundleCollection bundleCollection)
        {
            bundleCollection.ResetAll();
            bundleCollection.Clear();

            bundleCollection.Add(GetScriptBundle("modernizr", "modernizr-{version}.js"));
            bundleCollection.Add(GetScriptBundle("library", GetJsLibraryPaths()));

            bundleCollection.Add(GetStyleBundle("site"
                , "bootstrap/bootstrap.min.css", "bootstrap/bootstrap-theme.min.css", "site.css"));
        }
 public void Initialize(BundleCollection bundleCollection)
 {
     using (bundleCollection.GetWriteLock())
     {
         bundles = bundleCollection;
         bundles.Clear();
         AddBundles();
         ProcessBundles();
         AddBundlesForUrlReferences();
         bundles.BuildReferences();
     }
 }
示例#14
0
        // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            BundleTable.EnableOptimizations = false;

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

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

            // Utilice la versión de desarrollo de Modernizr para desarrollar y obtener información. De este modo, estará
            // 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",
                            "~/Scripts/respond.js"));

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

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

            bundles.Add(new StyleBundle("~/Content/Admin").Include(
                            "~/Content/Admin/bootstrap.css",
                            "~/Content/Admin/sb-admin.css",
                            "~/Content/Admin/morris.css",
                            "~/Content/Admin/font-awesome/css/font-awesome.min.css"));

            bundles.Add(new ScriptBundle("~/bundles/Admin").Include(
                            "~/Scripts/Admin/jquery.js",
                            "~/Scripts/Admin/bootstrap.js",
                            "~/Scripts/Admin/raphael.min.js",
                            "~/Scripts/Admin/morris.min.js",
                            "~/Scripts/Admin/morris-data.js"));

            bundles.Add(new StyleBundle("~/Content/Cliente").Include(
                            "~/Content/Cliente/card.min.css",
                            "~/Content/Cliente/styles.min.css",
                            "~/Content/Cliente/vendor.min.css"));

            bundles.Add(new ScriptBundle("~/bundles/Cliente").Include(
                            "~/Scripts/Cliente/card.min.js",
                            "~/Scripts/Cliente/modernizr.min.js",
                            "~/Scripts/Cliente/scripts.min.js",
                            "~/Scripts/Cliente/vendor.min.js"));
        }
示例#15
0
        // Дополнительные сведения о Bundling см. по адресу http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();

            bundles.ResetAll();

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

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

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

            // Используйте версию Modernizr для разработчиков, чтобы учиться работать. Когда вы будете готовы перейти к работе,
            // используйте средство построения на сайте http://modernizr.com, чтобы выбрать только нужные тесты.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                            "~/Scripts/modernizr-*"));

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

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                            "~/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(new StyleBundle("~/Content/bootstrap2")
                        .Include("~/Content/bootstrap.css")
                        .Include("~/Content/bootstrap-responsive.css")
                        .Include("~/Content/bootstrap-datetimepicker.css")
                        .Include("~/Content/style.css")
                        );

            bundles.Add(new ScriptBundle("~/Scripts/bootstrap.js")
                        .Include("~/Scripts/bootstrap.js")
                        .Include("~/Scripts/bootstrap-datetimepicker.min.js")
                        );
        }
示例#16
0
        /// <summary>
        /// Execução do registro dos Bundles
        /// </summary>
        /// <param name="bundles">Coleção de Bundles</param>
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();

            BundleTransformJs transformJS = new BundleTransformJs();
            Bundle customScriptBundle = new Bundle("~/Bundles/JS", transformJS);
            bundles.Add(customScriptBundle);

            BundleTransformCss transformCSS = new BundleTransformCss();
            Bundle customStyleBundle = new Bundle("~/Bundles/CSS", transformCSS);
            bundles.Add(customStyleBundle);

            BundleTable.EnableOptimizations = true;
        }
示例#17
0
        /// <summary>
        /// 捆绑css,script和其他资源
        /// </summary>
        /// <param name="bundles">当前捆绑对象集</param>
        public static void RegisterBundles(BundleCollection bundles)
        {
            //设置当前捆绑对象集到字段
            _Bundles = bundles;
            //清除系统默认加入的资源
            _Bundles.Clear();
            //禁用CDN地址上的代码替换本地代码
            _Bundles.UseCdn = false;

            //捆绑外部css,script和其他资源
            BundleCss();
            BundleScript();

            //捆绑自定义css,script和其他资源
            BundleCustom();
        }
示例#18
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            BundleTable.EnableOptimizations = false;

            bundles.Add(new ScriptBundle("~/Scripts/jquery").Include("~/Scripts/jquery-1.10.2.min.js"));
            bundles.Add(new ScriptBundle("~/Scripts/bootstrap").Include("~/Scripts/bootstrap.min.js"));
            bundles.Add(new ScriptBundle("~/Scripts/angular").Include("~/Scripts/angular/angular.min.js"));
            bundles.Add(new ScriptBundle("~/Scripts/custom").Include("~/Scripts/custom-1.01.js"));
            bundles.Add(new ScriptBundle("~/Scripts/modernizr").Include("~/Scripts/modernizr-2.6.2.js"));

            bundles.Add(new StyleBundle("~/Content/bootstrap").Include("~/Content/bootstrap.min.css"));
            bundles.Add(new StyleBundle("~/Content/Site").Include("~/Content/Site.css"));
        }
示例#19
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

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

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

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

            bundles.Add(new ScriptBundle("~/bundles/common.js").IncludeDirectory("~/static/js/common/", "*.js", true));

            bundles.Add(new ScriptBundle("~/bundles/angular").Include(
                            "~/Scripts/Angular/angular.js").IncludeDirectory("~/Scripts/Angular", "angular-*", true));

            bundles.Add(new ScriptBundle("~/bundles/plugins.js").IncludeDirectory("~/Scripts/plugins", "*.js", true));
            bundles.Add(
                new ScriptBundle("~/bundles/datetimepicker.js").IncludeDirectory("~/Scripts/angular-bootstrap-datetimepicker", "*.js", true)
                .IncludeDirectory("~/Scripts/angular-bootstrap-datetimepicker", "*.templates.js", true));

            bundles.Add(new ScriptBundle("~/bundles/edit.js").IncludeDirectory("~/Static/JS/edit", "*.module.js", true)
                        .IncludeDirectory("~/Static/JS/edit", "*.config.js", true).IncludeDirectory("~/Static/JS/edit", "*.js", true));

            bundles.Add(new ScriptBundle("~/bundles/public.js").IncludeDirectory("~/Static/JS/public", "*.module.js", true)
                        .IncludeDirectory("~/Static/JS/public", "*.config.js", true).IncludeDirectory("~/Static/JS/public", "*.js", true));

            var styles = new StyleBundle("~/bundles/admin.css");

            styles.Include("~/Static/CSS/app/admin.css");
            //styles.Transforms.Add(new StyleTransformer());
            bundles.Add(styles);



            var PublicStyles = new StyleBundle("~/bundles/public.css");

            PublicStyles.Include("~/Static/CSS/app/public.css");
            // PublicStyles.Transforms.Add(new StyleTransformer());
            bundles.Add(PublicStyles);


            System.Web.Optimization.BundleTable.EnableOptimizations = false;
        }
        // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

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

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

            //bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
            //    "~/Scripts/knockout-{version}.js",
            //    "~/Scripts/knockout.validation.js"));

            bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
                            "~/Scripts/kendo/2019.1.220/kendo.ui.core.min.js"
                            ));

            bundles.Add(new ScriptBundle("~/bundles/app").Include(
                            "~/Scripts/util/templateLoader.js",
                            "~/Scripts/app/common.js",
                            //"~/Scripts/app/app.datamodel.js",
                            //"~/Scripts/app/app.viewmodel.js",
                            //"~/Scripts/app/home.viewmodel.js",
                            "~/Scripts/app/_run.js",
                            "~/Scripts/services/category-service.js",
                            "~/Scripts/services/transaction-service.js",
                            "~/Scripts/transaction/transaction-list.js",
                            "~/Scripts/transaction/transaction-detail.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 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",
                            "~/Content/kendo/2019.1.220/kendo.common.min.css",
                            "~/Content/kendo/2019.1.220/kendo.bootstrap.min.css",
                            "~/Content/transaction-detail.css"));
        }
示例#21
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            /* This configuration assumes you want to extend, override or add to the default scripts and styles
             * To start over from scratch instead, call bundles.Clear(); at the top of this method.
             */

            // If you need to load scripts in a specific order, use scriptBundle.Include instead of scriptBundle.IncludeDirectory
            var scriptBundle = bundles.GetBundleFor(Atomia.Store.Themes.Default.BundleConfig.DEFAULT_SCRIPTS_BUNDLE);
            scriptBundle.IncludeDirectory("~/Themes/$MyTheme$/Scripts", "*.js");

            var styleBundle = bundles.GetBundleFor(Atomia.Store.Themes.Default.BundleConfig.DEFAULT_STYLES_BUNDLE);
            styleBundle.Include("~/Themes/$MyTheme$/Content/css/theme.css");

            // Re-register bundles
            bundles.Clear();
            bundles.Add(scriptBundle);
            bundles.Add(styleBundle);
        }
示例#22
0
        /// <summary>
        /// For registering bundles
        /// </summary>
        /// <param name="bundles">BundleCollection</param>
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();
#if DEBUG
            BundleTable.EnableOptimizations = false;
#else
            BundleTable.EnableOptimizations = true;
#endif
            RegisterCSSBundle(bundles);
            RegisterKendoStyleBundle(bundles);
            RegisterJqueryStyleBundle(bundles);
            RegisterPraksysStyleBundle(bundles);
            RegisterJsLibraries(bundles);
            RegisterKendoandUtilityLibraries(bundles);
            RegisterCoreBundles(bundles);
            RegisterUnaBundle(bundles);
        }
示例#23
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.IgnoreList.Clear();

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-1.8.2.js",
                            "~/Scripts/jquery.unobtrusive-ajax.min.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*"));

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

            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                            "~/Scripts/modernizr-*"));

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

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                            "~/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"));
        }
示例#24
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.IgnoreList.Clear();

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-1.8.2.js",
                        "~/Scripts/jquery.unobtrusive-ajax.min.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*"));

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

            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

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

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/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"));
        }
示例#25
0
        /// <summary>
        ///     For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        /// </summary>
        /// <param name="bundles">Bundles.</param>
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/assets/js/libs").Include(
                            "~/scripts/angular.js",
                            "~/scripts/angular-route.js",
                            "~/scripts/angular-resource.js",
                            "~/scripts/angular-animate.js",
                            "~/scripts/angular-elastic.js",
                            "~/scripts/angular-modal-service.js",
                            "~/scripts/toastr.js",
                            "~/scripts/jquery.signalR-{version}.js",
                            "~/scripts/EventEmitter.js",
                            "~/scripts/logoot.js",
                            "~/scripts/logoot-text.js",
                            "~/scripts/textarea-caret-position.js"));

            bundles.Add(new ScriptBundle("~/assets/js/editor").Include(
                            "~/content/js/editor.module.js",
                            "~/content/js/editor.auth.js",
                            "~/content/js/editor.config.js",
                            "~/content/js/editor.routes.js",
                            "~/content/js/directives/*.js",
                            "~/content/js/factories/*.js",
                            "~/content/js/services/*.js",
                            "~/content/js/controllers/*.js"));

            bundles.Add(new ScriptBundle("~/assets/js/modernizr").Include(
                            "~/scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/assets/js/bootstrap").Include(
                            "~/scripts/jquery-{version}.js",
                            "~/scripts/bootstrap.js",
                            "~/scripts/respond.js"));

            bundles.Add(new StyleBundle("~/assets/css/styles").Include(
                            "~/content/css/bootstrap.css",
                            "~/content/css/site.css",
                            "~/content/css/toastr.css"));
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            ScriptBundle scripts = new ScriptBundle("~/bundle/scripts");
            scripts.Include("~/Content/js/jquery-1.11.2.min.js");
            scripts.Include("~/Content/js/app.js");

            #if DEBUG
            scripts.Include("~/Content/js/debug.js");
            #endif

            bundles.Add(scripts);

            bundles.Add(new Bundle("~/bundle/views").IncludeDirectory("~/Views/Partials/", "*.html", true));
            bundles.Add(new ScriptBundle("~/bundle/viewScripts").IncludeDirectory("~/Views/Partials/", "*.js", true));

            bundles.Add(new StyleBundle("~/bundle/style").Include("~/Content/css/bootstrap.grid.css", "~/Content/css/base.css"));
        }
示例#27
0
        public void BasicAddRemoveClearTest()
        {
            BundleCollection col = new BundleCollection();

            DynamicFolderBundle db1 = new DynamicFolderBundle("foo", "*.js");

            col.Add(db1);
            Assert.AreEqual(1, col.Count);

            Bundle sb1 = new Bundle("~/static");

            col.Add(sb1);
            Assert.AreEqual(2, col.Count);

            col.Remove(db1);
            Assert.AreEqual(1, col.Count);

            col.Clear();
            Assert.AreEqual(0, col.Count);
        }
示例#28
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            /* This configuration assumes you want to extend, override or add to the default scripts and styles
             * To start over from scratch instead, call bundles.Clear(); at the top of this method.
             */

            // If you need to load scripts in a specific order, use scriptBundle.Include instead of scriptBundle.IncludeDirectory
            var scriptBundle = bundles.GetBundleFor(Atomia.Store.Themes.Default.BundleConfig.DEFAULT_SCRIPTS_BUNDLE);

            scriptBundle.IncludeDirectory("~/Themes/$MyTheme$/Scripts", "*.js");

            var styleBundle = bundles.GetBundleFor(Atomia.Store.Themes.Default.BundleConfig.DEFAULT_STYLES_BUNDLE);

            styleBundle.Include("~/Themes/$MyTheme$/Content/css/theme.css");

            // Re-register bundles
            bundles.Clear();
            bundles.Add(scriptBundle);
            bundles.Add(styleBundle);
        }
示例#29
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();
            BundleTable.EnableOptimizations = false;

            bundles.Add(new ScriptBundle("~/scripts/artshop").Include(
                            "~/Scripts/jquery-{version}.js",
                            "~/Scripts/jquery-migrate-{version}.js",
                            "~/Scripts/jquery-ui-{version}.js",
                            "~/Scripts/jquery.validate*",
                            "~/Scripts/jquery.history.js",
                            "~/Scripts/bootstrap.js",
                            "~/Scripts/app.js",
                            "~/Scripts/adrum.js"));

            //"~/Scripts/jquery-ui-{version}.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("~/scripts/modernizr").Include(
                            "~/Scripts/modernizr-*"));

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

            bundles.Add(new StyleBundle("~/content/themes/base/css").Include(
                            "~/Content/themes/base/jquery.ui.core.css",
                            "~/Content/themes/base/jquery.ui.autocomplete.css",
                            "~/Content/themes/base/jquery.ui.slider.css",
                            "~/Content/themes/base/jquery.ui.theme.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.button.css",
            //"~/Content/themes/base/jquery.ui.dialog.css",
            //"~/Content/themes/base/jquery.ui.tabs.css",
            //"~/Content/themes/base/jquery.ui.datepicker.css",
            //"~/Content/themes/base/jquery.ui.progressbar.css",
        }
示例#30
0
 public static void RegisterBundles(BundleCollection bundles)
 {
     bundles.Clear();
 }
示例#31
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            try
            {
                //obtenemos la ubicación de packages.config para leer la versión utilizada de cada librería en el proyecto
                string    packagesConfigFile = System.Web.HttpContext.Current.Server.MapPath("~/packages.config");
                XDocument configXML          = XDocument.Load(packagesConfigFile);

                //obtenemos los ids de los paquetes y sus versiones. Sólo los que tienen un CDN asociado.
                var versionPackage = (from p in configXML.Descendants("package")
                                      where (new[] {
                    "jQuery",
                    "jQuery.Validation",
                    "Microsoft.jQuery.Unobtrusive.Validation",
                    "Modernizr",
                    "bootstrap",
                    "Respond"
                }).ToList().Contains(p.Attribute("id").Value)
                                      select new
                {
                    id = p.Attribute("id").Value,
                    version = p.Attribute("version").Value
                }).ToList();

                //jQuery
                ScriptBundle bndljQuery = new ScriptBundle("~/bundles/jquery",
                                                           Properties.Settings.Default.jQueryCdn.Replace("#version#", //reemplazamos con el número de versión actual
                                                                                                         versionPackage.Where(p => p.id == "jQuery").FirstOrDefault().version
                                                                                                         ));
                bndljQuery.Include("~/Scripts/jquery-{version}.js");
                bndljQuery.CdnFallbackExpression = "window.jQuery";
                bundles.Add(bndljQuery);

                //jQuery.validate
                ScriptBundle bndljQueryValidate = new ScriptBundle("~/bundles/jqueryval",
                                                                   Properties.Settings.Default.jQueryValidateCdn.Replace("#version#", //reemplazamos con el número de versión actual
                                                                                                                         versionPackage.Where(p => p.id == "jQuery.Validation").FirstOrDefault().version
                                                                                                                         ));
                bndljQueryValidate.Include("~/Scripts/jquery.validate.min.js");
                bndljQueryValidate.CdnFallbackExpression = "$.validator";
                bundles.Add(bndljQueryValidate);

                //jQuery.validate Unobtrusive
                ScriptBundle bndlValidateUnobtrusive = new ScriptBundle("~/bundles/unobtrusive",
                                                                        Properties.Settings.Default.ValidateUnobtrusiveCdn.Replace("#version#", //reemplazamos con el número de versión actual
                                                                                                                                   versionPackage.Where(p => p.id == "Microsoft.jQuery.Unobtrusive.Validation").FirstOrDefault().version
                                                                                                                                   ));
                bndlValidateUnobtrusive.Include("~/Scripts/jquery.validate.unobtrusive.min.js");
                bndlValidateUnobtrusive.CdnFallbackExpression = "$.validator";  //typeof $().validate
                bundles.Add(bndlValidateUnobtrusive);

                //Modernizr
                // 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.
                ScriptBundle bndlModernizr = new ScriptBundle("~/bundles/modernizr",
                                                              Properties.Settings.Default.ModernizrCdn.Replace("#version#", //reemplazamos con el número de versión actual
                                                                                                               versionPackage.Where(p => p.id == "Modernizr").FirstOrDefault().version
                                                                                                               ));
                bndlModernizr.Include("~/Scripts/modernizr-*");
                bndlModernizr.CdnFallbackExpression = "window.Modernizr";
                bundles.Add(bndlModernizr);

                //BootstrapJS
                ScriptBundle bndlBootstrapJs = new ScriptBundle("~/bundles/bootstrap",
                                                                Properties.Settings.Default.BootstrapJsCdn.Replace("#version#", //reemplazamos con el número de versión actual
                                                                                                                   versionPackage.Where(p => p.id == "bootstrap").FirstOrDefault().version
                                                                                                                   ));
                bndlBootstrapJs.Include(
                    "~/Scripts/bootstrap.js",
                    "~/Scripts/popper.js"
                    );
                bndlBootstrapJs.CdnFallbackExpression = "$.fn.modal";
                bundles.Add(bndlBootstrapJs);

                //respondJS
                ScriptBundle bndlRespondJs = new ScriptBundle("~/bundles/respond",
                                                              Properties.Settings.Default.RespondCdn.Replace("#version#", //reemplazamos con el número de versión actual
                                                                                                             versionPackage.Where(p => p.id == "Respond").FirstOrDefault().version
                                                                                                             ));
                bndlRespondJs.Include("~/Scripts/respond.js");
                bndlRespondJs.CdnFallbackExpression = "window.respond";
                bundles.Add(bndlRespondJs);

                //BootstrapCss
                StyleBundle bndlBootstrapCss = new StyleBundle("~/Content/cssbootstrap",
                                                               Properties.Settings.Default.BootstrapCssCdn.Replace("#version#", //reemplazamos con el número de versión actual
                                                                                                                   versionPackage.Where(p => p.id == "bootstrap").FirstOrDefault().version
                                                                                                                   ));
                bndlBootstrapCss.IncludeFallback("~/Content/bootstrap.css", "sr-only", "width", "1px");
                bundles.Add(bndlBootstrapCss);

                //Estilos locales
                bundles.Add(new StyleBundle("~/Content/css").Include(
                                "~/Content/Site.css"));
            }catch (Exception)
            {
                /*Si ocurriera algún error al hacer el bundling, realizamos un bundling seguro (el bundling por default).*/
                bundles.Clear();

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

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

                bundles.Add(new ScriptBundle("~/bundles/unobtrusive").Include(
                                "~/Scripts/jquery.validate.unobtrusive.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"));
                bundles.Add(new ScriptBundle("~/bundles/respond").Include(
                                "~/Scripts/respond.js"));

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

            BundleTable.EnableOptimizations = true;
        }
示例#32
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();

            bundles.Add(new ScriptBundle("~/bundles/script/min").Include(
                        "~/Content/scripts/jquery-1.10.1.js",
                        "~/Content/scripts/Bootstrap/Twitter/js/bootstrap.js",
                        "~/Content/scripts/jquery.treeview.js",
                        "~/Content/scripts/Bootstrap/mediator.js",
                        "~/Content/scripts/Bootstrap/model.js",
                        "~/Content/scripts/Bootstrap/usefull.js",
                //"~/Content/scripts/Bootstrap/pager.js",
                        "~/Content/scripts/core.js",
                        "~/Content/scripts/App/admin.js",
                        "~/Content/scripts/App/contact.js",
                        "~/Content/scripts/App/comment.js"
                        ));

            //bundles.Add(new ScriptBundle("~/bundles/script/min").Include(
            //            "~/Content/scripts/jquery-1.10.1.js",
            //            "~/Content/scripts/Bootstrap/Twitter/js/bootstrap.js",
            //            "~/Content/scripts/jquery.treeview.js",
            //            "~/Content/scripts/Bootstrap/mediator.js",
            //            "~/Content/scripts/Bootstrap/model.js",
            //            "~/Content/scripts/Bootstrap/usefull.js",
            //            //"~/Content/scripts/Bootstrap/pager.js",
            //            "~/Content/scripts/core.js",
            //            "~/Content/scripts/App/admin.js",
            //            "~/Content/scripts/App/contact.js",
            //            "~/Content/scripts/App/comment.js"
            //            ));

            bundles.Add(new StyleBundle("~/bundles/css/min").Include(
                //"~/Content/min/DIYFE_min.css"
                "~/Content/scripts/Bootstrap/Twitter/css/bootstrap.css",
                "~/Content/site.css",
                "~/Content/comments.css"
                //        "~/Content/scripts/Bootstrap/Twitter/css/bootstrap-responsive.css",
                ////"~/Content/scripts/themes.css",));
                //        "~/Content/site.css",
                //        "~/Content/jquery.treeview.css",
                //        "~/Content/comments.css"
                        ));

            //bundles.Add(new ScriptBundle("~/Content/min").Include(
            //            "~/Content/Scripts/jquery-{version}.js",
            //            "~/Content/Scripts/jquery{addOn}.js",
            //            "~/Content/Scripts/jquery{addOn}.js"));

            //bundles.Add(new StyleBundle("~/Content/min").Include(
            //            "~/Content/scripts/Bootstrap/Twitter/bootstrap-responsive.css",
            //            //"~/Content/scripts/themes.css",));
            //            "~/Content/site.css",
            //            "~/Content/jquery.treeview.css",
            //            "~/Content/comments.css"
            //            ));

            //bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
            //            "~/Scripts/jquery-{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-*"));

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

            //bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
            //            "~/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"));

            BundleTable.EnableOptimizations = true;
        }
示例#33
0
 public void GivenBundleNotFound_WhenProcessRequest_ThenNotFoundResponse()
 {
     bundles.Clear();
     handler.ProcessRequest(null);
     response.VerifySet(r => r.StatusCode = 404);
 }
示例#34
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-{version}.js",
                            "~/Scripts/media.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("~/script/files").Include(
                            "~/Scripts/umd/popper.js",
                            "~/Scripts/bootstrap.min.js",
                            "~/Scripts/media.js",
                            "~/Scripts/UserScripts/Common.js"
                            ));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/bootstrap.css",
                                                                 "~/Content/header-footer.css",
                                                                 "~/Content/common.css"));

            bundles.Add(new StyleBundle("~/Content/detail").Include("~/Content/details.css"));
            bundles.Add(new ScriptBundle("~/bundles/AllListing").Include("~/Scripts/UserScripts/AllListPages.js"));

            bundles.Add(new StyleBundle("~/Content/Anews").Include("~/Content/text-editor.css"));
            bundles.Add(new ScriptBundle("~/bundles/Anews").Include("~/Scripts/text-editor.js", "~/Scripts/UserScripts/News.js"));
            bundles.Add(new ScriptBundle("~/bundles/Unews").Include("~/Scripts/user-text-editor.js", "~/Scripts/UserScripts/News.js"));

            bundles.Add(new ScriptBundle("~/bundles/claimlist").Include("~/Scripts/UserScripts/UserCompanyList.js"));

            bundles.Add(new StyleBundle("~/Content/UserCompany").Include("~/Content/text-editor.css"));
            bundles.Add(new ScriptBundle("~/bundles/UserCompany").Include("~/Scripts/user-text-editor.js", "~/Scripts/UserScripts/UserCompanyList.js"));
            bundles.Add(new ScriptBundle("~/bundles/AUserCompany").Include("~/Scripts/text-editor.js", "~/Scripts/UserScripts/UserCompanyList.js"));

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

            bundles.Add(new StyleBundle("~/Content/UserDashboard").Include("~/Content/dashboard.css"));
            bundles.Add(new ScriptBundle("~/bundles/UserDashboard").Include("~/Scripts/UserScripts/Dashboard.js"));
            bundles.Add(new ScriptBundle("~/bundles/ADashboard").Include("~/Scripts/UserScripts/Dashboard.js", "~/Scripts/UserScripts/AdminDashboard.js"));

            bundles.Add(new ScriptBundle("~/bundles/review").Include("~/Scripts/UserScripts/SubmitReview.js"));

            bundles.Add(new ScriptBundle("~/bundles/CompanyProfiles").Include(
                            "~/Scripts/highcharts.js",
                            "~/Scripts/UserScripts/Company.js",
                            "~/Scripts/UserScripts/CompanyVote.min.js"));

            bundles.Add(new StyleBundle("~/Content/CompList").Include("~/Content/animation.css", "~/Content/listing.css"));
            bundles.Add(new ScriptBundle("~/bundles/CompList").Include(
                            "~/Scripts/highcharts.js",
                            "~/Scripts/UserScripts/CompanyList.js"));

            bundles.Add(new StyleBundle("~/Content/Homecss").Include("~/Content/owl.carousel.css", "~/Content/home.css"));
            bundles.Add(new ScriptBundle("~/bundles/homejs").Include("~/Scripts/owl.carousel.min.js"));

            bundles.Add(new StyleBundle("~/Content/GetListedcss").Include("~/Content/GetListed.css"));

            bundles.Add(new ScriptBundle("~/bundles/login").Include("~/Scripts/UserScripts/Login.js"));

            bundles.Add(new ScriptBundle("~/bundles/softlist").Include("~/Scripts/UserScripts/SoftwareList.js"));

            bundles.Add(new ScriptBundle("~/bundles/software").Include("~/Scripts/UserScripts/Software.js"));

            bundles.Add(new ScriptBundle("~/bundles/allcategories").Include("~/Scripts/UserScripts/AllCategory.js"));

            bundles.Add(new ScriptBundle("~/bundles/CompanyPortfolio").Include("~/Scripts/UserScripts/UserPortfolioList.js"));

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

            bundles.Add(new ScriptBundle("~/bundles/TeamMembersList").Include("~/Scripts/UserScripts/TeamMembers.js"));

            bundles.Add(new StyleBundle("~/Content/TeamMembers").Include("~/Content/bootstrap-datepicker.css"));
            bundles.Add(new ScriptBundle("~/bundles/TeamMembers").Include("~/Scripts/bootstrap-datepicker.js", "~/Scripts/UserScripts/TeamMembers.js"));

            bundles.Add(new ScriptBundle("~/bundles/UserReviewApproval").Include("~/Scripts/UserScripts/UserReviewForApproval.js"));

            bundles.Add(new StyleBundle("~/Content/Sponsorship").Include("~/Content/bootstrap-datepicker.css"));
            bundles.Add(new ScriptBundle("~/bundles/Sponsorship").Include("~/Scripts/bootstrap-datepicker.js", "~/Scripts/UserScripts/SponsorShip.js"));

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

            //BundleTable.Bundles.UseCdn = true;



            //bundles.Add(new StyleBundle("~/Content/Quotationcss").Include("~/Content/Quotation.css"));
            bundles.Add(new StyleBundle("~/Content/Companycss").Include("~/Content/Company.css"));
            bundles.Add(new ScriptBundle("~/bundles/CompanyProfiles").Include(
                            "~/Scripts/highcharts.js",
                            "~/Scripts/UserScripts/Company.js",
                            "~/Scripts/UserScripts/CompanyVote.min.js"));

            bundles.Add(new StyleBundle("~/Content/UserListCss").Include("~/Content/text-editor.css",
                                                                         "~/Content/multi-select.css"));

            bundles.Add(new ScriptBundle("~/bundles/AUserSoftwareListPluginJs").Include("~/Scripts/multi-select.js", "~/Scripts/text-editor.js"));
            bundles.Add(new ScriptBundle("~/bundles/UserSoftwareListPluginJs").Include("~/Scripts/multi-select.js", "~/Scripts/user-text-editor.js"));
            bundles.Add(new ScriptBundle("~/bundles/UserSoftwareList").Include("~/Scripts/UserScripts/UserSoftwareList.js"));

            BundleTable.EnableOptimizations = true;
        }
示例#35
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/Scripts/lib/jquery").Include(
                        "~/Scripts/lib/jquery-{version}.js",
                        "~/Scripts/lib/jquery.unobtrusive-ajax.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/bootstrap").Include(
                        "~/Scripts/lib/bootstrap.js",
                        "~/Scripts/lib/plugins/datepicker/js/boostrap-datepicker.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/globalize/js")
                         .Include(
                             "~/Scripts/lib/globalize/globalize.js",
                             "~/Scripts/lib/globalize/globalize.culture.es-AR.js",
                             "~/Scripts/lib/globalize/globalize.init.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/jqueryval").Include(
                        "~/Scripts/lib/jquery.validate.js",
                        "~/Scripts/lib/jquery.validate.unobtrusive.js",
                        "~/Scripts/lib/jquery.validate.unobtrusive.extensions.js",
                        "~/Scripts/lib/jquery.validate.unobtrusive.custom.js",
                        "~/Scripts/lib/jquery.validate.fixes.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/bootstrap/plugins").Include(
                        "~/Scripts/lib/plugins/metisMenu/jquery.metisMenu.js",
                        "~/Scripts/lib/plugins/morris/raphael-2.1.0.min.js",
                        "~/Scripts/lib/plugins/morris/morris.js",
                        "~/Scripts/lib/plugins/autoNumeric.js",
                        "~/Scripts/lib/plugins/spin.js",
                        "~/Scripts/lib/plugins/bootstrap-timepicker.js",
                        "~/Scripts/lib/plugins/bootstrap-datepicker.js",
                        "~/Scripts/lib/plugins/bootstrap-datepicker.es.js",
                        "~/Scripts/lib/plugins/bootstrap-bootbox.js",
                        "~/Scripts/lib/typeahead.bundle.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/comun").Include(
                        "~/Scripts/lib/javascript.object.extension.js",
                        "~/Scripts/lib/maxikiosco-util.js",
                        "~/Scripts/app/maxikiosco-spinner.js",
                        "~/Scripts/lib/plugins/select2-3.4.5/select2.min.js",
                        "~/Scripts/lib/plugins/select2-3.4.5/select2_locale_es.js",
                        "~/Scripts/lib/plugins/bootstrap-multiselect/js/prettify.js",
                        "~/Scripts/lib/plugins/bootstrap-multiselect/js/bootstrap-multiselect.js",
                        "~/Scripts/lib/plugins/shortcut.js",
                        "~/Scripts/lib/jquery.hotkeys.js",
                        "~/Scripts/lib/jquery.confirm.js",
                        "~/Scripts/lib/jsrender.js",
                        "~/Scripts/lib/jquery.cursortable.js",
                         "~/Scripts/app/bootstrapAlerts.js"));

            bundles.Add(new ScriptBundle("~/Scripts/app/admin").Include(
                       "~/Scripts/app/sb-admin.js",
                       "~/Scripts/app/maxikiosco.unobtrusive.js",
                       "~/Scripts/app/dataservices/*.js",
                       "~/Scripts/app/maxikiosco-reportar-error.js",
                       "~/Scripts/app/maxikiosco-util.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("~/Scripts/lib/modernizr").Include(
                        "~/Scripts/lib/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css",
                "~/Content/spin.css",
                "~/Content/maxikiosco-form.css",
                "~/Content/maxikiosco-table.css"));

            bundles.Add(new StyleBundle("~/Content/bootstrap/css/styles")
                            .Include("~/Content/bootstrap/css/bootstrap.css",
                                     "~/Content/bootstrap/css/bootstrap-theme.css",
                                     "~/Content/bootstrap/css/select2.css",
                                     "~/Content/bootstrap/css/select2-bootstrap.css",
                                     "~/Content/bootstrap/css/boostrap-multiselect.css",
                                     "~/Content/bootstrap/css/bootstrap-timepicker.css",
                                     "~/Content/bootstrap/css/bootstrap-datepicker.css",
                                     "~/Content/bootstrap/css/typeaheadjs.css"));

            bundles.Add(new StyleBundle("~/Content/admin/css/styles")
                           .Include("~/Content/admin/css/font-awesome.css",
                                    "~/Content/admin/css/morris-0.4.3.min.css",
                                    "~/Content/admin/css/timeline.css",
                                    "~/Content/admin/css/sb-admin.css"));
        }
示例#36
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/Scripts/lib/jquery").Include(
                            "~/Scripts/lib/jquery-{version}.js",
                            "~/Scripts/lib/jquery.unobtrusive-ajax.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/bootstrap").Include(
                            "~/Scripts/lib/bootstrap.js",
                            "~/Scripts/lib/plugins/datepicker/js/boostrap-datepicker.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/globalize/js")
                        .Include(
                            "~/Scripts/lib/globalize/globalize.js",
                            "~/Scripts/lib/globalize/globalize.culture.es-AR.js",
                            "~/Scripts/lib/globalize/globalize.init.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/jqueryval").Include(
                            "~/Scripts/lib/jquery.validate.js",
                            "~/Scripts/lib/jquery.validate.unobtrusive.js",
                            "~/Scripts/lib/jquery.validate.unobtrusive.extensions.js",
                            "~/Scripts/lib/jquery.validate.unobtrusive.custom.js",
                            "~/Scripts/lib/jquery.validate.fixes.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/bootstrap/plugins").Include(
                            "~/Scripts/lib/plugins/metisMenu/jquery.metisMenu.js",
                            "~/Scripts/lib/plugins/morris/raphael-2.1.0.min.js",
                            "~/Scripts/lib/plugins/morris/morris.js",
                            "~/Scripts/lib/plugins/autoNumeric.js",
                            "~/Scripts/lib/plugins/spin.js",
                            "~/Scripts/lib/plugins/bootstrap-timepicker.js",
                            "~/Scripts/lib/plugins/bootstrap-datepicker.js",
                            "~/Scripts/lib/plugins/bootstrap-datepicker.es.js",
                            "~/Scripts/lib/plugins/bootstrap-bootbox.js",
                            "~/Scripts/lib/typeahead.bundle.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/comun").Include(
                            "~/Scripts/lib/javascript.object.extension.js",
                            "~/Scripts/lib/maxikiosco-util.js",
                            "~/Scripts/app/maxikiosco-spinner.js",
                            "~/Scripts/lib/plugins/select2-3.4.5/select2.min.js",
                            "~/Scripts/lib/plugins/select2-3.4.5/select2_locale_es.js",
                            "~/Scripts/lib/plugins/bootstrap-multiselect/js/prettify.js",
                            "~/Scripts/lib/plugins/bootstrap-multiselect/js/bootstrap-multiselect.js",
                            "~/Scripts/lib/plugins/shortcut.js",
                            "~/Scripts/lib/jquery.hotkeys.js",
                            "~/Scripts/lib/jquery.confirm.js",
                            "~/Scripts/lib/jsrender.js",
                            "~/Scripts/lib/jquery.cursortable.js",
                            "~/Scripts/app/bootstrapAlerts.js"));

            bundles.Add(new ScriptBundle("~/Scripts/app/admin").Include(
                            "~/Scripts/app/sb-admin.js",
                            "~/Scripts/app/maxikiosco.unobtrusive.js",
                            "~/Scripts/app/dataservices/*.js",
                            "~/Scripts/app/maxikiosco-reportar-error.js",
                            "~/Scripts/app/maxikiosco-util.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("~/Scripts/lib/modernizr").Include(
                            "~/Scripts/lib/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css",
                                                                 "~/Content/spin.css",
                                                                 "~/Content/maxikiosco-form.css",
                                                                 "~/Content/maxikiosco-table.css"));

            bundles.Add(new StyleBundle("~/Content/bootstrap/css/styles")
                        .Include("~/Content/bootstrap/css/bootstrap.css",
                                 "~/Content/bootstrap/css/bootstrap-theme.css",
                                 "~/Content/bootstrap/css/select2.css",
                                 "~/Content/bootstrap/css/select2-bootstrap.css",
                                 "~/Content/bootstrap/css/boostrap-multiselect.css",
                                 "~/Content/bootstrap/css/bootstrap-timepicker.css",
                                 "~/Content/bootstrap/css/bootstrap-datepicker.css",
                                 "~/Content/bootstrap/css/typeaheadjs.css"));

            bundles.Add(new StyleBundle("~/Content/admin/css/styles")
                        .Include("~/Content/admin/css/font-awesome.css",
                                 "~/Content/admin/css/morris-0.4.3.min.css",
                                 "~/Content/admin/css/timeline.css",
                                 "~/Content/admin/css/sb-admin.css"));
        }
示例#37
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.IgnoreList.Clear();

            string cultureName = WebSiteConfig.DefaultSetting.Language.Culture.ToLower();


            var preLibraryScriptBundle = new ScriptBundle("~/bundles/pre-libraryScript").Include(
                "~/Scripts/library/jquery/jquery-1.7.2.min.js",
                "~/Scripts/library/amplify/amplify.min.js",
                "~/Scripts/library/moment/moment.min.js",
                "~/Scripts/library/knockout/knockout-3.0.0.js",
                "~/Scripts/chesapeakebay/cpkb.js"

                );

            if (cultureName != "en-us")
            {
                preLibraryScriptBundle.Include(string.Format("~/Scripts/library/moment/lang/{0}.js", cultureName));
            }

            bundles.Add(preLibraryScriptBundle);

            var postLibraryScriptBundle = new ScriptBundle("~/bundles/post-libraryScript").Include(
                "~/Scripts/library/json/json2.min.js",

                "~/Scripts/library/jquery/simplePagination/jquery.simplePagination.js",
                "~/Scripts/library/jquery/scrollUp/jquery.scrollUp.min.js",
                "~/Scripts/library/noty/jquery.noty.js",
                "~/Scripts/library/noty/layouts/top.js",
                "~/Scripts/library/noty/layouts/center.js",
                "~/Scripts/library/noty/layouts/bottom.js",
                "~/Scripts/library/noty/themes/default.js",

                "~/Scripts/library/bootstrap/bootstrap-v2.3.2.min.js",

                "~/Scripts/library/knockout/knockout.mapping.js",
                "~/Scripts/library/knockout/knockout.validation.min.js",
                "~/Scripts/library/knockout/ko.editables.js",

                //chesapeakebay
                "~/Scripts/chesapeakebay/extend.js",
                "~/Scripts/chesapeakebay/utility.js",

                //lang
                string.Format("~/Scripts/chesapeakebay/lang/{0}.js", cultureName),

                //model
                "~/Scripts/chesapeakebay/model/model.js",
                "~/Scripts/chesapeakebay/model/model.user.js",
                "~/Scripts/chesapeakebay/model/model.content.js",

                //site
                "~/Scripts/chesapeakebay/site/site.js",
                "~/Scripts/chesapeakebay/site/site.user.js",
                "~/Scripts/chesapeakebay/site/site.layout.js",
                "~/Scripts/chesapeakebay/site/site.content.js"
                );

            postLibraryScriptBundle.Include("~/Scripts/library/kindeditor/kindeditor-min.js");

            string kindEditorLangFileName;

            switch (cultureName)
            {
            case "en-us":
                kindEditorLangFileName = "en"; break;

            case "zh-cn":
                kindEditorLangFileName = "zh-CN"; break;

            default:
                kindEditorLangFileName = "en"; break;
            }
            postLibraryScriptBundle.Include(string.Format("~/Scripts/library/kindeditor/lang/{0}.js", kindEditorLangFileName));
            bundles.Add(postLibraryScriptBundle);


            bundles.Add(new StyleBundle("~/Content/siteCss")
                        .Include("~/Content/bootstrap/css/bootstrap-v2.3.2.css")
                        .Include("~/Content/library/simplePagination/simplePagination.css")
                        .Include("~/Content/library/scrollUp/css/labs.css")
                        .Include("~/Content/library/scrollUp/css/themes/image.css")
                        .Include("~/Content/site.css")
                        .Include("~/Content/chesapeakebay/cpkb.css"));
        }
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
bundles.Clear();
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

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

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));
            
            bundles.Add(new ScriptBundle("~/bundles/jqueryvalidate").Include(
                       "~/Scripts/jquery.validate.min.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 StyleBundle("~/Content/css").Include(
                "~/Content/site.css"
                , "~/Content/DataTables-1.9.4/media/css/jquery.dataTables.css"
                , "~/Content/bootstrap.css"
                , "~/Content/bootstrap-datepicker.css"
                , "~/Content/bootstrap-responsive.css"
                , "~/Content/bootstrap-theme.css"
				, "~/Content/galleria.classic.css"
				));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/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"));

            //// wijmo themes
            //bundles.Add(new StyleBundle("~/Content/themes/wijmo/css").Include(
            //                    "~/Content/themes/aristo/jquery-wijmo.css",
            //                    "~/Content/themes/jquery.wijmo-complete.2.4.1.css"));

            //// wijmo javascripts
            //bundles.Add(new ScriptBundle("~/bundles/wijmo").Include(
            //   "~/Scripts/jquery.wijmo-open.all.3.20133.29.min.js",
            //   "~/Scripts/jquery.wijmo-complete.all.2.4.1.min.js"));

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

            // dataTables.
            bundles.Add(new ScriptBundle("~/bundles/dataTables").Include(
                "~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.js",
                "~/Scripts/DataTables-1.9.4/extras/ColReorder/media/js/ColReorder.min.js",
                "~/Scripts/DataTables-1.9.4/extras/ColVis/media/js/ColVis.min.js",
                //"~/Scripts/DataTables-1.9.4/ZeroClipboard.js",
                //"~/Scripts/DataTables-1.9.4/TableTools.min.js",
                "~/Scripts/jquery.dataTables.editable.js",
                "~/Scripts/jquery.jeditable.js"
            ));

            // bootstrap + bootbox
            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                "~/Scripts/bootstrap.js",
                "~/Scripts/bootstrap-datepicker.js",
                "~/Scripts/bootbox.js"
            ));


#if ANGULARJS
            bundles.Add(new ScriptBundle("~/bundles/angular").Include(
                        "~/Scripts/angular.js",
                        "~/Scripts/angular-ng-grid.js",
                        "~/Scripts/angular-resource.js",
                        "~/Scripts/angular-route.js"));

            bundles.Add(new StyleBundle("~/Content/angular").Include(
                "~/Content/ng-grid.css"));
#endif
        }
示例#39
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            

            bundles.Clear();
            bundles.IgnoreList.Clear();

            string cultureName = WebSiteConfig.DefaultSetting.Language.Culture.ToLower();

       
            var preLibraryScriptBundle = new ScriptBundle("~/bundles/pre-libraryScript").Include(
                           "~/Scripts/library/jquery/jquery-1.7.2.min.js",
                           "~/Scripts/library/amplify/amplify.min.js", 
                           "~/Scripts/library/moment/moment.min.js",
                           "~/Scripts/library/knockout/knockout-3.0.0.js",
                           "~/Scripts/chesapeakebay/cpkb.js"
                         
                );
            if (cultureName != "en-us")
            {
                preLibraryScriptBundle.Include(string.Format("~/Scripts/library/moment/lang/{0}.js", cultureName));

            }
            
            bundles.Add(preLibraryScriptBundle);

            var postLibraryScriptBundle = new ScriptBundle("~/bundles/post-libraryScript").Include(
                           "~/Scripts/library/json/json2.min.js",
                       
                           "~/Scripts/library/jquery/simplePagination/jquery.simplePagination.js",
                           "~/Scripts/library/jquery/scrollUp/jquery.scrollUp.min.js",
                           "~/Scripts/library/noty/jquery.noty.js",
                           "~/Scripts/library/noty/layouts/top.js",
                           "~/Scripts/library/noty/layouts/center.js",
                           "~/Scripts/library/noty/layouts/bottom.js",
                           "~/Scripts/library/noty/themes/default.js",

                           "~/Scripts/library/bootstrap/bootstrap-v2.3.2.min.js",

                           "~/Scripts/library/knockout/knockout.mapping.js",
                           "~/Scripts/library/knockout/knockout.validation.min.js",
                           "~/Scripts/library/knockout/ko.editables.js",
            
                           //chesapeakebay
                           "~/Scripts/chesapeakebay/extend.js",
                           "~/Scripts/chesapeakebay/utility.js",
                           
                           //lang
                            string.Format("~/Scripts/chesapeakebay/lang/{0}.js", cultureName),

                           //model
                           "~/Scripts/chesapeakebay/model/model.js",
                           "~/Scripts/chesapeakebay/model/model.user.js",
                           "~/Scripts/chesapeakebay/model/model.content.js",

                           //site
                           "~/Scripts/chesapeakebay/site/site.js",
                           "~/Scripts/chesapeakebay/site/site.user.js",
                           "~/Scripts/chesapeakebay/site/site.layout.js",  
                           "~/Scripts/chesapeakebay/site/site.content.js"
                        );
            postLibraryScriptBundle.Include("~/Scripts/library/kindeditor/kindeditor-min.js");

            string kindEditorLangFileName;
            switch (cultureName)
            { 
                case "en-us" :
                    kindEditorLangFileName = "en"; break;
                case "zh-cn" :
                    kindEditorLangFileName = "zh-CN"; break;
                default:
                    kindEditorLangFileName = "en"; break;
            }
            postLibraryScriptBundle.Include(string.Format("~/Scripts/library/kindeditor/lang/{0}.js", kindEditorLangFileName));
            bundles.Add(postLibraryScriptBundle);


            bundles.Add(new StyleBundle("~/Content/siteCss")
                                        .Include("~/Content/bootstrap/css/bootstrap-v2.3.2.css")
                                        .Include("~/Content/library/simplePagination/simplePagination.css")
                                        .Include("~/Content/library/scrollUp/css/labs.css")
                                        .Include("~/Content/library/scrollUp/css/themes/image.css")
                                        .Include("~/Content/site.css")
                                        .Include("~/Content/chesapeakebay/cpkb.css"));
          
        }
示例#40
0
        // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-{version}.js",
                            "~/Scripts/jquery.unobtrusive-ajax.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/umd/popper.js",
                            "~/Scripts/bootstrap.js"));

            /*USER BUNDLES*/
            bundles.Add(new StyleBundle("~/Content/bootstrapCss").Include(
                            "~/Content/bootstrap.css"));

            bundles.Add(new StyleBundle("~/Content/userCss").Include(
                            "~/Content/style.css"));

            bundles.Add(new ScriptBundle("~/bundles/userScripts").Include(
                            "~/Content/Scripts/multiLanguajeDemo.js",
                            "~/Content/Scripts/globalJS.js"));

            bundles.Add(new ScriptBundle("~/bundles/homeScript").Include(
                            "~/Scripts/userScripts/homepage.js"));

            bundles.Add(new ScriptBundle("~/bundles/contactScript").Include(
                            "~/Content/Scripts/contact.js"));

            bundles.Add(new ScriptBundle("~/bundles/projectScript").Include(
                            "~/Content/Scripts/owl-carousel.js",
                            "~/Content/Scripts/lightbox.js",
                            "~/Content/Scripts/projects.js"));

            bundles.Add(new ScriptBundle("~/bundles/blogScript").Include(
                            "~/Scripts/packery.pkgd.min.js"));

            bundles.Add(new StyleBundle("~/Content/projectCss").Include(
                            "~/Content/owl-carousel.css",
                            "~/Content/owl-carousel-theme.css",
                            "~/Content/lightbox.css"));

            bundles.Add(new StyleBundle("~/Content/fontAwesome").Include(
                            "~/Content/font-awesome5.css", new CssRewriteUrlTransform()
                            ));

            /*ADMIN BUNDLES*/

            bundles.Add(new StyleBundle("~/Content/adminCss").Include(
                            "~/Areas/Admin/Content/css/bootstrap.css",
                            "~/Areas/Admin/Content/css/style.css",
                            "~/Areas/Admin/Content/css/font-awesome.css",
                            "~/Content/summernote.css",
                            "~/Areas/Admin/Content/css/jquery.filer-dragdropbox-theme.css",
                            "~/Content/toastr.css"));

            bundles.Add(new ScriptBundle("~/bundles/adminScripts").Include(
                            "~/Scripts/jquery-ui-1.12.1.js",
                            "~/Areas/Admin/Content/js/popper.min.js",
                            "~/Areas/Admin/Content/js/tether.min.js",
                            "~/Areas/Admin/Content/js/bootstrap.js",
                            "~/Areas/Admin/Content/js/pikeadmin.js",
                            "~/Areas/Admin/Content/js/moment.min.js",
                            "~/Areas/Admin/Content/js/detect.js",
                            "~/Areas/Admin/Content/js/fastclick.js",
                            "~/Areas/Admin/Content/js/jquery.blockUI.js",
                            "~/Areas/Admin/Content/js/jquery.nicescroll.js",
                            "~/Areas/Admin/Content/js/switchery.min.js",
                            "~/Scripts/summernote/summernote.js",
                            "~/Scripts/summernote/summernote-ext-specialchars.js",
                            "~/Scripts/toastr.js"));

            BundleTable.EnableOptimizations = true;
        }
示例#41
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();

            bundles.Add(new ScriptBundle("~/bundles/script/min").Include(
                            "~/Content/scripts/jquery-1.10.1.js",
                            "~/Content/scripts/Bootstrap/Twitter/js/bootstrap.js",
                            "~/Content/scripts/jquery.treeview.js",
                            "~/Content/scripts/Bootstrap/mediator.js",
                            "~/Content/scripts/Bootstrap/model.js",
                            "~/Content/scripts/Bootstrap/usefull.js",
                            //"~/Content/scripts/Bootstrap/pager.js",
                            "~/Content/scripts/core.js",
                            "~/Content/scripts/App/admin.js",
                            "~/Content/scripts/App/contact.js",
                            "~/Content/scripts/App/comment.js"
                            ));

            //bundles.Add(new ScriptBundle("~/bundles/script/min").Include(
            //            "~/Content/scripts/jquery-1.10.1.js",
            //            "~/Content/scripts/Bootstrap/Twitter/js/bootstrap.js",
            //            "~/Content/scripts/jquery.treeview.js",
            //            "~/Content/scripts/Bootstrap/mediator.js",
            //            "~/Content/scripts/Bootstrap/model.js",
            //            "~/Content/scripts/Bootstrap/usefull.js",
            //            //"~/Content/scripts/Bootstrap/pager.js",
            //            "~/Content/scripts/core.js",
            //            "~/Content/scripts/App/admin.js",
            //            "~/Content/scripts/App/contact.js",
            //            "~/Content/scripts/App/comment.js"
            //            ));


            bundles.Add(new StyleBundle("~/bundles/css/min").Include(
                            //"~/Content/min/DIYFE_min.css"
                            "~/Content/scripts/Bootstrap/Twitter/css/bootstrap.css",
                            "~/Content/site.css",
                            "~/Content/comments.css"
                            //        "~/Content/scripts/Bootstrap/Twitter/css/bootstrap-responsive.css",
                            ////"~/Content/scripts/themes.css",));
                            //        "~/Content/site.css",
                            //        "~/Content/jquery.treeview.css",
                            //        "~/Content/comments.css"
                            ));


            //bundles.Add(new ScriptBundle("~/Content/min").Include(
            //            "~/Content/Scripts/jquery-{version}.js",
            //            "~/Content/Scripts/jquery{addOn}.js",
            //            "~/Content/Scripts/jquery{addOn}.js"));


            //bundles.Add(new StyleBundle("~/Content/min").Include(
            //            "~/Content/scripts/Bootstrap/Twitter/bootstrap-responsive.css",
            //            //"~/Content/scripts/themes.css",));
            //            "~/Content/site.css",
            //            "~/Content/jquery.treeview.css",
            //            "~/Content/comments.css"
            //            ));


            //bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
            //            "~/Scripts/jquery-{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-*"));

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

            //bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
            //            "~/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"));

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

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

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

            bundles.Add(new ScriptBundle("~/bundles/jqueryvalidate").Include(
                            "~/Scripts/jquery.validate.min.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 StyleBundle("~/Content/css").Include(
                            "~/Content/site.css"
                            , "~/Content/DataTables-1.9.4/media/css/jquery.dataTables.css"
                            , "~/Content/bootstrap.css"
                            , "~/Content/bootstrap-datepicker.css"
                            , "~/Content/bootstrap-responsive.css"
                            , "~/Content/bootstrap-theme.css"
                            , "~/Content/galleria.classic.css"
                            ));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                            "~/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"));

            //// wijmo themes
            //bundles.Add(new StyleBundle("~/Content/themes/wijmo/css").Include(
            //                    "~/Content/themes/aristo/jquery-wijmo.css",
            //                    "~/Content/themes/jquery.wijmo-complete.2.4.1.css"));

            //// wijmo javascripts
            //bundles.Add(new ScriptBundle("~/bundles/wijmo").Include(
            //   "~/Scripts/jquery.wijmo-open.all.3.20133.29.min.js",
            //   "~/Scripts/jquery.wijmo-complete.all.2.4.1.min.js"));

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

            // dataTables.
            bundles.Add(new ScriptBundle("~/bundles/dataTables").Include(
                            "~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.js",
                            "~/Scripts/DataTables-1.9.4/extras/ColReorder/media/js/ColReorder.min.js",
                            "~/Scripts/DataTables-1.9.4/extras/ColVis/media/js/ColVis.min.js",
                            //"~/Scripts/DataTables-1.9.4/ZeroClipboard.js",
                            //"~/Scripts/DataTables-1.9.4/TableTools.min.js",
                            "~/Scripts/jquery.dataTables.editable.js",
                            "~/Scripts/jquery.jeditable.js"
                            ));

            // bootstrap + bootbox
            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                            "~/Scripts/bootstrap.js",
                            "~/Scripts/bootstrap-datepicker.js",
                            "~/Scripts/bootbox.js"
                            ));


#if ANGULARJS
            bundles.Add(new ScriptBundle("~/bundles/angular").Include(
                            "~/Scripts/angular.js",
                            "~/Scripts/angular-ng-grid.js",
                            "~/Scripts/angular-resource.js",
                            "~/Scripts/angular-route.js"));

            bundles.Add(new StyleBundle("~/Content/angular").Include(
                            "~/Content/ng-grid.css"));
#endif
        }
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/bundles/angular").Include(
                      "~/Scripts/jquery-1.10.2.js",
                      "~/Scripts/angular.js",
                      "~/Scripts/angular-route.js",
                       "~/Scripts/angular-animate.js",
                      "~/Scripts/angular-cache.js"));

            bundles.Add(new ScriptBundle("~/bundles/lib").Include(
                       "~/Scripts/d3.js",
                       "~/Scripts/lodash.js",
                       "~/Scripts/canvg/rgbcolor.js",
                        "~/Scripts/canvg/StackBlur.js",
                       "~/Scripts/canvg/canvg.js",
                        "~/Scripts/html2canvas.js",
                       "~/Scripts/jspdf.js",
                       "~/kendo/js/jszip.js",
                        "~/Scripts/cdnlibs/leaflet.js",
                       "~/Scripts/cdnlibs/queue.v1.js",
                       "~/Scripts/cdnlibs/d3-tip.js",
                       "~/Scripts/ui.js",
                       "~/app/app.js",
                        "~/app/directive/app_localization.js"));

            bundles.Add(new ScriptBundle("~/bundles/app").Include(
                     /* Directives */
                     "~/app/directive/directive.js",
                    "~/app/directive/barChart.js",
                    "~/app/directive/donutChart.js",
                    "~/app/directive/infoChart.js",
                    "~/app/directive/lineChart.js",
                    "~/app/directive/schoolMap.js",
                    "~/app/directive/countyMap.js",
                    /* Factories */
                    "~/app/factories/campus/campusGeneral.js",
                    "~/app/factories/campus/campusStudent.js",
                    "~/app/factories/campus/campusStaff.js",
                    "~/app/factories/campus/campusAdmissions.js",
                    "~/app/factories/campus/campusC4Long.js",
                    "~/app/factories/campus/campusLong.js",
                    "~/app/factories/campus/campusDropout.js",
                    "~/app/factories/campus/campusAPIB.js",
                    "~/app/factories/campus/campusCCReady.js",
                     "~/app/factories/campus/campusStaar.js",
                    "~/app/factories/district/districtGeneral.js",
                    "~/app/factories/district/districtStudent.js",
                    "~/app/factories/district/districtLong.js",
                    "~/app/factories/district/districtStaar.js",
                    "~/app/factories/district/districtStaff.js",
                    /* Services */
                    "~/app/services/campusData.js",
                    "~/app/services/districtData.js",
                    "~/app/services/district2015Data.js",
                    "~/app/services/allData.js",
                    "~/app/services/sqlData.js",
                    "~/app/services/aeisData.js",
                    "~/app/services/mapper.js",
                    "~/app/services/fieldMapper.js",
                     "~/app/services/campusReportData.js",
                     "~/app/services/reportData.js",
                     "~/app/services/gridView.js",
                    /* Controllers */
                    "~/app/controllers/campus2015Controller.js",
                    "~/app/controllers/district2015Controller.js",
                    "~/app/controllers/donorsController.js",
                    "~/app/controllers/scorecardController.js",
                    "~/app/controllers/teksController.js",
                    "~/app/controllers/actExpFinalController.js",
                    "~/app/controllers/explanation_aeisController.js",
                    "~/app/controllers/explanation_staarController.js",
                    "~/app/controllers/bulkController.js",
                    "~/app/controllers/literacy.js",
                    //"~/app/controllers/naepController.js",
                    "~/app/controllers/spreadsheetController.js",
                    "~/app/controllers/signinController.js",
                    "~/app/controllers/signupController.js",
                    "~/app/controllers/campusReportController.js",
                    "~/app/controllers/reportController.js",
                     /* Themes JS */
                     "~/kendo/js/kendo.all.min.js",
                     "~/Scripts/bootstrap.js"
                    ));

            bundles.Add(new StyleBundle("~/bundles/css")
                .Include("~/Content/literacy.css")
                .Include("~/Content/main.css"));

            //BundleTable.EnableOptimizations = true;
        }