whitespace. comments.

This commit is contained in:
Christopher Jeffrey 2015-05-05 23:10:18 -07:00
parent a4d56fb819
commit 5eddd2aed2
30 changed files with 116 additions and 5 deletions

View File

@ -20,22 +20,17 @@ 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');

View File

@ -29,4 +29,8 @@ Box.prototype.__proto__ = Element.prototype;
Box.prototype.type = 'box';
/**
* Expose
*/
module.exports = Box;

View File

@ -57,4 +57,8 @@ Button.prototype.press = function() {
return result;
};
/**
* Expose
*/
module.exports = Button;

View File

@ -86,4 +86,8 @@ Checkbox.prototype.toggle = function() {
: this.check();
};
/**
* Expose
*/
module.exports = Checkbox;

View File

@ -2650,4 +2650,8 @@ Element.prototype.screenshot = function(xi, xl, yi, yl) {
return this.screen.screenshot(xi, xl, yi, yl);
};
/**
* Expose
*/
module.exports = Element;

View File

@ -205,4 +205,8 @@ FileManager.prototype.reset = function(cwd, callback) {
this.refresh(callback);
};
/**
* Expose
*/
module.exports = FileManager;

View File

@ -263,4 +263,8 @@ Form.prototype.reset = function() {
this.emit('reset');
};
/**
* Expose
*/
module.exports = Form;

View File

@ -718,4 +718,8 @@ Image.prototype.displayImage = function(callback) {
return this.screen.displayImage(this.file, callback);
};
/**
* Expose
*/
module.exports = Image;

View File

@ -29,4 +29,8 @@ Input.prototype.__proto__ = Box.prototype;
Input.prototype.type = 'input';
/**
* Expose
*/
module.exports = Input;

View File

@ -53,4 +53,8 @@ Line.prototype.__proto__ = Box.prototype;
Line.prototype.type = 'line';
/**
* Expose
*/
module.exports = Line;

View File

@ -511,4 +511,8 @@ List.prototype.cancelSelected = function(i) {
this.emit('cancel');
};
/**
* Expose
*/
module.exports = List;

View File

@ -393,4 +393,8 @@ Listbar.prototype.selectTab = function(index) {
this.emit('select tab', item, index);
};
/**
* Expose
*/
module.exports = Listbar;

View File

@ -235,4 +235,8 @@ ListTable.prototype.render = function() {
return coords;
};
/**
* Expose
*/
module.exports = ListTable;

View File

@ -85,4 +85,8 @@ Loading.prototype.stop = function() {
this.screen.render();
};
/**
* Expose
*/
module.exports = Loading;

View File

@ -78,4 +78,8 @@ Log.prototype.scroll = function(offset, always) {
return ret;
};
/**
* Expose
*/
module.exports = Log;

View File

@ -119,4 +119,8 @@ Message.prototype.error = function(text, time, callback) {
return this.display('{red-fg}Error: ' + text + '{/red-fg}', time, callback);
};
/**
* Expose
*/
module.exports = Message;

View File

@ -228,4 +228,8 @@ Node.prototype.set = function(name, value) {
return this.data[name] = value;
};
/**
* Expose
*/
module.exports = Node;

View File

@ -152,4 +152,8 @@ ProgressBar.prototype.reset = function() {
this.value = this.filled;
};
/**
* Expose
*/
module.exports = ProgressBar;

View File

@ -117,4 +117,8 @@ Prompt.prototype.readInput = function(text, value, callback) {
this.screen.render();
};
/**
* Expose
*/
module.exports = Prompt;

View File

@ -113,4 +113,8 @@ Question.prototype.ask = function(text, callback) {
this.screen.render();
};
/**
* Expose
*/
module.exports = Question;

View File

@ -56,4 +56,8 @@ RadioButton.prototype.render = function() {
RadioButton.prototype.toggle = RadioButton.prototype.check;
/**
* Expose
*/
module.exports = RadioButton;

View File

@ -31,4 +31,8 @@ RadioSet.prototype.__proto__ = Box.prototype;
RadioSet.prototype.type = 'radio-set';
/**
* Expose
*/
module.exports = RadioSet;

View File

@ -2151,4 +2151,8 @@ Object.keys(angleTable).forEach(function(key) {
delete angleTable[key];
});
/**
* Expose
*/
module.exports = Screen;

View File

@ -384,4 +384,8 @@ ScrollableBox.prototype.setScrollPerc = function(i) {
return this.scrollTo((i / 100) * m | 0);
};
/**
* Expose
*/
module.exports = ScrollableBox;

View File

@ -30,4 +30,8 @@ ScrollableText.prototype.__proto__ = ScrollableBox.prototype;
ScrollableText.prototype.type = 'scrollable-text';
/**
* Expose
*/
module.exports = ScrollableText;

View File

@ -327,4 +327,8 @@ Table.prototype.render = function() {
return coords;
};
/**
* Expose
*/
module.exports = Table;

View File

@ -377,4 +377,8 @@ Terminal.prototype.screenshot = function(xi, xl, yi, yl) {
return this.screen.screenshot(xi, xl, yi, yl, this.term);
};
/**
* Expose
*/
module.exports = Terminal;

View File

@ -30,4 +30,8 @@ Text.prototype.__proto__ = Element.prototype;
Text.prototype.type = 'text';
/**
* Expose
*/
module.exports = Text;

View File

@ -337,4 +337,8 @@ Textarea.prototype.readEditor = function(callback) {
});
};
/**
* Expose
*/
module.exports = Textarea;

View File

@ -74,4 +74,8 @@ Textbox.prototype.submit = function() {
return this.__listener('\r', { name: 'enter' });
};
/**
* Expose
*/
module.exports = Textbox;