You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/12/16 19:27:12 UTC

[incubator-ponymail-foal] branch master updated (f21398f -> e36df0d)

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git.


    from f21398f  Update version
     new c14b1ad  Add missing let
     new 999820c  Simplify using for of loop
     new e36df0d  Update versions

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 webui/admin.html        |  8 ++++----
 webui/index.html        |  6 +++---
 webui/js/ponymail.js    | 24 +++++++++++-------------
 webui/js/source/mgmt.js | 22 ++++++++++------------
 webui/list.html         |  8 ++++----
 webui/oauth.html        |  8 ++++----
 webui/thread.html       |  8 ++++----
 7 files changed, 40 insertions(+), 44 deletions(-)

[incubator-ponymail-foal] 02/03: Simplify using for of loop

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 999820cc7c8e8abda7c4660325ce54ddfdacf9cc
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 16 19:25:51 2021 +0000

    Simplify using for of loop
---
 webui/js/source/mgmt.js | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/webui/js/source/mgmt.js b/webui/js/source/mgmt.js
index 5bc3a03..59545a2 100644
--- a/webui/js/source/mgmt.js
+++ b/webui/js/source/mgmt.js
@@ -247,8 +247,7 @@ function admin_email_preview(stats, json) {
             class: 'email_key'
         }, "Attachment(s): ");
         let alinks = [];
