﻿    namespace UniversityStudentSystem.Web
{
    using System.Web.Optimization;

    public class BundleConfig
    {
        //// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new StyleBundle("~/bundles/css-SBAdmin").Include(
                            "~/SBAdminTheme/bower_components/bootstrap/dist/css/bootstrap.min.css",
                            "~/SBAdminTheme/bower_components/metisMenu/dist/metisMenu.min.css",
                            "~/SBAdminTheme/dist/css/timeline.css",
                            "~/SBAdminTheme/dist/css/sb-admin-2.css",
                            "~/SBAdminTheme/bower_components/morrisjs/morris.css",
                            "~/SBAdminTheme/bower_components/font-awesome/css/font-awesome.min.css"));

            bundles.Add(new ScriptBundle("~/bundles/js-SBAdmin").Include(
                            //// "~/SBAdminTheme/bower_components/jquery/dist/jquery.min.js",
                            "~/SBAdminTheme/bower_components/bootstrap/dist/js/bootstrap.min.js",
                            "~/SBAdminTheme/bower_components/metisMenu/dist/metisMenu.min.js",
                            "~/SBAdminTheme/bower_components/raphael/raphael-min.js",
                            "~/SBAdminTheme/bower_components/morrisjs/morris.min.js",
                            "~/SBAdminTheme/dist/js/sb-admin-2.js"));

            bundles.Add(new StyleBundle("~/bundles/css-social").Include(
                            "~/SBAdminTheme/bower_components/bootstrap-social/bootstrap-social.css"));

            //// ----- Kendo --------
            bundles.Add(new ScriptBundle("~/bundles/js-kendo-jquery").Include(
                            "~/Scripts/Kendo/jquery.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/js-kendo").Include(
                            "~/Scripts/Kendo/kendo.web.min.js",
                            "~/Scripts/Kendo/kendo.aspnetmvc.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/js-kendo-listview").Include(
                            "~/Scripts/Kendo/kendo.listview.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/js-kendo-datetimepicker").Include(
                            "~/Scripts/Kendo/kendo.datetimepicker.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/js-kendo-grid").Include(
                            "~/Scripts/Kendo/kendo.grid.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/js-kendo-upload").Include(
                            "~/Scripts/Kendo/kendo.upload.min.js"));

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

            bundles.Add(new ScriptBundle("~/bundles/js-kendo-autocomplete").Include(
                            "~/Scripts/Kendo/kendo.autocomplete.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/js-kendo-globalization").Include(
                            "~/Scripts/Kendo/kendo.culture.en-US.min.js"));

            bundles.Add(new StyleBundle("~/Content/Kendo/css-kendo-metro").Include(
                            "~/Content/Kendo/kendo.common.min.css",
                            "~/Content/Kendo/kendo.metro.min.css"));

            bundles.Add(new StyleBundle("~/Content/Kendo/css-kendo-silver").Include(
                            "~/Content/Kendo/kendo.common.min.css",
                            "~/Content/Kendo/kendo.silver.min.css"));

            //// ------ SignlaR ------
            bundles.Add(new ScriptBundle("~/bundles/js-signalr").Include(
                            "~/Scripts/jquery.signalR-2.2.0.js"));
            
            //// ------ Default -----
            bundles.Add(new StyleBundle("~/bundles/css-site").Include(
                            "~/Content/Site.css"));

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

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

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

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

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

            bundles.Add(new ScriptBundle("~/SearchScripts").Include(
                            "~/Scripts/Site/Search/Search.js"));
        }
    }
}
