merge
This commit is contained in:
		
							
								
								
									
										21
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										21
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
								
							@@ -20,12 +20,17 @@
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="ChangeListManager">
 | 
			
		||||
    <list default="true" id="458cde88-df3d-44bc-9d57-a33823e2f1a6" name="Default Changelist" comment="">
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
      <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/js/uianimation.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/static/js/uianimation.js" afterDir="false" />
 | 
			
		||||
>>>>>>> modzeleg
 | 
			
		||||
      <change beforePath="$PROJECT_DIR$/src/main/resources/templates/mock.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/mock.html" 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/js/datatransfer.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/static/js/datatransfer.js" afterDir="false" />
 | 
			
		||||
>>>>>>> modzeleg
 | 
			
		||||
    </list>
 | 
			
		||||
    <option name="SHOW_DIALOG" value="false" />
 | 
			
		||||
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
 | 
			
		||||
@@ -208,7 +213,7 @@
 | 
			
		||||
        <option name="Make" enabled="true" />
 | 
			
		||||
      </method>
 | 
			
		||||
    </configuration>
 | 
			
		||||
    <configuration default="true" type="JetRunConfigurationType" factoryName="Kotlin">
 | 
			
		||||
    <configuration default="true" type="JetRunConfigurationType">
 | 
			
		||||
      <module name="eureka" />
 | 
			
		||||
      <option name="VM_PARAMETERS" />
 | 
			
		||||
      <option name="PROGRAM_PARAMETERS" />
 | 
			
		||||
@@ -221,7 +226,7 @@
 | 
			
		||||
        <option name="Make" enabled="true" />
 | 
			
		||||
      </method>
 | 
			
		||||
    </configuration>
 | 
			
		||||
    <configuration default="true" type="KotlinStandaloneScriptRunConfigurationType" factoryName="Kotlin script">
 | 
			
		||||
    <configuration default="true" type="KotlinStandaloneScriptRunConfigurationType">
 | 
			
		||||
      <module name="eureka" />
 | 
			
		||||
      <option name="filePath" />
 | 
			
		||||
      <option name="vmParameters" />
 | 
			
		||||
@@ -316,8 +321,13 @@
 | 
			
		||||
      <workItem from="1612442837870" duration="8318000" />
 | 
			
		||||
      <workItem from="1612609113694" duration="13936000" />
 | 
			
		||||
      <workItem from="1612777983977" duration="14203000" />
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
      <workItem from="1612868404302" duration="14434000" />
 | 
			
		||||
      <workItem from="1612955514317" duration="1990000" />
 | 
			
		||||
=======
 | 
			
		||||
      <workItem from="1612868404302" duration="13841000" />
 | 
			
		||||
      <workItem from="1613384221052" duration="5569000" />
 | 
			
		||||
>>>>>>> modzeleg
 | 
			
		||||
    </task>
 | 
			
		||||
    <task id="LOCAL-00077" summary="testing jenkins docker">
 | 
			
		||||
      <created>1601453886631</created>
 | 
			
		||||
@@ -666,7 +676,7 @@
 | 
			
		||||
    <servers />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="TypeScriptGeneratedFilesManager">
 | 
			
		||||
    <option name="version" value="1" />
 | 
			
		||||
    <option name="version" value="2" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="UnknownFeatures">
 | 
			
		||||
    <option featureType="com.intellij.fileTypeFactory" implementationName="*.js" />
 | 
			
		||||
@@ -676,13 +686,12 @@
 | 
			
		||||
      <map>
 | 
			
		||||
        <entry key="MAIN">
 | 
			
		||||
          <value>
 | 
			
		||||
            <State>
 | 
			
		||||
              <option name="COLUMN_ORDER" />
 | 
			
		||||
            </State>
 | 
			
		||||
            <State />
 | 
			
		||||
          </value>
 | 
			
		||||
        </entry>
 | 
			
		||||
      </map>
 | 
			
		||||
    </option>
 | 
			
		||||
    <option name="oldMeFiltersMigrated" value="true" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="VcsManagerConfiguration">
 | 
			
		||||
    <option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
 | 
			
		||||
 
 | 
			
		||||
