mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
overseer panel tweaking
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,8 +11,8 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
|
||||
<title>Roomba Rover</title>
|
||||
<script type="module" crossorigin src="/assets/index-BD2vTGND.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DTyQMQGe.css">
|
||||
<script type="module" crossorigin src="/assets/index-DqLb03wK.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CE66iX-R.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -104,7 +104,10 @@ function buildVoteStatus() {
|
||||
const sockets = Array.from(io.sockets.sockets.values());
|
||||
let yesCount = 0;
|
||||
let noCount = 0;
|
||||
let eligibleCount = 0;
|
||||
sockets.forEach((socket) => {
|
||||
if (getRole(socket) === 'spectator') return;
|
||||
eligibleCount += 1;
|
||||
const pref = socket?.data?.overseerEnabled;
|
||||
if (typeof pref === 'boolean' ? pref : true) yesCount += 1;
|
||||
else noCount += 1;
|
||||
@@ -115,6 +118,7 @@ function buildVoteStatus() {
|
||||
yesCount,
|
||||
noCount,
|
||||
onlineCount,
|
||||
eligibleCount,
|
||||
gatePassed,
|
||||
running: Boolean(enabled && gatePassed && getMode() !== MODES.LOCKDOWN),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user