Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
1da88ff4
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1da88ff4
编写于
5月 14, 2020
作者:
NoSubject
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新政脚本编辑器monaco
上级
6cddaa67
变更
25
展开全部
显示空白变更内容
内联
并排
Showing
25 changed file
with
2637 addition
and
306 deletion
+2637
-306
o2web/source/o2_core/o2.js
o2web/source/o2_core/o2.js
+6
-5
o2web/source/o2_core/o2/widget/JavascriptEditor.js
o2web/source/o2_core/o2/widget/JavascriptEditor.js
+340
-196
o2web/source/o2_core/o2/widget/MWFRaphael.js
o2web/source/o2_core/o2/widget/MWFRaphael.js
+12
-4
o2web/source/o2_core/o2/widget/ScriptArea.js
o2web/source/o2_core/o2/widget/ScriptArea.js
+5
-3
o2web/source/o2_core/o2/widget/ace.js
o2web/source/o2_core/o2/widget/ace.js
+12
-7
o2web/source/o2_core/o2/widget/codemirror.js
o2web/source/o2_core/o2/widget/codemirror.js
+3
-7
o2web/source/o2_core/o2/widget/monaco.js
o2web/source/o2_core/o2/widget/monaco.js
+15
-16
o2web/source/o2_lib/vs/loader.js
o2web/source/o2_lib/vs/loader.js
+1809
-31
o2web/source/x_component_cms_ScriptDesigner/$Main/default/toolbars.html
..._component_cms_ScriptDesigner/$Main/default/toolbars.html
+9
-0
o2web/source/x_component_cms_ScriptDesigner/Main.js
o2web/source/x_component_cms_ScriptDesigner/Main.js
+55
-9
o2web/source/x_component_cms_ScriptDesigner/Script.js
o2web/source/x_component_cms_ScriptDesigner/Script.js
+22
-0
o2web/source/x_component_portal_ScriptDesigner/$Main/default/toolbars.html
...mponent_portal_ScriptDesigner/$Main/default/toolbars.html
+20
-0
o2web/source/x_component_portal_ScriptDesigner/Main.js
o2web/source/x_component_portal_ScriptDesigner/Main.js
+51
-5
o2web/source/x_component_portal_ScriptDesigner/Script.js
o2web/source/x_component_portal_ScriptDesigner/Script.js
+17
-1
o2web/source/x_component_process_ScriptDesigner/$Main/default/toolbars.html
...ponent_process_ScriptDesigner/$Main/default/toolbars.html
+9
-0
o2web/source/x_component_process_ScriptDesigner/Main.js
o2web/source/x_component_process_ScriptDesigner/Main.js
+51
-5
o2web/source/x_component_process_ScriptDesigner/Script.js
o2web/source/x_component_process_ScriptDesigner/Script.js
+17
-0
o2web/source/x_component_query_StatementDesigner/Statement.js
...b/source/x_component_query_StatementDesigner/Statement.js
+4
-1
o2web/source/x_component_service_AgentDesigner/$Main/default/toolbars.html
...mponent_service_AgentDesigner/$Main/default/toolbars.html
+9
-0
o2web/source/x_component_service_AgentDesigner/Agent.js
o2web/source/x_component_service_AgentDesigner/Agent.js
+18
-1
o2web/source/x_component_service_AgentDesigner/Main.js
o2web/source/x_component_service_AgentDesigner/Main.js
+53
-7
o2web/source/x_component_service_InvokeDesigner/$Main/default/toolbars.html
...ponent_service_InvokeDesigner/$Main/default/toolbars.html
+10
-0
o2web/source/x_component_service_InvokeDesigner/Invoke.js
o2web/source/x_component_service_InvokeDesigner/Invoke.js
+17
-1
o2web/source/x_component_service_InvokeDesigner/Main.js
o2web/source/x_component_service_InvokeDesigner/Main.js
+54
-7
o2web/source/x_desktop/js/initalServiceScriptSubstitute.js
o2web/source/x_desktop/js/initalServiceScriptSubstitute.js
+19
-0
未找到文件。
o2web/source/o2_core/o2.js
浏览文件 @
1da88ff4
...
...
@@ -147,6 +147,7 @@
var
MSXML
=
function
(){
return
new
ActiveXObject
(
'
Microsoft.XMLHTTP
'
);
};
return
_attempt
(
XMLHTTP
,
MSXML2
,
MSXML
);
})();
this
.
o2
.
request
=
_request
;
var
_returnBase
=
function
(
number
,
base
)
{
return
(
number
).
toString
(
base
).
toUpperCase
();
...
...
@@ -290,13 +291,13 @@
_removeListener
(
xhr
,
'
load
'
,
_checkCssLoaded
);
_removeListener
(
xhr
,
'
error
'
,
_checkCssErrorLoaded
);
if
(
err
)
{
failure
(
xhr
);
return
}
if
(
err
)
{
if
(
failure
)
failure
(
xhr
);
return
}
var
status
=
xhr
.
status
;
status
=
(
status
==
1223
)
?
204
:
status
;
if
((
status
>=
200
&&
status
<
300
))
success
(
xhr
);
if
(
success
)
success
(
xhr
);
else
if
((
status
>=
300
&&
status
<
400
))
failure
(
xhr
);
if
(
failure
)
failure
(
xhr
);
else
failure
(
xhr
);
if
(
completed
)
completed
(
xhr
);
...
...
@@ -308,7 +309,7 @@
_addListener
(
xhr
,
"
readystatechange
"
,
_checkCssLoaded
);
xhr
.
send
();
};
this
.
o2
.
xhr_get
=
_xhr_get
;
var
_loadSequence
=
function
(
ms
,
cb
,
op
,
n
,
thisLoaded
,
loadSingle
,
uuid
,
fun
){
loadSingle
(
ms
[
n
],
function
(
module
){
if
(
module
)
thisLoaded
.
push
(
module
);
...
...
@@ -343,7 +344,7 @@
"
mootools
"
:
[
"
/o2_lib/mootools/mootools-1.6.0_all.js
"
],
"
ckeditor
"
:
[
"
/o2_lib/htmleditor/ckeditor4114/ckeditor.js
"
],
"
ckeditor5
"
:
[
"
/o2_lib/htmleditor/ckeditor5-12-1-0/ckeditor.js
"
],
"
raphael
"
:
[
"
/o2_lib/raphael/raphael.js
"
],
"
raphael
"
:
[
"
/o2_lib/raphael/raphael
_230
.js
"
],
"
d3
"
:
[
"
/o2_lib/d3/d3.min.js
"
],
"
ace
"
:
[
"
/o2_lib/ace/src-min-noconflict/ace.js
"
,
"
/o2_lib/ace/src-min-noconflict/ext-language_tools.js
"
],
"
monaco
"
:
[
"
/o2_lib/vs/loader.js
"
],
...
...
o2web/source/o2_core/o2/widget/JavascriptEditor.js
浏览文件 @
1da88ff4
此差异已折叠。
点击以展开。
o2web/source/o2_core/o2/widget/MWFRaphael.js
浏览文件 @
1da88ff4
...
...
@@ -3,12 +3,20 @@ o2.widget.MWFRaphael = MWFRaphael = {
load
:
function
(
callback
){
if
(
window
.
Raphael
){
if
(
callback
)
callback
();
}
else
{
if
(
!
window
.
Raphael
&&
typeof
require
===
'
function
'
&&
define
.
amd
){
require
([
"
../o2_lib/raphael/raphael.js
"
],
function
(
r
){
window
.
Raphael
=
r
;
this
.
expandRaphael
();
if
(
callback
)
callback
();
}.
bind
(
this
));
}
else
{
COMMON
.
AjaxModule
.
load
(
"
raphael
"
,
function
(){
this
.
expandRaphael
();
if
(
callback
)
callback
();
}.
bind
(
this
),
true
,
true
);
}
}
},
expandRaphael
:
function
(){
Raphael
.
fn
.
diamond
=
function
(
x
,
y
,
width
,
height
,
r1
,
r2
){
...
...
o2web/source/o2_core/o2/widget/ScriptArea.js
浏览文件 @
1da88ff4
...
...
@@ -68,6 +68,7 @@ o2.widget.ScriptArea = new Class({
}
},
maxSize
:
function
(){
debugger
;
var
obj
=
this
.
options
.
maxObj
;
var
coordinates
=
obj
.
getCoordinates
(
obj
.
getOffsetParent
());
...
...
@@ -80,8 +81,8 @@ o2.widget.ScriptArea = new Class({
"
position
"
:
"
absolute
"
,
// "top": coordinates.top,
// "left": coordinates.left,
"
top
"
:
"
0
px
"
,
"
left
"
:
"
0
px
"
,
"
top
"
:
coordinates
.
top
+
"
px
"
,
"
left
"
:
coordinates
.
left
+
"
px
"
,
"
width
"
:
coordinates
.
width
,
"
height
"
:
coordinates
.
height
-
2
,
"
z-index
"
:
20001
...
...
@@ -97,7 +98,8 @@ o2.widget.ScriptArea = new Class({
returnSize
:
function
(){
var
size
=
this
.
container
.
retrieve
(
"
size
"
);
this
.
editor
.
setOption
(
"
lineNumbers
"
,
false
);
//this.editor.setOption("lineNumbers", false);
this
.
jsEditor
.
hideLineNumbers
();
this
.
container
.
inject
(
this
.
node
);
this
.
container
.
setStyles
({
"
position
"
:
"
static
"
,
...
...
o2web/source/o2_core/o2/widget/ace.js
浏览文件 @
1da88ff4
...
...
@@ -2,15 +2,20 @@ o2.widget = o2.widget || {};
o2
.
widget
.
ace
=
{
//"ace": COMMON.contentPath+"/res/framework/ace/src-min/ace.js",
//"tools": COMMON.contentPath+"/res/framework/ace/src-min/ext-language_tools.js",
"
callbackList
"
:
[],
"
load
"
:
function
(
callback
){
if
(
!
window
.
ace
){
var
jsLoaded
=
false
;
var
cssLoaded
=
false
;
this
.
callbackList
.
push
(
callback
);
if
(
!
this
.
isLoadding
)
{
this
.
isLoadding
=
true
;
o2
.
load
(
"
ace
"
,
{
"
sequence
"
:
true
},
function
(){
//COMMON.AjaxModule.loadDom("ace-tools", function(){
if
(
callback
)
callback
();
//}.bind(this))
this
.
isLoadding
=
false
;
while
(
this
.
callbackList
.
length
){
this
.
callbackList
.
shift
()();
}
}.
bind
(
this
));
}
}
else
{
if
(
callback
)
callback
();
}
...
...
o2web/source/o2_core/o2/widget/codemirror.js
浏览文件 @
1da88ff4
...
...
@@ -44,7 +44,3 @@ o2.widget.codemirror = {
}
};
\ No newline at end of file
o2web/source/o2_core/o2/widget/monaco.js
浏览文件 @
1da88ff4
o2
.
widget
=
o2
.
widget
||
{};
o2
.
widget
.
monaco
=
{
//"ace": COMMON.contentPath+"/res/framework/ace/src-min/ace.js",
//"tools": COMMON.contentPath+"/res/framework/ace/src-min/ext-language_tools.js",
"
callbackList
"
:
[],
"
load
"
:
function
(
callback
){
if
(
!
window
.
monaco
){
this
.
callbackList
.
push
(
callback
);
if
(
!
this
.
isLoadding
){
this
.
isLoadding
=
true
;
o2
.
load
(
"
monaco
"
,
{
"
sequence
"
:
true
},
function
(){
require
.
config
({
paths
:
{
"
vs
"
:
"
/o2_lib/vs
"
}});
require
([
"
vs/editor/editor.main
"
],
function
()
{
if
(
callback
)
callback
();
// var editor = monaco.editor.create(document.getElementById('container'), {
// value: [
// 'function x() {',
// '\tconsole.log("Hello world!");',
// '}'
// ].join('\n'),
// language: 'javascript'
// });
});
this
.
isLoadding
=
false
;
while
(
this
.
callbackList
.
length
){
this
.
callbackList
.
shift
()();
}
//if (callback) callback();
}.
bind
(
this
));
}.
bind
(
this
));
}
}
else
{
if
(
callback
)
callback
();
}
...
...
o2web/source/o2_lib/vs/loader.js
浏览文件 @
1da88ff4
此差异已折叠。
点击以展开。
o2web/source/x_component_cms_ScriptDesigner/$Main/default/toolbars.html
浏览文件 @
1da88ff4
...
...
@@ -63,6 +63,15 @@
<option
value=
"vibrant_ink"
>
vibrant_ink
</option>
<option
value=
"xcode"
>
xcode
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
样式:
<select
MWFnodetype=
"monaco-theme"
>
<option
value=
"vs"
>
Visual Studio
</option>
<option
value=
"vs-dark"
>
Visual Studio Dark
</option>
<option
value=
"hc-black"
>
High Contrast Dark
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
脚本编辑器:
<select
MWFnodetype=
"editor"
>
<option
selected
value=
"ace"
>
ace
</option>
<option
value=
"monaco"
>
monaco
</option>
</select></div>
</div>
\ No newline at end of file
o2web/source/x_component_cms_ScriptDesigner/Main.js
浏览文件 @
1da88ff4
...
...
@@ -366,17 +366,57 @@ MWF.xApplication.cms.ScriptDesigner.Main = new Class({
_self
.
changeFontSize
(
this
);
});
this
.
editorSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='editor']
"
);
this
.
editorSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditor
(
this
);
});
this
.
monacoStyleSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='monaco-theme']
"
);
this
.
monacoStyleSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditorStyle
(
this
);
});
if
(
callback
)
callback
();
}.
bind
(
this
));
}.
bind
(
this
));
},
changeEditor
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
MWF
.
editorData
.
javascriptEditor
[
"
editor
"
]
=
value
;
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
changeEditor
(
value
);
}.
bind
(
this
));
if
(
value
==
"
ace
"
){
this
.
monacoStyleSelectNode
.
hide
();
this
.
styleSelectNode
.
show
();
}
else
{
this
.
monacoStyleSelectNode
.
show
();
this
.
styleSelectNode
.
hide
();
}
},
changeFontSize
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
//var editorData = null;
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.invoke.editor.editorData;
var
editor
=
page
.
script
.
editor
.
editor
;
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
setFontSize
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
...
...
@@ -384,6 +424,7 @@ MWF.xApplication.cms.ScriptDesigner.Main = new Class({
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
...
...
@@ -397,26 +438,31 @@ MWF.xApplication.cms.ScriptDesigner.Main = new Class({
changeEditorStyle
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
var
editorData
=
null
;
//
var editorData = null;
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
if
(
!
editorData
)
editorData
=
page
.
script
.
editor
.
editorData
;
var
editor
=
page
.
script
.
editor
.
editor
;
if
(
editor
)
editor
.
setTheme
(
"
ace/theme/
"
+
value
);
//
if (!editorData) editorData = page.script.editor.editorData;
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
setTheme
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
//editorData.javascriptEditor.theme = value;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
editorData
.
javascriptEditor
.
theme
=
value
;
MWF
.
UD
.
putData
(
"
editor
"
,
editorData
);
if
(
MWF
.
editorData
.
javascriptEditor
.
editor
===
"
monaco
"
){
MWF
.
editorData
.
javascriptEditor
.
monaco_theme
=
value
;
}
else
{
MWF
.
editorData
.
javascriptEditor
.
theme
=
value
;
}
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
},
getFormToolbarHTML
:
function
(
callback
){
var
toolbarUrl
=
this
.
path
+
this
.
options
.
style
+
"
/toolbars.html
"
;
...
...
o2web/source/x_component_cms_ScriptDesigner/Script.js
浏览文件 @
1da88ff4
...
...
@@ -159,6 +159,28 @@ MWF.xApplication.cms.ScriptDesigner.Script = new Class({
}
}
}
if
(
this
.
designer
.
editorSelectNode
)
{
var
options
=
this
.
designer
.
editorSelectNode
.
options
;
for
(
var
i
=
0
;
i
<
options
.
length
;
i
++
)
{
var
option
=
options
[
i
];
if
(
option
.
value
==
this
.
editor
.
options
.
type
)
{
option
.
set
(
"
selected
"
,
true
);
break
;
}
}
}
if
(
this
.
designer
.
styleSelectNode
&&
this
.
designer
.
monacoStyleSelectNode
){
if
(
this
.
editor
.
options
.
type
==
"
ace
"
){
this
.
designer
.
monacoStyleSelectNode
.
hide
();
this
.
designer
.
styleSelectNode
.
show
();
}
else
{
this
.
designer
.
monacoStyleSelectNode
.
show
();
this
.
designer
.
styleSelectNode
.
hide
();
}
}
}.
bind
(
this
));
if
(
this
.
options
.
showTab
)
this
.
page
.
showTabIm
();
...
...
o2web/source/x_component_portal_ScriptDesigner/$Main/default/toolbars.html
浏览文件 @
1da88ff4
...
...
@@ -25,6 +25,15 @@
<option
value=
"16px"
>
16px
</option>
<option
value=
"17px"
>
17px
</option>
<option
value=
"18px"
>
18px
</option>
<option
value=
"20px"
>
20px
</option>
<option
value=
"22px"
>
22px
</option>
<option
value=
"24px"
>
24px
</option>
<option
value=
"26px"
>
26px
</option>
<option
value=
"28px"
>
28px
</option>
<option
value=
"30px"
>
30px
</option>
<option
value=
"32px"
>
32px
</option>
<option
value=
"34px"
>
34px
</option>
<option
value=
"36px"
>
36px
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
样式:
<select
MWFnodetype=
"theme"
>
...
...
@@ -63,6 +72,17 @@
<option
value=
"vibrant_ink"
>
vibrant_ink
</option>
<option
value=
"xcode"
>
xcode
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
样式:
<select
MWFnodetype=
"monaco-theme"
>
<option
value=
"vs"
>
Visual Studio
</option>
<option
value=
"vs-dark"
>
Visual Studio Dark
</option>
<option
value=
"hc-black"
>
High Contrast Dark
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
脚本编辑器:
<select
MWFnodetype=
"editor"
>
<option
selected
value=
"ace"
>
ace
</option>
<option
value=
"monaco"
>
monaco
</option>
</select></div>
</div>
\ No newline at end of file
o2web/source/x_component_portal_ScriptDesigner/Main.js
浏览文件 @
1da88ff4
...
...
@@ -358,17 +358,57 @@ MWF.xApplication.portal.ScriptDesigner.Main = new Class({
_self
.
changeFontSize
(
this
);
});
this
.
editorSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='editor']
"
);
this
.
editorSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditor
(
this
);
});
this
.
monacoStyleSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='monaco-theme']
"
);
this
.
monacoStyleSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditorStyle
(
this
);
});
if
(
callback
)
callback
();
}.
bind
(
this
));
}.
bind
(
this
));
},
changeEditor
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
MWF
.
editorData
.
javascriptEditor
[
"
editor
"
]
=
value
;
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
changeEditor
(
value
);
}.
bind
(
this
));
if
(
value
==
"
ace
"
){
this
.
monacoStyleSelectNode
.
hide
();
this
.
styleSelectNode
.
show
();
}
else
{
this
.
monacoStyleSelectNode
.
show
();
this
.
styleSelectNode
.
hide
();
}
},
changeFontSize
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
//var editorData = null;
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.invoke.editor.editorData;
var
editor
=
page
.
script
.
editor
.
editor
;
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
setFontSize
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
...
...
@@ -376,6 +416,7 @@ MWF.xApplication.portal.ScriptDesigner.Main = new Class({
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
...
...
@@ -392,23 +433,28 @@ MWF.xApplication.portal.ScriptDesigner.Main = new Class({
//var editorData = null;
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.script.editor.editorData;
var
editor
=
page
.
script
.
editor
.
editor
;
if
(
editor
)
editor
.
setTheme
(
"
ace/theme/
"
+
value
);
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
setTheme
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
//editorData.javascriptEditor.theme = value;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
if
(
MWF
.
editorData
.
javascriptEditor
.
editor
===
"
monaco
"
){
MWF
.
editorData
.
javascriptEditor
.
monaco_theme
=
value
;
}
else
{
MWF
.
editorData
.
javascriptEditor
.
theme
=
value
;
}
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
},
getFormToolbarHTML
:
function
(
callback
){
var
toolbarUrl
=
this
.
path
+
this
.
options
.
style
+
"
/toolbars.html
"
;
...
...
o2web/source/x_component_portal_ScriptDesigner/Script.js
浏览文件 @
1da88ff4
...
...
@@ -141,7 +141,7 @@ MWF.xApplication.portal.ScriptDesigner.Script = new Class({
}
}
var
options
=
this
.
designer
.
fontsizeSelectNode
.
options
;
options
=
this
.
designer
.
fontsizeSelectNode
.
options
;
for
(
var
i
=
0
;
i
<
options
.
length
;
i
++
){
var
option
=
options
[
i
];
if
(
option
.
value
==
this
.
editor
.
fontSize
){
...
...
@@ -149,6 +149,22 @@ MWF.xApplication.portal.ScriptDesigner.Script = new Class({
break
;
}
}
options
=
this
.
designer
.
editorSelectNode
.
options
;
for
(
var
i
=
0
;
i
<
options
.
length
;
i
++
){
var
option
=
options
[
i
];
if
(
option
.
value
==
this
.
editor
.
options
.
type
){
option
.
set
(
"
selected
"
,
true
);
break
;
}
}
if
(
this
.
editor
.
options
.
type
==
"
ace
"
){
this
.
designer
.
monacoStyleSelectNode
.
hide
();
this
.
designer
.
styleSelectNode
.
show
();
}
else
{
this
.
designer
.
monacoStyleSelectNode
.
show
();
this
.
designer
.
styleSelectNode
.
hide
();
}
}.
bind
(
this
));
if
(
this
.
options
.
showTab
)
this
.
page
.
showTabIm
();
...
...
o2web/source/x_component_process_ScriptDesigner/$Main/default/toolbars.html
浏览文件 @
1da88ff4
...
...
@@ -63,6 +63,15 @@
<option
value=
"vibrant_ink"
>
vibrant_ink
</option>
<option
value=
"xcode"
>
xcode
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
样式:
<select
MWFnodetype=
"monaco-theme"
>
<option
value=
"vs"
>
Visual Studio
</option>
<option
value=
"vs-dark"
>
Visual Studio Dark
</option>
<option
value=
"hc-black"
>
High Contrast Dark
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
脚本编辑器:
<select
MWFnodetype=
"editor"
>
<option
selected
value=
"ace"
>
ace
</option>
<option
value=
"monaco"
>
monaco
</option>
</select></div>
</div>
\ No newline at end of file
o2web/source/x_component_process_ScriptDesigner/Main.js
浏览文件 @
1da88ff4
...
...
@@ -370,17 +370,57 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
_self
.
changeFontSize
(
this
);
});
this
.
editorSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='editor']
"
);
this
.
editorSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditor
(
this
);
});
this
.
monacoStyleSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='monaco-theme']
"
);
this
.
monacoStyleSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditorStyle
(
this
);
});
if
(
callback
)
callback
();
}.
bind
(
this
));
}.
bind
(
this
));
},
changeEditor
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
MWF
.
editorData
.
javascriptEditor
[
"
editor
"
]
=
value
;
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
changeEditor
(
value
);
}.
bind
(
this
));
if
(
value
==
"
ace
"
){
this
.
monacoStyleSelectNode
.
hide
();
this
.
styleSelectNode
.
show
();
}
else
{
this
.
monacoStyleSelectNode
.
show
();
this
.
styleSelectNode
.
hide
();
}
},
changeFontSize
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
//var editorData = null;
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.invoke.editor.editorData;
var
editor
=
page
.
script
.
editor
.
editor
;
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
setFontSize
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
...
...
@@ -388,6 +428,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
...
...
@@ -404,23 +445,28 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
//var editorData = null;
this
.
scriptTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.script.editor.editorData;
var
editor
=
page
.
script
.
editor
.
editor
;
if
(
editor
)
editor
.
setTheme
(
"
ace/theme/
"
+
value
);
var
editor
=
page
.
script
.
editor
;
if
(
editor
)
editor
.
setTheme
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
//editorData.javascriptEditor.theme = value;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
if
(
MWF
.
editorData
.
javascriptEditor
.
editor
===
"
monaco
"
){
MWF
.
editorData
.
javascriptEditor
.
monaco_theme
=
value
;
}
else
{
MWF
.
editorData
.
javascriptEditor
.
theme
=
value
;
}
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
},
getFormToolbarHTML
:
function
(
callback
){
var
toolbarUrl
=
this
.
path
+
this
.
options
.
style
+
"
/toolbars.html
"
;
...
...
o2web/source/x_component_process_ScriptDesigner/Script.js
浏览文件 @
1da88ff4
...
...
@@ -159,6 +159,23 @@ MWF.xApplication.process.ScriptDesigner.Script = new Class({
break
;
}
}
options
=
this
.
designer
.
editorSelectNode
.
options
;
for
(
var
i
=
0
;
i
<
options
.
length
;
i
++
){
var
option
=
options
[
i
];
if
(
option
.
value
==
this
.
editor
.
options
.
type
){
option
.
set
(
"
selected
"
,
true
);
break
;
}
}
if
(
this
.
editor
.
options
.
type
==
"
ace
"
){
this
.
designer
.
monacoStyleSelectNode
.
hide
();
this
.
designer
.
styleSelectNode
.
show
();
}
else
{
this
.
designer
.
monacoStyleSelectNode
.
show
();
this
.
designer
.
styleSelectNode
.
hide
();
}
}.
bind
(
this
));
},
...
...
o2web/source/x_component_query_StatementDesigner/Statement.js
浏览文件 @
1da88ff4
...
...
@@ -6,6 +6,7 @@ MWF.APPDSMD = MWF.xApplication.query.StatementDesigner;
MWF
.
xDesktop
.
requireApp
(
"
query.StatementDesigner
"
,
"
lp.
"
+
MWF
.
language
,
null
,
false
);
//MWF.xDesktop.requireApp("query.StatementDesigner", "Property", null, false);
MWF
.
xDesktop
.
requireApp
(
"
query.TableDesigner
"
,
"
Property
"
,
null
,
false
);
o2
.
require
(
"
o2.widget.JavascriptEditor
"
,
null
,
false
);
MWF
.
xApplication
.
query
.
StatementDesigner
.
Statement
=
new
Class
({
Extends
:
MWF
.
widget
.
Common
,
...
...
@@ -156,10 +157,11 @@ MWF.xApplication.query.StatementDesigner.Statement = new Class({
},
loadStatementScriptEditor
:
function
(){
if
(
!
this
.
scriptEditor
){
debugger
;
o2
.
require
(
"
o2.widget.ScriptArea
"
,
function
(){
this
.
scriptEditor
=
new
o2
.
widget
.
ScriptArea
(
this
.
scriptArea
,
{
"
isbind
"
:
false
,
"
maxObj
"
:
this
.
designer
.
content
,
"
maxObj
"
:
this
.
designer
.
designNode
,
"
title
"
:
this
.
designer
.
lp
.
scriptTitle
,
"
onChange
"
:
function
(){
this
.
json
.
scriptText
=
this
.
scriptEditor
.
toJson
().
code
;
...
...
@@ -209,6 +211,7 @@ MWF.xApplication.query.StatementDesigner.Statement = new Class({
this
.
json
.
data
=
this
.
editor
.
editor
.
getValue
();
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(){
debugger
;
this
.
data
.
data
=
this
.
editor
.
getValue
();
this
.
checkJpqlType
();
}.
bind
(
this
));
...
...
o2web/source/x_component_service_AgentDesigner/$Main/default/toolbars.html
浏览文件 @
1da88ff4
...
...
@@ -64,5 +64,14 @@
<option
value=
"xcode"
>
xcode
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
样式:
<select
MWFnodetype=
"monaco-theme"
>
<option
value=
"vs"
>
Visual Studio
</option>
<option
value=
"vs-dark"
>
Visual Studio Dark
</option>
<option
value=
"hc-black"
>
High Contrast Dark
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
脚本编辑器:
<select
MWFnodetype=
"editor"
>
<option
selected
value=
"ace"
>
ace
</option>
<option
value=
"monaco"
>
monaco
</option>
</select></div>
</div>
\ No newline at end of file
o2web/source/x_component_service_AgentDesigner/Agent.js
浏览文件 @
1da88ff4
...
...
@@ -96,7 +96,7 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
areaNode
);
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
areaNode
,
{
"
runtime
"
:
"
service
"
}
);
this
.
editor
.
load
(
function
(){
if
(
this
.
data
.
text
){
this
.
editor
.
editor
.
setValue
(
this
.
data
.
text
);
...
...
@@ -165,6 +165,23 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
break
;
}
}
options
=
this
.
designer
.
editorSelectNode
.
options
;
for
(
var
i
=
0
;
i
<
options
.
length
;
i
++
){
var
option
=
options
[
i
];
if
(
option
.
value
==
this
.
editor
.
options
.
type
){
option
.
set
(
"
selected
"
,
true
);
break
;
}
}
if
(
this
.
editor
.
options
.
type
==
"
ace
"
){
this
.
designer
.
monacoStyleSelectNode
.
hide
();
this
.
designer
.
styleSelectNode
.
show
();
}
else
{
this
.
designer
.
monacoStyleSelectNode
.
show
();
this
.
designer
.
styleSelectNode
.
hide
();
}
}.
bind
(
this
));
if
(
this
.
options
.
showTab
)
this
.
page
.
showTabIm
();
...
...
o2web/source/x_component_service_AgentDesigner/Main.js
浏览文件 @
1da88ff4
...
...
@@ -350,17 +350,57 @@ MWF.xApplication.service.AgentDesigner.Main = new Class({
_self
.
changeFontSize
(
this
);
});
this
.
editorSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='editor']
"
);
this
.
editorSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditor
(
this
);
});
this
.
monacoStyleSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='monaco-theme']
"
);
this
.
monacoStyleSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditorStyle
(
this
);
});
if
(
callback
)
callback
();
}.
bind
(
this
));
}.
bind
(
this
));
},
changeEditor
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
MWF
.
editorData
.
javascriptEditor
[
"
editor
"
]
=
value
;
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
this
.
agentTab
.
pages
.
each
(
function
(
page
){
var
editor
=
page
.
agent
.
editor
;
if
(
editor
)
editor
.
changeEditor
(
value
);
}.
bind
(
this
));
if
(
value
==
"
ace
"
){
this
.
monacoStyleSelectNode
.
hide
();
this
.
styleSelectNode
.
show
();
}
else
{
this
.
monacoStyleSelectNode
.
show
();
this
.
styleSelectNode
.
hide
();
}
},
changeFontSize
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
//var editorData = null;
this
.
agentTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.invoke.editor.editorData;
var
editor
=
page
.
agent
.
editor
.
editor
;
var
editor
=
page
.
agent
.
editor
;
if
(
editor
)
editor
.
setFontSize
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
...
...
@@ -368,6 +408,7 @@ MWF.xApplication.service.AgentDesigner.Main = new Class({
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
...
...
@@ -383,24 +424,29 @@ MWF.xApplication.service.AgentDesigner.Main = new Class({
var
value
=
node
.
options
[
idx
].
value
;
//var editorData = null;
this
.
agentTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.
agen
t.editor.editorData;
var
editor
=
page
.
agent
.
editor
.
editor
;
if
(
editor
)
editor
.
setTheme
(
"
ace/theme/
"
+
value
);
//if (!editorData) editorData = page.
scrip
t.editor.editorData;
var
editor
=
page
.
agent
.
editor
;
if
(
editor
)
editor
.
setTheme
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
//editorData.java
agen
tEditor.theme = value;
//editorData.java
scrip
tEditor.theme = value;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
if
(
MWF
.
editorData
.
javascriptEditor
.
editor
===
"
monaco
"
){
MWF
.
editorData
.
javascriptEditor
.
monaco_theme
=
value
;
}
else
{
MWF
.
editorData
.
javascriptEditor
.
theme
=
value
;
}
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
},
getFormToolbarHTML
:
function
(
callback
){
var
toolbarUrl
=
this
.
path
+
this
.
options
.
style
+
"
/toolbars.html
"
;
...
...
o2web/source/x_component_service_InvokeDesigner/$Main/default/toolbars.html
浏览文件 @
1da88ff4
...
...
@@ -62,4 +62,14 @@
<option
value=
"xcode"
>
xcode
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
样式:
<select
MWFnodetype=
"monaco-theme"
>
<option
value=
"vs"
>
Visual Studio
</option>
<option
value=
"vs-dark"
>
Visual Studio Dark
</option>
<option
value=
"hc-black"
>
High Contrast Dark
</option>
</select></div>
<div
style=
"float: right; margin-right: 20px"
>
脚本编辑器:
<select
MWFnodetype=
"editor"
>
<option
selected
value=
"ace"
>
ace
</option>
<option
value=
"monaco"
>
monaco
</option>
</select></div>
</div>
\ No newline at end of file
o2web/source/x_component_service_InvokeDesigner/Invoke.js
浏览文件 @
1da88ff4
...
...
@@ -95,7 +95,7 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
areaNode
);
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
areaNode
,
{
"
runtime
"
:
"
service
"
}
);
this
.
editor
.
load
(
function
(){
if
(
this
.
data
.
text
){
this
.
editor
.
editor
.
setValue
(
this
.
data
.
text
);
...
...
@@ -172,6 +172,22 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
break
;
}
}
options
=
this
.
designer
.
editorSelectNode
.
options
;
for
(
var
i
=
0
;
i
<
options
.
length
;
i
++
){
var
option
=
options
[
i
];
if
(
option
.
value
==
this
.
editor
.
options
.
type
){
option
.
set
(
"
selected
"
,
true
);
break
;
}
}
if
(
this
.
editor
.
options
.
type
==
"
ace
"
){
this
.
designer
.
monacoStyleSelectNode
.
hide
();
this
.
designer
.
styleSelectNode
.
show
();
}
else
{
this
.
designer
.
monacoStyleSelectNode
.
show
();
this
.
designer
.
styleSelectNode
.
hide
();
}
}.
bind
(
this
));
if
(
this
.
options
.
showTab
)
this
.
page
.
showTabIm
();
...
...
o2web/source/x_component_service_InvokeDesigner/Main.js
浏览文件 @
1da88ff4
...
...
@@ -350,17 +350,58 @@ MWF.xApplication.service.InvokeDesigner.Main = new Class({
_self
.
changeFontSize
(
this
);
});
this
.
editorSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='editor']
"
);
this
.
editorSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditor
(
this
);
});
this
.
monacoStyleSelectNode
=
toolbarNode
.
getElement
(
"
select[MWFnodetype='monaco-theme']
"
);
this
.
monacoStyleSelectNode
.
addEvent
(
"
change
"
,
function
(){
_self
.
changeEditorStyle
(
this
);
});
if
(
callback
)
callback
();
}.
bind
(
this
));
}.
bind
(
this
));
},
changeEditor
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
MWF
.
editorData
.
javascriptEditor
[
"
editor
"
]
=
value
;
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
this
.
invokeTab
.
pages
.
each
(
function
(
page
){
var
editor
=
page
.
invoke
.
editor
;
if
(
editor
)
editor
.
changeEditor
(
value
);
}.
bind
(
this
));
if
(
value
==
"
ace
"
){
this
.
monacoStyleSelectNode
.
hide
();
this
.
styleSelectNode
.
show
();
}
else
{
this
.
monacoStyleSelectNode
.
show
();
this
.
styleSelectNode
.
hide
();
}
},
changeFontSize
:
function
(
node
){
var
idx
=
node
.
selectedIndex
;
var
value
=
node
.
options
[
idx
].
value
;
//var editorData = null;
this
.
invokeTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.invoke.editor.editorData;
var
editor
=
page
.
invoke
.
editor
.
editor
;
var
editor
=
page
.
invoke
.
editor
;
if
(
editor
)
editor
.
setFontSize
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
...
...
@@ -368,6 +409,7 @@ MWF.xApplication.service.InvokeDesigner.Main = new Class({
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
...
...
@@ -383,24 +425,29 @@ MWF.xApplication.service.InvokeDesigner.Main = new Class({
var
value
=
node
.
options
[
idx
].
value
;
//var editorData = null;
this
.
invokeTab
.
pages
.
each
(
function
(
page
){
//if (!editorData) editorData = page.
invoke
.editor.editorData;
var
editor
=
page
.
invoke
.
editor
.
editor
;
if
(
editor
)
editor
.
setTheme
(
"
ace/theme/
"
+
value
);
//if (!editorData) editorData = page.
script
.editor.editorData;
var
editor
=
page
.
invoke
.
editor
;
if
(
editor
)
editor
.
setTheme
(
value
);
}.
bind
(
this
));
//if (!editorData) editorData = MWF.editorData;
//editorData.java
invoke
Editor.theme = value;
//editorData.java
script
Editor.theme = value;
if
(
!
MWF
.
editorData
){
MWF
.
editorData
=
{
"
javascriptEditor
"
:
{
"
monaco_theme
"
:
"
vs
"
,
"
theme
"
:
"
tomorrow
"
,
"
fontSize
"
:
"
12px
"
}
};
}
if
(
MWF
.
editorData
.
javascriptEditor
.
editor
===
"
monaco
"
){
MWF
.
editorData
.
javascriptEditor
.
monaco_theme
=
value
;
}
else
{
MWF
.
editorData
.
javascriptEditor
.
theme
=
value
;
}
MWF
.
UD
.
putData
(
"
editor
"
,
MWF
.
editorData
);
},
getFormToolbarHTML
:
function
(
callback
){
var
toolbarUrl
=
this
.
path
+
this
.
options
.
style
+
"
/toolbars.html
"
;
...
...
o2web/source/x_desktop/js/initalServiceScriptSubstitute.js
0 → 100644
浏览文件 @
1da88ff4
var
resources
=
{
"
getEntityManagerContainer
"
:
function
(){
return
{};
},
"
getContext
"
:
function
(){
return
{};
},
"
getApplications
"
:
function
(){
return
{};
},
"
getOrganization
"
:
function
(){
return
{
group
:
function
(){
return
{};
},
identity
:
function
(){
return
{};
},
person
:
function
(){
return
{};
},
personAttribute
:
function
(){
return
{};
},
role
:
function
(){
return
{};
},
unit
:
function
(){
return
{};
},
unitAttribute
:
function
(){
return
{};
},
unitDuty
:
function
(){
return
{};
}
};
},
"
getWebservicesClient
"
:
function
(){
return
{};
}
};
var
effectivePerson
=
this
.
effectivePerson
=
{};
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录