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/01 17:51:36 UTC

[incubator-ponymail-foal] branch master updated (20c90f5 -> 2ba2966)

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 20c90f5  Docco
     new 7890023  Display of listname on search list
     new ff56c7e  Display of listname on search list
     new 2ba2966  Regen and update links

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                 | 29 +++++++++++++++++++++++++----
 webui/js/source/listview-flat.js     | 18 ++++++++++++++++++
 webui/js/source/listview-threaded.js |  9 ++++++---
 webui/list.html                      |  8 ++++----
 webui/oauth.html                     |  8 ++++----
 webui/thread.html                    |  8 ++++----
 8 files changed, 68 insertions(+), 26 deletions(-)

[incubator-ponymail-foal] 02/03: Display of listname on search list

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 ff56c7e85b95f818eeb37d16f800c688feab59a8
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 1 17:47:12 2021 +0000

    Display of listname on search list
    
    Don't adjust subject unless necessary
    This relates to #166
---
 webui/js/source/listview-threaded.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webui/js/source/listview-threaded.js b/webui/js/source/listview-threaded.js
index 3c5b91a..629dfed 100644
--- a/webui/js/source/listview-threaded.js
+++ b/webui/js/source/listview-threaded.js
@@ -154,7 +154,7 @@ function listview_threaded_element(thread, idx) {
     });
 
     let suba = new HTML('a', {}, eml.subject === '' ? '(No subject)' : eml.subject);
