From b8115531e24f8625c1957cb7e5192479fdd76c0d Mon Sep 17 00:00:00 2001
From: HardikaZalavadia <158505268+HardikaZalavadia@users.noreply.github.com>
Date: Wed, 25 Sep 2024 01:03:13 +0530
Subject: [PATCH] fix Show Javascript card layout (#1959)
---
src/main/java/stirling/software/SPDF/SPdfApplication.java | 3 ++-
src/main/resources/static/js/pipeline.js | 5 ++++-
src/main/resources/templates/misc/show-javascript.html | 4 ++--
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/main/java/stirling/software/SPDF/SPdfApplication.java b/src/main/java/stirling/software/SPDF/SPdfApplication.java
index 94f1db98..7149088b 100644
--- a/src/main/java/stirling/software/SPDF/SPdfApplication.java
+++ b/src/main/java/stirling/software/SPDF/SPdfApplication.java
@@ -39,7 +39,8 @@ public class SPdfApplication {
public void setServerPortStatic(String port) {
if (port.equalsIgnoreCase("auto")) {
// Use Spring Boot's automatic port assignment (server.port=0)
- SPdfApplication.serverPortStatic = "0"; // This will let Spring Boot assign an available port
+ SPdfApplication.serverPortStatic =
+ "0"; // This will let Spring Boot assign an available port
} else {
SPdfApplication.serverPortStatic = port;
}
diff --git a/src/main/resources/static/js/pipeline.js b/src/main/resources/static/js/pipeline.js
index c36ba02b..837b6665 100644
--- a/src/main/resources/static/js/pipeline.js
+++ b/src/main/resources/static/js/pipeline.js
@@ -81,6 +81,8 @@ document.getElementById("submitConfigBtn").addEventListener("click", function ()
let selectedOperation = document.getElementById("operationsDropdown").value;
var pipelineName = document.getElementById("pipelineName").value;
+
+
let pipelineList = document.getElementById("pipelineList").children;
let pipelineConfig = {
name: pipelineName,
@@ -218,7 +220,8 @@ fetch("v1/api-docs")
document.getElementById('deletePipelineBtn').addEventListener('click', function(event) {
event.preventDefault();
- let pipelineName = document.getElementById('pipelineName').value;
+ let pipelineName = document.getElementById('pipelineName').value;
+
if (confirm(deletePipelineText + pipelineName)) {
removePipelineFromUI(pipelineName);
let key = "#Pipeline-" + pipelineName;
diff --git a/src/main/resources/templates/misc/show-javascript.html b/src/main/resources/templates/misc/show-javascript.html
index 5c35d79f..91dc74cf 100644
--- a/src/main/resources/templates/misc/show-javascript.html
+++ b/src/main/resources/templates/misc/show-javascript.html
@@ -20,7 +20,7 @@