diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa5c086b8a..a2e7071bbe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: check_name: Java JUnit Test Results files: ./build/test-results/**/*.xml - name: Publish JUnit Test Results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: junit-java-test-results path: ./build/test-reports/ @@ -58,7 +58,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 22.9.0 - name: Cache node modules id: nodeCache uses: actions/cache@v3 @@ -81,7 +81,7 @@ jobs: check_name: Java Script Mocha Unit Test Results files: ./scadalts-ui/test-results.xml - name: Publish Mocha Test Results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: mocha-js-test-results path: ./scadalts-ui/test-results.xml @@ -166,7 +166,7 @@ jobs: key: ${{ runner.os }}-war-${{ github.run_id }} path: ./build/libs/Scada-LTS.war - name: Deploy WAR artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Scada-LTS path: ./build/libs/Scada-LTS.war diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 5f5a2911ff..31818ad677 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -54,7 +54,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 22.9.0 - name: Cache node modules id: nodeCache uses: actions/cache@v3 @@ -151,7 +151,7 @@ jobs: key: ${{ runner.os }}-war-${{ github.run_id }} path: ./build/libs/Scada-LTS.war - name: Deploy WAR artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Scada-LTS path: ./build/libs/Scada-LTS.war diff --git a/.gitignore b/.gitignore index ec055c59ed..eaec9b3604 100644 --- a/.gitignore +++ b/.gitignore @@ -96,6 +96,7 @@ catalina-jrebel.bat # Ignore Gradle project-specific cache directory .gradle gradle/ +!gradle/gradle-wrapper.properties # Ignore Gradle build output directory WebContent/resources/node_modules/ build diff --git a/WebContent/WEB-INF/dwr.xml b/WebContent/WEB-INF/dwr.xml index c377cee1cb..75f2e367e1 100644 --- a/WebContent/WEB-INF/dwr.xml +++ b/WebContent/WEB-INF/dwr.xml @@ -22,6 +22,8 @@ + + @@ -153,9 +155,12 @@ - + + + + diff --git a/WebContent/WEB-INF/ftl/report/reportChart.ftl b/WebContent/WEB-INF/ftl/report/reportChart.ftl index b11fa20918..12f2a182e3 100644 --- a/WebContent/WEB-INF/ftl/report/reportChart.ftl +++ b/WebContent/WEB-INF/ftl/report/reportChart.ftl @@ -87,7 +87,7 @@ - + @@ -121,7 +121,7 @@

${instance.name}

${security.escapeHtml(instance.name)}

<@fmt key="reports.runTimeStart"/> - + diff --git a/WebContent/WEB-INF/jsp/_reports.jsp b/WebContent/WEB-INF/jsp/_reports.jsp index 3cd2747785..5aa94781fb 100644 --- a/WebContent/WEB-INF/jsp/_reports.jsp +++ b/WebContent/WEB-INF/jsp/_reports.jsp @@ -34,8 +34,8 @@ allPointsArray = response.data.points; emailRecipients = new mango.erecip.EmailRecipients("recipients", - "", response.data.mailingLists, response.data.users); - emailRecipients.write("emailRecipBody", "emailRecipients", null, ""); + "", response.data.mailingLists, response.data.users); + emailRecipients.write("emailRecipBody", "emailRecipients", null, ""); updateReportInstancesList(response.data.instances); @@ -225,18 +225,18 @@ ri.state == ) return ""; - var result = "' "+ "onclick='exportData(\""+ encodeQuotes(ri.name) +"\", "+ ri.id +")'/>"; if (ri.includeEvents != ) - result += "' "+ "onclick='exportEventData(\""+ encodeQuotes(ri.name) +"\", "+ ri.id +")'/>"; if (ri.includeUserComments) - result += "' "+ "onclick='exportUserComments(\""+ encodeQuotes(ri.name) +"\", "+ ri.id +")'/>"; - result += "' "+ "onclick='viewChart("+ ri.id +")'/>"+ " "; @@ -393,12 +393,12 @@ selectedReport.id = response.data.reportId; appendReport(selectedReport.id); startImageFader("r"+ selectedReport.id +"Img"); - showMessage("userMessage", ""); + showMessage("userMessage", ""); show("deleteImg"); show("copyImg"); } else - showMessage("userMessage", ""); + showMessage("userMessage", ""); updateReport(selectedReport.id, $get("name")); } }); @@ -457,7 +457,7 @@ if (response.hasMessages) showMessages(response.messages); else { - showMessage("userMessage", ""); + showMessage("userMessage", ""); refreshReportInstanceList(); } }); @@ -470,7 +470,7 @@
${point.name}
${security.escapeHtml(point.name)}
<@fmt key="reports.dataType"/> ${point.dataTypeDescription}
- + @@ -482,17 +482,17 @@ - - - - - - - + + + + + + + - +
@@ -505,7 +505,7 @@
- + - + @@ -542,7 +542,7 @@ - + - +

