fix Show Javascript card layout (#1959)

This commit is contained in:
HardikaZalavadia 2024-09-25 01:03:13 +05:30 committed by GitHub
parent 9b96367496
commit b8115531e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -39,7 +39,8 @@ public class SPdfApplication {
public void setServerPortStatic(String port) { public void setServerPortStatic(String port) {
if (port.equalsIgnoreCase("auto")) { if (port.equalsIgnoreCase("auto")) {
// Use Spring Boot's automatic port assignment (server.port=0) // 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 { } else {
SPdfApplication.serverPortStatic = port; SPdfApplication.serverPortStatic = port;
} }

View file

@ -81,6 +81,8 @@ document.getElementById("submitConfigBtn").addEventListener("click", function ()
let selectedOperation = document.getElementById("operationsDropdown").value; let selectedOperation = document.getElementById("operationsDropdown").value;
var pipelineName = document.getElementById("pipelineName").value; var pipelineName = document.getElementById("pipelineName").value;
let pipelineList = document.getElementById("pipelineList").children; let pipelineList = document.getElementById("pipelineList").children;
let pipelineConfig = { let pipelineConfig = {
name: pipelineName, name: pipelineName,
@ -218,7 +220,8 @@ fetch("v1/api-docs")
document.getElementById('deletePipelineBtn').addEventListener('click', function(event) { document.getElementById('deletePipelineBtn').addEventListener('click', function(event) {
event.preventDefault(); event.preventDefault();
let pipelineName = document.getElementById('pipelineName').value; let pipelineName = document.getElementById('pipelineName').value;
if (confirm(deletePipelineText + pipelineName)) { if (confirm(deletePipelineText + pipelineName)) {
removePipelineFromUI(pipelineName); removePipelineFromUI(pipelineName);
let key = "#Pipeline-" + pipelineName; let key = "#Pipeline-" + pipelineName;

View file

@ -20,7 +20,7 @@
<br><br> <br><br>
<div class="container"> <div class="container">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-md-12 bg-card"> <div class="col-md-6 bg-card">
<div class="tool-header"> <div class="tool-header">
<span class="material-symbols-rounded tool-header-icon advance">javascript</span> <span class="material-symbols-rounded tool-header-icon advance">javascript</span>
<span class="tool-header-text" th:text="#{showJS.header}"></span> <span class="tool-header-text" th:text="#{showJS.header}"></span>
@ -30,7 +30,7 @@
<br> <br>
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{showJS.submit}"></button> <button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{showJS.submit}"></button>
</form> </form>
<div class="container mt-5"> <div class="container mt-4">
<!-- Iterate over each main section in the JSON --> <!-- Iterate over each main section in the JSON -->
<div id="script-content"> <div id="script-content">
<!-- JavaScript will populate this section --> <!-- JavaScript will populate this section -->