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

Method setStatus

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

Source from the content-addressed store, hash-verified

132 }
133
134 setStatus(data) {
135 let content;
136
137 switch (data.value) {
138 case "Success":
139 content = `{green-fg}{bold}${data.value}{/}`;
140 break;
141 case "Failed":
142 content = `{red-fg}{bold}${data.value}{/}`;
143 break;
144 case "Error":
145 content = `{red-fg}{bold}${data.value}{/}`;
146 break;
147 default:
148 content = `{bold}${data.value}{/}`;
149 }
150 this.status.setContent(content);
151 }
152
153 setStats(data) {
154 const stats = {

Callers 1

index.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected