diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e99c6ed..6be7839 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -24,10 +24,16 @@ - + + + + + + + - + - + @@ -194,26 +200,6 @@ - - - - - - - - - - @@ -686,9 +670,10 @@ - - + + + @@ -741,67 +726,67 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - + - - + + - + - - + + - + diff --git a/src/main/java/com/release11/klaus/KlausApplication.java b/src/main/java/com/release11/klaus/KlausApplication.java index 827d7eb..55ba4de 100644 --- a/src/main/java/com/release11/klaus/KlausApplication.java +++ b/src/main/java/com/release11/klaus/KlausApplication.java @@ -2,7 +2,7 @@ package com.release11.klaus; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import springfox.documentation.swagger2.annotations.EnableSwagger2; + @SpringBootApplication diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index dc41596..6dc5652 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -10,4 +10,7 @@ spring.cloud.config.discovery.service-id = klaus-config-service spring.output.ansi.enabled = always logging.level.root=INFO logging.level.org.springframework.web=INFO -logging.level.com.release11=INFO \ No newline at end of file +logging.level.com.release11=INFO + +redis.host = localhost +redis.port = 6379 \ No newline at end of file diff --git a/src/main/resources/data-access.properties b/src/main/resources/data-access.properties index 27196b6..122952c 100644 --- a/src/main/resources/data-access.properties +++ b/src/main/resources/data-access.properties @@ -1,2 +1,2 @@ -redis.host = redis +redis.host = localhost redis.port = 6379 \ No newline at end of file diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 651420c..eca6395 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -3,7 +3,7 @@ - redis + localhost 6379 logstash diff --git a/src/main/resources/static/css/styles.css b/src/main/resources/static/css/styles.css index 893ba64..936336c 100644 --- a/src/main/resources/static/css/styles.css +++ b/src/main/resources/static/css/styles.css @@ -191,4 +191,23 @@ table { border-collapse: collapse; } tr { border: none; } td { border: none; -} \ No newline at end of file +} + +button{ + padding: 5px 14px; + border-width: 1px; + border-style: solid; + background: #32a6cc; + color: #fff; + transition: all 0.3s ease; + font-family: Arial, sans-serif; + font-size: 1em; + border-radius: 2px; +} + +label { display: block; } +.hint { display: none; color: gray; font-style: italic; } +input:focus + .hint { display: inline; } +textarea:focus + .hint { display: inline; } +textarea:focus + .hint { display: inline; } +select:focus + .hint { display: inline; } \ No newline at end of file diff --git a/src/main/resources/static/js/paggination.js b/src/main/resources/static/js/paggination.js index 41a6cd4..f87a55b 100644 --- a/src/main/resources/static/js/paggination.js +++ b/src/main/resources/static/js/paggination.js @@ -14,10 +14,28 @@ var state = { } var myList, data, previousSort; - console.log("raz dwa trzy") state.querySet = listForPagination; buildTable(); + +document.querySelector('#btn-list-1').addEventListener('click', function() { + var x = document.getElementById("list-wrapper"); + if (x.style.display === "none") { + x.style.display = "block"; + } else { + x.style.display = "none"; + } + }) + +document.querySelector('#btn-list-2').addEventListener('click', function() { + var x = document.getElementById("advanced-wrapper"); + if (x.style.display === "none") { + x.style.display = "block"; + } else { + x.style.display = "none"; + } + }) + for (let i = 3; i >= 0; i--) { document.querySelector('#btn-sort-' + i).addEventListener('click', function() { addButtonListeners(i) diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index d5232c4..e838042 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -21,157 +21,190 @@

With this tool you can create mockups for http requests and use them for integration tests of your system.

-
-

You can test the mocked message using the url or the button below:

- - - - - -
-

- http://[[${localhost}]]:8097/klaus/v1/get/[[${mockedMessageDto.clientUUID}]]/[[${mockedMessageDto.mockedResponseId}]]

-
-
- - - -
-
-
+
+

You can test the mocked message using the url or the button below:

+ + + + + +
+

+ http://[[${localhost}]]:8097/klaus/v1/get/[[${mockedMessageDto.clientUUID}]]/[[${mockedMessageDto.mockedResponseId}]]

+
+
+ + + +
+
+
- -

In order to set or update mockup response please fill the form below and save - your message:

- - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Media type: +

In order to set or update mockup response please fill the form below and save + your message:

+ + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Media type: +
Mocked response body: - Body Error -
Mocked response http code status: - HttpStatus Error -
Header nameHeader value
- - -
- - - -
Mocked response id:Id - Error -
- -
- - + + Dupa dupa dupa + + -
-
-

-
+
-

Mock has been saved

- -
-
-
+
Mocked response body: + + Body Error +
Mocked response http code status: + + HttpStatus Error +
Header nameHeader value
+ Dupa dupa dupa + + +
+ + + +
Mocked response id:Id + Error +
+ +
+

Mock has been saved

+ + + + + + +
+
+

+
+
+ + + +
+
-

Here you can see the interactive list of all your mocked messages. You can call all of them. Use the buttons to sort the list and also update or delete messages.

-
- - - - - - - - - - - - -
-

#

-
-

MessageId

-
-

Media Type

-
-

Http Status

-
-
-
-
+

-
+