mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-21 10:15:55 +02:00
* Lots of work with fonts: Support mappings of various cterm/SyncTERM fonts.
* Load font info from SAUCE * Better work with defaults & theme values
This commit is contained in:
parent
586f3d60b3
commit
5faa11664b
15 changed files with 233 additions and 39 deletions
|
@ -5,6 +5,8 @@ var fs = require('fs');
|
|||
var paths = require('path');
|
||||
var miscUtil = require('./misc_util.js');
|
||||
|
||||
// :TODO: it would be nice to allow for defaults here & .json file only overrides -- e.g. merge the two
|
||||
|
||||
module.exports = {
|
||||
defaultPath : function() {
|
||||
var base = miscUtil.resolvePath('~/');
|
||||
|
@ -15,6 +17,7 @@ module.exports = {
|
|||
|
||||
initFromFile : function(path, cb) {
|
||||
var data = fs.readFileSync(path, 'utf8');
|
||||
// :TODO: strip comments
|
||||
this.config = JSON.parse(data);
|
||||
},
|
||||
|
||||
|
@ -32,7 +35,11 @@ module.exports = {
|
|||
usernameMax : 22,
|
||||
passwordMin : 6,
|
||||
requireActivation : true, // require SysOp activation?
|
||||
defaultTheme : 'NU-MAYA',
|
||||
},
|
||||
|
||||
defaults : {
|
||||
theme : 'NU-MAYA',
|
||||
passwordChar : '*',
|
||||
},
|
||||
|
||||
paths : {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue