Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
npm /
node_modules /
gauge /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
base-theme.js
424
B
-rw-r--r--
2022-10-11 10:59
error.js
616
B
-rw-r--r--
2022-10-11 10:59
has-color.js
99
B
-rw-r--r--
2022-10-11 10:59
index.js
7.12
KB
-rw-r--r--
2023-06-20 17:20
plumbing.js
1.25
KB
-rw-r--r--
2022-10-11 10:59
process.js
89
B
-rw-r--r--
2022-10-11 10:59
progress-bar.js
1.01
KB
-rw-r--r--
2022-10-11 10:59
render-template.js
5.81
KB
-rw-r--r--
2022-10-11 10:59
set-immediate.js
139
B
-rw-r--r--
2022-10-11 10:59
set-interval.js
93
B
-rw-r--r--
2022-10-11 10:59
spin.js
105
B
-rw-r--r--
2022-10-11 10:59
template-item.js
1.93
KB
-rw-r--r--
2022-10-11 10:59
theme-set.js
3.63
KB
-rw-r--r--
2022-10-11 10:59
themes.js
1.63
KB
-rw-r--r--
2022-10-11 10:59
wide-truncate.js
858
B
-rw-r--r--
2022-10-11 10:59
Save
Rename
'use strict' var validate = require('aproba') var renderTemplate = require('./render-template.js') var wideTruncate = require('./wide-truncate') var stringWidth = require('string-width') module.exports = function (theme, width, completed) { validate('ONN', [theme, width, completed]) if (completed < 0) { completed = 0 } if (completed > 1) { completed = 1 } if (width <= 0) { return '' } var sofar = Math.round(width * completed) var rest = width - sofar var template = [ { type: 'complete', value: repeat(theme.complete, sofar), length: sofar }, { type: 'remaining', value: repeat(theme.remaining, rest), length: rest }, ] return renderTemplate(width, template, theme) } // lodash's way of repeating function repeat (string, width) { var result = '' var n = width do { if (n % 2) { result += string } n = Math.floor(n / 2) /* eslint no-self-assign: 0 */ string += string } while (n && stringWidth(result) < width) return wideTruncate(result, width) }