diff --git a/platypush/backend/http/webapp/package-lock.json b/platypush/backend/http/webapp/package-lock.json
index bdec4bbeb..26758904c 100644
--- a/platypush/backend/http/webapp/package-lock.json
+++ b/platypush/backend/http/webapp/package-lock.json
@@ -11,6 +11,7 @@
"@fortawesome/fontawesome-free": "^6.1.1",
"axios": "^0.21.4",
"core-js": "^3.23.4",
+ "highlight.js": "^11.9.0",
"lato-font": "^3.0.0",
"mitt": "^2.1.0",
"register-service-worker": "^1.7.2",
@@ -4339,6 +4340,15 @@
"node": ">=8"
}
},
+ "node_modules/cli-highlight/node_modules/highlight.js": {
+ "version": "10.7.3",
+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz",
+ "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==",
+ "dev": true,
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/cli-highlight/node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -6917,12 +6927,11 @@
}
},
"node_modules/highlight.js": {
- "version": "10.7.3",
- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz",
- "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==",
- "dev": true,
+ "version": "11.9.0",
+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz",
+ "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==",
"engines": {
- "node": "*"
+ "node": ">=12.0.0"
}
},
"node_modules/hosted-git-info": {
diff --git a/platypush/backend/http/webapp/package.json b/platypush/backend/http/webapp/package.json
index 9c305a7be..5df1c319e 100644
--- a/platypush/backend/http/webapp/package.json
+++ b/platypush/backend/http/webapp/package.json
@@ -11,6 +11,7 @@
"@fortawesome/fontawesome-free": "^6.1.1",
"axios": "^0.21.4",
"core-js": "^3.23.4",
+ "highlight.js": "^11.9.0",
"lato-font": "^3.0.0",
"mitt": "^2.1.0",
"register-service-worker": "^1.7.2",
diff --git a/platypush/backend/http/webapp/src/components/panels/Execute/Index.vue b/platypush/backend/http/webapp/src/components/panels/Execute/Index.vue
index 795a69ffd..3f347314a 100644
--- a/platypush/backend/http/webapp/src/components/panels/Execute/Index.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Execute/Index.vue
@@ -8,8 +8,9 @@
-
+
@@ -101,6 +102,9 @@
diff --git a/platypush/backend/http/webapp/src/components/panels/Execute/common.scss b/platypush/backend/http/webapp/src/components/panels/Execute/common.scss
index 4b1dfcd38..d05f2720c 100644
--- a/platypush/backend/http/webapp/src/components/panels/Execute/common.scss
+++ b/platypush/backend/http/webapp/src/components/panels/Execute/common.scss
@@ -1,5 +1,9 @@
@import "vars.scss";
+main {
+ min-height: calc(100vh - 2em);
+}
+
button {
background: none;
border: none;
@@ -40,6 +44,15 @@ section {
margin-top: .5em;
padding-top: .5em;
}
+
+ &.response {
+ flex-grow: 1;
+ max-height: 40em;
+
+ .output {
+ overflow: auto;
+ }
+ }
}
.buttons {
@@ -58,6 +71,10 @@ header {
.autocomplete-container {
width: calc(100% - $request-headers-btn-width);
flex-grow: 1;
+
+ .items {
+ background: $background-color;
+ }
}
.buttons {
@@ -105,6 +122,7 @@ textarea {
form {
background: $default-bg-2;
+ flex-grow: 1;
margin: 0;
border-radius: 0;
border: none;
diff --git a/platypush/plugins/http/webpage/__init__.py b/platypush/plugins/http/webpage/__init__.py
index 20b07bb06..8aea5cc23 100644
--- a/platypush/plugins/http/webpage/__init__.py
+++ b/platypush/plugins/http/webpage/__init__.py
@@ -142,22 +142,20 @@ class HttpWebpagePlugin(Plugin):
and PDF.
:return: dict
- Example if outfile is not specified::
+ Example return payload outfile is not specified::
{
"url": ,
"title": ,
"content":
-
}
- Example if outfile is specified::
+ Example return payload if outfile is specified::
{
"url": ,
"title": ,
"outfile":