-    if (G_current_json.list.match(/\*/) || G_current_json.domain == '*') {
+    if (G_current_listmode_compact && showList) {
         let kbd = new HTML('kbd', {
             class: 'listview_kbd'
         }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1))

[incubator-ponymail-foal] 03/03: Regen and update links

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 2ba2966b16636239930fdc6857e44c744cef529d
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 1 17:49:15 2021 +0000

    Regen and update links
    
    This fixes #166
---
 webui/admin.html     |  8 ++++----
 webui/index.html     |  6 +++---
 webui/js/ponymail.js | 29 +++++++++++++++++++++++++----
 webui/list.html      |  8 ++++----
 webui/oauth.html     |  8 ++++----
 webui/thread.html    |  8 ++++----
 6 files changed, 44 insertions(+), 23 deletions(-)

diff --git a/webui/admin.html b/webui/admin.html
index 112b385..225185c 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=ae9032f" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=ff56c7e" 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=ae9032f"></script>
-    <script src="js/wordcloud.js?revision=ae9032f"></script>
-    <script src="js/ponymail.js?revision=ae9032f"></script>
+    <script src="js/config.js?revision=ff56c7e"></script>
+    <script src="js/wordcloud.js?revision=ff56c7e"></script>
+    <script src="js/ponymail.js?revision=ff56c7e"></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 f695c61..45a4492 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=ae9032f" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=ff56c7e" 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=ae9032f"></script>
-    <script src="js/ponymail.js?revision=ae9032f"></script>
+    <script src="js/config.js?revision=ff56c7e"></script>
+    <script src="js/ponymail.js?revision=ff56c7e"></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 e99ab14..9af1896 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 = 'ae9032f';
+const PONYMAIL_REVISION = 'ff56c7e';
 
 
 /******************************************
@@ -2156,6 +2156,18 @@ function listview_flat_element(eml, idx) {
     }, authorName);
     element.inject(author);
 
+    // reasons to show the list name
+    let showList = G_current_domain == 'inbox' || G_current_list == '*' || G_current_domain == '*';
+
+    // If space and needed, inject ML name
+    if (!G_current_listmode_compact && showList) {
+        author.style.lineHeight = '16px';
+        author.inject(new HTML('br'));
+        author.inject(new HTML('span', {
+            class: "label label-primary",
+            style: "font-style: italic; font-size: 1rem;"
+        }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1)));
+    }
 
     // Combined space for subject + body teaser
     let as = new HTML('div', {
@@ -2163,6 +2175,12 @@ function listview_flat_element(eml, idx) {
     });
 
     let suba = new HTML('a', {}, eml.subject === '' ? '(No subject)' : eml.subject);
+    if (G_current_listmode_compact && showList) {
+        let kbd = new HTML('kbd', {
+            class: 'listview_kbd'
+        }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1))
+        suba = [kbd, suba];
+    }
     let subject = new HTML('div', {
         class: 'listview_email_subject email_unread'
     }, suba);
@@ -2654,8 +2672,11 @@ function listview_threaded_element(thread, idx) {
     }, authorName);
     element.inject(author);
 
-    // If needed, inject ML name
-    if (G_current_domain == 'inbox' || G_current_list == '*') {
+    // reasons to show the list name
+    let showList = G_current_domain == 'inbox' || G_current_list == '*' || G_current_domain == '*';
+
+    // If space and needed, inject ML name
+    if (!G_current_listmode_compact && showList) {
         author.style.lineHeight = '16px';
         author.inject(new HTML('br'));
         author.inject(new HTML('span', {
@@ -2672,7 +2693,7 @@ function listview_threaded_element(thread, idx) {
     });
 
     let suba = new HTML('a', {}, eml.subject === '' ? '(No subject)' : eml.subject);
-    if (G_current_json.list.match(/\*/) || G_current_json.domain == '*') {
+    if (G_current_listmode_compact && showList) {
         let kbd = new HTML('kbd', {
             class: 'listview_kbd'
         }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1))
diff --git a/webui/list.html b/webui/list.html
index 54e9da4..6de1985 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=ae9032f" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=ff56c7e" 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"/>
@@ -173,9 +173,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=ae9032f"></script>
-    <script src="js/wordcloud.js?revision=ae9032f"></script>
-    <script src="js/ponymail.js?revision=ae9032f"></script>
+    <script src="js/config.js?revision=ff56c7e"></script>
+    <script src="js/wordcloud.js?revision=ff56c7e"></script>
+    <script src="js/ponymail.js?revision=ff56c7e"></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 ed2d789..57978e1 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=ae9032f" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=ff56c7e" 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=ae9032f"></script>
-    <script src="js/ponymail.js?revision=ae9032f"></script>
-    <script src="js/oauth.js?revision=ae9032f"></script>
+    <script src="js/config.js?revision=ff56c7e"></script>
+    <script src="js/ponymail.js?revision=ff56c7e"></script>
+    <script src="js/oauth.js?revision=ff56c7e"></script>
   </body>
 </html>
diff --git a/webui/thread.html b/webui/thread.html
index 71b08aa..cbddf95 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=ae9032f" rel="stylesheet" media="all">
+    <link href="css/scaffolding.css?revision=ff56c7e" 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=ae9032f"></script>
-    <script src="js/wordcloud.js?revision=ae9032f"></script>
-    <script src="js/ponymail.js?revision=ae9032f"></script>
+    <script src="js/config.js?revision=ff56c7e"></script>
+    <script src="js/wordcloud.js?revision=ff56c7e"></script>
+    <script src="js/ponymail.js?revision=ff56c7e"></script>
     <div id="splash" class="splash fade-in"> &nbsp; </div>
     <div style="clear: both;"></div>
   </body>

Re: [incubator-ponymail-foal] 01/03: Display of listname on search list

Posted by sebb <se...@gmail.com>.
On Thu, 2 Dec 2021 at 00:11, Daniel Gruno <hu...@apache.org> wrote:
>
> On 01/12/2021 18.51, sebb@apache.org wrote:
> > 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 7890023f81c8a9924f4ba73f63d3a9c2d1cdddda
> > Author: Sebb <se...@apache.org>
> > AuthorDate: Wed Dec 1 17:41:12 2021 +0000
> >
> >      Display of listname on search list
> >
> >      This relates to #166
> > ---
> >   webui/js/source/listview-flat.js     | 18 ++++++++++++++++++
> >   webui/js/source/listview-threaded.js |  7 +++++--
> >   2 files changed, 23 insertions(+), 2 deletions(-)
> >
> > diff --git a/webui/js/source/listview-flat.js b/webui/js/source/listview-flat.js
> > index 7fcf169..f42138d 100644
> > --- a/webui/js/source/listview-flat.js
> > +++ b/webui/js/source/listview-flat.js
> > @@ -89,6 +89,18 @@ function listview_flat_element(eml, idx) {
> >       }, authorName);
> >       element.inject(author);
> >
> > +    // reasons to show the list name
> > +    let showList = G_current_domain == 'inbox' || G_current_list == '*' || G_current_domain == '*';
> > +
> > +    // If space and needed, inject ML name
> > +    if (!G_current_listmode_compact && showList) {
> > +        author.style.lineHeight = '16px';
> > +        author.inject(new HTML('br'));
> > +        author.inject(new HTML('span', {
> > +            class: "label label-primary",
> > +            style: "font-style: italic; font-size: 1rem;"
>
> Using the style element like this is not supported by all browsers (as
> it's technically not the proper way). I would suggest having it as a
> dictionary instead:
> style: { fontStyle: "italic", fontSize: "1rem"}

That is not my code.
I merely copied existing code from listview-threaded-element.

> > +        }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1)));
> > +    }
> >
> >       // Combined space for subject + body teaser
> >       let as = new HTML('div', {
> > @@ -96,6 +108,12 @@ function listview_flat_element(eml, idx) {
> >       });
> >
> >       let suba = new HTML('a', {}, eml.subject === '' ? '(No subject)' : eml.subject);
> > +    if (G_current_listmode_compact && showList) {
> > +        let kbd = new HTML('kbd', {
> > +            class: 'listview_kbd'
> > +        }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1))
> > +        suba = [kbd, suba];
> > +    }
> >       let subject = new HTML('div', {
> >           class: 'listview_email_subject email_unread'
> >       }, suba);
> > diff --git a/webui/js/source/listview-threaded.js b/webui/js/source/listview-threaded.js
> > index 26c6464..3c5b91a 100644
> > --- a/webui/js/source/listview-threaded.js
> > +++ b/webui/js/source/listview-threaded.js
> > @@ -133,8 +133,11 @@ function listview_threaded_element(thread, idx) {
> >       }, authorName);
> >       element.inject(author);
> >
> > -    // If needed, inject ML name
> > -    if (G_current_domain == 'inbox' || G_current_list == '*') {
> > +    // reasons to show the list name
> > +    let showList = G_current_domain == 'inbox' || G_current_list == '*' || G_current_domain == '*';
> > +
> > +    // If space and needed, inject ML name
> > +    if (!G_current_listmode_compact && showList) {
> >           author.style.lineHeight = '16px';
> >           author.inject(new HTML('br'));
> >           author.inject(new HTML('span', {
> >
>

Re: [incubator-ponymail-foal] 01/03: Display of listname on search list

Posted by Daniel Gruno <hu...@apache.org>.
On 01/12/2021 18.51, sebb@apache.org wrote:
> 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 7890023f81c8a9924f4ba73f63d3a9c2d1cdddda
> Author: Sebb <se...@apache.org>
> AuthorDate: Wed Dec 1 17:41:12 2021 +0000
> 
>      Display of listname on search list
>      
>      This relates to #166
> ---
>   webui/js/source/listview-flat.js     | 18 ++++++++++++++++++
>   webui/js/source/listview-threaded.js |  7 +++++--
>   2 files changed, 23 insertions(+), 2 deletions(-)
> 
> diff --git a/webui/js/source/listview-flat.js b/webui/js/source/listview-flat.js
> index 7fcf169..f42138d 100644
> --- a/webui/js/source/listview-flat.js
> +++ b/webui/js/source/listview-flat.js
> @@ -89,6 +89,18 @@ function listview_flat_element(eml, idx) {
>       }, authorName);
>       element.inject(author);
>   
> +    // reasons to show the list name
> +    let showList = G_current_domain == 'inbox' || G_current_list == '*' || G_current_domain == '*';
> +
> +    // If space and needed, inject ML name
> +    if (!G_current_listmode_compact && showList) {
> +        author.style.lineHeight = '16px';
> +        author.inject(new HTML('br'));
> +        author.inject(new HTML('span', {
> +            class: "label label-primary",
> +            style: "font-style: italic; font-size: 1rem;"

Using the style element like this is not supported by all browsers (as 
it's technically not the proper way). I would suggest having it as a 
dictionary instead:
style: { fontStyle: "italic", fontSize: "1rem"}

> +        }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1)));
> +    }
>   
>       // Combined space for subject + body teaser
>       let as = new HTML('div', {
> @@ -96,6 +108,12 @@ function listview_flat_element(eml, idx) {
>       });
>   
>       let suba = new HTML('a', {}, eml.subject === '' ? '(No subject)' : eml.subject);
> +    if (G_current_listmode_compact && showList) {
> +        let kbd = new HTML('kbd', {
> +            class: 'listview_kbd'
> +        }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1))
> +        suba = [kbd, suba];
> +    }
>       let subject = new HTML('div', {
>           class: 'listview_email_subject email_unread'
>       }, suba);
> diff --git a/webui/js/source/listview-threaded.js b/webui/js/source/listview-threaded.js
> index 26c6464..3c5b91a 100644
> --- a/webui/js/source/listview-threaded.js
> +++ b/webui/js/source/listview-threaded.js
> @@ -133,8 +133,11 @@ function listview_threaded_element(thread, idx) {
>       }, authorName);
>       element.inject(author);
>   
> -    // If needed, inject ML name
> -    if (G_current_domain == 'inbox' || G_current_list == '*') {
> +    // reasons to show the list name
> +    let showList = G_current_domain == 'inbox' || G_current_list == '*' || G_current_domain == '*';
> +
> +    // If space and needed, inject ML name
> +    if (!G_current_listmode_compact && showList) {
>           author.style.lineHeight = '16px';
>           author.inject(new HTML('br'));
>           author.inject(new HTML('span', {
> 


[incubator-ponymail-foal] 01/03: Display of listname on search list

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 7890023f81c8a9924f4ba73f63d3a9c2d1cdddda
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 1 17:41:12 2021 +0000

    Display of listname on search list
    
    This relates to #166
---
 webui/js/source/listview-flat.js     | 18 ++++++++++++++++++
 webui/js/source/listview-threaded.js |  7 +++++--
 2 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/webui/js/source/listview-flat.js b/webui/js/source/listview-flat.js
index 7fcf169..f42138d 100644
--- a/webui/js/source/listview-flat.js
+++ b/webui/js/source/listview-flat.js
@@ -89,6 +89,18 @@ function listview_flat_element(eml, idx) {
     }, authorName);
     element.inject(author);
 
+    // reasons to show the list name
+    let showList = G_current_domain == 'inbox' || G_current_list == '*' || G_current_domain == '*';
+
+    // If space and needed, inject ML name
+    if (!G_current_listmode_compact && showList) {
+        author.style.lineHeight = '16px';
+        author.inject(new HTML('br'));
+        author.inject(new HTML('span', {
+            class: "label label-primary",
+            style: "font-style: italic; font-size: 1rem;"
+        }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1)));
+    }
 
     // Combined space for subject + body teaser
     let as = new HTML('div', {
@@ -96,6 +108,12 @@ function listview_flat_element(eml, idx) {
     });
 
     let suba = new HTML('a', {}, eml.subject === '' ? '(No subject)' : eml.subject);
+    if (G_current_listmode_compact && showList) {
+        let kbd = new HTML('kbd', {
+            class: 'listview_kbd'
+        }, eml.list_raw.replace(/[<>]/g, '').replace('.', '@', 1))
+        suba = [kbd, suba];
+    }
     let subject = new HTML('div', {
         class: 'listview_email_subject email_unread'
     }, suba);
diff --git a/webui/js/source/listview-threaded.js b/webui/js/source/listview-threaded.js
index 26c6464..3c5b91a 100644
--- a/webui/js/source/listview-threaded.js
+++ b/webui/js/source/listview-threaded.js
@@ -133,8 +133,11 @@ function listview_threaded_element(thread, idx) {
     }, authorName);
     element.inject(author);
 
-    // If needed, inject ML name
-    if (G_current_domain == 'inbox' || G_current_list == '*') {
+    // reasons to show the list name
+    let showList = G_current_domain == 'inbox' || G_current_list == '*' || G_current_domain == '*';
+
+    // If space and needed, inject ML name
+    if (!G_current_listmode_compact && showList) {
         author.style.lineHeight = '16px';
         author.inject(new HTML('br'));
         author.inject(new HTML('span', {