diff --git a/.gitignore b/.gitignore index c936bc0..5afca8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .yarn/cache .yarn/install-state.gz node_modules +dist diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 0f9e333..0000000 --- a/dist/index.js +++ /dev/null @@ -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();