Files
TSYSDevStack/CloudronStack/output/CloudronPackages-Artifacts/tirreno/ui/js/parts/grid/Logbook.js
ReachableCEO 91d52d2de5 feat(cloudron): add tirreno package artifacts
- Add CloudronStack/output/CloudronPackages-Artifacts/tirreno/ directory and its contents
- Includes package manifest, Dockerfile, source code, documentation, and build artifacts
- Add tirreno-1761840148.tar.gz as a build artifact
- Add tirreno-cloudron-package-1761841304.tar.gz as the Cloudron package
- Include all necessary files for the tirreno Cloudron package

This adds the complete tirreno Cloudron package artifacts to the repository.
2025-10-30 11:43:06 -05:00

67 lines
1.5 KiB
JavaScript

import {BaseGridWithPanel} from './BaseWithPanel.js?v=2';
import {
renderIp,
renderTimeMs,
renderErrorType,
renderSensorErrorColumn,
} from '../DataRenderers.js?v=2';
export class LogbookGrid extends BaseGridWithPanel {
get orderConfig() {
return [[2, 'desc'], [1, 'desc']];
}
get columnDefs() {
const columnDefs = [
{
className: 'logbook-ip-col',
targets: 0
},
{
className: 'logbook-timestamp-col',
targets: 1
},
{
className: 'logbook-status-col',
targets: 2
},
{
className: 'logbook-message-col',
targets: 3
},
];
return columnDefs;
}
get columns() {
const columns = [
{
data: 'ip',
render: (data, type, record) => {
return renderIp(record);
}
},
{
data: 'started',
render: renderTimeMs,
},
{
data: 'error_type',
render: (data, type, record) => {
return renderErrorType(record);
}
},
{
data: 'error_text',
render: (data, type, record) => {
return renderSensorErrorColumn(record);
}
},
];
return columns;
}
}