mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 14:41:29 +00:00

PR-URL: https://github.com/nodejs/node/pull/20190 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
15 lines
395 B
JavaScript
15 lines
395 B
JavaScript
'use strict'
|
|
var spin = require('./spin.js')
|
|
var progressBar = require('./progress-bar.js')
|
|
|
|
module.exports = {
|
|
activityIndicator: function (values, theme, width) {
|
|
if (values.spun == null) return
|
|
return spin(theme, values.spun)
|
|
},
|
|
progressbar: function (values, theme, width) {
|
|
if (values.completed == null) return
|
|
return progressBar(theme, width, values.completed)
|
|
}
|
|
}
|