Archived
0
0
Fork 0

chore: ignore dist

This commit is contained in:
Daryl Ronningen 2021-12-29 19:15:57 -08:00
parent fd63579cba
commit 773a18f114
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
3 changed files with 1 additions and 169 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.yarn/cache
.yarn/install-state.gz
node_modules
dist

1
dist/index.d.ts vendored
View file

@ -1 +0,0 @@
export {};

168
dist/index.js vendored
View file

@ -1,168 +0,0 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
process.env['NODE_CONFIG_DIR'] = process.env['HOME'] + '/.config/chord/';
process.env['NODE_CONFIG_ENV'] = 'config';
const blessed_1 = __importDefault(require("blessed"));
require("blessed-contrib");
require("config");
const screen = blessed_1.default.screen({
smartCSR: true,
title: 'chord',
});
const mainWindow = blessed_1.default.box({
top: 0,
left: 0,
width: '100%',
height: '100%',
border: 'line',
label: 'chord',
mouse: true,
});
const serverList = blessed_1.default.box({
parent: mainWindow,
top: 0,
left: 0,
width: '30%',
height: '49%',
border: 'line',
label: 'Server List',
mouse: true,
});
const channelList = blessed_1.default.box({
parent: mainWindow,
top: '49%',
left: 0,
width: '30%',
height: '49%',
border: 'line',
label: 'Channel List',
mouse: true,
});
const chatBox = blessed_1.default.box({
parent: mainWindow,
top: 0,
left: '30%',
width: '60%',
height: '85%',
border: 'line',
label: 'Chat Box',
mouse: true,
});
const messageBox = blessed_1.default.box({
parent: mainWindow,
top: '85%',
left: '30%',
width: '60%',
height: '13%',
border: 'line',
label: 'Message Box',
mouse: true,
});
const userList = blessed_1.default.box({
parent: mainWindow,
top: 0,
left: '90%',
width: '9%',
height: '98%',
border: 'line',
label: 'User List',
mouse: true,
});
const serverListList = blessed_1.default.list({
parent: serverList,
top: 0,
left: 0,
width: '98%',
height: '96%',
keys: true,
vi: true,
mouse: true,
style: {
selected: {
fg: 'white',
bg: 'grey',
},
},
});
const channelListList = blessed_1.default.list({
parent: channelList,
top: 0,
left: 0,
width: '98%',
height: '96%',
keys: true,
vi: true,
mouse: true,
style: {
selected: {
fg: 'white',
bg: 'grey',
},
},
});
const chatBoxList = blessed_1.default.list({
parent: chatBox,
top: 0,
left: 0,
width: '99%',
height: '98%',
keys: true,
vi: true,
mouse: true,
style: {
selected: {
fg: 'white',
bg: 'grey',
},
},
});
const userListList = blessed_1.default.list({
parent: userList,
top: 0,
left: 0,
width: '95%',
height: '98%',
keys: true,
vi: true,
mouse: true,
style: {
selected: {
fg: 'white',
bg: 'grey',
},
},
});
const messageBoxInput = blessed_1.default.textarea({
parent: messageBox,
top: 0,
left: 0,
width: '99%',
height: '87%',
keys: true,
vi: true,
mouse: true,
});
screen.append(mainWindow);
screen.key('S-q', () => {
process.exit(0);
});
screen.key('S-s', () => {
serverListList.focus();
});
screen.key('S-c', () => {
channelListList.focus();
});
screen.key('S-u', () => {
userListList.focus();
});
screen.key('S-b', () => {
chatBoxList.focus();
});
screen.key('S-m', () => {
messageBoxInput.focus();
});
serverListList.focus();
screen.render();