mirror of https://github.com/apache/nifi.git
NIFI-350:
- Updating the default sort direction where appropriate.
This commit is contained in:
parent
bf97094b8c
commit
5c0ed559b5
|
@ -445,11 +445,11 @@ nf.ClusterTable = (function () {
|
||||||
var columnModel = [
|
var columnModel = [
|
||||||
{id: 'moreDetails', name: ' ', sortable: false, resizable: false, formatter: moreDetailsFormatter, width: 50, maxWidth: 50},
|
{id: 'moreDetails', name: ' ', sortable: false, resizable: false, formatter: moreDetailsFormatter, width: 50, maxWidth: 50},
|
||||||
{id: 'node', field: 'node', name: 'Node Address', formatter: nodeFormatter, resizable: true, sortable: true},
|
{id: 'node', field: 'node', name: 'Node Address', formatter: nodeFormatter, resizable: true, sortable: true},
|
||||||
{id: 'activeThreadCount', field: 'activeThreadCount', name: 'Active Thread Count', resizable: true, sortable: true},
|
{id: 'activeThreadCount', field: 'activeThreadCount', name: 'Active Thread Count', resizable: true, sortable: true, defaultSortAsc: false},
|
||||||
{id: 'queued', field: 'queued', name: '<span class="queued-title">Queue</span> / <span class="queued-size-title">Size</span>', resizable: true, sortable: true},
|
{id: 'queued', field: 'queued', name: '<span class="queued-title">Queue</span> / <span class="queued-size-title">Size</span>', resizable: true, sortable: true, defaultSortAsc: false},
|
||||||
{id: 'status', field: 'status', name: 'Status', formatter: statusFormatter, resizable: true, sortable: true},
|
{id: 'status', field: 'status', name: 'Status', formatter: statusFormatter, resizable: true, sortable: true},
|
||||||
{id: 'uptime', field: 'nodeStartTime', name: 'Uptime', formatter: valueFormatter, resizable: true, sortable: true},
|
{id: 'uptime', field: 'nodeStartTime', name: 'Uptime', formatter: valueFormatter, resizable: true, sortable: true, defaultSortAsc: false},
|
||||||
{id: 'heartbeat', field: 'heartbeat', name: 'Last Heartbeat', formatter: valueFormatter, resizable: true, sortable: true}
|
{id: 'heartbeat', field: 'heartbeat', name: 'Last Heartbeat', formatter: valueFormatter, resizable: true, sortable: true, defaultSortAsc: false}
|
||||||
];
|
];
|
||||||
|
|
||||||
// only allow the admin to modify the cluster
|
// only allow the admin to modify the cluster
|
||||||
|
|
|
@ -172,7 +172,7 @@ nf.CountersTable = (function () {
|
||||||
var countersColumns = [
|
var countersColumns = [
|
||||||
{id: 'context', name: 'Context', field: 'context', sortable: true, resizable: true},
|
{id: 'context', name: 'Context', field: 'context', sortable: true, resizable: true},
|
||||||
{id: 'name', name: 'Name', field: 'name', sortable: true, resizable: true},
|
{id: 'name', name: 'Name', field: 'name', sortable: true, resizable: true},
|
||||||
{id: 'value', name: 'Value', field: 'value', sortable: true, resizable: true}
|
{id: 'value', name: 'Value', field: 'value', sortable: true, resizable: true, defaultSortAsc: false}
|
||||||
];
|
];
|
||||||
|
|
||||||
// only allow dfm's to reset counters
|
// only allow dfm's to reset counters
|
||||||
|
|
|
@ -584,10 +584,10 @@ nf.ProvenanceTable = (function () {
|
||||||
// initialize the provenance table
|
// initialize the provenance table
|
||||||
var provenanceColumns = [
|
var provenanceColumns = [
|
||||||
{id: 'moreDetails', name: ' ', sortable: false, resizable: false, formatter: moreDetailsFormatter, width: 50, maxWidth: 50},
|
{id: 'moreDetails', name: ' ', sortable: false, resizable: false, formatter: moreDetailsFormatter, width: 50, maxWidth: 50},
|
||||||
{id: 'eventTime', name: 'Date/Time', field: 'eventTime', sortable: true, resizable: true},
|
{id: 'eventTime', name: 'Date/Time', field: 'eventTime', sortable: true, defaultSortAsc: false, resizable: true},
|
||||||
{id: 'eventType', name: 'Type', field: 'eventType', sortable: true, resizable: true},
|
{id: 'eventType', name: 'Type', field: 'eventType', sortable: true, resizable: true},
|
||||||
{id: 'flowFileUuid', name: 'FlowFile Uuid', field: 'flowFileUuid', sortable: true, resizable: true},
|
{id: 'flowFileUuid', name: 'FlowFile Uuid', field: 'flowFileUuid', sortable: true, resizable: true},
|
||||||
{id: 'fileSize', name: 'Size', field: 'fileSize', sortable: true, resizable: true},
|
{id: 'fileSize', name: 'Size', field: 'fileSize', sortable: true, defaultSortAsc: false, resizable: true},
|
||||||
{id: 'componentName', name: 'Component Name', field: 'componentName', sortable: true, resizable: true, formatter: valueFormatter},
|
{id: 'componentName', name: 'Component Name', field: 'componentName', sortable: true, resizable: true, formatter: valueFormatter},
|
||||||
{id: 'componentType', name: 'Component Type', field: 'componentType', sortable: true, resizable: true}
|
{id: 'componentType', name: 'Component Type', field: 'componentType', sortable: true, resizable: true}
|
||||||
];
|
];
|
||||||
|
|
|
@ -301,10 +301,10 @@ nf.SummaryTable = (function () {
|
||||||
// define the input, read, written, and output columns (reused between both tables)
|
// define the input, read, written, and output columns (reused between both tables)
|
||||||
var nameColumn = {id: 'name', field: 'name', name: 'Name', sortable: true, resizable: true};
|
var nameColumn = {id: 'name', field: 'name', name: 'Name', sortable: true, resizable: true};
|
||||||
var runStatusColumn = {id: 'runStatus', field: 'runStatus', name: 'Run Status', formatter: runStatusFormatter, sortable: true};
|
var runStatusColumn = {id: 'runStatus', field: 'runStatus', name: 'Run Status', formatter: runStatusFormatter, sortable: true};
|
||||||
var inputColumn = {id: 'input', field: 'input', name: '<span class="input-title">In</span> / <span class="input-size-title">Size</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / data size in the last 5 min', sortable: true, resizable: true};
|
var inputColumn = {id: 'input', field: 'input', name: '<span class="input-title">In</span> / <span class="input-size-title">Size</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / data size in the last 5 min', sortable: true, defaultSortAsc: false, resizable: true};
|
||||||
var ioColumn = {id: 'io', field: 'io', name: '<span class="read-title">Read</span> / <span class="written-title">Write</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Data size in the last 5 min', formatter: ioFormatter, sortable: true, resizable: true};
|
var ioColumn = {id: 'io', field: 'io', name: '<span class="read-title">Read</span> / <span class="written-title">Write</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Data size in the last 5 min', formatter: ioFormatter, sortable: true, defaultSortAsc: false, resizable: true};
|
||||||
var outputColumn = {id: 'output', field: 'output', name: '<span class="output-title">Out</span> / <span class="output-size-title">Size</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / data size in the last 5 min', sortable: true, resizable: true};
|
var outputColumn = {id: 'output', field: 'output', name: '<span class="output-title">Out</span> / <span class="output-size-title">Size</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / data size in the last 5 min', sortable: true, defaultSortAsc: false, resizable: true};
|
||||||
var tasksTimeColumn = {id: 'tasks', field: 'tasks', name: '<span class="tasks-title">Tasks</span> / <span class="time-title">Time</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / duration in the last 5 min', formatter: taskTimeFormatter, sortable: true, resizable: true};
|
var tasksTimeColumn = {id: 'tasks', field: 'tasks', name: '<span class="tasks-title">Tasks</span> / <span class="time-title">Time</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / duration in the last 5 min', formatter: taskTimeFormatter, sortable: true, defaultSortAsc: false, resizable: true};
|
||||||
|
|
||||||
// define the column model for the processor summary table
|
// define the column model for the processor summary table
|
||||||
var processorsColumnModel = [
|
var processorsColumnModel = [
|
||||||
|
@ -565,7 +565,7 @@ nf.SummaryTable = (function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
// define the input, read, written, and output columns (reused between both tables)
|
// define the input, read, written, and output columns (reused between both tables)
|
||||||
var queueColumn = {id: 'queued', field: 'queued', name: '<span class="queued-title">Queue</span> / <span class="queued-size-title">Size</span>', sortable: true, resize: true};
|
var queueColumn = {id: 'queued', field: 'queued', name: '<span class="queued-title">Queue</span> / <span class="queued-size-title">Size</span>', sortable: true, defaultSortAsc: false, resize: true};
|
||||||
|
|
||||||
// define the column model for the summary table
|
// define the column model for the summary table
|
||||||
var connectionsColumnModel = [
|
var connectionsColumnModel = [
|
||||||
|
@ -1264,8 +1264,8 @@ nf.SummaryTable = (function () {
|
||||||
|
|
||||||
var transmissionStatusColumn = {id: 'transmissionStatus', field: 'transmissionStatus', name: 'Transmitting', formatter: transmissionStatusFormatter, sortable: true, resizable: true};
|
var transmissionStatusColumn = {id: 'transmissionStatus', field: 'transmissionStatus', name: 'Transmitting', formatter: transmissionStatusFormatter, sortable: true, resizable: true};
|
||||||
var targetUriColumn = {id: 'targetUri', field: 'targetUri', name: 'Target URI', sortable: true, resizable: true};
|
var targetUriColumn = {id: 'targetUri', field: 'targetUri', name: 'Target URI', sortable: true, resizable: true};
|
||||||
var sentColumn = {id: 'sent', field: 'sent', name: '<span class="sent-title">Sent</span> / <span class="sent-size-title">Size</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / data size in the last 5 min', sortable: true, resizable: true};
|
var sentColumn = {id: 'sent', field: 'sent', name: '<span class="sent-title">Sent</span> / <span class="sent-size-title">Size</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / data size in the last 5 min', sortable: true, defaultSortAsc: false, resizable: true};
|
||||||
var receivedColumn = {id: 'received', field: 'received', name: '<span class="received-title">Received</span> / <span class="received-size-title">Size</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / data size in the last 5 min', sortable: true, resizable: true};
|
var receivedColumn = {id: 'received', field: 'received', name: '<span class="received-title">Received</span> / <span class="received-size-title">Size</span> <span style="font-weight: normal; overflow: hidden;">5 min</span>', toolTip: 'Count / data size in the last 5 min', sortable: true, defaultSortAsc: false, resizable: true};
|
||||||
|
|
||||||
// define the column model for the summary table
|
// define the column model for the summary table
|
||||||
var remoteProcessGroupsColumnModel = [
|
var remoteProcessGroupsColumnModel = [
|
||||||
|
|
|
@ -204,7 +204,7 @@ nf.TemplatesTable = (function () {
|
||||||
|
|
||||||
// initialize the templates table
|
// initialize the templates table
|
||||||
var templatesColumns = [
|
var templatesColumns = [
|
||||||
{id: 'timestamp', name: 'Date/Time', field: 'timestamp', sortable: true, resizable: false, formatter: valueFormatter, width: 225, maxWidth: 225},
|
{id: 'timestamp', name: 'Date/Time', field: 'timestamp', sortable: true, defaultSortAsc: false, resizable: false, formatter: valueFormatter, width: 225, maxWidth: 225},
|
||||||
{id: 'name', name: 'Name', field: 'name', sortable: true, resizable: true},
|
{id: 'name', name: 'Name', field: 'name', sortable: true, resizable: true},
|
||||||
{id: 'description', name: 'Description', field: 'description', sortable: true, resizable: true, formatter: valueFormatter},
|
{id: 'description', name: 'Description', field: 'description', sortable: true, resizable: true, formatter: valueFormatter},
|
||||||
{id: 'actions', name: ' ', sortable: false, resizable: false, formatter: actionFormatter, width: 100, maxWidth: 100}
|
{id: 'actions', name: ' ', sortable: false, resizable: false, formatter: actionFormatter, width: 100, maxWidth: 100}
|
||||||
|
@ -231,14 +231,14 @@ nf.TemplatesTable = (function () {
|
||||||
// initialize the sort
|
// initialize the sort
|
||||||
sort({
|
sort({
|
||||||
columnId: 'timestamp',
|
columnId: 'timestamp',
|
||||||
sortAsc: true
|
sortAsc: false
|
||||||
}, templatesData);
|
}, templatesData);
|
||||||
|
|
||||||
// initialize the grid
|
// initialize the grid
|
||||||
var templatesGrid = new Slick.Grid('#templates-table', templatesData, templatesColumns, templatesOptions);
|
var templatesGrid = new Slick.Grid('#templates-table', templatesData, templatesColumns, templatesOptions);
|
||||||
templatesGrid.setSelectionModel(new Slick.RowSelectionModel());
|
templatesGrid.setSelectionModel(new Slick.RowSelectionModel());
|
||||||
templatesGrid.registerPlugin(new Slick.AutoTooltips());
|
templatesGrid.registerPlugin(new Slick.AutoTooltips());
|
||||||
templatesGrid.setSortColumn('timestamp', true);
|
templatesGrid.setSortColumn('timestamp', false);
|
||||||
templatesGrid.onSort.subscribe(function (e, args) {
|
templatesGrid.onSort.subscribe(function (e, args) {
|
||||||
sort({
|
sort({
|
||||||
columnId: args.sortCol.field,
|
columnId: args.sortCol.field,
|
||||||
|
|
|
@ -592,7 +592,7 @@ nf.UsersTable = (function () {
|
||||||
{id: 'userName', name: 'User', field: 'userName', sortable: true, resizable: true},
|
{id: 'userName', name: 'User', field: 'userName', sortable: true, resizable: true},
|
||||||
{id: 'userGroup', name: 'Group', field: 'userGroup', sortable: true, resizable: true, formatter: valueFormatter},
|
{id: 'userGroup', name: 'Group', field: 'userGroup', sortable: true, resizable: true, formatter: valueFormatter},
|
||||||
{id: 'authorities', name: 'Roles', field: 'authorities', sortable: true, resizable: true, formatter: roleFormatter},
|
{id: 'authorities', name: 'Roles', field: 'authorities', sortable: true, resizable: true, formatter: roleFormatter},
|
||||||
{id: 'lastAccessed', name: 'Last Accessed', field: 'lastAccessed', sortable: true, resizable: true, formatter: valueFormatter},
|
{id: 'lastAccessed', name: 'Last Accessed', field: 'lastAccessed', sortable: true, defaultSortAsc: false, resizable: true, formatter: valueFormatter},
|
||||||
{id: 'status', name: 'Status', field: 'status', sortable: true, resizable: false, formatter: statusFormatter},
|
{id: 'status', name: 'Status', field: 'status', sortable: true, resizable: false, formatter: statusFormatter},
|
||||||
{id: 'actions', name: ' ', sortable: false, resizable: false, formatter: actionFormatter, width: 100, maxWidth: 100}
|
{id: 'actions', name: ' ', sortable: false, resizable: false, formatter: actionFormatter, width: 100, maxWidth: 100}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue