* System stats

* Last callers rewritten using format and VM
* Some minor MCI stuff
This commit is contained in:
Bryan Ashby
2015-10-17 20:03:51 -06:00
parent d02d9e4a7c
commit 1c1f4394ca
15 changed files with 126 additions and 39 deletions

View File

@@ -25,7 +25,18 @@ exports.getModule = LastCallersModule;
// :TODO:
// * config.evenRowSGR (optional)
// :TODO: convert to using %XY system for finding row count
// ..or, better, use %VM1 with listFormat and noInput
/*
Available listFormat object members:
who
location
affils
ts
*/
function LastCallersModule(options) {
MenuModule.call(this, options);

View File

@@ -163,6 +163,7 @@
/*
nua -> send sysop mail -> { active } -> matrix
-> you must active -> matrix
TODO: display PRINT before this (Obv/2)
*/
newUserApplication: {
art: NUA
@@ -367,23 +368,28 @@
}
}
}
fullLoginSequenceLoginArt: {
desc: Logging In
art: LOGIN
options: { pause: true }
next: fullLoginSequenceLastCallers
}
fullLoginSequenceLastCallers: {
desc: Last Callers
module: last_callers
art: LASTCALL
options: { pause: true }
next: fullLoginSequenceSysStats
next: fullLoginSequenceSysStats
}
fullLoginSequenceSysStats: {
desc: System Stats
art: SYSSTAT
options: { pause: true }
next: fullLoginSequenceUserStats
}
fullLoginSequenceUserStats: {
desc: User Stats
art: STATUS
options: { pause: true }
next: mainMenu
@@ -437,6 +443,10 @@
value: { command: "C" }
action: @menu:mainMenuUserConfig
}
{
value: { command: "S" }
action: @menu:mainMenuSystemStats
}
{
"value" : 1,
"action" : "@menu:mainMenu"
@@ -452,6 +462,10 @@
art: STATUS
options: { pause: true }
}
mainMenuSystemStats: {
art: SYSSTAT
options: { pause: true }
}
mainMenuUserConfig: {
module: @systemModule:user_config
art: CONFSCR
@@ -479,6 +493,12 @@
argName: termSize
}
}
actionKeys: [
{
keys: [ "escape" ]
action: @method:exitKeyPressed
}
]
}
}
}

Binary file not shown.

View File

@@ -78,9 +78,28 @@
}
}
mainMenuSystemStats: {
mci: {
BN1: { width: 17 }
VL2: { width: 17 }
OS3: { width: 33 }
SC4: { width: 33 }
DT5: { width: 33 }
CT6: { width: 33 }
AN7: { width: 6 }
ND8: { width: 6 }
TC9: { width: 6 }
}
}
mainMenuLastCallers: {
config: {
dateTimeFormat: MMM Do H:mm a
listFormat: "|00|01|36{userName:<17.17}{location:<20.20}{affils:<18.18}{ts:<15}"
dateTimeFormat: MMM Do h:mma
}
mci: {
VM1: { height: 10 }
}
}
@@ -181,7 +200,11 @@
fullLoginSequenceLastCallers: {
config: {
dateTimeFormat: MMM Do H:mm a
listFormat: "|00|01|36{userName:<17.17}{location:<20.20}{affils:<18.18}{ts:<15}"
dateTimeFormat: MMM Do h:mma
}
mci: {
VM1: { height: 10 }
}
}