Rename sidebar items. Give admin a title. Link to app favicon.

This commit is contained in:
Gabe Kangas 2020-11-16 14:19:15 -08:00
parent 17da98279a
commit 59f63e5438
2 changed files with 11 additions and 9 deletions

View file

@ -1,6 +1,7 @@
import React, { useContext, useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
import Head from 'next/head'
import { differenceInSeconds } from "date-fns";
import { useRouter } from 'next/router';
import { Layout, Menu, Popover } from 'antd';
@ -74,6 +75,11 @@ export default function MainLayout(props) {
return (
<Layout className={appClass}>
<Head>
<title>Owncast Admin</title>
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32x32.png"/>
</Head>
<Sider
width={240}
style={{
@ -105,11 +111,11 @@ export default function MainLayout(props) {
<Menu.Item key="viewer-info">
<Link href="/viewer-info">Viewers</Link>
</Menu.Item>
{online ? (
{/* {online ? (
<Menu.Item key="disconnect-stream" icon={<CloseCircleOutlined />}>
<Link href="/disconnect-stream">Disconnect Stream...</Link>
</Menu.Item>
) : null}
) : null} */}
</SubMenu>
<SubMenu
@ -118,10 +124,10 @@ export default function MainLayout(props) {
icon={<SettingOutlined />}
>
<Menu.Item key="update-server-config">
<Link href="/update-server-config">Server Configuration</Link>
<Link href="/update-server-config">Server</Link>
</Menu.Item>
<Menu.Item key="video-config">
<Link href="/video-config">Video Configuration</Link>
<Link href="/video-config">Video</Link>
</Menu.Item>
<Menu.Item key="storage">
<Link href="/storage">Storage</Link>

View file

@ -102,11 +102,7 @@ export default function Home() {
return (
<div className="home-container">
<Title>Stream Overview</Title>
<div className="sections-container">
<div className="section online-status-section">
<Card title="Stream is online" type="inner">
<Statistic