hazelcast 추가
This commit is contained in:
@@ -5,6 +5,7 @@ import VariableSnippet from './components/VariableSnippet';
|
||||
import HTTPClientView from './components/HTTPClientView';
|
||||
import TCPClientView from './components/TCPClientView';
|
||||
import ServerManager from './components/ServerManager';
|
||||
import HTTPFlatClientView from './components/HTTPFlatClientView';
|
||||
|
||||
class APITester {
|
||||
|
||||
@@ -398,9 +399,15 @@ class APITester {
|
||||
requestBodyEditor = monaco.editor.create(target.find('.request_body')[0], {
|
||||
value: model.requestBody, language: 'json', automaticLayout: true
|
||||
});
|
||||
}
|
||||
|
||||
if (model.type === 'TCP') {
|
||||
} else if (model.type === 'HTTPFlat') {
|
||||
let httpFlatClientView = new HTTPFlatClientView(me, this.serverManager, apiRequestTabContent, model);
|
||||
httpFlatClientView.init();
|
||||
target = this.openTab(model.id);
|
||||
requestBodyEditor = monaco.editor.create(target.find('.request_body')[0], {
|
||||
value: model.requestBody, language: 'json', automaticLayout: true
|
||||
});
|
||||
httpFlatClientView.requestBodyEditor = requestBodyEditor;
|
||||
} else if (model.type === 'TCP') {
|
||||
const tcpClientView = new TCPClientView(me, this.serverManager, apiRequestTabContent, model);
|
||||
tcpClientView.init();
|
||||
target = this.openTab(model.id);
|
||||
@@ -408,7 +415,6 @@ class APITester {
|
||||
requestBodyEditor = monaco.editor.create(target.find('.request_body')[0], {
|
||||
value: model.requestBody, language: 'text', automaticLayout: true
|
||||
});
|
||||
|
||||
tcpClientView.requestBodyEditor = requestBodyEditor;
|
||||
}
|
||||
|
||||
@@ -832,7 +838,7 @@ class APITester {
|
||||
};
|
||||
newApi.collectionName = collection.name;
|
||||
|
||||
if (newApiType === 'TCP') {
|
||||
if (newApiType === 'TCP' || newApiType === 'HTTPFlat') {
|
||||
newApi.layout = { layoutItems : []};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user