mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
* WIP on upload support - protocols, modules, etc.
* Ability for KeyEntryView to only show specific/allowed keys * Start moving/adding common methods to MenuModule vs boilerplate code * menuFlags: String|StringArray: flags for menus, e.g. new 'noHistory' flag to prevent appending to history/stack * New download stats/MCI codes * Ability to redirect input stream to [protocols] temporairly
This commit is contained in:
parent
6da7d557f9
commit
0a92eec5e8
21 changed files with 985 additions and 76 deletions
|
@ -135,11 +135,21 @@ module.exports = class MenuStack {
|
|||
currentModuleInfo.instance.leave();
|
||||
}
|
||||
|
||||
self.push({
|
||||
name : name,
|
||||
instance : modInst,
|
||||
extraArgs : loadOpts.extraArgs,
|
||||
});
|
||||
const noHistory = modInst.menuConfig.options.menuFlags.indexOf('noHistory') > -1;
|
||||
|
||||
const stackToLog = _.map(self.stack, stackEntry => stackEntry.name);
|
||||
|
||||
if(!noHistory) {
|
||||
self.push({
|
||||
name : name,
|
||||
instance : modInst,
|
||||
extraArgs : loadOpts.extraArgs,
|
||||
});
|
||||
|
||||
stackToLog.push(name);
|
||||
} else {
|
||||
stackToLog.push(`${name} (noHistory)`);
|
||||
}
|
||||
|
||||
// restore previous state if requested
|
||||
if(options && options.savedState) {
|
||||
|
@ -149,8 +159,11 @@ module.exports = class MenuStack {
|
|||
modInst.enter();
|
||||
|
||||
self.client.log.trace(
|
||||
{ stack : _.map(self.stack, stackEntry => stackEntry.name) },
|
||||
'Updated menu stack');
|
||||
{
|
||||
stack : stackToLog
|
||||
},
|
||||
'Updated menu stack'
|
||||
);
|
||||
|
||||
if(cb) {
|
||||
cb(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue