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.
This commit is contained in:
		@@ -0,0 +1,100 @@
 | 
			
		||||
import {BaseGrid} from './Base.js?v=2';
 | 
			
		||||
import {fireEvent} from '../utils/Event.js?v=2';
 | 
			
		||||
import {renderClickableCountry} from '../DataRenderers.js?v=2';
 | 
			
		||||
 | 
			
		||||
export class CountriesGrid extends BaseGrid {
 | 
			
		||||
    get orderConfig() {
 | 
			
		||||
        return [[0, 'asc']];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    drawCallback(settings) {
 | 
			
		||||
        super.drawCallback(settings);
 | 
			
		||||
 | 
			
		||||
        if (settings && settings.iDraw > 1) {
 | 
			
		||||
            const data = settings.json.data;
 | 
			
		||||
            fireEvent('countriesGridLoaded', {data: data});
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    get columnDefs() {
 | 
			
		||||
        const columnDefs = [
 | 
			
		||||
            {
 | 
			
		||||
                className: 'country-country-col',
 | 
			
		||||
                targets: 0
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                className: 'country-iso-col',
 | 
			
		||||
                targets: 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                className: 'country-cnt-col',
 | 
			
		||||
                targets: 2
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                className: 'country-cnt-col',
 | 
			
		||||
                targets: 3
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                className: 'country-cnt-col',
 | 
			
		||||
                targets: 4
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                visible: false,
 | 
			
		||||
                targets: 5
 | 
			
		||||
            }
 | 
			
		||||
        ];
 | 
			
		||||
 | 
			
		||||
        return columnDefs;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    get columns() {
 | 
			
		||||
        const columns = [
 | 
			
		||||
            {
 | 
			
		||||
                data: 'full_country',
 | 
			
		||||
                name: 'full_country',
 | 
			
		||||
                render: (data, type, record) => {
 | 
			
		||||
                    return renderClickableCountry(record, false);
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                data: 'country_iso',
 | 
			
		||||
                name: 'country_iso'
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                data: 'total_account',
 | 
			
		||||
                name: 'total_account',
 | 
			
		||||
                render: this.renderTotalsLoader,
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                data: 'total_visit',
 | 
			
		||||
                name: 'total_visit',
 | 
			
		||||
                render: this.renderTotalsLoader,
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                data: 'total_ip',
 | 
			
		||||
                name: 'total_ip',
 | 
			
		||||
                render: this.renderTotalsLoader,
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                data: 'id',
 | 
			
		||||
                name: 'id',
 | 
			
		||||
            },
 | 
			
		||||
        ];
 | 
			
		||||
 | 
			
		||||
        return columns;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    updateTableFooter(dataTable) {
 | 
			
		||||
        const tableId = this.config.tableId;
 | 
			
		||||
        const pagerSelector = `#${tableId}_wrapper .dt-paging`;
 | 
			
		||||
 | 
			
		||||
        const api = dataTable.api();
 | 
			
		||||
        if (api.ajax && typeof api.ajax.json === 'function' && api.ajax.json() === undefined) {
 | 
			
		||||
            $(`${pagerSelector} nav`).empty();
 | 
			
		||||
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $(pagerSelector).hide();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user