]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use cascade FooTable column breakpoints
authormoisseev <moiseev@mezonplus.ru>
Sun, 17 Mar 2024 14:34:34 +0000 (17:34 +0300)
committermoisseev <moiseev@mezonplus.ru>
Sun, 17 Mar 2024 16:41:01 +0000 (19:41 +0300)
interface/js/app/graph.js
interface/js/app/history.js
interface/js/app/libft.js
interface/js/app/symbols.js

index 71306f457d6dba89bc2ec777ccfba0526cd49f1f..5b92c6df6146fee9d094b3145013e538b746efe7 100644 (file)
@@ -128,6 +128,7 @@ define(["jquery", "app/common", "d3evolution", "d3pie", "d3", "footable"],
 
             function initSummaryTable(rows, unit) {
                 common.tables.rrd_summary = FooTable.init("#rrd-table", {
+                    cascade: true,
                     sorting: {
                         enabled: true
                     },
index e486c1060aa800f4164ffb298e7606de55367c62..97a759c9b1374f2c5e7a6039002df4583e2a72c1 100644 (file)
@@ -73,7 +73,7 @@ define(["jquery", "app/common", "app/libft", "footable"],
             }, {
                 name: "ip",
                 title: "IP address",
-                breakpoints: "xs sm",
+                breakpoints: "sm",
                 style: {width: 150, maxWidth: 150}
             }, {
                 name: "action",
@@ -92,13 +92,13 @@ define(["jquery", "app/common", "app/libft", "footable"],
             }, {
                 name: "size",
                 title: "Message size",
-                breakpoints: "xs sm",
+                breakpoints: "sm",
                 style: {width: 120, maxWidth: 120},
                 formatter: libft.formatBytesIEC
             }, {
                 name: "scan_time",
                 title: "Scan time",
-                breakpoints: "xs sm",
+                breakpoints: "sm",
                 style: {maxWidth: 80},
                 sortValue: function (val) { return Number(val); }
             }, {
@@ -110,7 +110,7 @@ define(["jquery", "app/common", "app/libft", "footable"],
             }, {
                 name: "user",
                 title: "Authenticated user",
-                breakpoints: "xs sm",
+                breakpoints: "sm",
                 style: {width: 200, maxWidth: 200}
             }];
         }
@@ -208,6 +208,7 @@ define(["jquery", "app/common", "app/libft", "footable"],
 
         function initErrorsTable(rows) {
             common.tables.errors = FooTable.init("#errorsLog", {
+                cascade: true,
                 columns: [
                     {sorted: true,
                         direction: "DESC",
@@ -217,15 +218,15 @@ define(["jquery", "app/common", "app/libft", "footable"],
                         sortValue: function (val) { return Number(val.options.sortValue); }},
                     {name: "type",
                         title: "Worker type",
-                        breakpoints: "xs sm",
+                        breakpoints: "sm",
                         style: {width: 150, maxWidth: 150}},
                     {name: "pid",
                         title: "PID",
-                        breakpoints: "xs sm",
+                        breakpoints: "sm",
                         style: {width: 110, maxWidth: 110}},
                     {name: "module", title: "Module"},
                     {name: "id", title: "Internal ID"},
-                    {name: "message", title: "Message", breakpoints: "xs sm"},
+                    {name: "message", title: "Message", breakpoints: "sm"},
                 ],
                 rows: rows,
                 paging: {
index 2b2428385194f08e15241bb977e1cb9ef4cc1ea7..a3d65578059a5b1f28c263f09de73e056a5cea88 100644 (file)
@@ -71,7 +71,7 @@ define(["jquery", "app/common", "footable"],
             }, {
                 name: "ip",
                 title: "IP address",
-                breakpoints: "xs sm md",
+                breakpoints: "md",
                 style: {
                     "minWidth": "calc(14ch + 8px)",
                     "word-break": "break-all"
@@ -81,7 +81,7 @@ define(["jquery", "app/common", "footable"],
             }, {
                 name: "sender_mime",
                 title: "[Envelope From] From",
-                breakpoints: "xs sm md",
+                breakpoints: "md",
                 style: {
                     "minWidth": 100,
                     "maxWidth": 200,
@@ -90,7 +90,7 @@ define(["jquery", "app/common", "footable"],
             }, {
                 name: "rcpt_mime_short",
                 title: "[Envelope To] To/Cc/Bcc",
-                breakpoints: "xs sm md",
+                breakpoints: "md",
                 filterable: false,
                 classes: "d-none d-xl-table-cell",
                 style: {
@@ -106,7 +106,7 @@ define(["jquery", "app/common", "footable"],
             }, {
                 name: "subject",
                 title: "Subject",
-                breakpoints: "xs sm md",
+                breakpoints: "md",
                 style: {
                     "word-break": "break-all",
                     "minWidth": 150
@@ -149,13 +149,13 @@ define(["jquery", "app/common", "footable"],
             }, {
                 name: "size",
                 title: "Msg size",
-                breakpoints: "xs sm md",
+                breakpoints: "md",
                 style: {minwidth: 50},
                 formatter: ui.formatBytesIEC
             }, {
                 name: "time_real",
                 title: "Scan time",
-                breakpoints: "xs sm md",
+                breakpoints: "md",
                 style: {maxWidth: 72},
                 sortValue: function (val) { return Number(val); }
             }, {
@@ -168,7 +168,7 @@ define(["jquery", "app/common", "footable"],
             }, {
                 name: "user",
                 title: "Authenticated user",
-                breakpoints: "xs sm md",
+                breakpoints: "md",
                 style: {
                     "minWidth": 100,
                     "maxWidth": 130,
@@ -326,6 +326,7 @@ define(["jquery", "app/common", "footable"],
                 : columnsDefault.map((column) => column);
 
             common.tables[table] = FooTable.init("#historyTable_" + table, {
+                cascade: true,
                 columns: columns,
                 rows: items,
                 expandFirst: expandFirst,
index 893eddb3b7e3771bcf2cfaf3e464cf1a4ecec21f..203cf0d14e2ff23587c1b04cac47a3c971de4415 100644 (file)
@@ -186,16 +186,17 @@ define(["jquery", "app/common", "footable"],
                     /* eslint-enable consistent-this, no-underscore-dangle, one-var-declaration-per-line */
 
                     common.tables.symbols = FooTable.init("#symbolsTable", {
+                        cascade: true,
                         columns: [
                             {sorted: true, direction: "ASC", name: "group", title: "Group"},
                             {name: "symbol", title: "Symbol"},
-                            {name: "description", title: "Description", breakpoints: "xs sm"},
+                            {name: "description", title: "Description", breakpoints: "sm"},
                             {name: "weight", title: "Score"},
                             {name: "frequency",
                                 title: "Frequency",
-                                breakpoints: "xs sm",
+                                breakpoints: "sm",
                                 sortValue: function (value) { return Number(value).toFixed(2); }},
-                            {name: "time", title: "Avg. time", breakpoints: "xs sm"},
+                            {name: "time", title: "Avg. time", breakpoints: "sm"},
                         ],
                         rows: items[0],
                         paging: {