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

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

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

            #region ThirdParty scripts
            ScriptBundle thirdPartyScripts = new ScriptBundle("~/Scripts/ThirdParty");
            thirdPartyScripts.Include("~/Scripts/owl.carousel.min.js",
                                      "~/Scripts/unitegallery.min.js",
                                      "~/Scripts/ug-theme-tiles.js",
                                      "~/Scripts/custom.js",
                                      "~/Scripts/underscore.js");

            bundles.Add(thirdPartyScripts);
            #endregion

            #region Common Angular scripts
            ScriptBundle angularScripts = new ScriptBundle("~/bundles/Angular");
            angularScripts.Include("~/Scripts/angular/angular-1.5.0.js",
                                   "~/Scripts/angular/angular-route.js");
            angularScripts.IncludeDirectory("~/Scripts/app/", "*.js");
            angularScripts.IncludeDirectory("~/Scripts/app/common", "*.js");

            bundles.Add(angularScripts);
            #endregion

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

            #region ThirdParty CSS
            StyleBundle thirdPartyStyles = new StyleBundle("~/Content/ThirdParty");
            thirdPartyStyles.Include("~/Content/style.css",
                                     "~/Content/responsive.css",
                                     "~/Content/font-awesome.min.css",
                                     "~/Content/animate.css",
                                     "~/Content/owl.carousel.min.css",
                                     "~/Content/owl.theme.default.min.css",
                                     "~/Content/unite-gallery.css");

            bundles.Add(thirdPartyStyles);
            #endregion

            // Set EnableOptimizations to false for debugging. For more information,
            // visit http://go.microsoft.com/fwlink/?LinkId=301862
            BundleTable.EnableOptimizations = true;
        }
예제 #2
0
        private static void AddScriptLibs(BundleCollection bundles)
        {
            var scriptsLib = new ScriptBundle("~/Content/bundle/js-lib");

            scriptsLib.IncludeDirectory("~/Scripts/Common", "*.js");
            scriptsLib.IncludeDirectory("~/Scripts/ViewModels", "*.js");
            scriptsLib.IncludeDirectory("~/Scripts", "*.js");

            bundles.Add(scriptsLib);
        }
예제 #3
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            SetupIgnorePatterns(bundles.IgnoreList);

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

            Bundle bootstrapBundle = new StyleBundle("~/Content/bootstrap/css/styles");

            bootstrapBundle.Include("~/Content/bootstrap/css/bootstrap.css", "~/Content/bootstrap/css/bootstrap-responsive.css");
            bundles.Add(bootstrapBundle);

            Bundle flattyBundle = new StyleBundle("~/Content/flatty/stylesheets/styles");

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

            Bundle cssBundle = new StyleBundle("~/Content/css/styles");

            cssBundle.IncludeDirectory("~/Content/css", "*.css");
            cssBundle.IncludeDirectory("~/Content", "*.css");
            bundles.Add(cssBundle);

            Bundle lessBundle = new Bundle("~/Content/less", new LessMinify());

            lessBundle.Include("~/Content/Site.less");
            bundles.Add(lessBundle);

            Bundle scriptBundle = new ScriptBundle("~/bundles/scripts");

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

            // Uncomment to see release configuration bundling.
            //BundleTable.EnableOptimizations = true;
        }
예제 #4
0
        public static void Config(BundleCollection bundles)
        {
            var scriptBundle = new ScriptBundle(Path);

            scriptBundle.Include("~/Scripts/angular.js");
            scriptBundle.Include("~/Scripts/angular-ui-router.js");
            scriptBundle.Include("~/Scripts/angular-resource.js");
            scriptBundle.Include("~/Scripts/angular-cookies.js");
            scriptBundle.IncludeDirectory("~/Angular/Modules", "*.js", true);
            scriptBundle.IncludeDirectory("~/Angular/Services", "*.js", true);
            scriptBundle.IncludeDirectory("~/Angular/Controllers", "*.js", true);

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

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

            var mugScript = new ScriptBundle("~/bundles/mug");

            mugScript.Include("~/Scripts/knockout-2.1.0.debug.js");
            mugScript.Include("~/Scripts/mustache.js");
            mugScript.Include("~/Scripts/ko.mustache.js");
            mugScript.Include("~/Scripts/script.js");
            mugScript.IncludeDirectory("~/Scripts/ViewModel", "*.js");
            mugScript.IncludeDirectory("~/Scripts/Utils", "*.js");
            bundles.Add(mugScript);

            var bundle = new Bundle("~/Content/template");

            bundle.Transforms.Add(new TemplateTransform());
            bundle.IncludeDirectory("~/Views", "*.mustache", true);
            bundles.Add(bundle);
        }
예제 #6
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            SetupIgnorePatterns(bundles.IgnoreList);

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

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

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

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

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

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

            // Uncomment to see release configuration bundling.
            //BundleTable.EnableOptimizations = true;
        }
예제 #7
0
        /// <summary>
        /// Renders the scripts.
        /// </summary>
        /// <param name="helper">The helper.</param>
        /// <param name="virtualPath">The virtual path.</param>
        /// <param name="additionalPaths">The additional paths.</param>
        /// <returns></returns>
        public static IHtmlString RenderScripts(this HtmlHelper helper, string virtualPath, params string[] additionalPaths)
        {
            if (BundleTable.Bundles.GetBundleFor(virtualPath) == null)
            {
                var bundles = new ScriptBundle(virtualPath);
                foreach (var additionalPath in additionalPaths)
                {
                    var path = HostingEnvironment.MapPath(additionalPath);
                    if (path == null)
                    {
                        throw new Exception($"File not found at path: {additionalPath}");
                    }

                    var attr = File.GetAttributes(path);
                    if ((attr & FileAttributes.Directory) == FileAttributes.Directory)
                    {
                        bundles.IncludeDirectory(additionalPath, "*.js", true);
                    }
                    else
                    {
                        bundles.Include(additionalPath);
                    }
                }
                BundleTable.Bundles.Add(bundles);
            }
            return(MvcHtmlString.Create($"<script src=\"{HttpUtility.HtmlAttributeEncode(BundleTable.Bundles.ResolveBundleUrl(virtualPath))}\"></script>"));
        }
예제 #8
0
        /// <summary>
        /// Adds the main bundle of angular scripts for this module to the bundle collection
        /// </summary>
        /// <param name="jsRoutes">The ModuleJsRouteLibrary for this module</param>
        /// <param name="directories">A collection of directory names (no slashes) to scan for files and addto the bundle.</param>
        /// <param name="files">A collection of file names to add to the bundle as single resources. This is done before adding directory bundles.</param>
        /// <returns>BundleCollection instance for chaining</returns>
        public static BundleCollection AddMainAngularScriptBundle(this BundleCollection bundles, ModuleJsRouteLibrary jsRoutes, string[] files, string[] directories)
        {
            var bundle = new ScriptBundle(jsRoutes.Main);

            if (files != null)
            {
                foreach (var file in files)
                {
                    bundle.Include(jsRoutes.JsFolderFile(file));
                }
            }

            if (directories != null)
            {
                foreach (var directory in directories)
                {
                    var path = jsRoutes.JsFolderFile(directory + "/");
                    if (HostingEnvironment.VirtualPathProvider.DirectoryExists(path))
                    {
                        bundle.IncludeDirectory(path, "*.js", true);
                    }
                }
            }

            bundles.Add(bundle);

            return(bundles);
        }