-        for (let n = 0; n < json.attachments.length; n++) {
-            let attachment = json.attachments[n];
+        for (let attachment of json.attachments) {
             let link = `${G_apiURL}api/email.lua?attachment=true&id=${json.mid}&file=${attachment.hash}`;
             let a = new HTML('a', {
                 href: link,
@@ -347,8 +346,8 @@ function admin_audit_view(state, json) {
                 class: "auditlog_entries"
             });
             let trh = new HTML('tr');
-            for (let i = 0; i < headers.length; i++) {
-                let th = new HTML('th', {}, headers[i] + ":");
+            for (let header of headers) {
+                let th = new HTML('th', {}, header + ":");
                 trh.inject(th);
             }
             table.inject(trh)
@@ -358,13 +357,12 @@ function admin_audit_view(state, json) {
             }, "Load more entries");
             div.inject(btn);
         }
-        for (let i = 0; i < json.entries.length; i++) {
-            let entry = json.entries[i];
+        for (let entry of json.entries) {
             let tr = new HTML('tr', {
                 class: "auditlog_entry"
             });
-            for (let i = 0; i < headers.length; i++) {
-                let key = headers[i].toLowerCase();
+            for (let header of headers) {
+                let key = header.toLowerCase();
                 let value = entry[key];
                 if (key == 'target') {
                     value = new HTML('a', {

[incubator-ponymail-foal] 03/03: Update versions

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit e36df0debc642200eb1e4891f2f06109a8548daa
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 16 19:27:00 2021 +0000

    Update versions
---
 webui/admin.html     |  8 ++++----
 webui/index.html     |  6 +++---
 webui/js/ponymail.js | 24 +++++++++++-------------
 webui/list.html      |  8 ++++----
 webui/oauth.html     |  8 ++++----
 webui/thread.html    |  8 ++++----
 6 files changed, 30 insertions(+), 32 deletions(-)

diff --git a/webui/admin.html b/webui/admin.html
index d1be2da..e9434f1 100644
--- a/webui/admin.html
+++ b/webui/admin.html
@@ -25,7 +25,7 @@ the License. -->
     <!-- Bootstrap -->
 
     <link href="css/bootstrap.min.css" rel="stylesheet" media="all">
-    <link href="css/scaffolding.css?revision=d7744a8" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=999820c" rel="stylesheet" media="all">
     <link href="css/modal.css" rel="stylesheet" media="all">
     <link href="css/spinner.css" rel="stylesheet" media="all">
     <link rel="alternate" href="/api/static.lua"/>
@@ -79,9 +79,9 @@ the License. -->
     <script src="js/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="></script>
     <!-- Include all compiled plugins (below), or include individual files as needed -->
     <script src="js/bootstrap.min.js"></script>
-    <script src="js/config.js?revision=d7744a8"></script>
-    <script src="js/wordcloud.js?revision=d7744a8"></script>
-    <script src="js/ponymail.js?revision=d7744a8"></script>
+    <script src="js/config.js?revision=999820c"></script>
+    <script src="js/wordcloud.js?revision=999820c"></script>
+    <script src="js/ponymail.js?revision=999820c"></script>
     <div id="splash" class="splash fade-in"> &nbsp; </div>
     <div style="clear: both;"></div>
   </body>
diff --git a/webui/index.html b/webui/index.html
index c93fc83..cd0d2ae 100644
--- a/webui/index.html
+++ b/webui/index.html
@@ -24,7 +24,7 @@ the License. -->
     <!-- Bootstrap -->
     
     <link href="css/bootstrap.min.css" rel="stylesheet" media="all">
-    <link href="css/scaffolding.css?revision=d7744a8" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=999820c" rel="stylesheet" media="all">
     <link href="css/modal.css" rel="stylesheet" media="all">
     <link href="css/spinner.css" rel="stylesheet" media="all">
     <link rel="alternate" href="/api/static.lua"/>
@@ -60,8 +60,8 @@ the License. -->
     <script src="js/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="></script>
     <!-- Include all compiled plugins (below), or include individual files as needed -->
     <script src="js/bootstrap.min.js"></script>
-    <script src="js/config.js?revision=d7744a8"></script>
-    <script src="js/ponymail.js?revision=d7744a8"></script>
+    <script src="js/config.js?revision=999820c"></script>
+    <script src="js/ponymail.js?revision=999820c"></script>
     <div id="splash" class="splash fade-in"> &nbsp; </div>
     <div style="clear: both;"></div>
     
diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index ba45da2..566f5db 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -16,7 +16,7 @@
 */
 // THIS IS AN AUTOMATICALLY COMBINED FILE. PLEASE EDIT THE source/ FILES!
 
-const PONYMAIL_REVISION = 'd7744a8';
+const PONYMAIL_REVISION = '999820c';
 
 
 /******************************************
@@ -2857,7 +2857,7 @@ async function admin_del_attachment(hash) {
         }
     }
     admin_email_meta.attachments = new_attach;
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "delatt",
         document: hash
     });
@@ -2880,7 +2880,7 @@ async function admin_hide_email() {
     if (!confirm("Are you sure you wish to hide this email from the archives?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "hide",
         document: admin_current_email
     });
@@ -2897,7 +2897,7 @@ async function admin_unhide_email() {
     if (!confirm("Are you sure you wish to unhide this email?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "unhide",
         document: admin_current_email
     });
@@ -2916,7 +2916,7 @@ async function admin_delete_email() {
     if (!confirm("Are you sure you wish to remove this email from the archives?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "delete",
         document: admin_current_email
     });
@@ -3074,8 +3074,7 @@ function admin_email_preview(stats, json) {
             class: 'email_key'
         }, "Attachment(s): ");
         let alinks = [];
-        for (let n = 0; n < json.attachments.length; n++) {
-            let attachment = json.attachments[n];
+        for (let attachment of json.attachments) {
             let link = `${G_apiURL}api/email.lua?attachment=true&id=${json.mid}&file=${attachment.hash}`;
             let a = new HTML('a', {
                 href: link,
@@ -3174,8 +3173,8 @@ function admin_audit_view(state, json) {
                 class: "auditlog_entries"
             });
             let trh = new HTML('tr');
-            for (let i = 0; i < headers.length; i++) {
-                let th = new HTML('th', {}, headers[i] + ":");
+            for (let header of headers) {
+                let th = new HTML('th', {}, header + ":");
                 trh.inject(th);
             }
             table.inject(trh)
@@ -3185,13 +3184,12 @@ function admin_audit_view(state, json) {
             }, "Load more entries");
             div.inject(btn);
         }
-        for (let i = 0; i < json.entries.length; i++) {
-            let entry = json.entries[i];
+        for (let entry of json.entries) {
             let tr = new HTML('tr', {
                 class: "auditlog_entry"
             });
-            for (let i = 0; i < headers.length; i++) {
-                let key = headers[i].toLowerCase();
+            for (let header of headers) {
+                let key = header.toLowerCase();
                 let value = entry[key];
                 if (key == 'target') {
                     value = new HTML('a', {
diff --git a/webui/list.html b/webui/list.html
index 4390412..64924ed 100644
--- a/webui/list.html
+++ b/webui/list.html
@@ -24,7 +24,7 @@ the License. -->
     <!-- Bootstrap -->
     
     <link href="css/bootstrap.min.css" rel="stylesheet" media="all">
-    <link href="css/scaffolding.css?revision=d7744a8" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=999820c" rel="stylesheet" media="all">
     <link href="css/modal.css" rel="stylesheet" media="all">
     <link href="css/spinner.css" rel="stylesheet" media="all">
     <link rel="alternate" href="/api/static.lua"/>
@@ -178,9 +178,9 @@ the License. -->
     </script>
     <!-- Include all compiled plugins (below), or include individual files as needed -->
     <script src="js/bootstrap.min.js"></script>
-    <script src="js/config.js?revision=d7744a8"></script>
-    <script src="js/wordcloud.js?revision=d7744a8"></script>
-    <script src="js/ponymail.js?revision=d7744a8"></script>
+    <script src="js/config.js?revision=999820c"></script>
+    <script src="js/wordcloud.js?revision=999820c"></script>
+    <script src="js/ponymail.js?revision=999820c"></script>
     <div id="splash" class="splash fade-in"> &nbsp; </div>
     <div style="clear: both;"></div>
     <script type="text/javascript">
diff --git a/webui/oauth.html b/webui/oauth.html
index 923c020..1a7a3fa 100644
--- a/webui/oauth.html
+++ b/webui/oauth.html
@@ -21,7 +21,7 @@ the License. -->
 
     <!-- CSS -->
     <link href="css/bootstrap.min.css" rel="stylesheet" media="all">
-    <link href="css/scaffolding.css?revision=d7744a8" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=999820c" rel="stylesheet" media="all">
     <link href="css/modal.css" rel="stylesheet" media="all">
     <link href="css/spinner.css" rel="stylesheet" media="all">
 
@@ -54,8 +54,8 @@ the License. -->
     <script src="js/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="></script>
     <!-- Include all compiled plugins (below), or include individual files as needed -->
     <script src="js/bootstrap.min.js"></script>
-    <script src="js/config.js?revision=d7744a8"></script>
-    <script src="js/ponymail.js?revision=d7744a8"></script>
-    <script src="js/oauth.js?revision=d7744a8"></script>
+    <script src="js/config.js?revision=999820c"></script>
+    <script src="js/ponymail.js?revision=999820c"></script>
+    <script src="js/oauth.js?revision=999820c"></script>
   </body>
 </html>
diff --git a/webui/thread.html b/webui/thread.html
index b30c3e7..d8ea7df 100644
--- a/webui/thread.html
+++ b/webui/thread.html
@@ -25,7 +25,7 @@ the License. -->
     <!-- Bootstrap -->
     
     <link href="css/bootstrap.min.css" rel="stylesheet" media="all">
-    <link href="css/scaffolding.css?revision=d7744a8" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=999820c" rel="stylesheet" media="all">
     <link href="css/modal.css" rel="stylesheet" media="all">
     <link href="css/spinner.css" rel="stylesheet" media="all">
     <link rel="alternate" href="/api/static.lua"/>
@@ -97,9 +97,9 @@ the License. -->
     <script src="js/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="></script>
     <!-- Include all compiled plugins (below), or include individual files as needed -->
     <script src="js/bootstrap.min.js"></script>
-    <script src="js/config.js?revision=d7744a8"></script>
-    <script src="js/wordcloud.js?revision=d7744a8"></script>
-    <script src="js/ponymail.js?revision=d7744a8"></script>
+    <script src="js/config.js?revision=999820c"></script>
+    <script src="js/wordcloud.js?revision=999820c"></script>
+    <script src="js/ponymail.js?revision=999820c"></script>
     <div id="splash" class="splash fade-in"> &nbsp; </div>
     <div style="clear: both;"></div>
   </body>

[incubator-ponymail-foal] 01/03: Add missing let

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit c14b1adc0c6c50819a0ad74dadebda292b19c027
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 16 19:20:45 2021 +0000

    Add missing let
---
 webui/js/source/mgmt.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/webui/js/source/mgmt.js b/webui/js/source/mgmt.js
index 9bb36f3..5bc3a03 100644
--- a/webui/js/source/mgmt.js
+++ b/webui/js/source/mgmt.js
@@ -30,7 +30,7 @@ async function admin_del_attachment(hash) {
         }
     }
     admin_email_meta.attachments = new_attach;
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "delatt",
         document: hash
     });
@@ -53,7 +53,7 @@ async function admin_hide_email() {
     if (!confirm("Are you sure you wish to hide this email from the archives?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "hide",
         document: admin_current_email
     });
@@ -70,7 +70,7 @@ async function admin_unhide_email() {
     if (!confirm("Are you sure you wish to unhide this email?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "unhide",
         document: admin_current_email
     });
@@ -89,7 +89,7 @@ async function admin_delete_email() {
     if (!confirm("Are you sure you wish to remove this email from the archives?")) {
         return
     }
-    formdata = JSON.stringify({
+    let formdata = JSON.stringify({
         action: "delete",
         document: admin_current_email
     });