- 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.
97 lines
2.3 KiB
JavaScript
97 lines
2.3 KiB
JavaScript
import {BaseGrid} from './Base.js?v=2';
|
|
import {
|
|
renderClickableAsn,
|
|
renderNetName,
|
|
renderUserCounter,
|
|
} from '../DataRenderers.js?v=2';
|
|
|
|
export class IspsGrid extends BaseGrid {
|
|
get orderConfig() {
|
|
return [[3, 'desc']];
|
|
}
|
|
|
|
get columnDefs() {
|
|
const columnDefs = [
|
|
{
|
|
className: 'isp-asn-col',
|
|
targets: 0
|
|
},
|
|
{
|
|
className: 'isp-network-col',
|
|
targets: 1
|
|
},
|
|
{
|
|
className: 'isp-cnt-col',
|
|
targets: 2
|
|
},
|
|
{
|
|
className: 'isp-cnt-col',
|
|
targets: 3
|
|
},
|
|
{
|
|
className: 'isp-cnt-col',
|
|
targets: 4
|
|
},
|
|
{
|
|
className: 'isp-cnt-col',
|
|
targets: 5
|
|
},
|
|
{
|
|
visible: false,
|
|
targets: 6
|
|
}
|
|
];
|
|
|
|
return columnDefs;
|
|
}
|
|
|
|
get columns() {
|
|
const columns = [
|
|
{
|
|
data: 'asn',
|
|
name: 'asn',
|
|
render: (data, type, record) => {
|
|
record['ispid'] = record.id;
|
|
return renderClickableAsn(record);
|
|
}
|
|
},
|
|
{
|
|
data: 'name',
|
|
name: 'name',
|
|
render: (data, type, record) => {
|
|
record.netname = data;
|
|
return renderNetName(record, 'long');
|
|
}
|
|
},
|
|
{
|
|
data: 'total_visit',
|
|
name: 'total_visit',
|
|
render: this.renderTotalsLoader
|
|
},
|
|
{
|
|
data: 'total_ip',
|
|
name: 'total_ip',
|
|
render: this.renderTotalsLoader
|
|
},
|
|
{
|
|
data: 'total_account',
|
|
name: 'total_account',
|
|
render: this.renderTotalsLoader
|
|
},
|
|
{
|
|
data: 'fraud',
|
|
name: 'fraud',
|
|
render: (data, type, record) => {
|
|
return renderUserCounter(data, 1);
|
|
}
|
|
},
|
|
{
|
|
data: 'id',
|
|
name: 'id',
|
|
},
|
|
];
|
|
|
|
return columns;
|
|
}
|
|
}
|