예제 #9
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/Bundles/js").Include(
                "~/scripts/jquery-{version}.js",
                "~/scripts/bootstrap.js"));

            var appBundle = new ScriptBundle("~/Bundles/app").Include(
               "~/scripts/angular.js",
                "~/scripts/angular-animate.js",
                "~/scripts/angular-messages.js",
                "~/scripts/angular-resource.js",
                "~/scripts/angular-route.js",
                "~/scripts/angular-sanitize.js",
                "~/scripts/angular-ui-router.js",
                "~/scripts/angular-ui/ui-bootstrap.js",
                "~/scripts/angular-ui/ui-bootstrap-tpls.js",
                "~/Scripts/html5shiv.js",
                "~/Scripts/respond.js",
                "~/scripts/ngToast.min.js",
                "~/scripts/ngToast.min.js");

            appBundle.Include(System.Configuration.ConfigurationManager.AppSettings["UseTestData"] == "true"
                ? "~/scripts/settings-test.js"
                : "~/scripts/settings-prod.js");

            appBundle.IncludeDirectory("~/app", "*.js", true);

            bundles.Add(appBundle);

            bundles.Add(new StyleBundle("~/Bundles/css").Include(
                "~/content/bootstrap.css",
                "~/content/bootstrap2-icons.css",
                "~/content/ngToast.min.css",
                "~/content/Site.css"));
        }
예제 #10
0
        /// <summary>
        /// Allows to debug JS files on fly without compilation.
        /// Typescript files compiled on save and used from Scripts_built folder in case of DEBUG mode.
        /// </summary>
        /// <param name="virtualPath">Bundle virtual path</param>
        /// <param name="physicalDirectoryPath">Physical path</param>
        /// <returns>Bundle object</returns>
        private static Bundle GetTypeScriptCompatibleBundle(string virtualPath, string physicalDirectoryPath)
        {
#if DEBUG
            var scriptBundle = new ScriptBundle(virtualPath);

            scriptBundle.Orderer = new BundleOrderer();
            scriptBundle.IncludeDirectory("~/Scripts_built/" + physicalDirectoryPath, "*.js", true);

            string baseFolderPath      = HttpContext.Current.Server.MapPath("~/");
            string scriptsPath         = Path.Combine(baseFolderPath, "Scripts_built");
            string typeScriptFilesPath = Path.Combine(scriptsPath, physicalDirectoryPath.Replace('/', Path.DirectorySeparatorChar));

            foreach (string typeScriptFile in Directory.GetFiles(typeScriptFilesPath, "*.ts", SearchOption.AllDirectories))
            {
                string relativeTsFilePath = typeScriptFile.Substring(scriptsPath.Length);
                string compiledTsFilePath = "~/Scripts_built/" + Path.ChangeExtension(relativeTsFilePath, "js").Replace(Path.DirectorySeparatorChar, '/');

                scriptBundle.Include(compiledTsFilePath);
            }

            return(scriptBundle);
#else
            return(new ScriptBundle(virtualPath).IncludeDirectory("~/Scripts_built/" + physicalDirectoryPath, "*.js", true));
#endif
        }
예제 #11
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var libs = new ScriptBundle("~/bundles/libs");

            libs.Include(
                "~/wwwroot/lib/jquery/dist/jquery.js",
                "~/wwwroot/lib/lodash/lodash.js",
                "~/wwwroot/lib/angular/angular.js",
                "~/wwwroot/lib/angular-ui-router/release/angular-ui-router.js",
                "~/wwwroot/lib/angular-bootstrap/ui-bootstrap-tpls.js",
                "~/wwwroot/lib/angular-local-storage/dist/angular-local-storage.js"
                );

            var app = new ScriptBundle("~/bundles/app");

            // Ensure the order is correct
            app.Include(
                "~/app/app.js",
                "~/app/Router.js"
                );

            app.IncludeDirectory("~/app/", "*.js", true);

            bundles.Add(libs);
            bundles.Add(app);
        }
예제 #12
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
            var nullBuilder = new NullBuilder();
            var styleTransformer = new StyleTransformer();
            var nullOrderer = new NullOrderer();

            // 
            // CUSTOM
            //

            var sb = new ScriptBundle("~/bundles/scripts");
            sb.IncludeDirectory("~/assets/js/", "*.js", true);

            bundles.Add(sb);

            var styleBundle = new Bundle("~/bundles/styles");
            styleBundle.IncludeDirectory("~/assets/style/", "*.css", true);
            styleBundle.IncludeDirectory("~/assets/style/", "*.less", true);

            styleBundle.Builder = nullBuilder;
            styleBundle.Transforms.Add(styleTransformer);
            styleBundle.Orderer = nullOrderer;
            bundles.Add(styleBundle);
        }
예제 #13
0
 public static void RegisterBundles(BundleCollection bundles)
 {
     var bundle = new ScriptBundle("~/Scripts/chartup-min");
     bundle.Include("~/Scripts/charts/chart.js");
     bundle.IncludeDirectory("~/Scripts/", "*.js", true);
     bundles.Add(bundle);
 }
예제 #14
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;
            ScriptBundle scriptBundle = new ScriptBundle("~/js");

            string[] scriptArray =
            {
                //"~/Scripts/jquery-1.12.4.js",
                "~/Scripts/jquery-3.3.1.js",

                "~/Scripts/jquery.unobtrusive-ajax.js",
                "~/Scripts/bootstrap.js",
                "~/Scripts/select2.min.js"
            };
            scriptBundle.Include(scriptArray);
            scriptBundle.IncludeDirectory("~/Scripts/", "*.js");
            bundles.Add(scriptBundle);

            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 StyleBundle("~/Styles/css").Include(
                            "~/Content/bootstrap.min.css",
                            "~/Content/site.css"
                            ));
        }
예제 #15
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;
            Console.WriteLine("Registering SucroseBundle");
            var coreBundle = new ScriptBundle("~/Bundles/sucrose");
            var tsBundle = new Bundle("~/Bundles/typescript", new WrapperTransform());

            try
            {
                coreBundle.IncludeDirectory("~/Scripts/Sucrose", "*.js");
            }
            catch (ArgumentException)
            {
            }

            try
            {
                tsBundle.IncludeDirectory("~/TypeScript", "*.ts");
            }
            catch (ArgumentException)
            {
            }

            bundles.Add(coreBundle);
            bundles.Add(tsBundle);
        }
예제 #16
0
        public static void RegisterBundles(BundleCollection Bundles)
        {
            // Enable optimizations that remove whitespace and size of files without compromising functionality
            BundleTable.EnableOptimizations = true;

            // Login and sign up bundles
            ScriptBundle ScriptBundle = new ScriptBundle("~/bundles/js");
            StyleBundle StyleBundle = new StyleBundle("~/bundles/css");

            // Editor bundles for code editor in exercise view
            ScriptBundle EditorScripts = new ScriptBundle("~/bundles/editorjs");
            StyleBundle EditorStyles = new StyleBundle("~/bundles/editorcss");

            ScriptBundle.IncludeDirectory("~/Scripts/", "*.js");
            StyleBundle.IncludeDirectory("~/Content/", "*.css");

            EditorScripts.IncludeDirectory("~/Scripts/Editor/", "*.js");
            EditorStyles.IncludeDirectory("~/Content/Editor/", "*.css");
            EditorStyles.IncludeDirectory("~/Content/Editor/Themes/", "*.css");

            Bundles.Add(ScriptBundle);
            Bundles.Add(StyleBundle);

            Bundles.Add(EditorScripts);
            Bundles.Add(EditorStyles);
        }
예제 #17
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

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

            var mugScript = new ScriptBundle("~/bundles/mug");
            mugScript.Include("~/Scripts/knockout-2.1.0.debug.js");
            mugScript.Include("~/Scripts/mustache.js");
            mugScript.Include("~/Scripts/ko.mustache.js");
            mugScript.Include("~/Scripts/script.js");
            mugScript.IncludeDirectory("~/Scripts/ViewModel", "*.js");
            mugScript.IncludeDirectory("~/Scripts/Utils", "*.js");
            bundles.Add(mugScript);

            var bundle = new Bundle("~/Content/template");
            bundle.Transforms.Add(new TemplateTransform());
            bundle.IncludeDirectory("~/Views", "*.mustache", true);
            bundles.Add(bundle);
        }
