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


The following commit(s) were added to refs/heads/master by this push:
     new fd180bb  init cannot come first
fd180bb is described below

commit fd180bbe020acd38c4bef4321e7388c05d0aba61
Author: Sebb <[email protected]>
AuthorDate: Thu Nov 18 00:16:34 2021 +0000

    init cannot come first
    
    Revert for now
---
 webui/js/ponymail.js                   | 180 ++++++++++++++++-----------------
 webui/js/source/{aainit.js => init.js} |   0
 2 files changed, 90 insertions(+), 90 deletions(-)

diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 455d80b..47e3a07 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -16,100 +16,11 @@
 */
 // THIS IS AN AUTOMATICALLY COMBINED FILE. PLEASE EDIT source/*.js!!
 
-const PONYMAIL_REVISION = "3aca082";
+const PONYMAIL_REVISION = "9c952ee";
 
 
 
 /******************************************
- Fetched from source/aainit.js
-******************************************/
-
-const PONYMAIL_VERSION = "1.0.1"; // Current version of Pony Mail Foal
-
-let apiURL = ''; // external API URL. Usually left blank.
-
-// Stuff regarding what we're doing right now
-let current_json = {};
-let current_state = {};
-let current_list = '';
-let current_domain = '';
-let current_year = 0;
-let current_month = 0;
-let current_quick_search = '';
-let current_query = '';
-let select_primed = false;
-let ponymail_preferences = {};
-let ponymail_search_list = 'this';
-
-let current_listmode = 'threaded';
-let ponymail_max_nesting = 10; // max nesting level before unthreading to save 
space
-
-// thread state
-let current_email_idx = undefined;
-let chatty_layout = true;
-let ponymail_date_format = {
-    weekday: 'long',
-    year: 'numeric',
-    month: 'long',
-    day: 'numeric'
-};
-let collated_json = {};
-
-console.log("/******* Apache Pony Mail (Foal v/%s) Initializing 
********/".format(PONYMAIL_VERSION))
-// Adjust titles:
-document.title = prefs.title;
-for (let title of document.getElementsByClassName("title")) {
-    title.innerText = prefs.title;
-}
-
-// check local storage for settings
-console.log("Checking localStorage availability");
-let can_store = false;
-if (window.localStorage && window.localStorage.setItem) {
-    try {
-        window.localStorage.setItem("ponymail_test", "foo");
-        can_store = true;
-        console.log("localStorage available!");
-    } catch (e) {
-        console.log("no localStorage available!");
-    }
-}
-
-
-console.log("Initializing escrow checks");
-window.setInterval(escrow_check, 250);
-
-console.log("Initializing key command logger");
-window.addEventListener('keyup', keyCommands);
-
-if (pm_config.apiURL) {
-    apiURL = pm_config.apiURL;
-    console.log("Setting API URL to %s".format(apiURL));
-}
-
-window.addEventListener('load', function() {
-    document.body.appendChild(new HTML('footer', {
-        class: 'footer'
-    }, [
-        new HTML('div', {
-            class: 'container'
-        }, [
-            new HTML('p', {
-                class: 'muted'
-            }, "Powered by Apache Pony Mail (Foal v/%s 
~%s)".format(PONYMAIL_VERSION, PONYMAIL_REVISION))
-        ])
-    ]));
-});
-console.log("initializing pop state checker");
-window.onpopstate = function(event) {
-    console.log("Popping state");
-    return parseURL({
-        cached: true
-    });
-};
-
-
-/******************************************
  Fetched from source/base-http-extensions.js
 ******************************************/
 
@@ -1772,6 +1683,95 @@ function showCalendarPicker(parent, seedDate) {
 
 
 /******************************************
+ Fetched from source/init.js
+******************************************/
+
+const PONYMAIL_VERSION = "1.0.1"; // Current version of Pony Mail Foal
+
+let apiURL = ''; // external API URL. Usually left blank.
+
+// Stuff regarding what we're doing right now
+let current_json = {};
+let current_state = {};
+let current_list = '';
+let current_domain = '';
+let current_year = 0;
+let current_month = 0;
+let current_quick_search = '';
+let current_query = '';
+let select_primed = false;
+let ponymail_preferences = {};
+let ponymail_search_list = 'this';
+
+let current_listmode = 'threaded';
+let ponymail_max_nesting = 10; // max nesting level before unthreading to save 
space
+
+// thread state
+let current_email_idx = undefined;
+let chatty_layout = true;
+let ponymail_date_format = {
+    weekday: 'long',
+    year: 'numeric',
+    month: 'long',
+    day: 'numeric'
+};
+let collated_json = {};
+
+console.log("/******* Apache Pony Mail (Foal v/%s) Initializing 
********/".format(PONYMAIL_VERSION))
+// Adjust titles:
+document.title = prefs.title;
+for (let title of document.getElementsByClassName("title")) {
+    title.innerText = prefs.title;
+}
+
+// check local storage for settings
+console.log("Checking localStorage availability");
+let can_store = false;
+if (window.localStorage && window.localStorage.setItem) {
+    try {
+        window.localStorage.setItem("ponymail_test", "foo");
+        can_store = true;
+        console.log("localStorage available!");
+    } catch (e) {
+        console.log("no localStorage available!");
+    }
+}
+
+
+console.log("Initializing escrow checks");
+window.setInterval(escrow_check, 250);
+
+console.log("Initializing key command logger");
+window.addEventListener('keyup', keyCommands);
+
+if (pm_config.apiURL) {
+    apiURL = pm_config.apiURL;
+    console.log("Setting API URL to %s".format(apiURL));
+}
+
+window.addEventListener('load', function() {
+    document.body.appendChild(new HTML('footer', {
+        class: 'footer'
+    }, [
+        new HTML('div', {
+            class: 'container'
+        }, [
+            new HTML('p', {
+                class: 'muted'
+            }, "Powered by Apache Pony Mail (Foal v/%s 
~%s)".format(PONYMAIL_VERSION, PONYMAIL_REVISION))
+        ])
+    ]));
+});
+console.log("initializing pop state checker");
+window.onpopstate = function(event) {
+    console.log("Popping state");
+    return parseURL({
+        cached: true
+    });
+};
+
+
+/******************************************
  Fetched from source/key-commands.js
 ******************************************/
 
diff --git a/webui/js/source/aainit.js b/webui/js/source/init.js
similarity index 100%
rename from webui/js/source/aainit.js
rename to webui/js/source/init.js

Reply via email to