T157 Message info loaded in list

This commit is contained in:
2021-01-29 14:03:16 +01:00
parent 4d84c6094a
commit f6627a4f32
3 changed files with 23 additions and 6 deletions

3
.idea/workspace.xml generated
View File

@@ -21,6 +21,7 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="458cde88-df3d-44bc-9d57-a33823e2f1a6" name="Default Changelist" comment=""> <list default="true" id="458cde88-df3d-44bc-9d57-a33823e2f1a6" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/static/css/main.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/static/css/main.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/static/js/datatransfer.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/static/js/datatransfer.js" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/main/resources/static/js/datatransfer.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/static/js/datatransfer.js" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@@ -305,7 +306,7 @@
<workItem from="1611659140629" duration="2109000" /> <workItem from="1611659140629" duration="2109000" />
<workItem from="1611757446709" duration="6743000" /> <workItem from="1611757446709" duration="6743000" />
<workItem from="1611826821050" duration="10679000" /> <workItem from="1611826821050" duration="10679000" />
<workItem from="1611915874625" duration="3918000" /> <workItem from="1611915874625" duration="6344000" />
</task> </task>
<task id="LOCAL-00077" summary="testing jenkins docker"> <task id="LOCAL-00077" summary="testing jenkins docker">
<created>1601453886631</created> <created>1601453886631</created>

View File

@@ -155,13 +155,15 @@
.menuItem { .menuItem {
width: 174px; width: 174px;
padding: 13px; padding: 13px;
font-size: 24px; font-size: 12px;
text-align: center; text-align: left;
margin-bottom: 5px; margin-bottom: 5px;
border: 1px solid lightgray; border: 1px solid lightgray;
cursor: pointer; cursor: pointer;
} }
.menuFactory { .menuFactory {
color: lightgray; color: lightgray;
} }
@@ -175,8 +177,8 @@
.menuItemSelected { .menuItemSelected {
width: 174px; width: 174px;
padding: 13px; padding: 13px;
font-size: 24px; font-size: 12px;
text-align: center; text-align: left;
margin-bottom: 5px; margin-bottom: 5px;
border: 1px solid lightgray; border: 1px solid lightgray;
background: gray; background: gray;

View File

@@ -6,7 +6,7 @@ function getData(uuid){
, json[0].messageBody , json[0].messageBody
, json[0].httpStatus); , json[0].httpStatus);
fillHeaderTable(json[0].httpHeaders); fillHeaderTable(json[0].httpHeaders);
fillMessageList(json);
}); });
} }
@@ -55,4 +55,18 @@ function generateHeaderTable(headers){
return innerHTML; return innerHTML;
} }
function fillMessageList(json){
var innerHTML = generateMessageTileHtml(json[0].mockedResponseId, json[0].httpStatus, json[0].mediaType);
$("#listItems").append(innerHTML);
}
function generateMessageTileHtml(id, httpStatus, mediaType){
var innerHTML = '<div class="menuItem">' +
'<table><tr><td>Id: '+ id +'</td></tr>' +
'<tr><td>Content-type: '+mediaType+'</td></tr>' +
'<tr><td>Http-status: '+ httpStatus +'</td></tr>' +
'</table></div>';
return innerHTML;
}
$(document).ready(getData()); $(document).ready(getData());