config0.8.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. require.config({
  2. baseUrl: 'resource/js/app',
  3. paths: {
  4. 'jquery': '../lib/jquery-1.11.1.min',
  5. 'jquery.ui': '../lib/jquery-ui-1.10.3.min',
  6. 'jquery.caret': '../lib/jquery.caret',
  7. 'jquery.jplayer': '../../components/jplayer/jquery.jplayer.min',
  8. 'jquery.zclip': '../../components/zclip/jquery.zclip.min',
  9. 'bootstrap': '../lib/bootstrap.min',
  10. 'bootstrap.switch': '../../components/switch/bootstrap-switch.min',
  11. 'angular': '../lib/angular.min',
  12. 'angular.sanitize': '../lib/angular-sanitize.min',
  13. 'underscore': '../lib/underscore-min',
  14. 'chart': '../lib/chart.min',
  15. 'moment': '../lib/moment',
  16. 'filestyle': '../lib/bootstrap-filestyle.min',
  17. 'datetimepicker': '../../components/datetimepicker/jquery.datetimepicker',
  18. 'daterangepicker': '../../components/daterangepicker/daterangepicker',
  19. 'colorpicker': '../../components/colorpicker/spectrum',
  20. 'map': 'https://api.map.baidu.com/getscript?v=2.0&ak=F51571495f717ff1194de02366bb8da9&services=&t=20140530104353',
  21. 'editor': '../../components/tinymce/tinymce.min',
  22. 'kindeditor':'../../components/kindeditor/lang/zh_CN',
  23. 'kindeditor.main':'../../components/kindeditor/kindeditor-min',
  24. 'css': '../lib/css.min',
  25. 'webuploader' : '../../components/webuploader/webuploader.min',
  26. 'fileUploader' : '../../components/fileuploader/fileuploader.min',
  27. 'json2' : '../lib/json2',
  28. 'wapeditor' : './wapeditor',
  29. 'jquery.wookmark': '../lib/jquery.wookmark.min',
  30. 'validator': '../lib/bootstrapValidator.min',
  31. 'select2' : '../../components/select2/zh-CN',
  32. 'clockpicker': '../../components/clockpicker/clockpicker.min',
  33. 'jquery.qrcode': '../lib/jquery.qrcode.min',
  34. 'raty': '../lib/raty.min',
  35. 'district' : '../lib/district',
  36. 'hammer': '../lib/hammer.min'
  37. },
  38. shim:{
  39. 'jquery.ui': {
  40. exports: "$",
  41. deps: ['jquery']
  42. },
  43. 'jquery.caret': {
  44. exports: "$",
  45. deps: ['jquery']
  46. },
  47. 'jquery.jplayer': {
  48. exports: "$",
  49. deps: ['jquery']
  50. },
  51. 'bootstrap': {
  52. exports: "$",
  53. deps: ['jquery']
  54. },
  55. 'bootstrap.switch': {
  56. exports: "$",
  57. deps: ['bootstrap', 'css!../../components/switch/bootstrap-switch.min.css']
  58. },
  59. 'angular': {
  60. exports: 'angular',
  61. deps: ['jquery']
  62. },
  63. 'angular.sanitize': {
  64. exports: 'angular',
  65. deps: ['angular']
  66. },
  67. 'emotion': {
  68. deps: ['jquery']
  69. },
  70. 'chart': {
  71. exports: 'Chart'
  72. },
  73. 'filestyle': {
  74. exports: '$',
  75. deps: ['bootstrap']
  76. },
  77. 'daterangepicker': {
  78. exports: '$',
  79. deps: ['bootstrap', 'moment', 'css!../../components/daterangepicker/daterangepicker.css']
  80. },
  81. 'datetimepicker' : {
  82. exports : '$',
  83. deps: ['jquery', 'css!../../components/datetimepicker/jquery.datetimepicker.css']
  84. },
  85. 'kindeditor': {
  86. deps: ['kindeditor.main', 'css!../../components/kindeditor/themes/default/default.css']
  87. },
  88. 'colorpicker': {
  89. exports: '$',
  90. deps: ['css!../../components/colorpicker/spectrum.css']
  91. },
  92. 'map': {
  93. exports: 'BMap'
  94. },
  95. 'json2': {
  96. exports: 'JSON'
  97. },
  98. 'fileUploader': {
  99. deps: ['webuploader', 'css!../../components/webuploader/webuploader.css', 'css!../../components/webuploader/style.css']
  100. },
  101. 'wapeditor' : {
  102. exports : 'angular',
  103. deps: ['angular.sanitize', 'jquery.ui', 'underscore', 'fileUploader', 'json2', 'datetimepicker']
  104. },
  105. 'jquery.wookmark': {
  106. exports: "$",
  107. deps: ['jquery']
  108. },
  109. 'validator': {
  110. exports: "$",
  111. deps: ['bootstrap']
  112. },
  113. 'select2': {
  114. deps: ['css!../../components/select2/select2.min.css', './resource/components/select2/select2.min.js']
  115. },
  116. 'clockpicker': {
  117. exports: "$",
  118. deps: ['css!../../components/clockpicker/clockpicker.min.css', 'bootstrap']
  119. },
  120. 'jquery.qrcode': {
  121. exports: "$",
  122. deps: ['jquery']
  123. },
  124. 'district' : {
  125. exports : "$",
  126. deps : ['jquery']
  127. },
  128. 'hammer' : {
  129. exports : 'hammer'
  130. }
  131. }
  132. });