| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- using System.Web.Optimization;
- namespace WePlatform
- {
- public static class BundleConfig
- {
- public static void RegisterBundles(BundleCollection bundles)
- {
- bundles.IgnoreList.Clear();
- BundleTable.EnableOptimizations = false;
- bundles.Add(
- new StyleBundle("~/Bundles/Base/Css")
- .Include("~/Content/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
- .Include("~/Content/Icon/iconfont.css", new CssRewriteUrlTransform())
- .Include("~/Content/Libs/fontawesome-free/css/all.min.css", new CssRewriteUrlTransform())
- //.Include("~/Content/Libs/bootstrap/css/bootstrap.css", new CssRewriteUrlTransform())
- .Include("~/Content/AdminLTE/css/adminlte.min.css", new CssRewriteUrlTransform())
- .Include("~/Content/Libs/bootstrap-table/bootstrap-table.css", new CssRewriteUrlTransform())
- .Include("~/Content/Libs/select2/css/select2.css", new CssRewriteUrlTransform())
- .Include("~/Content/Libs/overlayScrollbars/css/OverlayScrollbars.min.css",
- new CssRewriteUrlTransform())
- .Include("~/Content/Libs/toastr/toastr.css", new CssRewriteUrlTransform())
- //.Include("~/Content/Libs/sweetalert2/sweetalert2.min.css", new CssRewriteUrlTransform())
- //.Include("~/Content/Libs/famfamfam-flags/famfamfam-flags.css", new CssRewriteUrlTransform())
- .Include("~/Content/Libs/Waves/waves.css", new CssRewriteUrlTransform())
- .Include("~/Content/Libs/animate/animate.css", new CssRewriteUrlTransform())
- );
- bundles.Add(
- new StyleBundle("~/Bundles/Site/Css")
- .Include("~/Content/Css/iwb.style.css", new CssRewriteUrlTransform())
- //.Include("~/Content/css/themes/all-themes.css", new CssRewriteUrlTransform())
- );
- bundles.Add(
- new ScriptBundle("~/Bundles/Jquery/Js")
- .Include("~/lib/json2/json2.js")
- .Include("~/Content/Libs/json2/json2.js")
- .Include("~/Content/Libs/jquery/jquery.js")
- );
- bundles.Add(
- new ScriptBundle("~/Bundles/Base/Js")
- .Include("~/Content/Libs/jquery-ui/jquery-ui.min.js")
- .Include("~/Content/Libs/bootstrap4/bootstrap.bundle.min.js")
- .Include("~/Content/Libs/bootstrap-table/bootstrap-table.js")
- .Include("~/Content/Libs/moment/moment-with-locales.js")
- .Include("~/Content/Libs/mustache/mustache.min.js")
- .Include("~/Content/Libs/overlayScrollbars/js/jquery.overlayScrollbars.min.js")
- .Include("~/Content/Libs/jquery-validation/jquery.validate.js")
- .Include("~/Content/Libs/blockUI/jquery.blockUI.js")
- .Include("~/Content/Libs/toastr/toastr.js")
- .Include("~/Content/Libs/sweetalert/sweetalert.min.js")
- //.Include("~/Content/Libs/sweetalert2/sweetalert2.min.js")
- .Include("~/Content/Libs/spin.js/spin.js")
- .Include("~/Content/Libs/spin.js/jquery.spin.js")
- .Include("~/Content/Libs/select2/js/select2.min.js")
- .Include("~/Content/Libs/select2/js/select2tree.js")
- .Include("~/Content/Libs/jquery-slimscroll/jquery.slimscroll.js")
- .Include("~/Content/Libs/Waves/waves.js")
- .Include("~/Content/Libs/push.js/push.js")
- .Include("~/Content/Libs/Abp/abp.js")
- .Include("~/Content/Libs/Abp/abp.jquery.js")
- .Include("~/Content/Libs/Abp/abp.toastr.js")
- .Include("~/Content/Libs/Abp/abp.blockUI.js")
- .Include("~/Content/Libs/Abp/abp.spin.js")
- .Include("~/Content/Libs/Abp/abp.sweet-alert.js")
- .Include("~/Content/AdminLTE/js/adminlte.js")
- );
- bundles.Add(
- new ScriptBundle("~/Bundles/Iwb/Js")
- .Include("~/Content/Js/iwb.js")
- .Include("~/Content/Js/notificationHelper.js")
- .Include("~/Content/Js/util.js")
- );
- bundles.Add(
- new ScriptBundle("~/Bundles/Iwb-Account/Js")
- .Include("~/Content/Js/iwb.js")
- .Include("~/Content/Js/util.js")
- );
- //Home-Index Bundles
- bundles.Add(
- new ScriptBundle("~/Bundles/home-index")
- .Include(
- "~/lib/jquery-countTo/jquery.countTo.js",
- "~/lib/raphael/raphael.js",
- "~/lib/morris.js/morris.js",
- "~/lib/chart.js/dist/Chart.bundle.js",
- "~/lib/Flot/jquery.flot.js",
- "~/lib/Flot/jquery.flot.resize.js",
- "~/lib/Flot/jquery.flot.pie.js",
- "~/lib/Flot/jquery.flot.categories.js",
- "~/lib/Flot/jquery.flot.time.js",
- "~/lib/jquery-sparkline/dist/jquery.sparkline.js",
- "~/Views/Home/Index.js"
- )
- );
- //~/Bundles/css
- bundles.Add(
- new StyleBundle("~/Bundles/css")
- .Include("~/css/main.css")
- );
- }
- //public static void RegisterBundles(BundleCollection bundles)
- //{
- // bundles.IgnoreList.Clear();
- // BundleTable.EnableOptimizations = false;
- // bundles.Add(
- // new StyleBundle("~/Bundles/Base/Css")
- // .Include("~/Content/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
- // .Include("~/Content/Icon/iconfont.css", new CssRewriteUrlTransform())
- // .Include("~/Content/Libs/bootstrap/css/bootstrap.css", new CssRewriteUrlTransform())
- // .Include("~/Content/Libs/bootstrap-table/bootstrap-table.css", new CssRewriteUrlTransform())
- // .Include("~/Content/Libs/select2/css/select2.css", new CssRewriteUrlTransform())
- // .Include("~/Content/Libs/toastr/toastr.css", new CssRewriteUrlTransform())
- // .Include("~/Content/Libs/famfamfam-flags/famfamfam-flags.css", new CssRewriteUrlTransform())
- // .Include("~/Content/Libs/Waves/waves.css", new CssRewriteUrlTransform())
- // .Include("~/Content/Libs/animate/animate.css", new CssRewriteUrlTransform())
- // );
- // bundles.Add(
- // new StyleBundle("~/Bundles/Site/Css")
- // .Include("~/Content/css/Site.css", new CssRewriteUrlTransform())
- // //.Include("~/Content/css/themes/all-themes.css", new CssRewriteUrlTransform())
- // );
- // bundles.Add(
- // new ScriptBundle("~/Bundles/Jquery/Js")
- // .Include("~/lib/json2/json2.js")
- // .Include("~/Content/Libs/json2/json2.js")
- // .Include("~/Content/Libs/jquery/jquery.js")
- // );
- // bundles.Add(
- // new ScriptBundle("~/Bundles/Base/Js")
- // .Include("~/Content/Libs/bootstrap/js/bootstrap.js")
- // .Include("~/Content/Libs/bootstrap-table/bootstrap-table.js")
- // .Include("~/Content/Libs/moment/moment-with-locales.js")
- // .Include("~/Content/Libs/jquery-validation/jquery.validate.js")
- // .Include("~/Content/Libs/blockUI/jquery.blockUI.js")
- // .Include("~/Content/Libs/toastr/toastr.js")
- // .Include("~/Content/Libs/sweetalert/sweetalert.min.js")
- // .Include("~/Content/Libs/spin.js/spin.js")
- // .Include("~/Content/Libs/spin.js/jquery.spin.js")
- // .Include("~/Content/Libs/select2/js/select2.min.js")
- // .Include("~/Content/Libs/select2/js/select2tree.js")
- // .Include("~/Content/Libs/jquery-slimscroll/jquery.slimscroll.js")
- // .Include("~/Content/Libs/Waves/waves.js")
- // .Include("~/Content/Libs/push.js/push.js")
- // .Include("~/Content/Libs/Abp/abp.js")
- // .Include("~/Content/Libs/Abp/abp.jquery.js")
- // .Include("~/Content/Libs/Abp/abp.toastr.js")
- // .Include("~/Content/Libs/Abp/abp.blockUI.js")
- // .Include("~/Content/Libs/Abp/abp.spin.js")
- // .Include("~/Content/Libs/Abp/abp.sweet-alert.js")
- // );
- // bundles.Add(
- // new ScriptBundle("~/Bundles/Iwb/Js")
- // .Include("~/Content/Js/iwb.js")
- // .Include("~/Content/Js/util.js")
- // );
- // bundles.Add(
- // new StyleBundle("~/Bundles/account-vendor/css")
- // .Include("~/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
- // .Include("~/fonts/material-icons/materialicons.css", new CssRewriteUrlTransform())
- // .Include("~/lib/bootstrap/dist/css/bootstrap.css", new CssRewriteUrlTransform())
- // .Include("~/lib/toastr/toastr.css", new CssRewriteUrlTransform())
- // .Include("~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css", new CssRewriteUrlTransform())
- // .Include("~/lib/font-awesome/css/font-awesome.css", new CssRewriteUrlTransform())
- // .Include("~/lib/Waves/dist/waves.css", new CssRewriteUrlTransform())
- // .Include("~/lib/animate.css/animate.css", new CssRewriteUrlTransform())
- // .Include("~/css/materialize.css", new CssRewriteUrlTransform())
- // .Include("~/css/style.css", new CssRewriteUrlTransform())
- // .Include("~/Views/Account/_Layout.css", new CssRewriteUrlTransform())
- // );
- // bundles.Add(
- // new ScriptBundle("~/Bundles/account-vendor/js/bottom")
- // .Include(
- // "~/lib/json2/json2.js",
- // "~/lib/jquery/dist/jquery.js",
- // "~/lib/bootstrap/dist/js/bootstrap.js",
- // "~/lib/moment/min/moment-with-locales.js",
- // "~/lib/jquery-validation/dist/jquery.validate.js",
- // "~/lib/blockUI/jquery.blockUI.js",
- // "~/lib/toastr/toastr.js",
- // "~/lib/sweetalert/dist/sweetalert.min.js",
- // "~/lib/spin.js/spin.js",
- // "~/lib/spin.js/jquery.spin.js",
- // "~/lib/Waves/dist/waves.js",
- // "~/Abp/Framework/scripts/abp.js",
- // "~/Abp/Framework/scripts/libs/abp.jquery.js",
- // "~/Abp/Framework/scripts/libs/abp.toastr.js",
- // "~/Abp/Framework/scripts/libs/abp.blockUI.js",
- // "~/Abp/Framework/scripts/libs/abp.spin.js",
- // "~/Abp/Framework/scripts/libs/abp.sweet-alert.js",
- // "~/js/admin.js",
- // "~/js/main.js"
- // )
- // );
- // //VENDOR RESOURCES
- // //~/Bundles/vendor/css
- // bundles.Add(
- // new StyleBundle("~/Bundles/vendor/css")
- // .Include("~/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
- // .Include("~/fonts/material-icons/materialicons.css", new CssRewriteUrlTransform())
- // .Include("~/lib/bootstrap/dist/css/bootstrap.css", new CssRewriteUrlTransform())
- // .Include("~/lib/bootstrap-select/dist/css/bootstrap-select.css", new CssRewriteUrlTransform())
- // .Include("~/lib/toastr/toastr.css", new CssRewriteUrlTransform())
- // .Include("~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css", new CssRewriteUrlTransform())
- // .Include("~/lib/font-awesome/css/font-awesome.css", new CssRewriteUrlTransform())
- // .Include("~/lib/Waves/dist/waves.css", new CssRewriteUrlTransform())
- // .Include("~/lib/animate.css/animate.css", new CssRewriteUrlTransform())
- // .Include("~/css/materialize.css", new CssRewriteUrlTransform())
- // .Include("~/css/style.css", new CssRewriteUrlTransform())
- // .Include("~/css/themes/all-themes.css", new CssRewriteUrlTransform())
- // .Include("~/Views/Shared/_Layout.css", new CssRewriteUrlTransform())
- // );
- // //~/Bundles/vendor/bottom (Included in the bottom for fast page load)
- // bundles.Add(
- // new ScriptBundle("~/Bundles/vendor/js/bottom")
- // .Include(
- // "~/lib/json2/json2.js",
- // "~/lib/jquery/dist/jquery.js",
- // "~/lib/bootstrap/dist/js/bootstrap.js",
- // "~/lib/moment/min/moment-with-locales.js",
- // "~/lib/jquery-validation/dist/jquery.validate.js",
- // "~/lib/blockUI/jquery.blockUI.js",
- // "~/lib/toastr/toastr.js",
- // "~/lib/sweetalert/dist/sweetalert.min.js",
- // "~/lib/spin.js/spin.js",
- // "~/lib/spin.js/jquery.spin.js",
- // "~/lib/bootstrap-select/dist/js/bootstrap-select.js",
- // "~/lib/jquery-slimscroll/jquery.slimscroll.js",
- // "~/lib/Waves/dist/waves.js",
- // "~/lib/push.js/push.js",
- // "~/lib/jquery.serializejson/jquery.serializejson.js",
- // "~/Abp/Framework/scripts/abp.js",
- // "~/Abp/Framework/scripts/libs/abp.jquery.js",
- // "~/Abp/Framework/scripts/libs/abp.toastr.js",
- // "~/Abp/Framework/scripts/libs/abp.blockUI.js",
- // "~/Abp/Framework/scripts/libs/abp.spin.js",
- // "~/Abp/Framework/scripts/libs/abp.sweet-alert.js",
- // "~/js/admin.js",
- // "~/js/main.js",
- // "~/Scripts/jquery.signalR-2.4.1.js",
- // "~/Views/Shared/_Layout.js"
- // )
- // );
- // //Home-Index Bundles
- // bundles.Add(
- // new ScriptBundle("~/Bundles/home-index")
- // .Include(
- // "~/lib/jquery-countTo/jquery.countTo.js",
- // "~/lib/raphael/raphael.js",
- // "~/lib/morris.js/morris.js",
- // "~/lib/chart.js/dist/Chart.bundle.js",
- // "~/lib/Flot/jquery.flot.js",
- // "~/lib/Flot/jquery.flot.resize.js",
- // "~/lib/Flot/jquery.flot.pie.js",
- // "~/lib/Flot/jquery.flot.categories.js",
- // "~/lib/Flot/jquery.flot.time.js",
- // "~/lib/jquery-sparkline/dist/jquery.sparkline.js",
- // "~/Views/Home/Index.js"
- // )
- // );
- // //APPLICATION RESOURCES
- // //~/Bundles/css
- // bundles.Add(
- // new StyleBundle("~/Bundles/css")
- // .Include("~/css/main.css")
- // );
- //}
- //}
- }
- }
|