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 2022/01/04 14:03:11 UTC

[incubator-ponymail-foal] branch master updated (f9dc004 -> 1fd19dc)

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 f9dc004  Update version
     new 042bc0a  pathname has already dropped the query
     new 74baa11  Rename parameter
     new 1fd19dc  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      | 9 +++++----
 webui/js/source/primer.js | 7 ++++---
 webui/list.html           | 8 ++++----
 webui/oauth.html          | 8 ++++----
 webui/thread.html         | 8 ++++----
 7 files changed, 28 insertions(+), 26 deletions(-)

[incubator-ponymail-foal] 01/03: pathname has already dropped the query

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 042bc0a4c44dce2e0c8b1403051c3d530bf1870a
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jan 4 14:00:08 2022 +0000

    pathname has already dropped the query
---
 webui/js/source/primer.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/webui/js/source/primer.js b/webui/js/source/primer.js
index 30c6bc4..2ea27af 100644
--- a/webui/js/source/primer.js
+++ b/webui/js/source/primer.js
@@ -146,11 +146,12 @@ function parseURL(state) {
 
 
 // Parse a permalink and fetch the thread
+// URL is expected to be of the form <msgid>?<list.id>
 // onload function for thread.html
 function parse_permalink() {
     // message id is the bit after the last /
-    let mid = location.href.split('/').pop();
-    mid = mid.replace(/\?.*/, '');  // Chop away any query string
+    // TODO: could look for thread[.html]/ instead
+    let mid = location.pathname.split('/').pop();
     // List-ID specified?
     const query = unescape(location.search.substr(1));
     let list_id = null;

[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 1fd19dcd0bc5727ac620ad30a20f587f99539c77
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jan 4 14:02:17 2022 +0000

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

diff --git a/webui/admin.html b/webui/admin.html
index 8d7a66c..85a3c40 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=bd3cdbd" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=74baa11" 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=bd3cdbd"></script>
-    <script src="js/wordcloud.js?revision=bd3cdbd"></script>
-    <script src="js/ponymail.js?revision=bd3cdbd"></script>
+    <script src="js/config.js?revision=74baa11"></script>
+    <script src="js/wordcloud.js?revision=74baa11"></script>
+    <script src="js/ponymail.js?revision=74baa11"></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 28e2845..6ed7041 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=bd3cdbd" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=74baa11" 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=bd3cdbd"></script>
-    <script src="js/ponymail.js?revision=bd3cdbd"></script>
+    <script src="js/config.js?revision=74baa11"></script>
+    <script src="js/ponymail.js?revision=74baa11"></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 7bc457a..ca5adf5 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 = 'bd3cdbd';
+const PONYMAIL_REVISION = '74baa11';
 
 
 /******************************************
@@ -3577,11 +3577,12 @@ function parseURL(state) {
 
 
 // Parse a permalink and fetch the thread
+// URL is expected to be of the form <msgid>?<list.id>
 // onload function for thread.html
 function parse_permalink() {
     // message id is the bit after the last /
-    let mid = location.href.split('/').pop();
-    mid = mid.replace(/\?.*/, '');  // Chop away any query string
+    // TODO: could look for thread[.html]/ instead
+    let mid = location.pathname.split('/').pop();
     // List-ID specified?
     const query = unescape(location.search.substr(1));
     let list_id = null;
@@ -3596,7 +3597,7 @@ function parse_permalink() {
     GET('%sapi/preferences.lua'.format(G_apiURL), init_preferences, null);
     // Fetch the thread data and pass to build_single_thread
     if (list_id) {
-        GET('%sapi/thread.lua?id=%s&list=%s'.format(G_apiURL, mid, list_id), construct_single_thread, {
+        GET('%sapi/thread.lua?id=%s&listid=%s'.format(G_apiURL, mid, list_id), construct_single_thread, {
             cached: true
         });
     }
diff --git a/webui/list.html b/webui/list.html
index 356e2d9..4b9f151 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=bd3cdbd" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=74baa11" 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"/>
@@ -180,9 +180,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=bd3cdbd"></script>
-    <script src="js/wordcloud.js?revision=bd3cdbd"></script>
-    <script src="js/ponymail.js?revision=bd3cdbd"></script>
+    <script src="js/config.js?revision=74baa11"></script>
+    <script src="js/wordcloud.js?revision=74baa11"></script>
+    <script src="js/ponymail.js?revision=74baa11"></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 61b57bc..0d62a7c 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=bd3cdbd" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=74baa11" 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=bd3cdbd"></script>
-    <script src="js/ponymail.js?revision=bd3cdbd"></script>
-    <script src="js/oauth.js?revision=bd3cdbd"></script>
+    <script src="js/config.js?revision=74baa11"></script>
+    <script src="js/ponymail.js?revision=74baa11"></script>
+    <script src="js/oauth.js?revision=74baa11"></script>
   </body>
 </html>
diff --git a/webui/thread.html b/webui/thread.html
index 61abcd3..8718ff9 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=bd3cdbd" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=74baa11" 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=bd3cdbd"></script>
-    <script src="js/wordcloud.js?revision=bd3cdbd"></script>
-    <script src="js/ponymail.js?revision=bd3cdbd"></script>
+    <script src="js/config.js?revision=74baa11"></script>
+    <script src="js/wordcloud.js?revision=74baa11"></script>
+    <script src="js/ponymail.js?revision=74baa11"></script>
     <div id="splash" class="splash fade-in"> &nbsp; </div>
     <div style="clear: both;"></div>
   </body>

[incubator-ponymail-foal] 02/03: Rename parameter

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 74baa11606b558a9934c0524663e812958a0835a
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jan 4 14:01:05 2022 +0000

    Rename parameter
---
 webui/js/source/primer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webui/js/source/primer.js b/webui/js/source/primer.js
index 2ea27af..0a7adf4 100644
--- a/webui/js/source/primer.js
+++ b/webui/js/source/primer.js
@@ -166,7 +166,7 @@ function parse_permalink() {
     GET('%sapi/preferences.lua'.format(G_apiURL), init_preferences, null);
     // Fetch the thread data and pass to build_single_thread
     if (list_id) {
-        GET('%sapi/thread.lua?id=%s&list=%s'.format(G_apiURL, mid, list_id), construct_single_thread, {
+        GET('%sapi/thread.lua?id=%s&listid=%s'.format(G_apiURL, mid, list_id), construct_single_thread, {
             cached: true
         });
     }