@@ -44,8 +44,9 @@ public class MockController {
 | 
			
		||||
    @ResponseBody
 | 
			
		||||
    @GetMapping({"/mock/json", "/mock/json/{uuidValue}"})
 | 
			
		||||
    public List<MockedMessageDto> getJson(@PathVariable(required = false) String uuidValue){
 | 
			
		||||
        UUID clientUUID = UUID.fromString(uuidValue);
 | 
			
		||||
        if(clientUUID == null) clientUUID = UUID.randomUUID();
 | 
			
		||||
        UUID clientUUID;
 | 
			
		||||
        if(uuidValue == null || uuidValue.equals("")) clientUUID = UUID.randomUUID();
 | 
			
		||||
        else clientUUID = UUID.fromString(uuidValue);
 | 
			
		||||
        List<MockedMessageDto> messages = klausService.getAllMockedResponses(clientUUID);
 | 
			
		||||
        if(messages.size() == 0) {
 | 
			
		||||
            klausService.setMockedResponse(buildDefaultMessage(clientUUID));
 | 
			
		||||
 
 | 
			
		||||
@@ -49,37 +49,38 @@ function getCookie(cname) {
 | 
			
		||||
 | 
			
		||||
function updateData(){
 | 
			
		||||
    var updatedJson = generateJson();
 | 
			
		||||
    $.ajax({
 | 
			
		||||
    var request = $.ajax({
 | 
			
		||||
        url: 'http://localhost:8097/mock/json',
 | 
			
		||||
        type: 'PUT',
 | 
			
		||||
        data: JSON.stringify(updatedJson, null, 2),
 | 
			
		||||
        error: function(e) {
 | 
			
		||||
            console.log(e);
 | 
			
		||||
        },
 | 
			
		||||
        dataType: "json",
 | 
			
		||||
        contentType: "application/json",
 | 
			
		||||
        success: getData(),
 | 
			
		||||
    });
 | 
			
		||||
    getData();
 | 
			
		||||
    request.done(function () {
 | 
			
		||||
        getData();
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function addMessage(){
 | 
			
		||||
    $.ajax({
 | 
			
		||||
 | 
			
		||||
    var request = $.ajax({
 | 
			
		||||
        url: 'http://localhost:8097/mock/json/'+clientUUID,
 | 
			
		||||
        type: 'POST',
 | 
			
		||||
        success: getData(),
 | 
			
		||||
    });
 | 
			
		||||
    getData();
 | 
			
		||||
    request.done(function () {
 | 
			
		||||
        getData();
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function removeTile(id){
 | 
			
		||||
    var jsonObject = findJsonById(id);
 | 
			
		||||
    $.ajax({
 | 
			
		||||
    var request = $.ajax({
 | 
			
		||||
        url: 'http://localhost:8097/mock/json/'+clientUUID + '/' + id,
 | 
			
		||||
        type: 'DELETE',
 | 
			
		||||
        success: getData(),
 | 
			
		||||
    });
 | 
			
		||||
    getData();
 | 
			
		||||
    request.done(function () {
 | 
			
		||||
        getData();
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,12 +4,13 @@
 | 
			
		||||
    <title>R11 MockedServices</title>
 | 
			
		||||
    <meta charset="utf-8">
 | 
			
		||||
    <link rel="stylesheet" href="/css/main.css" type="text/css">
 | 
			
		||||
<!--    <link rel="stylesheet" href="/css/wojtas.css" type="text/css">-->
 | 
			
		||||
    <link rel="stylesheet" href="/Dependency/fontello-plus/css/fontello.css" type="text/css"/>
 | 
			
		||||
    <link rel="preconnect" href="https://fonts.gstatic.com">
 | 
			
		||||
    <link href="https://fonts.googleapis.com/css2?family=Acme&family=Josefin+Slab:wght@500&display=swap" rel="stylesheet">
 | 
			
		||||
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
 | 
			
		||||
    <script type="text/javascript" src="/js/datatransfer.js"></script>
 | 
			
		||||
    <script type="text/javascript" src="historyloader.js"></script>
 | 
			
		||||
<!--    <script type="text/javascript" src="historyloader.js"></script>-->
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
    <div id="container">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user