Started to removing changing UUID and many messages system
This commit is contained in:
		| @@ -62,10 +62,6 @@ body { | ||||
|     width: 90%; | ||||
| } | ||||
|  | ||||
| .tool.extended .tool-context { | ||||
|     width: 75%; | ||||
| } | ||||
|  | ||||
| .tool.extended .tool-extention { | ||||
|     width: 20%; | ||||
|     padding-top: 2%; | ||||
|   | ||||
| @@ -217,19 +217,19 @@ function initializeMock(index){ | ||||
|         clearMock(); | ||||
|         fillStaticFields(json[index].clientUUID | ||||
|             , json[index].mockedResponseId | ||||
|             , json[index].mediaType | ||||
|             , json[index].contentType | ||||
|             , json[index].messageBody | ||||
|             , json[index].httpStatus); | ||||
|         fillHeaderTable(json[index].httpHeaders); | ||||
| } | ||||
|  | ||||
| function fillStaticFields(uuid, id, mediaType, body, httpStatus){ | ||||
| function fillStaticFields(uuid, id, contentType, body, httpStatus){ | ||||
|     let link = createLink(uuid,id); | ||||
|     let linkHtml = '<a class="hyperlink" target="_blank" href="'+link+'">'+link+'</a>'; | ||||
|     $('#messageLink').html(linkHtml); | ||||
|     $('#httpStatus').val(httpStatus); | ||||
|     $('#uuid-input').val(uuid); | ||||
|     $('#typeSelector').val(mediaType); | ||||
|     $('#typeSelector').val(contentType); | ||||
|     $('#bodyEditor').val(body); | ||||
|     $('#mockedMessageId').html(id); | ||||
|  | ||||
| @@ -401,7 +401,7 @@ function fillMessageList(){ | ||||
|     $("#listItems").html(''); | ||||
|     var innerHTML = ''; | ||||
|     for(let i=0; i<json.length; i++){ | ||||
|         innerHTML += generateMessageTileHtml(json[i].mockedResponseId, json[i].httpStatus, json[i].mediaType); | ||||
|         innerHTML += generateMessageTileHtml(json[i].mockedResponseId, json[i].httpStatus, json[i].contentType); | ||||
|     } | ||||
|     $("#listItems").append(innerHTML); | ||||
|     $('.tile').click(function(e) { | ||||
| @@ -475,7 +475,7 @@ function selectMessage(id){ | ||||
|  | ||||
|  | ||||
|  | ||||
| function generateMessageTileHtml(id, httpStatus, mediaType){ | ||||
| function generateMessageTileHtml(id, httpStatus, contentType){ | ||||
|     var innerHTML = '' + | ||||
|     '<div tileid="' + id + '" class="tile">' + | ||||
|         '<div class="content">' + | ||||
| @@ -515,8 +515,7 @@ function generateJson(){ | ||||
|     var newJson = | ||||
|         { | ||||
|             clientUUID: json[jsonIndex].clientUUID, | ||||
|             mockedResponseId: json[jsonIndex].mockedResponseId, | ||||
|             mediaType: $('#typeSelector').val(), | ||||
|             contentType: $('#typeSelector').val(), | ||||
|             messageBody: $('#bodyEditor').val(), | ||||
|             httpStatus: $('#httpStatus').val(), | ||||
|             httpHeaders: {}, | ||||
|   | ||||
| @@ -43,36 +43,9 @@ | ||||
|                 <div> | ||||
|                     <h1>MockedServices</h1> | ||||
|                 </div> | ||||
|                 <div> | ||||
|                     <label for="uuid-input" class="block-display">UUID</label> | ||||
|                     <div id="uuid-edit"> | ||||
|                         <div id="uuid-edit-field" class="bordered-field disabled"> | ||||
|                             <input id="uuid-input" disabled onfocusout="changeUUID(this);" value="UUID" /> | ||||
|                             <button onclick="copyUUIDToClipboard();" class="uuid-inputField-icon modification-button flex-item btn-copy action-button">  | ||||
|                                 <span class="material-icons uuid-inputField-icon-span ">content_copy</span>  | ||||
|                             </button> | ||||
|                         </div> | ||||
|                         <div id="editableBlock"> | ||||
|                             <input type="checkbox" onchange="changeEditionOfUUID(this)" name="editable" id="editable" value="false"/> | ||||
|                             <label for="editable">Editable</label> | ||||
|                         </div> | ||||
|                     </div> | ||||
|                      | ||||
|                     <div class="hiddable" id="uuid-validation-strategy"> | ||||
|                         <label><b>UUID generation strategy:</b></label> | ||||
|                          | ||||
|                         <input type="radio" checked name="uuid-validation-type" value="new" id="generateNew"/> | ||||
|                         <label for="generateNew">Generate new UUID</label> | ||||
|                          | ||||
|                         <input type="radio" name="uuid-validation-type" value="restore" id="restore"/> | ||||
|                         <label for="restore">Restore previous UUID</label> | ||||
|                     </div> | ||||
|  | ||||
|                 </div> | ||||
|                 <div> | ||||
|                     <!-- h2 --> | ||||
|                     <div id="basicItemData" class="hiddable active"><h2>Your Message</h2></div> | ||||
|                     <div id="advancedItemData" class="hiddable"><h2>Messaged id: <span id="mockedMessageId">1</span></h2></div> | ||||
|                     <div><h2>Your Message</h2></div> | ||||
|  | ||||
|                     <!-- link --> | ||||
|                     <div> | ||||
| @@ -195,18 +168,6 @@ | ||||
|                     </div> | ||||
|                 </div> | ||||
|             </div> | ||||
|             <div id="selectMenuContent" class="tool-extention"> | ||||
|                 <!-- header --> | ||||
|                 <div> | ||||
|                     <h2>Message List</h2> | ||||
|                 </div> | ||||
|                 <!-- tile list --> | ||||
|                 <div id="listItems"> | ||||
|                 </div> | ||||
|                 <div id="new-tile" class="max-width centered-content small-vertical-margin"> | ||||
|                     <button id="btn-newtile" class="modification-button btn-addtile"><i class="icon-plus"></i></button> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|         <div class="tooltip-window lite"> | ||||
|             <div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user