* Add rumorz mod

* ANSI/pipe working properly in VerticalMenuView
* Fix bug in renderStringLength()
* Make initSequence() part of prototype chain for inheritance
* Use proper 'desc' field vs 'status' for menus when setting client/user status
* Move pipeToAnsi() to setItems/setFocusItems vs every render
* Add %RR random rumor MCI
* Predefined MCI's can be init @ startup - RR uses random as a test bed
* Add some StatLog functionality for ordering, keep forever, etc.
* Fix TextView redraw issue
* Better VerticalMenuView drawItem() logic
* Add 'key press' emit for View
* Enable formats for BBS list - works with MCI
* Remove old system_property.js
This commit is contained in:
Bryan Ashby 2016-08-10 22:48:13 -06:00
parent 2b68201f7d
commit 30ba609fb4
13 changed files with 492 additions and 241 deletions

View file

@ -1,38 +0,0 @@
/* jslint node: true */
'use strict';
var sysDb = require('./database.js').dbs.system;
exports.loadSystemProperties = loadSystemProperties;
exports.persistSystemProperty = persistSystemProperty;
exports.getSystemProperty = getSystemProperty;
var systemProperties = {};
exports.systemProperties = systemProperties;
function loadSystemProperties(cb) {
sysDb.each(
'SELECT prop_name, prop_value ' +
'FROM system_property;',
function rowResult(err, row) {
systemProperties[row.prop_name] = row.prop_value;
},
cb
);
}
function persistSystemProperty(propName, propValue, cb) {
// update live
systemProperties[propName] = propValue;
sysDb.run(
'REPLACE INTO system_property ' +
'VALUES (?, ?);',
[ propName, propValue ],
cb
);
}
function getSystemProperty(propName) {
return systemProperties[propName];
}