BundleConfig.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. using System.Web.Optimization;
  2. namespace WeApp
  3. {
  4. public static class BundleConfig
  5. {
  6. public static void RegisterBundles(BundleCollection bundles)
  7. {
  8. bundles.IgnoreList.Clear();
  9. BundleTable.EnableOptimizations = false;
  10. bundles.Add(
  11. new StyleBundle("~/Bundles/Base/Css")
  12. .Include("~/Content/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
  13. .Include("~/Content/Icon/iconfont.css", new CssRewriteUrlTransform())
  14. .Include("~/Content/Libs/fontawesome-free/css/all.min.css", new CssRewriteUrlTransform())
  15. //.Include("~/Content/Libs/bootstrap/css/bootstrap.css", new CssRewriteUrlTransform())
  16. .Include("~/Content/AdminLTE/css/adminlte.min.css", new CssRewriteUrlTransform())
  17. .Include("~/Content/Libs/bootstrap-table/bootstrap-table.css", new CssRewriteUrlTransform())
  18. .Include("~/Content/Libs/select2/css/select2.css", new CssRewriteUrlTransform())
  19. .Include("~/Content/Libs/overlayScrollbars/css/OverlayScrollbars.min.css",
  20. new CssRewriteUrlTransform())
  21. .Include("~/Content/Libs/overlayScrollbars/css/OverlayScrollbars-theme.css",
  22. new CssRewriteUrlTransform())
  23. .Include("~/Content/Libs/toastr/toastr.css", new CssRewriteUrlTransform())
  24. //.Include("~/Content/Libs/sweetalert2/sweetalert2.min.css", new CssRewriteUrlTransform())
  25. //.Include("~/Content/Libs/famfamfam-flags/famfamfam-flags.css", new CssRewriteUrlTransform())
  26. .Include("~/Content/Libs/Waves/waves.css", new CssRewriteUrlTransform())
  27. .Include("~/Content/Libs/animate/animate.css", new CssRewriteUrlTransform())
  28. );
  29. bundles.Add(
  30. new StyleBundle("~/Bundles/Site/Css")
  31. .Include("~/Content/Css/iwb.style.css", new CssRewriteUrlTransform())
  32. //.Include("~/Content/css/themes/all-themes.css", new CssRewriteUrlTransform())
  33. );
  34. bundles.Add(
  35. new ScriptBundle("~/Bundles/Jquery/Js")
  36. .Include("~/lib/json2/json2.js")
  37. .Include("~/Content/Libs/json2/json2.js")
  38. .Include("~/Content/Libs/jquery/jquery.js")
  39. );
  40. bundles.Add(
  41. new ScriptBundle("~/Bundles/Base/Js")
  42. .Include("~/Content/Libs/jquery-ui/jquery-ui.min.js")
  43. .Include("~/Content/Libs/bootstrap4/bootstrap.bundle.min.js")
  44. .Include("~/Content/Libs/bootstrap-table/bootstrap-table.js")
  45. .Include("~/Content/Libs/moment/moment-with-locales.js")
  46. .Include("~/Content/Libs/mustache/mustache.min.js")
  47. .Include("~/Content/Libs/overlayScrollbars/js/jquery.overlayScrollbars.min.js")
  48. .Include("~/Content/Libs/jquery-validation/jquery.validate.js")
  49. .Include("~/Content/Libs/blockUI/jquery.blockUI.js")
  50. .Include("~/Content/Libs/toastr/toastr.js")
  51. .Include("~/Content/Libs/sweetalert/sweetalert.min.js")
  52. //.Include("~/Content/Libs/sweetalert2/sweetalert2.min.js")
  53. .Include("~/Content/Libs/spin.js/spin.js")
  54. .Include("~/Content/Libs/spin.js/jquery.spin.js")
  55. .Include("~/Content/Libs/select2/js/select2.min.js")
  56. .Include("~/Content/Libs/select2/js/select2tree.js")
  57. .Include("~/Content/Libs/jquery-slimscroll/jquery.slimscroll.js")
  58. .Include("~/Content/Libs/Waves/waves.js")
  59. .Include("~/Content/Libs/push.js/push.js")
  60. .Include("~/Content/Libs/Abp/abp.js")
  61. .Include("~/Content/Libs/Abp/abp.jquery.js")
  62. .Include("~/Content/Libs/Abp/abp.toastr.js")
  63. .Include("~/Content/Libs/Abp/abp.blockUI.js")
  64. .Include("~/Content/Libs/Abp/abp.spin.js")
  65. .Include("~/Content/Libs/Abp/abp.sweet-alert.js")
  66. .Include("~/Content/AdminLTE/js/adminlte.min.js")
  67. );
  68. bundles.Add(
  69. new ScriptBundle("~/Bundles/Iwb/Js")
  70. .Include("~/Content/Js/iwb.js")
  71. .Include("~/Content/Js/notificationHelper.js")
  72. .Include("~/Content/Js/util.js")
  73. );
  74. bundles.Add(
  75. new ScriptBundle("~/Bundles/Iwb-Account/Js")
  76. .Include("~/Content/Js/iwb.js")
  77. .Include("~/Content/Js/util.js")
  78. );
  79. bundles.Add(
  80. new ScriptBundle("~/Bundles/Iwb-Exercise/Js")
  81. .Include("~/lib/json2/json2.js")
  82. .Include("~/Content/Libs/json2/json2.js")
  83. .Include("~/Content/Libs/jquery/jquery.js")
  84. .Include("~/Content/Libs/jquery-ui/jquery-ui.min.js")
  85. .Include("~/Content/Libs/bootstrap4/bootstrap.bundle.min.js")
  86. .Include("~/Content/Libs/moment/moment-with-locales.js")
  87. .Include("~/Content/Libs/overlayScrollbars/js/jquery.overlayScrollbars.min.js")
  88. .Include("~/Content/Libs/jquery-validation/jquery.validate.js")
  89. .Include("~/Content/Libs/blockUI/jquery.blockUI.js")
  90. .Include("~/Content/Libs/toastr/toastr.js")
  91. .Include("~/Content/Libs/sweetalert/sweetalert.min.js")
  92. .Include("~/Content/Libs/spin.js/spin.js")
  93. .Include("~/Content/Libs/spin.js/jquery.spin.js")
  94. .Include("~/Content/Libs/select2/js/select2.min.js")
  95. .Include("~/Content/Libs/select2/js/select2tree.js")
  96. .Include("~/Content/Libs/Waves/waves.js")
  97. .Include("~/Content/Libs/push.js/push.js")
  98. .Include("~/Content/Libs/Abp/abp.js")
  99. .Include("~/Content/Libs/Abp/abp.jquery.js")
  100. .Include("~/Content/Libs/Abp/abp.toastr.js")
  101. .Include("~/Content/Libs/Abp/abp.blockUI.js")
  102. .Include("~/Content/Libs/Abp/abp.spin.js")
  103. .Include("~/Content/Libs/Abp/abp.sweet-alert.js")
  104. .Include("~/Content/AdminLTE/js/adminlte.min.js")
  105. );
  106. //Home-Index Bundles
  107. bundles.Add(
  108. new ScriptBundle("~/Bundles/home-index")
  109. .Include(
  110. "~/lib/jquery-countTo/jquery.countTo.js",
  111. "~/lib/raphael/raphael.js",
  112. "~/lib/morris.js/morris.js",
  113. "~/lib/chart.js/dist/Chart.bundle.js",
  114. "~/lib/Flot/jquery.flot.js",
  115. "~/lib/Flot/jquery.flot.resize.js",
  116. "~/lib/Flot/jquery.flot.pie.js",
  117. "~/lib/Flot/jquery.flot.categories.js",
  118. "~/lib/Flot/jquery.flot.time.js",
  119. "~/lib/jquery-sparkline/dist/jquery.sparkline.js",
  120. "~/Views/Home/Index.js"
  121. )
  122. );
  123. //~/Bundles/css
  124. bundles.Add(
  125. new StyleBundle("~/Bundles/css")
  126. .Include("~/css/main.css")
  127. );
  128. }
  129. //public static void RegisterBundles(BundleCollection bundles)
  130. //{
  131. // bundles.IgnoreList.Clear();
  132. // BundleTable.EnableOptimizations = false;
  133. // bundles.Add(
  134. // new StyleBundle("~/Bundles/Base/Css")
  135. // .Include("~/Content/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
  136. // .Include("~/Content/Icon/iconfont.css", new CssRewriteUrlTransform())
  137. // .Include("~/Content/Libs/bootstrap/css/bootstrap.css", new CssRewriteUrlTransform())
  138. // .Include("~/Content/Libs/bootstrap-table/bootstrap-table.css", new CssRewriteUrlTransform())
  139. // .Include("~/Content/Libs/select2/css/select2.css", new CssRewriteUrlTransform())
  140. // .Include("~/Content/Libs/toastr/toastr.css", new CssRewriteUrlTransform())
  141. // .Include("~/Content/Libs/famfamfam-flags/famfamfam-flags.css", new CssRewriteUrlTransform())
  142. // .Include("~/Content/Libs/Waves/waves.css", new CssRewriteUrlTransform())
  143. // .Include("~/Content/Libs/animate/animate.css", new CssRewriteUrlTransform())
  144. // );
  145. // bundles.Add(
  146. // new StyleBundle("~/Bundles/Site/Css")
  147. // .Include("~/Content/css/Site.css", new CssRewriteUrlTransform())
  148. // //.Include("~/Content/css/themes/all-themes.css", new CssRewriteUrlTransform())
  149. // );
  150. // bundles.Add(
  151. // new ScriptBundle("~/Bundles/Jquery/Js")
  152. // .Include("~/lib/json2/json2.js")
  153. // .Include("~/Content/Libs/json2/json2.js")
  154. // .Include("~/Content/Libs/jquery/jquery.js")
  155. // );
  156. // bundles.Add(
  157. // new ScriptBundle("~/Bundles/Base/Js")
  158. // .Include("~/Content/Libs/bootstrap/js/bootstrap.js")
  159. // .Include("~/Content/Libs/bootstrap-table/bootstrap-table.js")
  160. // .Include("~/Content/Libs/moment/moment-with-locales.js")
  161. // .Include("~/Content/Libs/jquery-validation/jquery.validate.js")
  162. // .Include("~/Content/Libs/blockUI/jquery.blockUI.js")
  163. // .Include("~/Content/Libs/toastr/toastr.js")
  164. // .Include("~/Content/Libs/sweetalert/sweetalert.min.js")
  165. // .Include("~/Content/Libs/spin.js/spin.js")
  166. // .Include("~/Content/Libs/spin.js/jquery.spin.js")
  167. // .Include("~/Content/Libs/select2/js/select2.min.js")
  168. // .Include("~/Content/Libs/select2/js/select2tree.js")
  169. // .Include("~/Content/Libs/jquery-slimscroll/jquery.slimscroll.js")
  170. // .Include("~/Content/Libs/Waves/waves.js")
  171. // .Include("~/Content/Libs/push.js/push.js")
  172. // .Include("~/Content/Libs/Abp/abp.js")
  173. // .Include("~/Content/Libs/Abp/abp.jquery.js")
  174. // .Include("~/Content/Libs/Abp/abp.toastr.js")
  175. // .Include("~/Content/Libs/Abp/abp.blockUI.js")
  176. // .Include("~/Content/Libs/Abp/abp.spin.js")
  177. // .Include("~/Content/Libs/Abp/abp.sweet-alert.js")
  178. // );
  179. // bundles.Add(
  180. // new ScriptBundle("~/Bundles/Iwb/Js")
  181. // .Include("~/Content/Js/iwb.js")
  182. // .Include("~/Content/Js/util.js")
  183. // );
  184. // bundles.Add(
  185. // new StyleBundle("~/Bundles/account-vendor/css")
  186. // .Include("~/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
  187. // .Include("~/fonts/material-icons/materialicons.css", new CssRewriteUrlTransform())
  188. // .Include("~/lib/bootstrap/dist/css/bootstrap.css", new CssRewriteUrlTransform())
  189. // .Include("~/lib/toastr/toastr.css", new CssRewriteUrlTransform())
  190. // .Include("~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css", new CssRewriteUrlTransform())
  191. // .Include("~/lib/font-awesome/css/font-awesome.css", new CssRewriteUrlTransform())
  192. // .Include("~/lib/Waves/dist/waves.css", new CssRewriteUrlTransform())
  193. // .Include("~/lib/animate.css/animate.css", new CssRewriteUrlTransform())
  194. // .Include("~/css/materialize.css", new CssRewriteUrlTransform())
  195. // .Include("~/css/style.css", new CssRewriteUrlTransform())
  196. // .Include("~/Views/Account/_Layout.css", new CssRewriteUrlTransform())
  197. // );
  198. // bundles.Add(
  199. // new ScriptBundle("~/Bundles/account-vendor/js/bottom")
  200. // .Include(
  201. // "~/lib/json2/json2.js",
  202. // "~/lib/jquery/dist/jquery.js",
  203. // "~/lib/bootstrap/dist/js/bootstrap.js",
  204. // "~/lib/moment/min/moment-with-locales.js",
  205. // "~/lib/jquery-validation/dist/jquery.validate.js",
  206. // "~/lib/blockUI/jquery.blockUI.js",
  207. // "~/lib/toastr/toastr.js",
  208. // "~/lib/sweetalert/dist/sweetalert.min.js",
  209. // "~/lib/spin.js/spin.js",
  210. // "~/lib/spin.js/jquery.spin.js",
  211. // "~/lib/Waves/dist/waves.js",
  212. // "~/Abp/Framework/scripts/abp.js",
  213. // "~/Abp/Framework/scripts/libs/abp.jquery.js",
  214. // "~/Abp/Framework/scripts/libs/abp.toastr.js",
  215. // "~/Abp/Framework/scripts/libs/abp.blockUI.js",
  216. // "~/Abp/Framework/scripts/libs/abp.spin.js",
  217. // "~/Abp/Framework/scripts/libs/abp.sweet-alert.js",
  218. // "~/js/admin.js",
  219. // "~/js/main.js"
  220. // )
  221. // );
  222. // //VENDOR RESOURCES
  223. // //~/Bundles/vendor/css
  224. // bundles.Add(
  225. // new StyleBundle("~/Bundles/vendor/css")
  226. // .Include("~/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
  227. // .Include("~/fonts/material-icons/materialicons.css", new CssRewriteUrlTransform())
  228. // .Include("~/lib/bootstrap/dist/css/bootstrap.css", new CssRewriteUrlTransform())
  229. // .Include("~/lib/bootstrap-select/dist/css/bootstrap-select.css", new CssRewriteUrlTransform())
  230. // .Include("~/lib/toastr/toastr.css", new CssRewriteUrlTransform())
  231. // .Include("~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css", new CssRewriteUrlTransform())
  232. // .Include("~/lib/font-awesome/css/font-awesome.css", new CssRewriteUrlTransform())
  233. // .Include("~/lib/Waves/dist/waves.css", new CssRewriteUrlTransform())
  234. // .Include("~/lib/animate.css/animate.css", new CssRewriteUrlTransform())
  235. // .Include("~/css/materialize.css", new CssRewriteUrlTransform())
  236. // .Include("~/css/style.css", new CssRewriteUrlTransform())
  237. // .Include("~/css/themes/all-themes.css", new CssRewriteUrlTransform())
  238. // .Include("~/Views/Shared/_Layout.css", new CssRewriteUrlTransform())
  239. // );
  240. // //~/Bundles/vendor/bottom (Included in the bottom for fast page load)
  241. // bundles.Add(
  242. // new ScriptBundle("~/Bundles/vendor/js/bottom")
  243. // .Include(
  244. // "~/lib/json2/json2.js",
  245. // "~/lib/jquery/dist/jquery.js",
  246. // "~/lib/bootstrap/dist/js/bootstrap.js",
  247. // "~/lib/moment/min/moment-with-locales.js",
  248. // "~/lib/jquery-validation/dist/jquery.validate.js",
  249. // "~/lib/blockUI/jquery.blockUI.js",
  250. // "~/lib/toastr/toastr.js",
  251. // "~/lib/sweetalert/dist/sweetalert.min.js",
  252. // "~/lib/spin.js/spin.js",
  253. // "~/lib/spin.js/jquery.spin.js",
  254. // "~/lib/bootstrap-select/dist/js/bootstrap-select.js",
  255. // "~/lib/jquery-slimscroll/jquery.slimscroll.js",
  256. // "~/lib/Waves/dist/waves.js",
  257. // "~/lib/push.js/push.js",
  258. // "~/lib/jquery.serializejson/jquery.serializejson.js",
  259. // "~/Abp/Framework/scripts/abp.js",
  260. // "~/Abp/Framework/scripts/libs/abp.jquery.js",
  261. // "~/Abp/Framework/scripts/libs/abp.toastr.js",
  262. // "~/Abp/Framework/scripts/libs/abp.blockUI.js",
  263. // "~/Abp/Framework/scripts/libs/abp.spin.js",
  264. // "~/Abp/Framework/scripts/libs/abp.sweet-alert.js",
  265. // "~/js/admin.js",
  266. // "~/js/main.js",
  267. // "~/Scripts/jquery.signalR-2.4.1.js",
  268. // "~/Views/Shared/_Layout.js"
  269. // )
  270. // );
  271. // //Home-Index Bundles
  272. // bundles.Add(
  273. // new ScriptBundle("~/Bundles/home-index")
  274. // .Include(
  275. // "~/lib/jquery-countTo/jquery.countTo.js",
  276. // "~/lib/raphael/raphael.js",
  277. // "~/lib/morris.js/morris.js",
  278. // "~/lib/chart.js/dist/Chart.bundle.js",
  279. // "~/lib/Flot/jquery.flot.js",
  280. // "~/lib/Flot/jquery.flot.resize.js",
  281. // "~/lib/Flot/jquery.flot.pie.js",
  282. // "~/lib/Flot/jquery.flot.categories.js",
  283. // "~/lib/Flot/jquery.flot.time.js",
  284. // "~/lib/jquery-sparkline/dist/jquery.sparkline.js",
  285. // "~/Views/Home/Index.js"
  286. // )
  287. // );
  288. // //APPLICATION RESOURCES
  289. // //~/Bundles/css
  290. // bundles.Add(
  291. // new StyleBundle("~/Bundles/css")
  292. // .Include("~/css/main.css")
  293. // );
  294. //}
  295. //}
  296. }
  297. }