fix: auto-start feedback wizard on boot, fix shell show [n] rendering
This commit is contained in:
parent
990c989fa3
commit
08e9b8d962
@ -3013,16 +3013,17 @@ function termBoot() {
|
|||||||
' <span style="' + G + ';font-weight:600">PeerCortex Feedback Terminal</span> <span style="' + MUT + '">v0.5.0</span>',
|
' <span style="' + G + ';font-weight:600">PeerCortex Feedback Terminal</span> <span style="' + MUT + '">v0.5.0</span>',
|
||||||
'<span style="' + DIM + '">────────────────────────────────────────────</span>',
|
'<span style="' + DIM + '">────────────────────────────────────────────</span>',
|
||||||
'',
|
'',
|
||||||
'Available commands:',
|
'Got feedback? A bug? A wild idea?',
|
||||||
' <span style="' + G + '">send</span> — submit feedback or bug report',
|
'This goes straight to the editorial team.',
|
||||||
' <span style="' + G + '">help</span> — show this menu',
|
|
||||||
' <span style="' + G + '">clear</span> — clear terminal',
|
|
||||||
'',
|
|
||||||
'Type <span style="' + G + '">send</span> and press Enter to start.',
|
|
||||||
''
|
''
|
||||||
];
|
];
|
||||||
var delay = 0;
|
var delay = 0;
|
||||||
lines.forEach(function(l) { setTimeout(function(){ termPrint(l); }, delay); delay += 35; });
|
lines.forEach(function(l) { setTimeout(function(){ termPrint(l); }, delay); delay += 35; });
|
||||||
|
// Auto-start wizard after boot sequence
|
||||||
|
var autoDelay = lines.length * 35 + 350;
|
||||||
|
setTimeout(function() {
|
||||||
|
if (termStep === 0) { termStartWizard(); }
|
||||||
|
}, autoDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
function termStartWizard() {
|
function termStartWizard() {
|
||||||
|
|||||||
@ -391,7 +391,7 @@ function showHelp(authed) {
|
|||||||
} else {
|
} else {
|
||||||
print(' <span style="' + G + '">list</span> — show all feedback entries');
|
print(' <span style="' + G + '">list</span> — show all feedback entries');
|
||||||
print(' <span style="' + G + '">list [category]</span> — filter by category (bug, feature, design, general)');
|
print(' <span style="' + G + '">list [category]</span> — filter by category (bug, feature, design, general)');
|
||||||
print(' <span style="' + G + '">show <n></span> — show full message for entry #n');
|
print(' <span style="' + G + '">show [n]</span> — show full message for entry #n');
|
||||||
print(' <span style="' + G + '">stats</span> — category + ASN statistics');
|
print(' <span style="' + G + '">stats</span> — category + ASN statistics');
|
||||||
print(' <span style="' + G + '">export</span> — download all entries as JSON');
|
print(' <span style="' + G + '">export</span> — download all entries as JSON');
|
||||||
print(' <span style="' + G + '">refresh</span> — reload entries from server');
|
print(' <span style="' + G + '">refresh</span> — reload entries from server');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user