improve lib/blessed.js
This commit is contained in:
parent
5eddd2aed2
commit
8d11075b89
|
@ -4,33 +4,43 @@
|
|||
* https://github.com/chjj/blessed
|
||||
*/
|
||||
|
||||
exports.Node = exports.node = require('./widgets/node');
|
||||
exports.Screen = exports.screen = require('./widgets/screen');
|
||||
exports.Element = exports.element = require('./widgets/element');
|
||||
exports.Box = exports.box = require('./widgets/box');
|
||||
exports.Text = exports.text = require('./widgets/text');
|
||||
exports.Line = exports.line = require('./widgets/line');
|
||||
exports.ScrollableBox = exports.scrollablebox = require('./widgets/scrollablebox');
|
||||
exports.ScrollableText = exports.scrollabletext = require('./widgets/scrollabletext');
|
||||
exports.List = exports.list = require('./widgets/list');
|
||||
exports.Form = exports.form = require('./widgets/form');
|
||||
exports.Input = exports.input = require('./widgets/input');
|
||||
exports.Textarea = exports.textarea = require('./widgets/textarea');
|
||||
exports.Textbox = exports.textbox = require('./widgets/textbox');
|
||||
exports.Button = exports.button = require('./widgets/button');
|
||||
exports.ProgressBar = exports.progressbar = require('./widgets/progressbar');
|
||||
exports.FileManager = exports.filemanager = require('./widgets/filemanager');
|
||||
exports.Checkbox = exports.checkbox = require('./widgets/checkbox');
|
||||
exports.RadioSet = exports.radioset = require('./widgets/radioset');
|
||||
exports.RadioButton = exports.radiobutton = require('./widgets/radiobutton');
|
||||
exports.Prompt = exports.prompt = require('./widgets/prompt');
|
||||
exports.Question = exports.question = require('./widgets/question');
|
||||
exports.Message = exports.message = require('./widgets/message');
|
||||
exports.Loading = exports.loading = require('./widgets/loading');
|
||||
exports.Listbar = exports.listbar = require('./widgets/listbar');
|
||||
exports.Log = exports.log = require('./widgets/log');
|
||||
exports.Table = exports.table = require('./widgets/table');
|
||||
exports.ListTable = exports.listtable = require('./widgets/listtable');
|
||||
exports.Terminal = exports.terminal = require('./widgets/terminal');
|
||||
exports.Image = exports.image = require('./widgets/image');
|
||||
exports.helpers = require('./helpers');
|
||||
var widget = exports;
|
||||
|
||||
widget.classes = [
|
||||
'Node',
|
||||
'Screen',
|
||||
'Element',
|
||||
'Box',
|
||||
'Text',
|
||||
'Line',
|
||||
'ScrollableBox',
|
||||
'ScrollableText',
|
||||
'List',
|
||||
'Form',
|
||||
'Input',
|
||||
'Textarea',
|
||||
'Textbox',
|
||||
'Button',
|
||||
'ProgressBar',
|
||||
'FileManager',
|
||||
'Checkbox',
|
||||
'RadioSet',
|
||||
'RadioButton',
|
||||
'Prompt',
|
||||
'Question',
|
||||
'Message',
|
||||
'Loading',
|
||||
'Listbar',
|
||||
'Log',
|
||||
'Table',
|
||||
'ListTable',
|
||||
'Terminal',
|
||||
'Image'
|
||||
];
|
||||
|
||||
widget.classes.forEach(function(name) {
|
||||
var file = name.toLowerCase();
|
||||
widget[name] = widget[file] = require('./widgets/' + file);
|
||||
});
|
||||
|
||||
widget.helpers = require('./helpers');
|
||||
|
|
Loading…
Reference in New Issue