예제 #18
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var scripts = new ScriptBundle("~/Scripts/");

            scripts.IncludeDirectory("~/Scripts/", "*.js");
            scripts.IncludeDirectory("~/Scripts/modules/", "*.js");


            var css = new ScriptBundle("~/Styles/");

            css.IncludeDirectory("~/Styles/", "*.css");
            css.IncludeDirectory("~/Styles/images_jq/", "*.png");
            css.IncludeDirectory("~/Styles/images_jq/", "*.gif");

            bundles.Add(scripts);
            bundles.Add(css);
        }
예제 #19
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;
            ScriptBundle scriptBundle = new ScriptBundle("~/js");

            string[] scriptArray =
            {
                "~/Scripts/jquery.unobtrusive-ajax.js",
                "~/Scripts/bootstrap.min.js",
                "~/Scripts/jquery-2.1.1.min.js",
                "~/Content/Layout/js/material.min.js",
                "~/Content/Layout/js/chartist.min.js",
                "~/Content/Layout/js/arrive.min.js",
                "~/Content/Layout/js/perfect-scrollbar.jquery.min.js",
                "~/Content/Layout/js/bootstrap-notify.js",
                "~/Content/Layout/js/material-dashboard.js",
                "~/Content/Layout/js/demo.js",
                "~/Scripts/bootbox.min.js",
                "~/Scripts/toastr.js",
                "~/Scripts/DataTables/jquery.datatables.min.js",
                "~/Scripts/DataTables/datatables.bootstrap.min.js",
                "~/Scripts/pestañas.js",
                "~/Scripts/select2.js",
                "~/Scripts/jquery.steps.js",
                "~/Scripts/layoutScripts.js",
                "~/Scripts/Datepicker.js",
                "~/Scripts/Scripts/jquery-ui-1.12.1.min.js",
                "~/Scripts/Scripts/jquery-ui.multidatespicker.js",
                "~/Scripts/DatatableBase.js",
                "~/Scripts/sweetalert2.js"
            };
            scriptBundle.Include(scriptArray);
            scriptBundle.IncludeDirectory("~/Scripts/", "*.js");
            bundles.Add(scriptBundle);

            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 StyleBundle("~/Styles/css").Include(
                            "~/Content/bootstrap.min.css",
                            "~/content/toastr.css",
                            "~/Content/Layout/css/material-dashboard.css",
                            "~/Content/Layout/css/demo.css",
                            "~/Content/Site.css",
                            "~/Content/css/select2.css",
                            "~/Content/css/bs-callout.css",
                            "~/Content/DataTables/css/dataTables.bootstrap.min.css",
                            "~/Content/jquery.steps.css",
                            "~/Content/jquery-ui.multidatespicker.css",
                            "~/Content/css/FixDataTabalesInsideSteps.css"
                            ));
        }
예제 #20
0
        private static Bundle CreateScriptBundle(string name, string serverPath)
        {
            var scriptBundle = new ScriptBundle(name);

            scriptBundle.Transforms.Add(new JsMinify());
            scriptBundle.IncludeDirectory(serverPath, "*.js");

            return(scriptBundle);
        }
예제 #21
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var angularApp = new ScriptBundle("~/angularApp").Include(

                // Vendor Scripts
                "~/scripts/jquery-{version}.js",
                "~/scripts/angular.js",
                "~/scripts/angular-animate.js",
                "~/scripts/angular-route.js",
                "~/scripts/angular-sanitize.js",
                "~/scripts/angular-ui/ui-bootstrap-tpls.js",

                "~/scripts/toastr.js",
                "~/scripts/moment.js",
                "~/scripts/spin.js",
                "~/scripts/underscore.js",

                // Bootstrapping
                "~/app/app.js",
                "~/app/config.route.js",

                // common Modules
                "~/app/common/common.js",
                "~/app/common/logger.js",
                "~/app/common/spinner.js",

                // common.bootstrap Modules
                "~/app/common/bootstrap/bootstrap.dialog.js"
                );

            // directives
            angularApp.IncludeDirectory("~/app/directives", "*.js", true);

            // services
            angularApp.IncludeDirectory("~/app/services", "*.js", true);

            // controllers
            angularApp.IncludeDirectory("~/app/admin", "*.js", true);
            angularApp.IncludeDirectory("~/app/about", "*.js", true);
            angularApp.IncludeDirectory("~/app/dashboard", "*.js", true);
            angularApp.IncludeDirectory("~/app/layout", "*.js", true);
            angularApp.IncludeDirectory("~/app/sayings", "*.js", true);
            angularApp.IncludeDirectory("~/app/sages", "*.js", true);

            bundles.Add(angularApp);

            bundles.Add(new StyleBundle("~/Content/css").Include(
                "~/content/ie10mobile.css",
                "~/content/bootstrap.css",
                "~/content/font-awesome.css",
                "~/content/toastr.css",
                "~/content/styles.css"
            ));
        }
예제 #22
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            var styles = new StyleBundle("~/Content/css");
            styles.IncludeDirectory("~/Content/", "*.css", true);
            bundles.Add(styles);

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

            // 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("~/javascript/plsremind.me.bundle.libraries").Include(
                "~/Scripts/jquery-{version}.js",
                //"~/Scripts/jquery-ui-{version}.js",
                "~/Scripts/bootstrap.js",
                "~/Scripts/bootstrap-datepicker.js",
                "~/Scripts/bootstrap-paginator.js",
                "~/Scripts/bootstrap-timepicker.js",
                "~/Scripts/TrafficCop.js",
                "~/Scripts/infuser.js",
                "~/Scripts/knockout-2.3.0.js",
                "~/Scripts/knockout.mapping-latest.js",
                "~/Scripts/knockout.validation.debug.js",
                "~/Scripts/koExternalTemplateEngine_all.js",
                "~/Scripts/knockout-postbox.js",
                "~/Scripts/underscore.js",
                "~/Scripts/moment.js"
                ));

            bundles.Add(new Bundle("~/css/plsremind.me.bundle.libraries").Include(
                "~/content/less/bootstrap.less",
                "~/content/bootstrap-datepicker.css",
                "~/content/bootstrap-timepicker.css",
                "~/content/less/responsive.less",
                "~/content/bootswatch.less",
                "~/content/plsremind.me.bootstrapoverride.less"
                ));

            bundles.Add(new Bundle("~/css/plsremind.me.bundle").Include(
                "~/content/plsremind.me.core.less"
                ));

            var typescriptBundle = new ScriptBundle("~/javascript/plsremind.me.bundle");
            typescriptBundle.IncludeDirectory("~/js/_output", "*.js", true);

            //typescriptBundle.IncludeDirectory("~/js", "*.js", true);
            //typescriptBundle.IncludeDirectory("~/js/Binders", "*.js", true);
            //typescriptBundle.IncludeDirectory("~/js/Models", "*.js", true);
            //typescriptBundle.IncludeDirectory("~/js/ViewModels", "*.js", true);
            //typescriptBundle.Transforms.Add(new JsTransformer());
            //typescriptBundle.Orderer = new AlphaSortedBundleOrderer();
            bundles.Add(typescriptBundle);
            
            BundleTable.EnableOptimizations = false;
        }
예제 #24
0
        public static void Register(BundleCollection bundles)
        {
            var css = new StyleBundle("~/bundles/css");
            var js  = new ScriptBundle("~/bundles/js");

            bundles.Add(css);
            bundles.Add(js);

            var cssPattern = CodeConstants.CssLiteral.GetSearchPattern();

            css.IncludeDirectory("~/Styles/dependencies/", cssPattern, true);
            css.IncludeDirectory("~/Styles/global/", cssPattern, true);
            css.IncludeDirectory("~/Styles/search/", cssPattern, true);

            var jsPattern = CodeConstants.JsLiteral.GetSearchPattern();

            js.IncludeDirectory("~/Scripts/dependencies/", jsPattern, true);
            js.IncludeDirectory("~/Scripts/global/", jsPattern, true);
            js.IncludeDirectory("~/Scripts/search/", jsPattern, true);
        }
