You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/09/19 22:00:59 UTC

[incubator-ponymail-foal] branch master updated (7de4186 -> 16fa6ca)

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

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


    from 7de4186  Merge pull request #58 from apache/humbedooh/archiver-date-estimate
     new f3df17f  refactor letter checks, add "misc" category
     new ac7bb8a  regen JS
     new 3209090  tweak phonebook display
     new 16fa6ca  Merge branch 'master' of github.com:apache/incubator-ponymail-foal

The 4 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/css/scaffolding.css     |  7 ++++++-
 webui/js/ponymail.js          | 14 ++++++++------
 webui/js/source/list-index.js |  9 +++++++--
 3 files changed, 21 insertions(+), 9 deletions(-)

[incubator-ponymail-foal] 01/04: refactor letter checks, add "misc" category

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

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

commit f3df17f9781abb0ce1b6882a9ff64ead93e6c97f
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 19 16:58:39 2021 -0500

    refactor letter checks, add "misc" category
---
 webui/js/source/list-index.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/webui/js/source/list-index.js b/webui/js/source/list-index.js
index ad782dd..bf55617 100644
--- a/webui/js/source/list-index.js
+++ b/webui/js/source/list-index.js
@@ -34,7 +34,7 @@ function list_index(state, json) {
             }
         }
     } else {
-        let letters = 'abcdefghijklmnopqrstuvwxyz';
+        let letters = 'abcdefghijklmnopqrstuvwxyz#';
         for (var i = 0; i < letters.length; i++) {
             let letter = letters[i].toUpperCase();
             let li = new HTML('li', {
@@ -48,7 +48,7 @@ function list_index(state, json) {
     let list_ul = document.getElementById('list_index_wide_lists');
     list_ul.textContent = "";
     for (let domain_name in list_json.lists) {
-        if (domain_name.toLowerCase().startsWith(letter.toLowerCase())) {
+        if (is_letter(domain_name, letter)) {
             console.log(domain_name);
             let li = new HTML('li', {});
             let a = new HTML('a', {
@@ -64,6 +64,11 @@ function list_index(state, json) {
 let preferred_lists = ['dev', 'users'];
 let preferred_no_lists = ['security'];
 
+function is_letter(domain, letter) {
+    if (letter == '#' && domain.match(/^([^a-zA-Z]+)/)) return true
+    else return domain.toLowerCase().startsWith(letter.toLowerCase());
+}
+
 function best_list(entries) {
     let x = 0;
     let pick = 'dev';

[incubator-ponymail-foal] 04/04: Merge branch 'master' of github.com:apache/incubator-ponymail-foal

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

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

commit 16fa6caea0ab58d70f48354e8aed72b2673e228b
Merge: 3209090 7de4186
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 19 17:00:27 2021 -0500

    Merge branch 'master' of github.com:apache/incubator-ponymail-foal

 server/endpoints/stats.py  | 11 +++----
 server/plugins/messages.py | 19 +++++++++---
 tools/archiver.py          | 72 +++++++++++++++++++++++++++++++++++-----------
 3 files changed, 76 insertions(+), 26 deletions(-)

[incubator-ponymail-foal] 03/04: tweak phonebook display

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

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

commit 32090905dcca9ce9e833956d9d458e8fbe4204f5
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 19 16:59:18 2021 -0500

    tweak phonebook display
---
 webui/css/scaffolding.css | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/webui/css/scaffolding.css b/webui/css/scaffolding.css
index 2fec9bf..252b340 100644
--- a/webui/css/scaffolding.css
+++ b/webui/css/scaffolding.css
@@ -431,6 +431,7 @@ a.dropdown-toggle {
 }
 #list_picker ul {
     list-style: none;
+    padding-inline-start: 0px;
     margin: 0px;
 }
 
@@ -715,7 +716,11 @@ a.dropdown-toggle {
 #list_index_wide_lists {
     list-style: none;
     background-color: white;
-    width: 760px;
+    width: 716px;
+    padding-inline-start: 0px;
+    padding-top: 8px;
+    padding-left: 8px;
+    padding-bottom: 8px;
 }
 
 /* Hide word cloud on short displays */

[incubator-ponymail-foal] 02/04: regen JS

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

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

commit ac7bb8a2638931567441c22801ef1c9037d7cf4a
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 19 16:59:06 2021 -0500

    regen JS
---
 webui/js/ponymail.js | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index d69e05d..a340066 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -1951,7 +1951,7 @@ function list_index(state, json) {
             }
         }
     } else {
-        let letters = 'abcdefghijklmnopqrstuvwxyz';
+        let letters = 'abcdefghijklmnopqrstuvwxyz#';
         for (var i = 0; i < letters.length; i++) {
             let letter = letters[i].toUpperCase();
             let li = new HTML('li', {
@@ -1965,14 +1965,11 @@ function list_index(state, json) {
     let list_ul = document.getElementById('list_index_wide_lists');
     list_ul.textContent = "";
     for (let domain_name in list_json.lists) {
-        if (domain_name.toLowerCase().startsWith(letter.toLowerCase())) {
+        if (is_letter(domain_name, letter)) {
             console.log(domain_name);
             let li = new HTML('li', {});
             let a = new HTML('a', {
-                href: 'list.html?%s'.format(domain_name),
-                style: {
-                    border: "none !important"
-                }
+                href: 'list.html?%s'.format(domain_name)
             }, domain_name);
             li.inject(a);
             list_ul.inject(li);
@@ -1984,6 +1981,11 @@ function list_index(state, json) {
 let preferred_lists = ['dev', 'users'];
 let preferred_no_lists = ['security'];
 
+function is_letter(domain, letter) {
+    if (letter == '#' && domain.match(/^([^a-zA-Z]+)/)) return true
+    else return domain.toLowerCase().startsWith(letter.toLowerCase());
+}
+
 function best_list(entries) {
     let x = 0;
     let pick = 'dev';