- 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.
54 lines
1.5 KiB
JavaScript
54 lines
1.5 KiB
JavaScript
import {BasePage} from './Base.js';
|
|
|
|
import {DatesFilter} from '../parts/DatesFilter.js?v=2';
|
|
import {SearchFilter} from '../parts/SearchFilter.js?v=2';
|
|
import {IpTypeFilter} from '../parts/choices/IpTypeFilter.js?v=2';
|
|
import {IpsChart} from '../parts/chart/Ips.js?v=2';
|
|
import {IpsGrid} from '../parts/grid/Ips.js?v=2';
|
|
|
|
export class IpsPage extends BasePage {
|
|
|
|
constructor() {
|
|
super('ips');
|
|
|
|
this.initUi();
|
|
}
|
|
|
|
initUi() {
|
|
const datesFilter = new DatesFilter();
|
|
const searchFilter = new SearchFilter();
|
|
const ipTypeFilter = new IpTypeFilter();
|
|
|
|
const gridParams = {
|
|
url: '/admin/loadIps',
|
|
tileId: 'totalIps',
|
|
tableId: 'ips-table',
|
|
|
|
dateRangeGrid: true,
|
|
calculateTotals: true,
|
|
totals: {
|
|
type: 'ip',
|
|
columns: ['total_visit'],
|
|
},
|
|
|
|
isSortable: true,
|
|
orderByLastseen: false,
|
|
|
|
choicesFilterEvents: [ipTypeFilter.getEventType()],
|
|
|
|
getParams: function() {
|
|
const dateRange = datesFilter.getValue();
|
|
const searchValue = searchFilter.getValue();
|
|
const ipTypeIds = ipTypeFilter.getValues();
|
|
|
|
return {dateRange, searchValue, ipTypeIds};
|
|
}
|
|
};
|
|
|
|
const chartParams = this.getChartParams(datesFilter, searchFilter);
|
|
|
|
new IpsChart(chartParams);
|
|
new IpsGrid(gridParams);
|
|
}
|
|
}
|