* Various
This commit is contained in:
parent
72b54b19b7
commit
d16beca341
|
@ -1,3 +1,18 @@
|
||||||
/* jslint node: true */
|
/* jslint node: true */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
var MenuModule = require('../core/menu_module.js').MenuModule;
|
||||||
|
var DropFile = require('./door.js').DropFile;
|
||||||
|
|
||||||
|
exports.moduleInfo = {
|
||||||
|
name : 'Abracadabra',
|
||||||
|
desc : 'External BBS Door Module',
|
||||||
|
author : 'NuSkooler',
|
||||||
|
};
|
||||||
|
|
||||||
|
function AbracadabraModule(options) {
|
||||||
|
MenuModule.call(this, options);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
require('util').inherits(AbracadabraModule, MenuModule);
|
|
@ -102,6 +102,12 @@ function Client(input, output) {
|
||||||
this.user = new user.User();
|
this.user = new user.User();
|
||||||
this.currentTheme = { info : { name : 'N/A', description : 'None' } };
|
this.currentTheme = { info : { name : 'N/A', description : 'None' } };
|
||||||
|
|
||||||
|
Object.defineProperty(this, 'node', {
|
||||||
|
get : function() {
|
||||||
|
return self.runtime.id + 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
// Peek at incoming |data| and emit events for any special
|
// Peek at incoming |data| and emit events for any special
|
||||||
// handling that may include:
|
// handling that may include:
|
||||||
|
|
|
@ -25,8 +25,6 @@ function DropFile(options) {
|
||||||
this.exeParams = options.exeParams || [];
|
this.exeParams = options.exeParams || [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Object.defineProperty(this, 'fileName', {
|
Object.defineProperty(this, 'fileName', {
|
||||||
get : function() {
|
get : function() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -53,7 +53,7 @@ MCIViewFactory.prototype.getPredefinedViewLabel = function(code) {
|
||||||
SH : this.client.term.termHeight.toString(),
|
SH : this.client.term.termHeight.toString(),
|
||||||
SW : this.client.term.termWidth.toString(),
|
SW : this.client.term.termWidth.toString(),
|
||||||
|
|
||||||
ND : this.client.runtime.id.toString(),
|
ND : this.client.node.toString(),
|
||||||
|
|
||||||
// :TODO: change to CD for 'Current Date'
|
// :TODO: change to CD for 'Current Date'
|
||||||
DT : moment().format(this.client.currentTheme.helpers.getDateFormat()),
|
DT : moment().format(this.client.currentTheme.helpers.getDateFormat()),
|
||||||
|
|
Loading…
Reference in New Issue