@@ -550,20 +550,20 @@
- + - - - + + + @@ -574,29 +574,29 @@ - + - + - +
+ checked="checked"/> + for="relpast"> @@ -675,7 +675,7 @@ - + @@ -683,21 +683,21 @@ - +
"/>" id="drrel" checked="checked" onchange="updateDateRangeFields()"/> + for="drrel">
@@ -604,7 +604,7 @@
"/>" - checked="checked"/>
"/>"/>
"/>" id="drspec" - onchange="updateDateRangeFields()"/> + onchange="updateDateRangeFields()"/>
- - - - - + + + + + - + + onclick="updateDateRangeFields()"/> - + + onclick="updateDateRangeFields()"/>
@@ -709,13 +709,13 @@ - + - + diff --git a/WebContent/WEB-INF/jsp/_watchList.jsp b/WebContent/WEB-INF/jsp/_watchList.jsp index 2377f3e9db..2d98bbbaeb 100644 --- a/WebContent/WEB-INF/jsp/_watchList.jsp +++ b/WebContent/WEB-INF/jsp/_watchList.jsp @@ -127,7 +127,7 @@ function addPoint(point, parent) { var pointNode = dojo.widget.createWidget("TreeNode", { title: ""+ point.value +" "+ - "", + "", object: point }); parent.addChild(pointNode); @@ -432,7 +432,7 @@
- +
@@ -442,7 +442,7 @@
- : + :
- : + :
- +
@@ -455,10 +455,10 @@ @@ -519,7 +519,7 @@
- +
@@ -530,7 +530,7 @@
- + diff --git a/WebContent/WEB-INF/jsp/app.jsp b/WebContent/WEB-INF/jsp/app.jsp index 1e332420c5..66742f5905 100644 --- a/WebContent/WEB-INF/jsp/app.jsp +++ b/WebContent/WEB-INF/jsp/app.jsp @@ -1,5 +1,4 @@ - diff --git a/WebContent/WEB-INF/jsp/compoundEvents.jsp b/WebContent/WEB-INF/jsp/compoundEvents.jsp index a0952b2e93..3e86e391d5 100644 --- a/WebContent/WEB-INF/jsp/compoundEvents.jsp +++ b/WebContent/WEB-INF/jsp/compoundEvents.jsp @@ -129,11 +129,11 @@ editingCompoundEvent.id = response.data.cedId; appendCompoundEvent(editingCompoundEvent.id); startImageFader($("ced"+ editingCompoundEvent.id +"Img")); - setUserMessage(""); + setUserMessage(""); show($("deleteCompoundEventImg")); } else - setUserMessage(""); + setUserMessage(""); if (response.data.warning) setUserMessage(response.data.warning); @@ -184,7 +184,7 @@ setSelectionRange($("condition"), response.data.from, response.data.to); } else - setUserMessage(""); + setUserMessage(""); }); } @@ -200,7 +200,7 @@
- + - +
@@ -232,17 +232,17 @@ - + - + - + - + - +
- +

-
-
-
+
+
+
@@ -286,12 +286,12 @@