function initSummaryTable(rows, unit) {
common.tables.rrd_summary = FooTable.init("#rrd-table", {
+ cascade: true,
sorting: {
enabled: true
},
}, {
name: "ip",
title: "IP address",
- breakpoints: "xs sm",
+ breakpoints: "sm",
style: {width: 150, maxWidth: 150}
}, {
name: "action",
}, {
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); }
}, {
}, {
name: "user",
title: "Authenticated user",
- breakpoints: "xs sm",
+ breakpoints: "sm",
style: {width: 200, maxWidth: 200}
}];
}
function initErrorsTable(rows) {
common.tables.errors = FooTable.init("#errorsLog", {
+ cascade: true,
columns: [
{sorted: true,
direction: "DESC",
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: {
}, {
name: "ip",
title: "IP address",
- breakpoints: "xs sm md",
+ breakpoints: "md",
style: {
"minWidth": "calc(14ch + 8px)",
"word-break": "break-all"
}, {
name: "sender_mime",
title: "[Envelope From] From",
- breakpoints: "xs sm md",
+ breakpoints: "md",
style: {
"minWidth": 100,
"maxWidth": 200,
}, {
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: {
}, {
name: "subject",
title: "Subject",
- breakpoints: "xs sm md",
+ breakpoints: "md",
style: {
"word-break": "break-all",
"minWidth": 150
}, {
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); }
}, {
}, {
name: "user",
title: "Authenticated user",
- breakpoints: "xs sm md",
+ breakpoints: "md",
style: {
"minWidth": 100,
"maxWidth": 130,
: columnsDefault.map((column) => column);
common.tables[table] = FooTable.init("#historyTable_" + table, {
+ cascade: true,
columns: columns,
rows: items,
expandFirst: expandFirst,
/* 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: {