Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosn committed Dec 15, 2015
2 parents 3224391 + 4f51c69 commit 340b570
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ target
build
.idea
*.iml
.DS_Store
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# RAP API Management System
# RAP API Management System

* THX开源工具集: [http://thx.github.io/](http://thx.github.io/)
* 作者微博:[@Bosn](http://weibo.com/bosn)
Expand Down
Binary file removed WebContent/.DS_Store
Binary file not shown.
Binary file removed WebContent/WEB-INF/.DS_Store
Binary file not shown.
9 changes: 5 additions & 4 deletions WebContent/stat/js/core/rap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2649,7 +2649,8 @@ function deepCopy(o) {
var action = p.getAction(actionId);
var postData = 'actionData=' + encodeURIComponent(JSON.stringify(action));
var me = this;
b.g('mockDataPreviewFloater-container').innerHTML = 'loading...';
$('#mockDataPreviewFloater-container').val('loading...');
$('#mockRulePreviewFloater-container').val('loading...');
$('.glyphicon-question-sign').tooltip();
ecFloater.show("mockDataPreviewFloater");
b.ajax.post(URL.queryMockData, postData, function(xhr, response) {
Expand All @@ -2658,8 +2659,8 @@ function deepCopy(o) {
var mockRuleObj = eval('(' + response + ')');
var mockDataObj = Mock.mock(mockRuleObj);
me._mockRuleObj = mockRuleObj;
b.g('mockRulePreviewFloater-container').innerHTML = JSON.stringify(mockRuleObj, null, 4);
b.g('mockDataPreviewFloater-container').innerHTML = JSON.stringify(mockDataObj, null, 4);
$('#mockRulePreviewFloater-container').val(JSON.stringify(mockRuleObj, null, 4));
$('#mockDataPreviewFloater-container').val(JSON.stringify(mockDataObj, null, 4));
showMessage(CONST.LOAD, ELEMENT_ID.WORKSPACE_MESSAGE, MESSAGE.SAVED);
} catch(e) {
showMessage(CONST.ERROR, ELEMENT_ID.WORKSPACE_MESSAGE, MESSAGE.FATAL_ERROR);
Expand All @@ -2668,7 +2669,7 @@ function deepCopy(o) {
};

ws.refreshMockPreviewData = function() {
b.g('mockDataPreviewFloater-container').innerHTML = JSON.stringify(Mock.mock(this._mockRuleObj), null, 4);
$('#mockDataPreviewFloater-container').val(JSON.stringify(Mock.mock(this._mockRuleObj), null, 4));
};

ws.copyToClipboard = function(eleId) {
Expand Down
2 changes: 1 addition & 1 deletion WebContent/tester/pageTester.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ YUI().use('handlebars', 'node', 'event', 'jsonp', 'jsonp-url', 'json-stringify',
success : function() {
var args = [];
try {
args = [JSON.parse(arguments[1].responseText)];
args = [eval('(' + arguments[1].responseText + ')')];
} catch (ex) {
log(color('error occurred!', RED) + color(', detail:' + ex.message, LIGHT_GRAY));
}
Expand Down

0 comments on commit 340b570

Please sign in to comment.