diff --git a/UPDATELOG.md b/UPDATELOG.md
index 2e5066e..8705ae4 100644
--- a/UPDATELOG.md
+++ b/UPDATELOG.md
@@ -1,12 +1,17 @@
======================rap v0.8 更新列表===========================================
- [功能] 增加jQuery/Kissy插件,更好的使用RAP MOCK
- [BUG] 修复JSON导入最外层为数组时失效的问题
- [重构] 修复JSHint提出的N多个rap.js中的编码规范问题
-
+ [功能] 增加jQuery/Kissy插件,更好的使用RAP MOCK 2013-01-14
+ [BUG] 修复JSON导入最外层为数组时失效的问题 2013-01-14
+ [重构] 修复JSHint提出的N多个rap.js中的编码规范问题 2013-01-14
+ [改进] 增加当前action的高亮显示 2013-01-15
+ [插件] RAP MOCK插件增加黑白名单及工作模式配置的功能 2013-01-16
+ [MOCK] 1. 处理多选1预发(data|1:["1","2","3","8"])时,错误增加引好的问题。 2013-01-17
+ 2. 常规RAP MOCK规则忽略掉MockJS语法,例如:{"data|1" : [1,2,3]} => {"data" : 1}
+ 3. 修复createData对参数做过滤时,修改到服务器上的标识符从而导致MockJS标签丢失的问题
+
======================rap v0.7 更新列表===========================================
- [组织]新增对公司、业务线、分组分级的项目组织结构管理。全新设计的界面。 2013-12-16
- [UC]增加公司统一账户登录。这里后续还会增加普通帐号的支持。(外部用户请注释掉web.xml中的SSOFilter及相应的filter-mapping, 然后恢复template.rap.vm中的logout注销按钮即可正常使用。 2013-12-16
- [作者信息]作者新增思竹(wangweaf),感谢新伙伴的加入,让我们的RAP越来越强大!谢谢思竹和李牧的大力支持!
+ [组织]新增对公司、业务线、分组分级的项目组织结构管理。全新设计的界面。 2013-12-16
+ [UC]增加公司统一账户登录。这里后续还会增加普通帐号的支持。(外部用户请注释掉web.xml中的SSOFilter及相应的filter-mapping, 然后恢复template.rap.vm中的logout注销按钮即可正常使用。 2013-12-16
+ [作者信息]作者新增思竹(wangweaf),感谢新伙伴的加入,让我们的RAP越来越强大!谢谢思竹和李牧的大力支持!
[MOCK模块]增加对array, array, array
#bodyNewStart
+ 对于RAP平台的任何问题,欢迎邮件至huoyong.msb@taobao.com
+ RAP是THX平台中的产品,想了解THX更多内容,请访问:http://thx.alibaba-inc.com
+ RAP Github Repo: http://github.com/thx/RAP
Rigel Automation Platform
在开发WEB应用时前后端会约定请求接口,包含请求链接、参数等细节。RAP提供了接口数据的共享平台,功能强大使用方便。同时利用这些数据自动化的生成伪造数据、提供后端开发工具包等,减少重复劳动并提升开发效率。
diff --git a/WebContent/plugins/index.htm b/WebContent/plugins/index.htm
index ae186be..4214350 100644
--- a/WebContent/plugins/index.htm
+++ b/WebContent/plugins/index.htm
@@ -1,40 +1,28 @@
-
-
-
RAP Example
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
RAP Example
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WebContent/plugins/rap.plugin.js b/WebContent/plugins/rap.plugin.js
index 6ed7e49..a4c4773 100644
--- a/WebContent/plugins/rap.plugin.js
+++ b/WebContent/plugins/rap.plugin.js
@@ -23,6 +23,8 @@
var node = document.getElementById('rap');
var blackList = [];
var whiteList = [];
+ //var ROOT = 'rap.alibaba-inc.com';
+ var ROOT = 'etaoux-bj.taobao.ali.com:8080';
/**
* mode value range:
* 0-disabled
@@ -83,7 +85,7 @@
if (url.charAt(0) != '/') {
url = '/' + url;
}
- url = "http://rap.alibaba-inc.com/mockjs/" + projectId + url;
+ url = "http://" + ROOT + "/mockjs/" + projectId + url;
oOptions.url = url;
}
ajax.apply(this, arguments);
@@ -113,7 +115,7 @@
if (url.charAt(0) != '/') {
url = '/' + url;
}
- url = "http://rap.alibaba-inc.com/mockjs/" + projectId + url;
+ url = "http://" + ROOT + "/mockjs/" + projectId + url;
oOptions.url = url;
var oldSuccess = oOptions.success;
oOptions.success = function(data) {
diff --git a/WebContent/stat/css/myWorkspace.css b/WebContent/stat/css/myWorkspace.css
index 4b2b581..aa4d878 100644
--- a/WebContent/stat/css/myWorkspace.css
+++ b/WebContent/stat/css/myWorkspace.css
@@ -187,6 +187,10 @@ body {
float: left;
}
+.tree-m .cur a {
+ color: #CC0000;
+}
+
.seperator {
height: 400px;
left: 250px;
diff --git a/WebContent/stat/js/core/rap.js b/WebContent/stat/js/core/rap.js
index 702c837..7ac905f 100644
--- a/WebContent/stat/js/core/rap.js
+++ b/WebContent/stat/js/core/rap.js
@@ -1288,6 +1288,18 @@ var rap = rap || {};
if (action === null) return;
getDiv(_curModuleId, "a").innerHTML = getAHtml(action);
renderA();
+
+
+ var last = b.g('div-a-tree-node-' + _curActionId);
+ var cur = b.g('div-a-tree-node-' + actionId);
+
+ if (last && b.dom.hasClass(last, 'cur')) {
+ b.dom.removeClass(last, 'cur');
+ }
+ if (cur && !b.dom.hasClass(cur, 'cur')) {
+ b.dom.addClass(cur, 'cur');
+ }
+
_curActionId = actionId;
};
@@ -2936,6 +2948,13 @@ var rap = rap || {};
moduleId = moduleList[i].id;
ecui.init(baidu.g("div-tree-" + moduleId));
}
+
+ var cur = b.g('div-a-tree-node-' + _curActionId);
+
+ if (cur && !b.dom.hasClass(cur, 'cur')) {
+ b.dom.addClass(cur, 'cur');
+ }
+
}
/**
diff --git a/WebContent/tcom/const.inc.vm b/WebContent/tcom/const.inc.vm
index cda9c68..9bccfe5 100644
--- a/WebContent/tcom/const.inc.vm
+++ b/WebContent/tcom/const.inc.vm
@@ -14,7 +14,7 @@
#set($dateFormat = 'yyyy-MM-dd')
## 时间戳
-#set($timeStamp = '201312161659.v0.7')
+#set($timeStamp = '20140115.v0.7')
##----------------------页面请求action地址-------------------------------
## 配置工程的上下文路径
diff --git a/WebContent/workspace/myWorkspace.vm b/WebContent/workspace/myWorkspace.vm
index e0f77cd..4fd938f 100644
--- a/WebContent/workspace/myWorkspace.vm
+++ b/WebContent/workspace/myWorkspace.vm
@@ -3,7 +3,7 @@
-
Project Manage
+
$!utils.escapeInH($workspace.project.name) 接口编辑
#includeRapStatic
diff --git a/src/com/taobao/rigel/rap/mock/service/impl/MockMgrImpl.java b/src/com/taobao/rigel/rap/mock/service/impl/MockMgrImpl.java
index d03a417..5f34256 100644
--- a/src/com/taobao/rigel/rap/mock/service/impl/MockMgrImpl.java
+++ b/src/com/taobao/rigel/rap/mock/service/impl/MockMgrImpl.java
@@ -303,10 +303,10 @@ private void buildMockTemplate(StringBuilder json, Parameter para, int index) {
if (para.getParameterList() == null
|| para.getParameterList().size() == 0) {
- json.append(para.getMockIdentifier() + ":" + mockjsValue(para, index));
+ json.append(para.getMockJSIdentifier() + ":" + mockjsValue(para, index));
} else {
// object and array