MCPcopy
hub / github.com/FormidableLabs/webpack-dashboard / setProgress

Method setProgress

dashboard/index.js:114–128  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

112 }
113
114 setProgress(data) {
115 const percent = parseInt(data.value * PERCENT_MULTIPLIER, 10);
116 const formattedPercent = `${percent.toString()}%`;
117
118 if (!percent) {
119 this.progressbar.setProgress(percent);
120 }
121
122 if (this.minimal) {
123 this.progress.setContent(formattedPercent);
124 } else {
125 this.progressbar.setContent(formattedPercent);
126 this.progressbar.setProgress(percent);
127 }
128 }
129
130 setOperations(data) {
131 this.operations.setContent(data.value);

Callers 1

index.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected