|
|
|
@ -1,8 +1,13 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<#-- import macro -->
|
|
|
|
|
<#import "../common/common.macro.ftl" as netCommon>
|
|
|
|
|
|
|
|
|
|
<#-- commonStyle -->
|
|
|
|
|
<@netCommon.commonStyle />
|
|
|
|
|
|
|
|
|
|
<#-- biz start(1/5 style) -->
|
|
|
|
|
<link rel="stylesheet" href="${request.contextPath}/static/plugins/codemirror/lib/codemirror.css">
|
|
|
|
|
<link rel="stylesheet" href="${request.contextPath}/static/plugins/codemirror/addon/hint/show-hint.css">
|
|
|
|
|
<title>${I18n.admin_name}</title>
|
|
|
|
@ -16,11 +21,14 @@
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<#-- biz end(1/5 end) -->
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<body class="skin-blue fixed layout-top-nav">
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
|
|
|
|
|
<!-- header -->
|
|
|
|
|
<#-- biz start(2/5 header) -->
|
|
|
|
|
<header class="main-header">
|
|
|
|
|
<nav class="navbar navbar-static-top">
|
|
|
|
|
<div class="container">
|
|
|
|
@ -85,12 +93,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
<#-- biz end(2/5 header) -->
|
|
|
|
|
|
|
|
|
|
<div class="content-wrapper" id="ideWindow" ></div>
|
|
|
|
|
<!-- left -->
|
|
|
|
|
|
|
|
|
|
<!-- footer -->
|
|
|
|
|
<#--<@netCommon.commonFooter />-->
|
|
|
|
|
</div>
|
|
|
|
|
<!-- right start -->
|
|
|
|
|
<div class="content-wrapper" id="ideWindow" ></div>
|
|
|
|
|
<#-- biz start(3/5 content-header) -->
|
|
|
|
|
<#-- biz start(4/5 content-main) -->
|
|
|
|
|
|
|
|
|
|
<!-- 保存.模态框 -->
|
|
|
|
|
<div class="modal fade" id="saveModal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
@ -118,35 +128,42 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<@netCommon.commonScript />
|
|
|
|
|
<!-- right end -->
|
|
|
|
|
|
|
|
|
|
<!-- footer -->
|
|
|
|
|
<#--<@netCommon.commonFooter />-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/clike/clike.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "text/x-java" />
|
|
|
|
|
|
|
|
|
|
<#if jobInfo.glueType == "GLUE_GROOVY" >
|
|
|
|
|
<@netCommon.commonScript />
|
|
|
|
|
|
|
|
|
|
<#-- biz start(5/5 script) -->
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/clike/clike.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "text/x-java" />
|
|
|
|
|
|
|
|
|
|
<#if jobInfo.glueType == "GLUE_GROOVY" >
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/clike/clike.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "text/x-java" />
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_SHELL" >
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_SHELL" >
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/shell/shell.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "text/x-sh" />
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_PYTHON" >
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_PYTHON" >
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/python/python.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "text/x-python" />
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_PYTHON2" >
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_PYTHON2" >
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/python/python.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "text/x-python" />
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_PHP" >
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_PHP" >
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/php/php.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "text/x-php" />
|
|
|
|
|
<#assign glueTypeModeSrc02 = "${request.contextPath}/static/plugins/codemirror/mode/clike/clike.js" />
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_NODEJS" >
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_NODEJS" >
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/javascript/javascript.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "text/javascript" />
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_POWERSHELL" >
|
|
|
|
|
<#elseif jobInfo.glueType == "GLUE_POWERSHELL" >
|
|
|
|
|
<#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/powershell/powershell.js" />
|
|
|
|
|
<#assign glueTypeIdeMode = "powershell" />
|
|
|
|
|
</#if>
|
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script src="${request.contextPath}/static/plugins/codemirror/lib/codemirror.js"></script>
|
|
|
|
@ -163,5 +180,7 @@ var ideMode = '${glueTypeIdeMode}';
|
|
|
|
|
</script>
|
|
|
|
|
<script src="${request.contextPath}/static/js/jobcode.index.1.js"></script>
|
|
|
|
|
|
|
|
|
|
<#-- biz end(5/5 script) -->
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|