You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mm...@apache.org on 2022/04/29 20:21:17 UTC
[accumulo] branch main updated: Add js strict directive to each js file (#2664)
This is an automated email from the ASF dual-hosted git repository.
mmiller pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new bbcf67424d Add js strict directive to each js file (#2664)
bbcf67424d is described below
commit bbcf67424d320d72c41de71894d3954b5d1616a6
Author: Mike Miller <mm...@apache.org>
AuthorDate: Fri Apr 29 16:21:12 2022 -0400
Add js strict directive to each js file (#2664)
---
.../resources/org/apache/accumulo/monitor/resources/js/bulkImport.js | 1 +
.../resources/org/apache/accumulo/monitor/resources/js/compactions.js | 1 +
.../src/main/resources/org/apache/accumulo/monitor/resources/js/ec.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/functions.js | 1 +
.../src/main/resources/org/apache/accumulo/monitor/resources/js/gc.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/global.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/listType.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/manager.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/navbar.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/overview.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/problems.js | 1 +
.../resources/org/apache/accumulo/monitor/resources/js/replication.js | 1 +
.../src/main/resources/org/apache/accumulo/monitor/resources/js/scans.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/server.js | 1 +
.../src/main/resources/org/apache/accumulo/monitor/resources/js/show.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/summary.js | 1 +
.../src/main/resources/org/apache/accumulo/monitor/resources/js/table.js | 1 +
.../main/resources/org/apache/accumulo/monitor/resources/js/tservers.js | 1 +
18 files changed, 18 insertions(+)
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js
index 544443e58b..bac1c7d581 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
/**
* Creates bulk import initial table
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/compactions.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/compactions.js
index f872e73b38..09ad311304 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/compactions.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/compactions.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var compactionsList;
/**
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/ec.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/ec.js
index dac238dbdd..556e2883b2 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/ec.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/ec.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var coordinatorTable;
var compactorsTable;
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/functions.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/functions.js
index 9363db104e..0c2fb7a0aa 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/functions.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/functions.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
// Suffixes for quantity
var QUANTITY_SUFFIX = ['', 'K', 'M', 'B', 'T', 'e15', 'e18', 'e21'];
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/gc.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/gc.js
index 3937df1f3a..4f14879a22 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/gc.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/gc.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var gcTable;
/**
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/global.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/global.js
index 87f73df2e7..875845d3aa 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/global.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/global.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
/**
* List of namespaces in Accumulo
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/listType.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/listType.js
index 9a3c974f3c..0c9851f47a 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/listType.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/listType.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var type, minutes;
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/manager.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/manager.js
index 924b920f66..37e22d5f2b 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/manager.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/manager.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
/**
* Creates manager initial table
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/navbar.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/navbar.js
index 7053a546cf..cc68da7cc9 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/navbar.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/navbar.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
/**
* Creates the initial sidebar
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/overview.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/overview.js
index 02c2019903..ac394eec67 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/overview.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/overview.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
/**
* Creates overview initial tables
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/problems.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/problems.js
index aee3083ddc..dc8fd47c4a 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/problems.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/problems.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var tableID;
var problemSummaryTable;
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/replication.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/replication.js
index e77266888d..0b72fc64cb 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/replication.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/replication.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
/**
* Creates replication initial table
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/scans.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/scans.js
index a8843fbae1..f89448e1be 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/scans.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/scans.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
/**
* Creates scans initial table
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/server.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/server.js
index 0135f33655..ff9adc2ed2 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/server.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/server.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var dashCell = "<td>—</td>";
var serv;
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/show.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/show.js
index 1a892729e4..767556bb5e 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/show.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/show.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var id;
/**
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/summary.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/summary.js
index 7d8ea1c269..dfc9c41414 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/summary.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/summary.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var minutes;
/**
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/table.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/table.js
index 4e23c4dbca..81a0f40636 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/table.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/table.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var tableID;
/**
diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/tservers.js b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/tservers.js
index 8e0a94ae3a..1446b481a2 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/tservers.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/tservers.js
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+"use strict";
var tserversList;
/**