Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function install_alarm_windows() {
if (alarmBox) {
alarmBox.show();
return;
}
alarmBox = blessed.listtable({
parent: area1,
fg: "green",
// label: "{bold}{cyan-fg}Alarms - Conditions {/cyan-fg}{/bold} ",
label: "Alarms - Conditions",
top: "top+6",
left: "left+2",
width: "100%-4",
height: "100%-6",
keys: true,
border: "line",
scrollbar: scrollbar,
noCellBorders: false,
style: _.clone(style)
});
alarmBox.fg = "green";
return bitcoin.listReceivedByAddress(address, function(err, txs) {
return;
});
}
});
});
/**
* Transactions
*/
tabs.tx.on('focus', function() {
tabs.tx._.list.focus();
});
tabs.tx._.list = blessed.listtable({
parent: tabs.tx,
top: 0,
left: 0,
right: 0,
bottom: 0,
// border: {
// type: 'line',
// top: false,
// left: false,
// right: false,
// bottom: false
// },
keys: true,
vi: true,
mouse: true,
tags: true,
render(data) {
this.screen = UI.screen(screenOptions);
this.table = UI.listtable(tableOptions);
this.statusBarLeft = UI.box(statusBarOptions.left);
this.statusBarRight = UI.box(statusBarOptions.right);
this.table.focus();
this.table.setData(data);
this.screen.append(this.table);
this.screen.append(this.statusBarLeft);
this.screen.append(this.statusBarRight);
this.screen.render();
this.setupEvents();
this.reportProgress();
}
install_monitoredItemsWindow() {
this.monitoredItemsList = blessed.listtable({
parent: this.area1,
tags: true,
top: "50%",
left: w2 + "+1",
width: "60%-1",
height: "50%",
keys: true,
label: " Monitored Items ",
border: "line",
scrollbar: scrollbar,
noCellBorders: true,
style: _.clone(style),
align: "left"
});
this.area1.append(this.monitoredItemsList);
export const branchTable = () => {
const branchTable = blessed.listtable({
align: 'left',
left: 0,
keys: true,
right: 0,
noCellBorders: true,
scrollable: true,
scrollbar: true,
style: {
cell: {
selected: {
bg: '#FFFFFF',
fg: '#272727',
},
},
header: {
fg: themeColor,
create() {
this.widget = blessed.listtable({
align: 'center',
border: 'line',
data: null,
height: Math.floor(this.screen.height * 0.8),
interactive: true,
keys: true,
label: '( Pods )',
left: 0,
mouse: true,
parent: this.screen,
tags: true,
top: Math.floor(this.screen.height * 0.2),
width: '100%',
style: {
border: { fg: 'blue' },
header: {
module.exports.createHelpScreen = (screen, version, callback) => {
let helpMenuLayout = null;
helpMenuLayout = blessed.layout({
parent: screen,
top: "center",
left: "center",
width: 80,
height: 34,
border: "line",
style: { border: { fg: "blue" } }
});
let keybindingsTable = blessed.listtable({
parent: helpMenuLayout,
interactive: false,
top: "center",
left: "center",
data: helpMenuData,
border: "line",
align: "center",
pad: 2,
width: 53,
height: 9,
style: {
border: { fg: "bright-blue" },
header: { fg: "bright-green", bold: true, underline: true },
cell: { fg: "yellow" }
}
});
function install_monitoredItemsWindow() {
monitoredItemsList = blessed.listtable({
parent: area1,
tags: true,
top: "50%",
left: w2 + "+1",
width: "60%-1",
height: "50%",
keys: true,
label: " Monitored Items ",
border: "line",
scrollbar: scrollbar,
noCellBorders: true,
style: _.clone(style),
align: "left"
});
area1.append(monitoredItemsList);
});
tabs.send._.form.key(['F', 'f'], function() {
tabs.send._.from.focus();
_pick(tabs.send._.from);
});
/**
* Addresses
*/
tabs.addr.on('focus', function() {
tabs.addr._.list.focus();
});
tabs.addr._.list = blessed.listtable({
parent: tabs.addr,
top: 0,
left: 0,
right: 0,
bottom: 0,
keys: true,
vi: true,
mouse: true,
tags: true,
style: {
scrollbar: {
inverse: true
},
header: {
bold: true
},
export const render: IRenderer = (depMap) =>
{
const screen = blessed.screen({
smartCSR : true,
title : 'NPM Vet'
});
/*
* Setup the table
*/
const table = blessed.listtable({
parent : screen,
name : 'npmvet table',
tags : true,
vi : false,
left : 0,
border : 'line',
align : 'center',
width : '100%',
height : '100%',
style : {
header : {
bg : 'blue'
},