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

Method layoutModules

dashboard/index.js:324–373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322 }
323
324 layoutModules() {
325 this.modulesMenu = blessed.listbar({
326 label: "Modules",
327 mouse: true,
328 tags: true,
329 width: "50%",
330 height: "66%",
331 left: "0%",
332 top: "36%",
333 border: {
334 type: "line"
335 },
336 padding: 1,
337 style: {
338 fg: -1,
339 border: {
340 fg: this.color
341 },
342 prefix: {
343 fg: -1
344 },
345 item: {
346 fg: "white"
347 },
348 selected: {
349 fg: "black",
350 bg: this.color
351 }
352 },
353 autoCommandKeys: true
354 });
355
356 this.moduleTable = blessed.table(
357 Object.assign({}, DEFAULT_SCROLL_OPTIONS, {
358 parent: this.modulesMenu,
359 height: "100%",
360 width: "100%-5",
361 padding: {
362 top: 2,
363 right: 1,
364 left: 1
365 },
366 align: "left",
367 data: [["Name", "Size", "Percent"]],
368 tags: true
369 })
370 );
371
372 this.screen.append(this.modulesMenu);
373 }
374
375 layoutAssets() {
376 this.assets = blessed.box({

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected