Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
cli-table2 /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
cell.js
11.63
KB
-rw-r--r--
2022-09-13 13:10
layout-manager.js
6.08
KB
-rw-r--r--
2022-09-13 13:10
table.js
1.81
KB
-rw-r--r--
2022-09-13 13:10
utils.js
6.98
KB
-rw-r--r--
2022-09-13 13:10
Save
Rename
var utils = require('./utils'); var tableLayout = require('./layout-manager'); var _ = require('lodash'); function Table(options){ this.options = utils.mergeOptions(options); } Object.setPrototypeOf(Table.prototype, Array.prototype); Table.prototype.toString = function(){ var array = this; var headersPresent = this.options.head && this.options.head.length; if(headersPresent){ array = [this.options.head]; if(this.length){ array.push.apply(array,this); } } else { this.options.style.head=[]; } var cells = tableLayout.makeTableLayout(array); _.forEach(cells,function(row){ _.forEach(row,function(cell){ cell.mergeTableOptions(this.options,cells); },this); },this); tableLayout.computeWidths(this.options.colWidths,cells); tableLayout.computeHeights(this.options.rowHeights,cells); _.forEach(cells,function(row,rowIndex){ _.forEach(row,function(cell,cellIndex){ cell.init(this.options); },this); },this); var result = []; for(var rowIndex = 0; rowIndex < cells.length; rowIndex++){ var row = cells[rowIndex]; var heightOfRow = this.options.rowHeights[rowIndex]; if(rowIndex === 0 || !this.options.style.compact || (rowIndex == 1 && headersPresent)){ doDraw(row,'top',result); } for(var lineNum = 0; lineNum < heightOfRow; lineNum++){ doDraw(row,lineNum,result); } if(rowIndex + 1 == cells.length){ doDraw(row,'bottom',result); } } return result.join('\n'); }; function doDraw(row,lineNum,result){ var line = []; _.forEach(row,function(cell){ line.push(cell.draw(lineNum)); }); var str = line.join(''); if(str.length) result.push(str); } Table.prototype.__defineGetter__('width', function (){ var str = this.toString().split("\n"); return str[0].length; }); module.exports = Table;