예제 #25
0
        private static void AddApplicationBundles(BundleCollection bundles)
        {
            var scriptBundle = new ScriptBundle("~/bundles/app");

            scriptBundle.IncludeDirectory("~/build", "typescript*", false);
            bundles.Add(scriptBundle);

            var pagesBundle = new ScriptBundle("~/bundles/templates");

            pagesBundle.IncludeDirectory("~/build", "templates*", false);
            bundles.Add(pagesBundle);
        }
예제 #26
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            var styles = new StyleBundle("~/Content/css");

            styles.IncludeDirectory("~/Content/", "*.css", true);
            bundles.Add(styles);

            var scripts = new ScriptBundle("~/Scripts");

            scripts.IncludeDirectory("~/Scripts/", "*.js", true);
            bundles.Add(scripts);
        }
예제 #27
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            // jQuery bundle.
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Game/Client/Lib/jquery-3.1.1.min.js"));

            // signalR bundle.
            bundles.Add(new ScriptBundle("~/bundles/signalr").Include(
                            "~/Game/Client/Lib/jquery.signalR-2.2.1.min.js"));

            // Phaser file bundle.
            bundles.Add(new ScriptBundle("~/bundles/phaser").Include(
                            "~/Game/Client/Lib/phaser.min.js"));

            // Bundle all the client game scripts.
            ScriptBundle gameFiles = new ScriptBundle("~/bundles/game");

            gameFiles.IncludeDirectory("~/Game/Client/Entities/", "*.js");
            gameFiles.IncludeDirectory("~/Game/Client/States/", "*.js");
            bundles.Add(gameFiles);
        }
        protected void Application_Start(object sender, EventArgs e)
        {
            var cssBundle = new StyleBundle("~/css");
            cssBundle.IncludeDirectory("~/content/css", "*.css");

            // Create the JS bundle
            var jsBundle = new ScriptBundle("~/js");
            jsBundle.IncludeDirectory("~/content/js", "*.js");

            BundleTable.Bundles.Add(cssBundle);
            BundleTable.Bundles.Add(jsBundle);
        }
예제 #29
0
 private void IncludeDirectory(ScriptBundle scriptBundle, string path, bool includeSubDirectories)
 {
     // Having some issues here with empty directories when publishing to azure, so lets try and give some more info
     try
     {
         scriptBundle.IncludeDirectory(path, "*.js", includeSubDirectories);
     }
     catch (ArgumentException ex)
     {
         throw new ApplicationException("Error adding bundle path '" + path + "'.", ex);
     }
 }
예제 #30
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var libsBundle = new ScriptBundle("~/bundles/libs.js");

            libsBundle.Include(
                "~/Scripts/angular.min.js",
                "~/Scripts/angular-route.min.js",
                "~/Scripts/i18n/angular-locale_it-it.js",
                "~/Scripts/angular-sanitize.min.js",
                "~/Scripts/angular-ui-router.min.js",
                "~/Scripts/angular-local-storage.min.js",
                "~/Scripts/angular-strap.min.js",
                "~/Scripts/angular-strap.tpl.min.js",
                "~/Scripts/angular-file-upload.min.js",
                "~/Scripts/angular-ui/ui-bootstrap.js",
                "~/Scripts/angular-ui/ui-bootstrap-tpls.js",
                "~/Scripts/jquery-3.1.1.min.js",
                "~/Scripts/jquery.cookie.js",
                "~/Scripts/underscore.min.js",
                "~/Scripts/bootstrap.min.js",
                "~/Scripts/bootstrap-toggle.min.js",
                "~/Scripts/jquery.nanoscroller.min.js",
                "~/Scripts/moment.min.js",
                "~/summernote-0.8.2/summernote.min.js",
                "~/Scripts/angular-summernote.min.js"

                );
            bundles.Add(libsBundle);

            var scriptBundle = new ScriptBundle("~/bundles/app.js");

            scriptBundle.Include("~/App/app.js");
            scriptBundle.IncludeDirectory("~/App", "*.js", true);
            bundles.Add(scriptBundle);

            var styleBundle = new StyleBundle("~/Content/app.css");

            styleBundle.Include(
                "~/Content/bootstrap.css",
                "~/css/font-awesome.css",
                "~/Content/animate.css",
                "~/Content/nanoscroller.css",
                "~/Content/bootstrap-toggle.css",
                "~/Content/Site.css",
                "~/App/JobAds/JobAds.css",
                "~/summernote-0.8.2/summernote.css");
            bundles.Add(styleBundle);

            System.Web.Optimization.BundleTable.EnableOptimizations = bool.Parse(ConfigurationManager.AppSettings["ScriptBundleOptimization"]);
        }
예제 #31
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var styles = new StyleBundle("~/Content/bundle/css");

            styles.IncludeDirectory("~/Content/css", "*.css");

            bundles.Add(styles);

            var scirptBundle = new ScriptBundle("~/Content/bundle/js");

            scirptBundle.IncludeDirectory("~/Content/js", "*.css");

            bundles.Add(scirptBundle);

            var scripts = new ScriptBundle("~/Scripts");

            scripts.IncludeDirectory("~/Scripts", "*.js");
            scripts.IncludeDirectory("~/Scripts/ViewModels", "*.js");
            scripts.IncludeDirectory("~/Scripts/Bindings", "*.js");
            scripts.IncludeDirectory("~/Scripts/Validators", "*.js");

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

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

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

            //OAS Scripts
            scriptBundle
            .IncludeDirectory("~/Scripts/OAS/", "opc-lib-min.js");
            //scriptBundle
            //    .IncludeDirectory("~/Scripts/OAS/flot/", "*.js");



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

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

            //OAS styles
            styleBundle
            .Include("~/Content/jquery.dataTables.css");
            styleBundle
            .Include("~/Content/jquery.dataTables_themeroller.css");
            styleBundle
            .Include("~/Content/font-awesome.min.css");
            styleBundle
            .Include("~/Content/opc-alarm-style.css");
            styleBundle
            .Include("~/Content/opc-modal.css");
            styleBundle
            .Include("~/Content/opc-style.css");

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

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
예제 #33
0
        /// <summary>
        /// Registers the scripts.
        /// </summary>
        /// <param name="bundles">The bundles.</param>
        public static void RegisterScripts(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/ThirdPartyScripts/").Include(
                            "~/Scripts/jquery.upload-1.0.2.js",
                            "~/Scripts/jquery.unobtrusive-ajax.js",
                            "~/Scripts/jquery.validate.js",
                            "~/Scripts/jquery.validate.unobtrusive.js",
                            "~/Scripts/jquery.validate.customValidators.js",
                            "~/Scripts/jquery.dotdotdot-1.5.1.js",
                            "~/Scripts/moment.js"));

            var appJsBundle = new ScriptBundle("~/AppScripts/");

            appJsBundle.Include("~/Scripts/MyEvents/myEvents.app.js");
            appJsBundle.IncludeDirectory("~/Scripts/MyEvents/Controls", "*.js");
            bundles.Add(appJsBundle);

            bundles.Add(new ScriptBundle("~/Organizer/Event/CreateScripts/").Include(
                            "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.event.create.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Event/EditScripts/").Include(
                            "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.event.edit.js"));

            bundles.Add(new ScriptBundle("~/Organizer/AttendeesScripts/").Include(
                            "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.attendees.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Session/ManageMaterialsScripts/").Include(
                            "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.session.manageMaterials.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Schedule/ManegeSchedule/").Include(
                            "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.scheduleControl.js",
                            "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.editableSessionPainter.js",
                            "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.availableEditableSessionPainter.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Event/DetailScripts/").Include(
                            "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.event.detail.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Session/DetailScripts/").Include(
                            "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.session.detail.js"));

            bundles.Add(new ScriptBundle("~/Attendee/HomeScripts/").Include(
                            "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.home.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Event/Schedule/").Include(
                            "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.scheduleControl.js",
                            "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.sessionPainter.js",
                            "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.event.schedule.js"));
        }
    public static void RegisterBundles(BundleCollection bundles)
    {
        ScriptBundle scriptBundle = new ScriptBundle("~/js");

        string[] scriptArray =
        {
            "~/content/plugins/jquery/jquery-1.8.2.js",
            "~/content/plugins/jquery/jquery-ui-1.9.0.js",
            "~/content/plugins/jquery/jquery.validate.js",
            "~/content/plugins/jquery/jquery.validate.unobtrusive.js",
            "~/content/plugins/bootstrap/js/bootstrap.js",
        };
        scriptBundle.Include(scriptArray);
        scriptBundle.IncludeDirectory("~/content/js", "*.js");
        bundles.Add(scriptBundle);
    }
예제 #35
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var editorBundleJs = new ScriptBundle("~/bundles/editor/js");

            editorBundleJs.IncludeDirectory("~/Content/editor/js/", "*.js");
            editorBundleJs.Include("~/Content/js/api.js");
            bundles.Add(editorBundleJs);

            var viewerBundleJs = new ScriptBundle("~/bundles/viewer/js");

            viewerBundleJs.IncludeDirectory("~/Content/viewer/js/", "*.js");
            viewerBundleJs.Include("~/Content/js/api.js");
            bundles.Add(viewerBundleJs);

            BundleTable.EnableOptimizations = true;
        }
예제 #36
0
        /// <summary>
        /// Registers the scripts.
        /// </summary>
        /// <param name="bundles">The bundles.</param>
        public static void RegisterScripts(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/ThirdPartyScripts/").Include(
            "~/Scripts/jquery.upload-1.0.2.js",
            "~/Scripts/jquery.unobtrusive-ajax.js",
            "~/Scripts/jquery.validate.js",
            "~/Scripts/jquery.validate.unobtrusive.js",
            "~/Scripts/jquery.validate.customValidators.js",
            "~/Scripts/jquery.dotdotdot-1.5.1.js",
            "~/Scripts/moment.js"));

            var appJsBundle = new ScriptBundle("~/AppScripts/");
            appJsBundle.Include("~/Scripts/MyEvents/myEvents.app.js");
            appJsBundle.IncludeDirectory("~/Scripts/MyEvents/Controls", "*.js");
            bundles.Add(appJsBundle);

            bundles.Add(new ScriptBundle("~/Organizer/Event/CreateScripts/").Include(
                    "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.event.create.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Event/EditScripts/").Include(
                "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.event.edit.js"));

            bundles.Add(new ScriptBundle("~/Organizer/AttendeesScripts/").Include(
                "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.attendees.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Session/ManageMaterialsScripts/").Include(
                "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.session.manageMaterials.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Schedule/ManegeSchedule/").Include(
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.scheduleControl.js",
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.editableSessionPainter.js",
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.availableEditableSessionPainter.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Event/DetailScripts/").Include(
                "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.event.detail.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Session/DetailScripts/").Include(
                "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.session.detail.js"));

            bundles.Add(new ScriptBundle("~/Attendee/HomeScripts/").Include(
                "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.home.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Event/Schedule/").Include(
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.scheduleControl.js",
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.sessionPainter.js",
                "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.event.schedule.js"));
        }
예제 #37
0
        public static void Configure()
        {
            BundleTable.Bundles.IgnoreList.Clear();
            //if (!Debugger.IsAttached)
            //{
            //    BundleTable.EnableOptimizations = true;
            //}
            BundleTable.EnableOptimizations = false;
            var jsShivBundle = new ScriptBundle("~/Assets/js/compatibility");
            jsShivBundle.Include("~/Assets/js/libs/json2.js");
            jsShivBundle.Include("~/Assets/js/libs/modernizr-2.6.2.js");
            BundleTable.Bundles.Add(jsShivBundle);

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

            BundleTable.Bundles.Add(jsBundle);

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

            BundleTable.Bundles.Add(ngBundle);

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

            var cssBundle = new StyleBundle("~/Assets/css/styles");
            cssBundle.Include(
                "~/Assets/css/bootstrap.css",
                "~/Assets/css/layout-default-latest.css",
                "~/Assets/css/app.css"
                );
            BundleTable.Bundles.Add(cssBundle);
        }
예제 #38
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;
            ScriptBundle scriptBundle = new ScriptBundle("~/js");

            string[] scriptArray =
            {
                "~/Scripts/jquery-1.12.4.js",
                "~/Scripts/jquery-1.12.4.min.js",
                "~/Scripts/jquery-ui-1.12.1.js",
                "~/Scripts/jquery-ui-1.12.1.min.js",
                "~/Scripts/jquery.unobtrusive-ajax.js",
                "~/Scripts/bootstrap.js",
                "~/Scripts/datatables/jquery.datatables.js",
                "~/Scripts/datatables/datatables.bootstrap.js",
                "~/Scripts/bootstrap.min.js",
                "~/Scripts/respond.js",
                "~/Scripts/bootbox.js",
                "~/Scripts/toastr.js",
                "~/Scripts/autosize.js",
                "~/Scripts/bootstrap-select.min.js",
                "~/Scripts/i18n/defaults-ar_AR.min.js",
                "~/Scripts/select2.js"
            };


            scriptBundle.Include(scriptArray);
            scriptBundle.IncludeDirectory("~/Scripts/", "*.js");
            bundles.Add(scriptBundle);

            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 StyleBundle("~/Styles/css").Include(
                            "~/Content/bootstrap-Spacelab.css",
                            "~/Content/bootstrap-select.css",
                            "~/Content/bootstrap-select.css.map",
                            "~/Content/datatables/css/datatables.bootstrap.css",
                            "~/content/toastr.css",
                            "~/Content/css/jquery-ui.min.css", "~/Content/Site.css", "~/Content/hover.css", "~/Content/css/select2.css"));
        }
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            RegisterRoutes(RouteTable.Routes);

            // Create the CSS bundle
            var cssBundle = new StyleBundle("~/css");
            cssBundle.IncludeDirectory("~/content/css", "*.css");

            // Create the JS bundle
            var jsBundle = new ScriptBundle("~/js");
            jsBundle.IncludeDirectory("~/content/js", "*.js");

            BundleTable.Bundles.Add(cssBundle);
            BundleTable.Bundles.Add(jsBundle);
        }
예제 #40
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var libBundle = new ScriptBundle("~/bundles/lib");
            libBundle.Include(
                "~/Scripts/libs/jquery/jquery-1.10.2.js",
                "~/Scripts/libs/angular/angular.js",
                "~/Scripts/libs/angular/angular-ui-router.js",
                "~/Scripts/libs/angular/angular-toastr.js",
                "~/Scripts/libs/angular/angular-toastr.tpls.min.js",
                "~/Scripts/libs/angular/angular-animate.min.js",
                "~/Scripts/libs/angular/angular-aria.js",
                "~/Scripts/libs/lodash.js",
                "~/Scripts/libs/d3.js"
            );

            var cssBundle = new StyleBundle("~/Content/css");
            cssBundle.Include(
                "~/Content/bootstrap/bootstrap.css",
                "~/Content/Site.css",
                "~/Content/homebrews-icons.css",
                "~/Content/angular-toastr.css",
                "~/Content/targetted-slider.css"
            );

            var appBundle = new ScriptBundle("~/bundles/app");
            appBundle.Include(
                "~/Scripts/compiled/app/rebrews.js"
            );

            appBundle.IncludeDirectory("~/Scripts/compiled/app/_services", "*.js", true);
            appBundle.IncludeDirectory("~/Scripts/compiled/app/_filters", "*.js", true);
            appBundle.IncludeDirectory("~/Scripts/compiled/app/_directives", "*.js", true);
            appBundle.IncludeDirectory("~/Scripts/compiled/app/_components", "*.js", true);
            appBundle.IncludeDirectory("~/Scripts/compiled/app/recipe", "*.js", true);
            appBundle.IncludeDirectory("~/Scripts/compiled/app/newrecipe", "*.js", true);
            appBundle.IncludeDirectory("~/Scripts/compiled/app/account", "*.js", true);
            appBundle.IncludeDirectory("~/Scripts/compiled/app/discover", "*.js", true);

            bundles.Add(libBundle);
            bundles.Add(cssBundle);
            bundles.Add(appBundle);
        }
