mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-06 22:59:27 +00:00
267f5b2972
- Moved public/js/apps/LogsViewer.js to public/js/apps/LogsViewer/ - Added new JS file public/js/apps/LogsViewer/TabulatorSetup.js to setup the tabulator in the LogsViewer app - Added new property tabulatorEvents to the FilterCmpt to subscribe events for the tabulator
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
/**
|
|
* Copyright (C) 2022 fhcomplete.org
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/**
|
|
*
|
|
*/
|
|
export const LogsViewerTabulatorOptions = {
|
|
height: 500,
|
|
layout: 'fitColumns',
|
|
columns: [
|
|
{title: 'Log ID', field: 'LogId'},
|
|
{title: 'Request ID', field: 'RequestId'},
|
|
{title: 'Execution time', field: 'ExecutionTime'},
|
|
{title: 'Executed by', field: 'ExecutedBy'},
|
|
{title: 'Description', field: 'Description'},
|
|
{title: 'Data', field: 'Data'},
|
|
{title: 'Web service type', field: 'WebserviceType'}
|
|
]
|
|
};
|
|
|
|
/**
|
|
*
|
|
*/
|
|
export const LogsViewerTabulatorEventHandlers = [
|
|
{
|
|
event: "rowClick",
|
|
handler: function(e, row) {
|
|
alert(row.getData().Data);
|
|
}
|
|
}
|
|
];
|
|
|