config.lazyload.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // lazyload config
  2. angular.module('app')
  3. /**
  4. * jQuery plugin config use ui-jq directive , config the js and css files that required
  5. * key: function name of the jQuery plugin
  6. * value: array of the css js file located
  7. */
  8. .constant('JQ_CONFIG', {
  9. easyPieChart: ['vendor/jquery/charts/easypiechart/jquery.easy-pie-chart.js'],
  10. sparkline: ['vendor/jquery/charts/sparkline/jquery.sparkline.min.js'],
  11. plot: ['vendor/jquery/charts/flot/jquery.flot.min.js',
  12. 'vendor/jquery/charts/flot/jquery.flot.resize.js',
  13. 'vendor/jquery/charts/flot/jquery.flot.tooltip.min.js',
  14. 'vendor/jquery/charts/flot/jquery.flot.spline.js',
  15. 'vendor/jquery/charts/flot/jquery.flot.orderBars.js',
  16. 'vendor/jquery/charts/flot/jquery.flot.pie.min.js'],
  17. slimScroll: ['vendor/jquery/slimscroll/jquery.slimscroll.min.js'],
  18. sortable: ['vendor/jquery/sortable/jquery.sortable.js'],
  19. nestable: ['vendor/jquery/nestable/jquery.nestable.js',
  20. 'vendor/jquery/nestable/nestable.css'],
  21. filestyle: ['vendor/jquery/file/bootstrap-filestyle.min.js'],
  22. slider: ['vendor/jquery/slider/bootstrap-slider.js',
  23. 'vendor/jquery/slider/slider.css'],
  24. chosen: ['vendor/jquery/chosen/chosen.jquery.min.js',
  25. 'vendor/jquery/chosen/chosen.css'],
  26. TouchSpin: ['vendor/jquery/spinner/jquery.bootstrap-touchspin.min.js',
  27. 'vendor/jquery/spinner/jquery.bootstrap-touchspin.css'],
  28. wysiwyg: ['vendor/jquery/wysiwyg/bootstrap-wysiwyg.js',
  29. 'vendor/jquery/wysiwyg/jquery.hotkeys.js'],
  30. dataTable: ['vendor/jquery/datatables/jquery.dataTables.min.js',
  31. 'vendor/jquery/datatables/dataTables.bootstrap.js',
  32. 'vendor/jquery/datatables/dataTables.bootstrap.css'],
  33. vectorMap: ['vendor/jquery/jvectormap/jquery-jvectormap.min.js',
  34. 'vendor/jquery/jvectormap/jquery-jvectormap-world-mill-en.js',
  35. 'vendor/jquery/jvectormap/jquery-jvectormap-us-aea-en.js',
  36. 'vendor/jquery/jvectormap/jquery-jvectormap.css'],
  37. footable: ['vendor/jquery/footable/footable.all.min.js',
  38. 'vendor/jquery/footable/footable.core.css']
  39. }
  40. )
  41. // oclazyload config
  42. .config(['$ocLazyLoadProvider', function($ocLazyLoadProvider) {
  43. // We configure ocLazyLoad to use the lib script.js as the async loader
  44. $ocLazyLoadProvider.config({
  45. debug: false,
  46. events: true,
  47. modules: [
  48. {
  49. name: 'ngGrid',
  50. files: [
  51. 'vendor/modules/ng-grid/ng-grid.min.js',
  52. 'vendor/modules/ng-grid/ng-grid.min.css',
  53. 'vendor/modules/ng-grid/theme.css'
  54. ]
  55. },
  56. {
  57. name: 'ui.select',
  58. files: [
  59. 'vendor/modules/angular-ui-select/select.min.js',
  60. 'vendor/modules/angular-ui-select/select.min.css'
  61. ]
  62. },
  63. {
  64. name:'angularFileUpload',
  65. files: [
  66. 'vendor/modules/angular-file-upload/angular-file-upload.min.js'
  67. ]
  68. },
  69. {
  70. name:'ui.calendar',
  71. files: ['vendor/modules/angular-ui-calendar/calendar.js']
  72. },
  73. {
  74. name: 'ngImgCrop',
  75. files: [
  76. 'vendor/modules/ngImgCrop/ng-img-crop.js',
  77. 'vendor/modules/ngImgCrop/ng-img-crop.css'
  78. ]
  79. },
  80. {
  81. name: 'angularBootstrapNavTree',
  82. files: [
  83. 'vendor/modules/angular-bootstrap-nav-tree/abn_tree_directive.js',
  84. 'vendor/modules/angular-bootstrap-nav-tree/abn_tree.css'
  85. ]
  86. },
  87. {
  88. name: 'toaster',
  89. files: [
  90. 'vendor/modules/angularjs-toaster/toaster.js',
  91. 'vendor/modules/angularjs-toaster/toaster.css'
  92. ]
  93. },
  94. {
  95. name: 'textAngular',
  96. files: [
  97. 'vendor/modules/textAngular/textAngular-sanitize.min.js',
  98. 'vendor/modules/textAngular/textAngular.min.js'
  99. ]
  100. },
  101. {
  102. name: 'vr.directives.slider',
  103. files: [
  104. 'vendor/modules/angular-slider/angular-slider.min.js',
  105. 'vendor/modules/angular-slider/angular-slider.css'
  106. ]
  107. },
  108. {
  109. name: 'com.2fdevs.videogular',
  110. files: [
  111. 'vendor/modules/videogular/videogular.min.js'
  112. ]
  113. },
  114. {
  115. name: 'com.2fdevs.videogular.plugins.controls',
  116. files: [
  117. 'vendor/modules/videogular/plugins/controls.min.js'
  118. ]
  119. },
  120. {
  121. name: 'com.2fdevs.videogular.plugins.buffering',
  122. files: [
  123. 'vendor/modules/videogular/plugins/buffering.min.js'
  124. ]
  125. },
  126. {
  127. name: 'com.2fdevs.videogular.plugins.overlayplay',
  128. files: [
  129. 'vendor/modules/videogular/plugins/overlay-play.min.js'
  130. ]
  131. },
  132. {
  133. name: 'com.2fdevs.videogular.plugins.poster',
  134. files: [
  135. 'vendor/modules/videogular/plugins/poster.min.js'
  136. ]
  137. },
  138. {
  139. name: 'com.2fdevs.videogular.plugins.imaads',
  140. files: [
  141. 'vendor/modules/videogular/plugins/ima-ads.min.js'
  142. ]
  143. }
  144. ]
  145. });
  146. }])
  147. ;