예제 #41
0
        private static void Configure(BundleCollection bundles)
        {
            // libraries
            bundles.Add(
                new ScriptBundle("~/bundles/script-lib")
                .Include("~/Scripts/moment-with-locales.js",
                         "~/Scripts/linq.js",
                         "~/Scripts/angular.js",
                         "~/Scripts/angular-locale-nl_NL.js",
                         "~/Scripts/angular-resource.js",
                         "~/Scripts/angular-route.js",
                         "~/Scripts/angular-progress.js",
                         "~/Scripts/angular-ui/ui-bootstrap-tpls.js",
                         "~/Scripts/hotkeys.js",
                         "~/Scripts/angular-ng-google-chart.js"
                         ));

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

            // own
            ScriptBundle appScriptBundle =
                new ScriptBundle("~/bundles/script-app");

            appScriptBundle.IncludeDirectory("~/Scripts/App", "*.js", true);
            appScriptBundle.Transforms.Add(new JsMinify());

            bundles.Add(appScriptBundle);

            StyleBundle appStyleBundle = new StyleBundle("~/bundles/style-app");

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

            bundles.Add(appStyleBundle);
        }
예제 #42
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            var scripts = new ScriptBundle("~/MyBundle");

            scripts.IncludeDirectory("~/Scripts", "*.js");
            BundleTable.Bundles.Add(scripts);

            StyleBundle styleBundle = new StyleBundle("~/Content/css");

            styleBundle.Include("~/Content/Home.css");
            styleBundle.Include("~/Content/Login.css");
            styleBundle.Include("~/Content/ChangeVerifyCode.css");

            BundleTable.Bundles.Add(styleBundle);
        }
예제 #43
0
        // Para obtener más información sobre Bundles, visite http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;
            ScriptBundle scriptBundle = new ScriptBundle("~/js");

            string[] scriptArray =
            {
                "~/Scripts/jquery-1.12.4.min.js",
                "~/Scripts/jquery-ui-1.12.0.min.js",
                "~/Scripts/jquery.unobtrusive-ajax.min.js",
                "~/Scripts/bootstrap.min.js",
                "~/Scripts/datatables/jquery.datatables.min.js",
                "~/Scripts/datatables/datatables.bootstrap.min.js",
                "~/Scripts/respond.min.js",
                "~/Scripts/bootbox.min.js",
                "~/Scripts/toastr.min.js",
                "~/Scripts/bootstrap-select.min.js"
            };

            scriptBundle.Include(scriptArray);
            scriptBundle.IncludeDirectory("~/Scripts/", "*.js");
            bundles.Add(scriptBundle);


            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á
            // preparado para la producción y podrá utilizar la herramienta de compilación disponible en http://modernizr.com para seleccionar solo las pruebas que necesite.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                            "~/Scripts/modernizr-*"));


            bundles.Add(new StyleBundle("~/Content/css").Include(
                            "~/Content/bootstrap-spacelab.css",
                            "~/Content/datatables/css/datatables.bootstrap.min.css",
                            "~/content/toastr.css",
                            "~/Content/site.css", "~/Content/bootstrap-select.min.css",
                            "~/Content/bootstrap-select.min.css.map"));
        }
예제 #44
0
        private static void Configure(BundleCollection bundles)
        {
            // libraries
            bundles.Add(
                new ScriptBundle("~/bundles/script-lib")
                    .Include("~/Scripts/moment-with-locales.js",
                             "~/Scripts/linq.js",
                             "~/Scripts/angular.js",
                             "~/Scripts/angular-locale-nl_NL.js",
                             "~/Scripts/angular-resource.js",
                             "~/Scripts/angular-route.js",
                             "~/Scripts/angular-progress.js",
                             "~/Scripts/angular-ui/ui-bootstrap-tpls.js",
                             "~/Scripts/hotkeys.js",
                             "~/Scripts/angular-ng-google-chart.js"
                             ));

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

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

            bundles.Add(appScriptBundle);

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

            bundles.Add(appStyleBundle);
        }
예제 #45
0
        /// <summary>
        /// Auto creates the bundles for the given directory
        /// </summary>
        /// <param name="Directory">Directory to create bundles from</param>
        private void CreateBundles(IDirectory Directory)
        {
            if (!Directory.Exists)
            {
                return;
            }
            string BundleDirectory = Directory.FullName.Replace(FileManager.Directory("~/").FullName, "~/").Replace("\\", "/");
            var    Bundle          = new StyleBundle(BundleDirectory + "/bundle/css");

            Bundle.Transforms.Clear();
            Bundle.Transforms.Add(new Transformer());
            if (Directory.Exists)
            {
                foreach (string Value in FileTypes[AssetType.CSS])
                {
                    Bundle.IncludeDirectory(BundleDirectory, "*." + Value, true);
                }
            }
            var Bundle2 = new ScriptBundle(BundleDirectory + "/bundle/js");

            Bundle2.Transforms.Clear();
            Bundle2.Transforms.Add(new Transformer());
            if (Directory.Exists)
            {
                foreach (string Value in FileTypes[AssetType.Javascript])
                {
                    Bundle2.IncludeDirectory(BundleDirectory, "*." + Value, true);
                }
            }
            BundleTable.Bundles.Add(Bundle);
            BundleTable.Bundles.Add(Bundle2);
            foreach (IDirectory SubDirectory in Directory.EnumerateDirectories("*", SearchOption.TopDirectoryOnly))
            {
                CreateBundles(SubDirectory);
            }
        }
예제 #46
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/jquery.signalR-2.2.0.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/app").Include(
                "~/Scripts/sammy-{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("~/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"));

            ScriptBundle angularBundle = new ScriptBundle("~/bundles/app");
            angularBundle.IncludeDirectory("~/App", "*.js", true);
            angularBundle.Orderer = new AngularBundleOrderer();

            bundles.Add(angularBundle);
        }
        /// <summary>
        /// Auto creates the bundles for the given directory
        /// </summary>
        /// <param name="Directory">Directory to create bundles from</param>
        private void CreateBundles(DirectoryInfo Directory)
        {
            if (Directory == null || !Directory.Exists || string.IsNullOrEmpty(Directory.FullName))
            {
                return;
            }
            string BundleDirectory = Directory.FullName.Replace(new DirectoryInfo("~/").FullName, "~/").Replace("\\", "/");
            var    Bundle          = new StyleBundle(BundleDirectory + "/bundle/css");

            Bundle.Transforms.Clear();
            Bundle.Transforms.Add(new Transformer(this));
            if (Directory.Exists)
            {
                foreach (string Value in FileTypes[AssetType.CSS])
                {
                    Bundle.IncludeDirectory(BundleDirectory, "*." + Value, true);
                }
            }
            var Bundle2 = new ScriptBundle(BundleDirectory + "/bundle/js");

            Bundle2.Transforms.Clear();
            Bundle2.Transforms.Add(new Transformer(this));
            if (Directory.Exists)
            {
                foreach (string Value in FileTypes[AssetType.Javascript])
                {
                    Bundle2.IncludeDirectory(BundleDirectory, "*." + Value, true);
                }
            }
            BundleTable.Bundles.Add(Bundle);
            BundleTable.Bundles.Add(Bundle2);
            foreach (DirectoryInfo SubDirectory in Directory.EnumerateDirectories("*", System.IO.SearchOption.TopDirectoryOnly))
            {
                CreateBundles(SubDirectory);
            }
        }
