s
This commit is contained in:
10
index.html
10
index.html
@@ -64,11 +64,11 @@ function scrollLog(){logEl.scrollTop = logEl.scrollHeight}
|
||||
|
||||
function updateStatus(process_status){
|
||||
let emoji = '⚪', text = '未知';
|
||||
if(process_status === 'online'){ emoji = '🟢'; text = '运行中'; }
|
||||
else if(process_status === 'stopped'){ emoji = '🔴'; text = '已停止'; }
|
||||
else if(process_status === 'errored'){ emoji = '🔥'; text = '错误'; }
|
||||
else if(process_status === 'launching' || process_status === 'starting'){ emoji = '🟡'; text = '启动中'; }
|
||||
else if(process_status === 'waiting restart'){ emoji = '🟡'; text = '等待重启'; }
|
||||
if(process_status === 'online'){ emoji = ' '; text = '运行中'; }
|
||||
else if(process_status === 'stopped'){ emoji = ' '; text = '已停止'; }
|
||||
else if(process_status === 'errored'){ emoji = ' '; text = '错误'; }
|
||||
else if(process_status === 'launching' || process_status === 'starting'){ emoji = ' '; text = '启动中'; }
|
||||
else if(process_status === 'waiting restart'){ emoji = ' '; text = '等待重启'; }
|
||||
else if(process_status === 'not_found'){ emoji = '❌'; text = '未注册到 PM2'; }
|
||||
statusIndicator.innerHTML = `${emoji} ${text}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user