Merge pull request #231 from owncast/gek/remove-status-bar-values

Remove additional viewer counts from status bar.
This commit is contained in:
gingervitis 2020-10-08 21:44:27 -07:00 committed by GitHub
commit 25ef2fc66e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 24 deletions

View File

@ -31,8 +31,6 @@ export default class VideoOnly extends Component {
//status //status
streamStatusMessage: MESSAGE_OFFLINE, streamStatusMessage: MESSAGE_OFFLINE,
viewerCount: '', viewerCount: '',
sessionMaxViewerCount: '',
overallMaxViewerCount: '',
}; };
// timers // timers
@ -131,8 +129,6 @@ export default class VideoOnly extends Component {
} }
const { const {
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
online, online,
} = status; } = status;
@ -153,8 +149,6 @@ export default class VideoOnly extends Component {
} }
this.setState({ this.setState({
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
streamOnline: online, streamOnline: online,
}); });
} }
@ -215,8 +209,6 @@ export default class VideoOnly extends Component {
configData, configData,
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
playerActive, playerActive,
streamOnline, streamOnline,
streamStatusMessage, streamStatusMessage,
@ -256,8 +248,6 @@ export default class VideoOnly extends Component {
<section id="stream-info" aria-label="Stream status" class="flex text-center flex-row justify-between items-center font-mono py-2 px-8 bg-gray-900 text-indigo-200"> <section id="stream-info" aria-label="Stream status" class="flex text-center flex-row justify-between items-center font-mono py-2 px-8 bg-gray-900 text-indigo-200">
<span>${streamStatusMessage}</span> <span>${streamStatusMessage}</span>
<span>${viewerCount} ${pluralize('viewer', viewerCount)}.</span> <span>${viewerCount} ${pluralize('viewer', viewerCount)}.</span>
<span>Max ${pluralize('viewer', sessionMaxViewerCount)}.</span>
<span>${overallMaxViewerCount} overall.</span>
</section> </section>
</main> </main>
`); `);

View File

@ -64,8 +64,6 @@ export default class App extends Component {
// status // status
streamStatusMessage: MESSAGE_OFFLINE, streamStatusMessage: MESSAGE_OFFLINE,
viewerCount: '', viewerCount: '',
sessionMaxViewerCount: '',
overallMaxViewerCount: '',
// dom // dom
windowWidth: window.innerWidth, windowWidth: window.innerWidth,
@ -208,8 +206,6 @@ export default class App extends Component {
} }
const { const {
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
online, online,
lastConnectTime, lastConnectTime,
} = status; } = status;
@ -231,8 +227,6 @@ export default class App extends Component {
} }
this.setState({ this.setState({
viewerCount, viewerCount,
sessionMaxViewerCount,
overallMaxViewerCount,
lastConnectTime, lastConnectTime,
streamOnline: online, streamOnline: online,
}); });
@ -357,9 +351,7 @@ export default class App extends Component {
displayChat, displayChat,
extraUserContent, extraUserContent,
orientation, orientation,
overallMaxViewerCount,
playerActive, playerActive,
sessionMaxViewerCount,
streamOnline, streamOnline,
streamStatusMessage, streamStatusMessage,
userAvatarImage, userAvatarImage,
@ -483,12 +475,6 @@ export default class App extends Component {
> >
<span>${streamStatusMessage}</span> <span>${streamStatusMessage}</span>
<span>${viewerCount} ${pluralize('viewer', viewerCount)}.</span> <span>${viewerCount} ${pluralize('viewer', viewerCount)}.</span>
<span>
Max ${sessionMaxViewerCount} ${" "} ${pluralize('viewer', sessionMaxViewerCount)} this stream.
</span>
<span>
${overallMaxViewerCount} all time.
</span>
</section> </section>
</main> </main>