예제 #48
0
        public static void CreatModuleBundel(string module)
        {
            var bundleName = "~/bundles/" + module;
            var ret        = BundleTable.Bundles.GetBundleFor(bundleName);

            if (ret != null)
            {
                return;
            }

            ret = new ScriptBundle(bundleName);
            ////how to read file pth line by line
            //var ret = new ScriptBundle("~/bundles/" + module);
            var modulepathstring      = "~/app/" + module;
            var commonPathstring      = modulepathstring + "/Common";
            var controllersPathstring = modulepathstring + "/Controllers";
            var directivesPathstring  = modulepathstring + "/Directives";
            var servicesPathstring    = modulepathstring + "/Services";
            var buRulesPathstring     = modulepathstring + "/BuRules";
            var filtersPathstring     = modulepathstring + "/Filters";
            var modulePath            = System.Web.HttpContext.Current.Server.MapPath(modulepathstring);

            ret.IncludeDirectory(commonPathstring, "*.js", true);
            ret.IncludeDirectory(modulepathstring, "*.js", false);
            ret.IncludeDirectory(filtersPathstring, "*.js", false);
            ret.IncludeDirectory(servicesPathstring, "*.js", true);
            ret.IncludeDirectory(buRulesPathstring, "*.js", true);
            ret.IncludeDirectory(directivesPathstring, "*.js", true);
            ret.IncludeDirectory(controllersPathstring, "*.js", true);



            BundleTable.Bundles.Add(ret);

            //var mupath = modulepathstring + "/" + "EndUserModule.js";
            //ret.Include(mupath);
        }
예제 #49
0
 /// <summary>
 /// Auto creates the bundles for the given directory
 /// </summary>
 /// <param name="Directory">Directory to create bundles from</param>
 private void CreateBundles(IDirectory Directory)
 {
     if (!Directory.Exists)
         return;
     string BundleDirectory = Directory.FullName.Replace(FileManager.Directory("~/").FullName, "~/").Replace("\\", "/");
     StyleBundle Bundle = new StyleBundle(BundleDirectory + "/bundle/css");
     Bundle.Transforms.Clear();
     Bundle.Transforms.Add(new Transformer());
     if (Directory.Exists)
     {
         foreach (string Value in FileTypes[AssetType.CSS])
         {
             Bundle.IncludeDirectory(BundleDirectory, "*." + Value, true);
         }
     }
     ScriptBundle Bundle2 = new ScriptBundle(BundleDirectory + "/bundle/js");
     Bundle2.Transforms.Clear();
     Bundle2.Transforms.Add(new Transformer());
     if (Directory.Exists)
     {
         foreach (string Value in FileTypes[AssetType.Javascript])
         {
             Bundle2.IncludeDirectory(BundleDirectory, "*." + Value, true);
         }
     }
     BundleTable.Bundles.Add(Bundle);
     BundleTable.Bundles.Add(Bundle2);
     foreach (IDirectory SubDirectory in Directory.EnumerateDirectories("*", SearchOption.TopDirectoryOnly))
     {
         CreateBundles(SubDirectory);
     }
 }
 /// <summary>
 /// Auto creates the bundles for the given directory
 /// </summary>
 /// <param name="Directory">Directory to create bundles from</param>
 private void CreateBundles(DirectoryInfo Directory)
 {
     if (Directory == null || !Directory.Exists || string.IsNullOrEmpty(Directory.FullName))
         return;
     var BundleDirectory = Directory.FullName.Replace(new DirectoryInfo("~/").FullName, "~/").Replace("\\", "/");
     var Bundle = new StyleBundle(BundleDirectory + "/bundle/css");
     Bundle.Transforms.Clear();
     Bundle.Transforms.Add(new Transformer(this));
     if (Directory.Exists)
     {
         foreach (string Value in FileTypes[AssetType.CSS])
         {
             Bundle.IncludeDirectory(BundleDirectory, "*." + Value, true);
         }
     }
     var Bundle2 = new ScriptBundle(BundleDirectory + "/bundle/js");
     Bundle2.Transforms.Clear();
     Bundle2.Transforms.Add(new Transformer(this));
     if (Directory.Exists)
     {
         foreach (string Value in FileTypes[AssetType.Javascript])
         {
             Bundle2.IncludeDirectory(BundleDirectory, "*." + Value, true);
         }
     }
     BundleTable.Bundles.Add(Bundle);
     BundleTable.Bundles.Add(Bundle2);
     foreach (DirectoryInfo SubDirectory in Directory.EnumerateDirectories("*", System.IO.SearchOption.TopDirectoryOnly))
     {
         CreateBundles(SubDirectory);
     }
 }
예제 #51
0
        /// <summary>
        /// Register bundle.
        /// </summary>
        public void Register()
        {
            bool enable;

            if (bool.TryParse(ConfigurationManager.AppSettings.Get("EnableBundleOptimizations"), out enable))
            {
                BundleTable.EnableOptimizations = enable;
            }

            // Add styles
            BundleTable.Bundles.Add(new StyleBundle("~/content/1")
                                    .Include("~/Content/fonts.css",
                                             "~/Content/Themes/base/jquery-ui.css",
                                             "~/Content/bootstrap.css",
                                             "~/Content/font-awesome.css",
                                             "~/Content/animate.css",
                                             "~/Content/style.css",
                                             "~/Content/style-responsive.css",
                                             "~/Content/theme/default.css"
                                             )

                                    //);

                                    //BundleTable.Bundles.Add(new StyleBundle("~/content/2")
                                    .Include("~/Content/Site.css")

                                    .Include("~/Content/bootstrap-datepicker.css",
                                             "~/Content/bootstrap-datepicker3.css",
                                             "~/Content/bootstrap-datepaginator.css",
                                             //"~/Content/bootstrapper-datetimepicker.css",
                                             //"~/Content/bootstrap-timepicker.css",
                                             "~/Content/jquery.timepicker.css",
                                             "~/Content/jquery-jvectormap-1.2.2.css",
                                             "~/Content/jquery.gritter.css")

                                    .Include("~/Content/select2.css",
                                             "~/Content/select2-bootstrap.css")

                                    //"~/Content/jquery-timepicker.css")

                                    .Include("~/Content/foo/footable.core.css",
                                             "~/Content/foo/footable.standalone.css")


                                    //.Include("~/Content/print.css")
                                    //.Include("~/Content/screen.css")
                                    //.Include("~/Content/edge.css")
                                    //.Include("~/Content/CustomSmartAutocomplete.css")// smartAutocomplete

                                    );

            BundleTable.Bundles.Add(new StyleBundle("~/content/calendar").Include("~/Content/fullcalendar.css"));

            //BundleTable.Bundles.Add(new StyleBundle("~/content/ie8")
            //    .Include("~/Content/excanvas.min.css")
            //    );

            BundleTable.Bundles.Add(new StyleBundle("~/content/highcontrast")
                                    // .Include("~/Content/highcontrast.css")
                                    );


            // Add scripts
            BundleTable.Bundles.Add(new ScriptBundle("~/scripts/1")
                                    //.Include("~/Scripts/jquery-1.11.1.min.js")
                                    //.Include("~/Scripts/jquery-ui-1.11.1.js")
                                    //.Include("~/Scripts/jquery-1.10.2.js")
                                    //.Include("~/Scripts/jquery-1.7.2.js",
                                    .Include("~/Scripts/jquery-1.8.2.js",
                                             "~/Scripts/jquery-ui.min.js",
                                             "~/Scripts/bootstrap.js"));

            BundleTable.Bundles.Add(new ScriptBundle("~/scripts/calendar").Include("~/Scripts/fullcalendar.js"));


            BundleTable.Bundles.Add(new ScriptBundle("~/scripts/2")
                                    .Include("~/Scripts/html5shiv.js",
                                             "~/Scripts/respond.min.js",
                                             "~/Scripts/excanvas.min.js"));

            BundleTable.Bundles.Add(new ScriptBundle("~/scripts/3")
                                    .Include("~/Scripts/jquery.validate.js",
                                             "~/Scripts/jquery.validate.unobtrusive.js",
                                             "~/Scripts/jquery-auto-numeric-1.7.5.js",
                                             "~/Scripts/jquery-textrange.js",
                                             "~/Scripts/equalize.js",
                                             "~/Scripts/jquery-blockUI.js")



                                    .Include("~/Scripts/date.js",
                                             "~/Scripts/zeus-*",
                                             "~/Scripts/zeus.validate-*",
                                             "~/Scripts/zeus.validate.unobtrusive-*",
                                             "~/Scripts/interface.js",
                                             "~/Scripts/sortTable.js",
                                             //"~/Scripts/select2-3.4.0.js")
                                             "~/Scripts/select2-3.5.1.js")

                                    // ColorAdmin theme
                                    .Include(
                                        "~/Scripts/jquery.slimscroll.js",
                                        "~/Scripts/jquery.gritter.js",
                                        "~/Scripts/jquery.flot.js",
                                        "~/Scripts/jquery.flot.pie.js",
                                        "~/Scripts/jquery.flot.resize.js",
                                        "~/Scripts/jquery.flot.time.js",
                                        "~/Scripts/jquery.sparkline.js",
                                        "~/Scripts/jquery-jvectormap-1.2.2.min.js")
                                    //.Include("~/Scripts/jquery-jvectormap-world-mill-en.js")

                                    // Extra plugin for side by side bar graphs
                                    .Include("~/Scripts/jquery.flot.orderBars.js")

                                    //.Include("~/Scripts/moment.js")
                                    .Include("~/Scripts/bootstrap-datepicker.js",
                                             "~/Scripts/bootstrap-maxlength.js",
                                             //"~/Scripts/bootstrap-timepicker.js",
                                             "~/Scripts/jquery.timepicker.js",
                                             "~/Scripts/moment.js",
                                             "~/Scripts/bootstrap-datepaginator.js",
                                             "~/Scripts/foo/footable.js",
                                             "~/Scripts/foo/footable.sort.js",
                                             "~/Scripts/knockout.min.js",
                                             "~/Scripts/knockout.mapping.js",
                                             "~/Scripts/apps.js")


                                    // smartAutocomplete
                                    //.Include("~/Scripts/smartautcompleteSelect.js")

                                    );

            // Include area styles and scripts
            var                  areaStyleBundle  = new StyleBundle("~/content/areas");
            var                  areaScriptBundle = new ScriptBundle("~/scripts/areas");
            const string         areaNamespace    = "Employment.Web.Mvc.Area.";
            IEnumerable <string> areas            = BuildManager.Assemblies.Where(a => a.FullName.StartsWith(areaNamespace, StringComparison.Ordinal)).Select(a => a.FullName.Substring(areaNamespace.Length, a.FullName.IndexOf(',', areaNamespace.Length) - areaNamespace.Length));

            foreach (string area in areas)
            {
                // Include area styles
                var stylesVirtualPath = string.Format("~/Areas/{0}/Content", area);

                if (BundleTable.VirtualPathProvider.DirectoryExists(stylesVirtualPath))
                {
                    areaStyleBundle.IncludeDirectory(stylesVirtualPath, "*.css");
                }

                // Include area scripts
                var scriptsVirtualPath = string.Format("~/Areas/{0}/Scripts", area);

                if (BundleTable.VirtualPathProvider.DirectoryExists(scriptsVirtualPath))
                {
                    areaScriptBundle.IncludeDirectory(scriptsVirtualPath, "*.js");
                }
            }

            BundleTable.Bundles.Add(areaStyleBundle);
            BundleTable.Bundles.Add(areaScriptBundle);
        }
