Merge branch '0.0.9-alpha' of ssh://numinibsd/git/base/enigma-bbs into user-interruptions
This commit is contained in:
commit
a88af51f27
|
@ -138,8 +138,8 @@ function getDefaultConfig() {
|
||||||
closedSystem : false, // is the system closed to new users?
|
closedSystem : false, // is the system closed to new users?
|
||||||
loginAttempts : 3,
|
loginAttempts : 3,
|
||||||
|
|
||||||
menuFile : 'menu.hjson', // Override to use something else, e.g. demo.hjson. Can be a full path (defaults to ./config)
|
menuFile : 'menu.hjson', // 'oputil.js config new' will set this appropriately in config.hjson; may be full path
|
||||||
promptFile : 'prompt.hjson', // Override to use soemthing else, e.g. myprompt.hjson. Can be a full path (defaults to ./config)
|
promptFile : 'prompt.hjson', // 'oputil.js config new' will set this appropriately in config.hjson; may be full path
|
||||||
},
|
},
|
||||||
|
|
||||||
users : {
|
users : {
|
||||||
|
|
|
@ -263,14 +263,14 @@ function buildNewConfig() {
|
||||||
.toLowerCase();
|
.toLowerCase();
|
||||||
const menuFile = `${bn}-menu.hjson`;
|
const menuFile = `${bn}-menu.hjson`;
|
||||||
copyFileSyncSilent(
|
copyFileSyncSilent(
|
||||||
paths.join(__dirname, '../../config/menu.hjson'),
|
paths.join(__dirname, '../../misc/menu_template.in.hjson'),
|
||||||
paths.join(__dirname, '../../config/', menuFile),
|
paths.join(__dirname, '../../config/', menuFile),
|
||||||
fs.constants.COPYFILE_EXCL
|
fs.constants.COPYFILE_EXCL
|
||||||
);
|
);
|
||||||
|
|
||||||
const promptFile = `${bn}-prompt.hjson`;
|
const promptFile = `${bn}-prompt.hjson`;
|
||||||
copyFileSyncSilent(
|
copyFileSyncSilent(
|
||||||
paths.join(__dirname, '../../config/prompt.hjson'),
|
paths.join(__dirname, '../../misc/prompt_template.in.hjson'),
|
||||||
paths.join(__dirname, '../../config/', promptFile),
|
paths.join(__dirname, '../../config/', promptFile),
|
||||||
fs.constants.COPYFILE_EXCL
|
fs.constants.COPYFILE_EXCL
|
||||||
)
|
)
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
BBS : Xibalba @ xibalba.l33t.codes
|
BBS : Xibalba @ xibalba.l33t.codes
|
||||||
FTN : BBS Discussion on fsxNet
|
FTN : BBS Discussion on fsxNet
|
||||||
IRC : #enigma-bbs / FreeNode
|
IRC : #enigma-bbs / FreeNode
|
||||||
Email : bryan@leet.codes
|
Email : bryan@l33t.codes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
general: {
|
general: {
|
||||||
|
|
|
@ -10,20 +10,43 @@
|
||||||
/__ _\
|
/__ _\
|
||||||
<*> ENiGMA½ // HTTPS://GITHUB.COM/NUSKOOLER/ENIGMA-BBS <*> /__/
|
<*> ENiGMA½ // HTTPS://GITHUB.COM/NUSKOOLER/ENIGMA-BBS <*> /__/
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
*-----------------------------------------------------------------------------*
|
||||||
|
|
||||||
This configuration is in HJSON (http://hjson.org/) format. Strict to-spec
|
General Information
|
||||||
JSON is also perfectly valid. Use 'hjson' from npm to convert to/from JSON.
|
------------------------------- - -
|
||||||
|
This configuration is in HJSON (http://hjson.org/) format. Strict to-spec
|
||||||
|
JSON is also perfectly valid. Use 'hjson' from npm to convert to/from JSON.
|
||||||
|
|
||||||
See http://hjson.org/ for more information and syntax.
|
See http://hjson.org/ for more information and syntax.
|
||||||
|
|
||||||
|
Various editors and IDEs such as Sublime Text 3, Visual Studio Code, and so
|
||||||
|
on have syntax highlighting for the HJSON format which are highly recommended.
|
||||||
|
|
||||||
If you haven't yet, copy the conents of this file to something like
|
------------------------------- -- - -
|
||||||
sick_board.hjson. Point to it via config.hjson using the
|
Menu Configuration
|
||||||
'general.menuFile' key:
|
------------------------------- - -
|
||||||
|
ENiGMA½ makes no assumptions about specific menu types (main, doors, etc.),
|
||||||
|
but instead allows full customization of all menus throughout the system.
|
||||||
|
Some menus such as a main menu are considered "standard" while others are
|
||||||
|
backed by a specific module. SysOps can tweak various settings about these
|
||||||
|
modules (look & feel, keyboard interation, and so on) or even fully replace
|
||||||
|
the module with something else.
|
||||||
|
|
||||||
general: { menuFile: "sick_board.hjson" }
|
This file starts out as an example setup. Look at the examples, change
|
||||||
|
settings, menu ordering/flow, add/remove menus, implement ACS control,
|
||||||
|
etc.!
|
||||||
|
|
||||||
|
Remember you can *live edit* this file. That is, make a change and save
|
||||||
|
while you're logged into the system and it will take effect on the next
|
||||||
|
menu change or screen refresh.
|
||||||
|
|
||||||
|
Please see RTFM ...er, uh... see the documentation for more information, and
|
||||||
|
don't be shy to ask for help:
|
||||||
|
|
||||||
|
BBS : Xibalba @ xibalba.l33t.codes
|
||||||
|
FTN : BBS Discussion on fsxNet
|
||||||
|
IRC : #enigma-bbs / FreeNode
|
||||||
|
Email : bryan@l33t.codes
|
||||||
*/
|
*/
|
||||||
menus: {
|
menus: {
|
||||||
//
|
//
|
Loading…
Reference in New Issue