Cleanup, docs, screen shot of WFC
This commit is contained in:
@@ -100,7 +100,7 @@ function Client(/*input, output*/) {
|
||||
// :TODO: clean this up: We have a ugly transition state in which we have a pure raw config vs a ConfigLoader in which get() must be called
|
||||
try {
|
||||
return this.currentThemeConfig.get();
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
return this.currentThemeConfig;
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -79,6 +79,7 @@ function getActiveConnectionList(
|
||||
isSecure: ac.session.isSecure,
|
||||
isVisible: ac.user.isVisible(),
|
||||
isAvailable: ac.user.isAvailable(),
|
||||
remoteAddress: ac.friendlyRemoteAddress(),
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
20
core/wfc.js
20
core/wfc.js
@@ -439,11 +439,6 @@ exports.getModule = class WaitingForCallerModule extends MenuModule {
|
||||
totalFiles: fileAreaStats.totalFiles || 0,
|
||||
totalFileBytes: fileAreaStats.totalFileBytes || 0,
|
||||
|
||||
// totalUploads :
|
||||
// totalUploadBytes :
|
||||
// totalDownloads :
|
||||
// totalDownloadBytes :
|
||||
|
||||
// Today's Stats
|
||||
callsToday: StatLog.getSystemStatNum(SysProps.LoginsToday),
|
||||
postsToday: StatLog.getSystemStatNum(SysProps.MessagesToday),
|
||||
@@ -532,9 +527,24 @@ exports.getModule = class WaitingForCallerModule extends MenuModule {
|
||||
});
|
||||
});
|
||||
|
||||
// If this is our first pass, we'll also update the selection
|
||||
const firstStatusRefresh = nodeStatusView.getCount() === 0;
|
||||
|
||||
// :TODO: Currently this always redraws due to setItems(). We really need painters alg.; The alternative now is to compare items... yuk.
|
||||
nodeStatusView.setItems(nodeStatusItems);
|
||||
this._selectNodeByIndex(nodeStatusView, this.selectedNodeStatusIndex); // redraws
|
||||
|
||||
if (firstStatusRefresh) {
|
||||
const nodeStatusSelectionView = this.getView(
|
||||
'main',
|
||||
MciViewIds.main.selectedNodeStatusInfo
|
||||
);
|
||||
if (nodeStatusSelectionView) {
|
||||
const item = nodeStatusView.getItems()[0];
|
||||
this._updateNodeStatusSelection(nodeStatusSelectionView, item);
|
||||
}
|
||||
}
|
||||
|
||||
return cb(null);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,9 @@ exports.getModule = class WhosOnlineModule extends MenuModule {
|
||||
.map(oe =>
|
||||
Object.assign(oe, {
|
||||
text: oe.userName,
|
||||
timeOn: _.upperFirst(oe.timeOn.humanize()),
|
||||
timeOn: oe.timeOn
|
||||
? _.upperFirst(oe.timeOn.humanize())
|
||||
: 0, // :TODO: fix me. We can always track time...
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user