예제 #52
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var jQueryBundle = new ScriptBundle("~/bundles/jquery").Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/jquery.cookie.js");

            jQueryBundle.IncludeDirectory("~/Scripts", "jquery.dataTables.min.js", true);
            jQueryBundle.IncludeDirectory("~/Scripts", "dataTables.bootstrap.js", true);

            bundles.Add(jQueryBundle);

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                "~/Scripts/jquery.validate*",
                "~/Scripts/appScripts/validation/passwordeditor.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",
                "~/Scripts/respond.js"));

            bundles.Add(new ScriptBundle("~/bundles/appScripts").Include(
                "~/Scripts/appScripts/messages.js",
                "~/Scripts/appScripts/fileBrowsing.js",
                "~/Scripts/appScripts/dialogs.js",
                "~/Scripts/appScripts/wsp.js"
               ));

            bundles.Add(new ScriptBundle("~/bundles/appScripts-webdav").Include(
                "~/Scripts/appScripts/wsp-webdav.js"
               ));

            bundles.Add(new ScriptBundle("~/bundles/bigIconsScripts").Include(
                "~/Scripts/appScripts/recalculateResourseHeight.js"
               ));

            bundles.Add(new ScriptBundle("~/bundles/authScripts").Include(
               "~/Scripts/appScripts/authentication.js"));

            bundles.Add(new ScriptBundle("~/bundles/file-upload").Include(
                "~/Scripts/jquery.ui.widget.js",
                "~/Scripts/jQuery.FileUpload/tmpl.min.js",
                "~/Scripts/jQuery.FileUpload/load-image.min.js",
                "~/Scripts/jQuery.FileUpload/jquery.iframe-transport.js",
                "~/Scripts/jQuery.FileUpload/jquery.fileupload.js",
                "~/Scripts/jQuery.FileUpload/jquery.fileupload-process.js",
                "~/Scripts/jQuery.FileUpload/jquery.fileupload-image.js",
                "~/Scripts/jQuery.FileUpload/jquery.fileupload-validate.js",
                "~/Scripts/jQuery.FileUpload/jquery.fileupload-ui.js"
               ));

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

            styleBundle.Include(
                "~/Content/jQuery.FileUpload/css/jquery.fileupload.css",
                "~/Content/jQuery.FileUpload/css/jquery.fileupload-ui.css",
                "~/Content/bootstrap.css",
                "~/Content/site.css");

            styleBundle.IncludeDirectory("~/Content", "jquery.datatables.css", true);
            styleBundle.IncludeDirectory("~/Content", "dataTables.bootstrap.css", true);

            bundles.Add(styleBundle);

            // Set EnableOptimizations to false for debugging. For more information,
            // visit http://go.microsoft.com/fwlink/?LinkId=301862
            BundleTable.EnableOptimizations = true;
        }
예제 #53
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var angularApp = new ScriptBundle("~/angularApp").Include(

                // Vendor Scripts
                "~/scripts/jquery-{version}.js",
                "~/scripts/angular.js",
                "~/scripts/angular-animate.js",
                "~/scripts/angular-route.js",
                "~/scripts/angular-sanitize.js",
                "~/scripts/angular-ui/ui-bootstrap-tpls.js",

                "~/scripts/toastr.js",
                "~/scripts/moment.js",
                "~/scripts/spin.js",

                // Bootstrapping
                "~/app/app.js",
                "~/app/config.js",
                "~/app/config.exceptionHandler.js",
                "~/app/config.route.js",

                // common Modules
                "~/app/common/common.js",
                "~/app/common/logger.js",
                "~/app/common/spinner.js",

                // common.bootstrap Modules
                "~/app/common/bootstrap/bootstrap.dialog.js"

                // app
                //"~/app/admin/admin.js",
                //"~/app/dashboard/dashboard.js",
                //"~/app/layout/shell.js",
                //"~/app/layout/sidebar.js",
                //"~/app/layout/topnav.js",
                //"~/app/proverbs/proverbs.js",
                //"~/app/sages/sages.js",
                //"~/app/sages/sageDetail.js",

                // app Services
                //"~/app/services/datacontext.js",
                //"~/app/services/directives.js"
                );

            // app
            angularApp.IncludeDirectory("~/app/admin", "*.js", true);
            angularApp.IncludeDirectory("~/app/dashboard", "*.js", true);
            angularApp.IncludeDirectory("~/app/layout", "*.js", true);
            angularApp.IncludeDirectory("~/app/proverbs", "*.js", true);
            angularApp.IncludeDirectory("~/app/sages", "*.js", true);

            // app services
            angularApp.IncludeDirectory("~/app/services", "*.js", true);

            bundles.Add(angularApp);

            bundles.Add(new StyleBundle("~/css").Include(
                "~/content/ie10mobile.css",
                "~/content/bootstrap.min.css",
                "~/content/font-awesome.min.css",
                "~/content/toastr.css",
                "~/content/customtheme.css",
                "~/content/styles.css"
            ));
        }