config.constant.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. 'use strict';
  2. /**
  3. * Config constant
  4. */
  5. app.constant('APP_MEDIAQUERY', {
  6. 'desktopXL': 1200,
  7. 'desktop': 992,
  8. 'tablet': 768,
  9. 'mobile': 480
  10. });
  11. app.constant('JS_REQUIRES', {
  12. //*** Scripts
  13. scripts: {
  14. //*** Javascript Plugins
  15. 'modernizr': ['../bower_components/components-modernizr/modernizr.js'],
  16. 'moment': ['../bower_components/moment/min/moment.min.js'],
  17. 'spin': '../bower_components/spin.js/spin.js',
  18. 'api-check': '../bower_components/api-check/dist/api-check.min.js',
  19. 'formly': '../bower_components/angular-formly/dist/formly.js',
  20. 'd3': '../bower_components/d3/d3.min.js',
  21. 'bpmn-js-properties': ['../bower_components/bpmn-js-properties/dist/index.js', '../bower_components/bpmn-js-properties/dist/css/diagram-js.css', '../bower_components/bpmn-js-properties/dist/vendor/bpmn-font/css/bpmn-embedded.css', '../bower_components/bpmn-js-properties/dist/css/app.css'],
  22. 'multiSelectTree': [
  23. // '../bower_components/bootstrap-css-only/css/bootstrap.min.css',
  24. // '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.min.css',
  25. // '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.min.js',
  26. '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.tpl.js'
  27. ],
  28. //*** jQuery Plugins
  29. 'perfect-scrollbar-plugin': ['../bower_components/perfect-scrollbar/js/min/perfect-scrollbar.jquery.min.js', '../bower_components/perfect-scrollbar/css/perfect-scrollbar.min.css'],
  30. 'ladda': ['../bower_components/ladda/dist/ladda.min.js', '../bower_components/ladda/dist/ladda-themeless.min.css'],
  31. 'sweet-alert': ['../bower_components/sweetalert/lib/sweet-alert.min.js', '../bower_components/sweetalert/lib/sweet-alert.css'],
  32. 'chartjs': '../bower_components/chartjs/Chart.min.js',
  33. 'jquery-sparkline': '../bower_components/jquery.sparkline.build/dist/jquery.sparkline.min.js',
  34. 'ckeditor-plugin': '../bower_components/ckeditor/ckeditor.js',
  35. 'jquery-nestable-plugin': ['../bower_components/jquery-nestable/jquery.nestable.js'],
  36. 'touchspin-plugin': ['../bower_components/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js', '../bower_components/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css'],
  37. //*** Controllers
  38. 'dashboardCtrl': 'assets/js/controllers/dashboardCtrl.js',
  39. //微信登录请求
  40. 'weChatStudentRequireCtrl': 'assets/js/controllers/weChatRequire/weChatStudentRequireCtrl.js',
  41. 'weChatTeacherRequireCtrl': 'assets/js/controllers/weChatRequire/weChatTeacherRequireCtrl.js',
  42. 'weChatStudentSuccessCtrl': 'assets/js/controllers/weChatRequire/weChatStudentSuccessCtrl.js',
  43. //事件页面
  44. 'incidentCtrl': 'assets/js/controllers/incident/incidentCtrl.js',
  45. 'incidentListMobileCtrl': 'assets/js/controllers/incident/incidentListMobileCtrl.js',
  46. 'incidentRequestMobileCtrl': 'assets/js/controllers/incident/incidentRequestMobileCtrl.js',
  47. 'incidentEditorCtrl': 'assets/js/controllers/incident/incidentEditorCtrl.js',
  48. 'problemCtrl': 'assets/js/controllers/problem/problemCtrl.js',
  49. 'watchCtrl': 'assets/js/controllers/watch/watchCtrl.js',
  50. 'changeCtrl': 'assets/js/controllers/change/changeCtrl.js',
  51. 'releaseCtrl': 'assets/js/controllers/release/releaseCtrl.js',
  52. 'processCtrl': 'assets/js/controllers/process/processCtrl.js',
  53. 'cmdbCtrl': 'assets/js/controllers/cmdb/cmdbCtrl.js',
  54. 'cmdbListCtrl': 'assets/js/controllers/cmdb/cmdbListCtrl.js',
  55. 'cmdbViewCtrl': 'assets/js/controllers/cmdb/cmdbViewCtrl.js',
  56. 'reServiceCtrl': 'assets/js/controllers/reService/reServiceCtrl.js',
  57. 'reServiceMobileCtrl': 'assets/js/controllers/reService/reServiceMobileCtrl.js',
  58. 'knowledgeCtrl': 'assets/js/controllers/knowledge/knowledgeCtrl.js',
  59. 'knowledgeMobileCtrl': 'assets/js/controllers/knowledge/knowledgeMobileCtrl.js',
  60. 'schedulingCtrl': 'assets/js/controllers/scheduling/schedulingCtrl.js',
  61. 'meansCtrl': 'assets/js/controllers/means/meansCtrl.js',
  62. 'meansviewCtrl': 'assets/js/controllers/means/meansviewCtrl.js',
  63. 'meansListCtrl': 'assets/js/controllers/means/meanslistCtrl.js',
  64. 'inspectCtrl': 'assets/js/controllers/inspect/inspectCtrl.js',
  65. 'inspectListMobileCtrl': 'assets/js/controllers/inspect/inspectListMobileCtrl.js',
  66. 'inspectForm': 'assets/js/controllers/inspect/inspectForm.js',
  67. 'meansformCtrl': 'assets/js/controllers/means/meansformCtrl.js',
  68. 'reportCtrl': 'assets/js/controllers/report/reportCtrl.js',
  69. //*** System Manager
  70. 'knowledgebaseCtrl': 'assets/js/controllers/system/knowledgebaseCtrl.js',
  71. 'reServicebaseCtrl': 'assets/js/controllers/system/reServicebaseCtrl.js',
  72. 'navmanagerCtrl': 'assets/js/controllers/system/adminnavmanagerCtrl.js',
  73. 'systemmanagerCtrl': 'assets/js/controllers/system/adminsystemmanagerCtrl.js',
  74. 'knowledgeformCtrl': 'assets/js/controllers/knowledge/knowledgeform.js',
  75. 'chartCtrl': 'assets/js/controllers/desk/chartCtrl.js',
  76. 'meanshistoryCtrl': 'assets/js/controllers/means/meanshistoryCtrl.js',
  77. // 'groupCtrl': 'assets/js/controllers/system/groupCtrl.js',
  78. // 'userplanCtrl': 'assets/js/controllers/system/userCtrl.js',
  79. // 'incidentplanCtrl': 'assets/js/controllers/system/processdesign/incidentplan.js',
  80. // 'changeplanCtrl': 'assets/js/controllers/system/processdesign/changeplan.js',
  81. // 'problemplanCtrl': 'assets/js/controllers/system/processdesign/problemplan.js',
  82. // 'releaseplanCtrl': 'assets/js/controllers/system/processdesign/releaseplan.js',
  83. // 'cmdbplanCtrl': 'assets/js/controllers/system/processdesign/cmdbplan.js',
  84. // 'knowledgeplanCtrl': 'assets/js/controllers/system/processdesign/knowledgeplan.js',
  85. 'incidentcateCtrl': 'assets/js/controllers/system/processdesign/incidentplan/incidentcategory.js',
  86. 'incidentsourceCtrl': 'assets/js/controllers/system/processdesign/incidentplan/incidentsourceCtrl.js',
  87. 'closecodeCtrl': 'assets/js/controllers/system/processdesign/incidentplan/closecode.js',
  88. 'emergencyCtrl': 'assets/js/controllers/system/processdesign/incidentplan/emergencyCtrl.js',
  89. 'influenceCtrl': 'assets/js/controllers/system/processdesign/incidentplan/influenceCtrl.js',
  90. 'priorityCtrl': 'assets/js/controllers/system/processdesign/incidentplan/priorityCtrl.js',
  91. 'knowkedgecateCtrl': 'assets/js/controllers/system/processdesign/knowledgedesign/knowledgecateCtrl.js',
  92. 'prioritymatrixCtrl': 'assets/js/controllers/system/processdesign/incidentplan/prioritymatrixCtrl.js',
  93. 'placeCtrl': 'assets/js/controllers/system/organizationdesign/placeCtrl.js',
  94. 'serverslevelCtrl': 'assets/js/controllers/system/organizationdesign/serverslevelCtrl.js',
  95. 'worktimeCtrl': 'assets/js/controllers/system/organizationdesign/worktimeCtrl.js',
  96. 'deptCtrl': 'assets/js/controllers/system/organizationdesign/deptCtrl.js',
  97. 'schedulingplanCtrl': 'assets/js/controllers/system/user/schedulingplan.js',
  98. 'scheduletimeCtrl': 'assets/js/controllers/system/user/scheduletimeCtrl.js',
  99. 'groupCtrl': 'assets/js/controllers/system/user/groupCtrl.js',
  100. //user start
  101. 'groupusermgrCtrl': 'assets/js/controllers/system/user/admingroupuserCtrl.js',
  102. 'groupauthoritymgrCtrl': 'assets/js/controllers/system/user/admingroupauthorityCtrl.js',
  103. 'roleauthoritymgrCtrl': 'assets/js/controllers/system/user/adminroleauthorityCtrl.js',
  104. 'groupmgrCtrl': 'assets/js/controllers/system/user/admingroupCtrl.js',
  105. 'requestermgrCtrl': 'assets/js/controllers/system/user/adminrequesterCtrl.js',
  106. 'usermgrCtrl': 'assets/js/controllers/system/user/adminUserCtrl.js',
  107. 'rolemgrCtrl': 'assets/js/controllers/system/user/adminRoleCtrl.js',
  108. //user end
  109. 'loginCtrl': 'assets/js/controllers/loginCtrl.js',
  110. 'sysformCtrl': 'assets/js/controllers/system/systemFormCtrl.js',
  111. 'passwordCtrl': 'assets/js/controllers/changepasswordCtrl.js',
  112. 'iconsCtrl': 'assets/js/controllers/iconsCtrl.js',
  113. 'vAccordionCtrl': 'assets/js/controllers/vAccordionCtrl.js',
  114. 'ckeditorCtrl': 'assets/js/controllers/ckeditorCtrl.js',
  115. 'laddaCtrl': 'assets/js/controllers/laddaCtrl.js',
  116. 'ngTableCtrl': 'assets/js/controllers/ngTableCtrl.js',
  117. 'cropCtrl': 'assets/js/controllers/cropCtrl.js',
  118. 'asideCtrl': 'assets/js/controllers/asideCtrl.js',
  119. 'toasterCtrl': 'assets/js/controllers/toasterCtrl.js',
  120. 'sweetAlertCtrl': 'assets/js/controllers/sweetAlertCtrl.js',
  121. 'mapsCtrl': 'assets/js/controllers/mapsCtrl.js',
  122. 'chartsCtrl': 'assets/js/controllers/chartsCtrl.js',
  123. 'calendarCtrl': 'assets/js/controllers/calendarCtrl.js',
  124. 'nestableCtrl': 'assets/js/controllers/nestableCtrl.js',
  125. 'validationCtrl': ['assets/js/controllers/validationCtrl.js'],
  126. 'userCtrl': ['assets/js/controllers/userCtrl.js'],
  127. 'selectCtrl': 'assets/js/controllers/selectCtrl.js',
  128. 'wizardCtrl': 'assets/js/controllers/wizardCtrl.js',
  129. 'uploadCtrl': 'assets/js/controllers/uploadCtrl.js',
  130. 'modernizrCtrl': 'assets/js/controllers/modernizr.custom.js',
  131. 'treeCtrl': 'assets/js/controllers/treeCtrl.js',
  132. 'inboxCtrl': 'assets/js/controllers/inboxCtrl.js',
  133. 'xeditableCtrl': 'assets/js/controllers/xeditableCtrl.js',
  134. 'chatCtrl': 'assets/js/controllers/chatCtrl.js',
  135. 'qrcideCtrl': 'assets/js/controllers/qrgen.js',
  136. //add Controller
  137. 'customformCtrl': 'assets/js/controllers/customform/customformCtrl.js',
  138. 'customformDetailCtrl': 'assets/js/controllers/customform/customformDetailCtrl.js',
  139. //*** Filters
  140. 'htmlToPlaintext': 'assets/js/filters/htmlToPlaintext.js'
  141. },
  142. //*** angularJS Modules
  143. modules: [{
  144. name: 'angularMoment',
  145. files: ['../bower_components/angular-moment/angular-moment.min.js']
  146. }, {
  147. name: 'morph',
  148. files: ['../bower_components/angular-morph/dist/angular-morph.js']
  149. }, {
  150. name: 'tweenLite',
  151. files: ['../bower_components/TweenLite/index.min.js']
  152. }, {
  153. name: 'toaster',
  154. files: ['../bower_components/angularjs-toaster/toaster.js', '../bower_components/angularjs-toaster/toaster.css']
  155. }, {
  156. name: 'angularBootstrapNavTree',
  157. files: ['../bower_components/angular-bootstrap-nav-tree/dist/abn_tree_directive.js', '../bower_components/angular-bootstrap-nav-tree/dist/abn_tree.css']
  158. }, {
  159. name: 'angular-ladda',
  160. files: ['../bower_components/angular-ladda/dist/angular-ladda.min.js']
  161. }, {
  162. name: 'ngTable',
  163. files: ['../bower_components/ng-table/dist/ng-table.min.js', '../bower_components/ng-table/dist/ng-table.min.css']
  164. }, {
  165. name: 'angularPrint',
  166. files: ['../bower_components/angularPrint/angularPrint.js', '../bower_components/angularPrint/angularPrint.css']
  167. }, , {
  168. name: 'selector',
  169. files: ['../bower_components/angular-selector/dist/angular-selector.js', '../bower_components/angular-selector/dist/angular-selector.css']
  170. }, {
  171. name: 'ui.select',
  172. files: ['../bower_components/angular-ui-select/dist/select.js', '../bower_components/angular-ui-select/dist/select.min.css', '../bower_components/select2/dist/css/select2.min.css', '../bower_components/select2-bootstrap-css/select2-bootstrap.min.css', '../bower_components/selectize/dist/css/selectize.bootstrap3.css']
  173. }, {
  174. name: 'ui.mask',
  175. files: ['../bower_components/angular-ui-utils/mask.min.js']
  176. }, {
  177. name: 'ngImgCrop',
  178. files: ['../bower_components/ngImgCrop/compile/minified/ng-img-crop.js', '../bower_components/ngImgCrop/compile/minified/ng-img-crop.css']
  179. }, {
  180. name: 'angularFileUpload',
  181. files: ['../bower_components/angular-file-upload/angular-file-upload.min.js']
  182. }, {
  183. name: 'ngAside',
  184. files: ['../bower_components/angular-aside/dist/js/angular-aside.min.js', '../bower_components/angular-aside/dist/css/angular-aside.min.css']
  185. }, {
  186. name: 'truncate',
  187. files: ['../bower_components/angular-truncate/src/truncate.js']
  188. }, {
  189. name: 'oitozero.ngSweetAlert',
  190. files: ['../bower_components/angular-sweetalert-promised/SweetAlert.min.js']
  191. }, {
  192. name: 'monospaced.elastic',
  193. files: ['../bower_components/angular-elastic/elastic.js']
  194. }, {
  195. name: 'ngMap',
  196. files: ['../bower_components/ngmap/build/scripts/ng-map.min.js']
  197. }, {
  198. name: 'tc.chartjs',
  199. files: ['../bower_components/tc-angular-chartjs/dist/tc-angular-chartjs.min.js']
  200. }, {
  201. name: 'flow',
  202. files: ['../bower_components/ng-flow/dist/ng-flow-standalone.min.js']
  203. }, {
  204. name: 'uiSwitch',
  205. files: ['../bower_components/angular-ui-switch/angular-ui-switch.min.js', '../bower_components/angular-ui-switch/angular-ui-switch.min.css']
  206. }, {
  207. name: 'ckeditor',
  208. files: ['../bower_components/angular-ckeditor/angular-ckeditor.js']
  209. }, {
  210. name: 'mwl.calendar',
  211. files: ['../bower_components/angular-bootstrap-calendar/dist/js/angular-bootstrap-calendar-tpls.min.js', '../bower_components/angular-bootstrap-calendar/dist/css/angular-bootstrap-calendar.min.css']
  212. },
  213. {
  214. name: 'material-calendar',
  215. files: ['../bower_components/material-calendar/dist/angular-material-calendar.js', '../bower_components/angular-material/angular-material.css', '../bower_components/angular-material/angular-material.layouts.css', '../bower_components/material-calendar/dist/angular-material-calendar.css']
  216. },
  217. {
  218. name: 'ng-nestable',
  219. files: ['../bower_components/ng-nestable/src/angular-nestable.js']
  220. }, {
  221. name: 'vAccordion',
  222. files: ['../bower_components/v-accordion/dist/v-accordion.min.js', '../bower_components/v-accordion/dist/v-accordion.min.css']
  223. }, {
  224. name: 'xeditable',
  225. files: ['../bower_components/angular-xeditable/dist/js/xeditable.js', '../bower_components/angular-xeditable/dist/css/xeditable.css', 'assets/js/config/config-xeditable.js']
  226. }, {
  227. name: 'checklist-model',
  228. files: ['../bower_components/checklist-model/checklist-model.js']
  229. }, {
  230. name: 'angularFormly',
  231. files: [
  232. '../bower_components/angular-formly-templates-bootstrap/dist/angular-formly-templates-bootstrap.min.js'
  233. ]
  234. }, {
  235. name: 'ui.grid',
  236. files: [
  237. '../bower_components/angular-ui-grid/ui-grid.js', '../bower_components/angular-ui-grid/ui-grid.css'
  238. ]
  239. }, {
  240. name: 'multi.select.tree',
  241. files: [
  242. //'../bower_components/bootstrap-css-only/css/bootstrap.min.css',
  243. '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.css',
  244. '../bower_components/angular-multi-select-tree/dist/angular-multi-select-tree-0.1.0.js'
  245. ]
  246. }
  247. ]
  248. });