-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx_config.js
More file actions
executable file
·81 lines (66 loc) · 2.44 KB
/
Copy pathnginx_config.js
File metadata and controls
executable file
·81 lines (66 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;(function(){
window.JC = window.JC || {log:function(){}};
JC.PATH = JC.PATH || scriptPath();
//JC.PATH = 'http://crm.360.cn/static/jc2/'; //test for crm online
//JC.PATH = '/jc2_requirejs_master/'; //test for jc2 master
//JC.PATH = '/jc2_requirejs_master/deploy/normal/'; //test for jc2 deploy
/**
* requirejs config.js for JC Project
*/
var _configMap = {
'Base': [
, '??'
, 'modules/JC.common/0.3/common.js'
, ',modules/JC.BaseMVC/0.1/BaseMVC.js'
, '?'
].join('')
, 'JCChart': [
, '??'
, 'modules/JC.FChart/0.1/FChart.js'
, ',modules/jquery.mousewheel/3.1.12/jquery.mousewheel.js'
, '?'
].join('')
, 'tpl': [
, '??'
, '?'
].join('')
};
window.requirejs &&
requirejs.config( {
baseUrl: JC.PATH
, urlArgs: 'v=20150204'
, paths: {
'JC.common': _configMap[ 'Base' ]
, 'JC.BaseMVC': _configMap[ 'Base' ]
, 'JC.FChart': _configMap[ 'JCChart' ]
, 'jquery.mousewheel': _configMap[ 'JCChart' ]
, 'jquery.cookie': 'modules/jquery.cookie/1.4.1/jquery.cookie'
, 'json2': 'modules/JSON/2/JSON'
, 'plugins.JSON2': 'modules/JSON/2/JSON'
, 'plugins.json2': 'modules/JSON/2/JSON'
, 'plugins.Aes': 'plugins/Aes/0.1/Aes'
, 'plugins.Base64': 'plugins/Base64/0.1/Base64'
, 'plugins.md5': 'plugins/md5/0.1/md5'
, 'plugins.requirejs.domReady': 'plugins/requirejs.domReady/2.0.1/domReady'
, 'plugins.swfobject': 'plugins/SWFObject/2.2/SWFObject'
, 'swfobject': 'modules/swfobject/2.3/swfobject'
, 'SWFObject': 'modules/swfobject/2.3/swfobject'
, 'SWFUpload': 'modules/SWFUpload/2.5.0/SWFUpload'
, 'swfupload': 'modules/SWFUpload/2.5.0/SWFUpload'
, 'Raphael': 'modules/Raphael/latest/raphael'
, 'artTemplate': "modules/artTemplate/3.0/artTemplate"
, 'store': "modules/store/1.3.14/store"
}
});
/**
* 取当前脚本标签的 src路径
* @static
* @return {string} 脚本所在目录的完整路径
*/
function scriptPath(){
var _sc = document.getElementsByTagName('script'), _sc = _sc[ _sc.length - 1 ], _path = _sc.getAttribute('src');
if( /\//.test( _path ) ){ _path = _path.split('/'); _path.pop(); _path = _path.join('/') + '/'; }
else if( /\\/.test( _path ) ){ _path = _path.split('\\'); _path.pop(); _path = _path.join('\\') + '/'; }
return _path;
}
}());