mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Rename sidebar items. Give admin a title. Link to app favicon.
This commit is contained in:
parent
17da98279a
commit
59f63e5438
@ -1,6 +1,7 @@
|
|||||||
import React, { useContext, useEffect, useState } from 'react';
|
import React, { useContext, useEffect, useState } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import Head from 'next/head'
|
||||||
import { differenceInSeconds } from "date-fns";
|
import { differenceInSeconds } from "date-fns";
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import { Layout, Menu, Popover } from 'antd';
|
import { Layout, Menu, Popover } from 'antd';
|
||||||
@ -74,6 +75,11 @@ export default function MainLayout(props) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout className={appClass}>
|
<Layout className={appClass}>
|
||||||
|
<Head>
|
||||||
|
<title>Owncast Admin</title>
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32x32.png"/>
|
||||||
|
</Head>
|
||||||
|
|
||||||
<Sider
|
<Sider
|
||||||
width={240}
|
width={240}
|
||||||
style={{
|
style={{
|
||||||
@ -105,11 +111,11 @@ export default function MainLayout(props) {
|
|||||||
<Menu.Item key="viewer-info">
|
<Menu.Item key="viewer-info">
|
||||||
<Link href="/viewer-info">Viewers</Link>
|
<Link href="/viewer-info">Viewers</Link>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
{online ? (
|
{/* {online ? (
|
||||||
<Menu.Item key="disconnect-stream" icon={<CloseCircleOutlined />}>
|
<Menu.Item key="disconnect-stream" icon={<CloseCircleOutlined />}>
|
||||||
<Link href="/disconnect-stream">Disconnect Stream...</Link>
|
<Link href="/disconnect-stream">Disconnect Stream...</Link>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
) : null}
|
) : null} */}
|
||||||
</SubMenu>
|
</SubMenu>
|
||||||
|
|
||||||
<SubMenu
|
<SubMenu
|
||||||
@ -118,10 +124,10 @@ export default function MainLayout(props) {
|
|||||||
icon={<SettingOutlined />}
|
icon={<SettingOutlined />}
|
||||||
>
|
>
|
||||||
<Menu.Item key="update-server-config">
|
<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>
|
||||||
<Menu.Item key="video-config">
|
<Menu.Item key="video-config">
|
||||||
<Link href="/video-config">Video Configuration</Link>
|
<Link href="/video-config">Video</Link>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
<Menu.Item key="storage">
|
<Menu.Item key="storage">
|
||||||
<Link href="/storage">Storage</Link>
|
<Link href="/storage">Storage</Link>
|
||||||
|
@ -102,11 +102,7 @@ export default function Home() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="home-container">
|
<div className="home-container">
|
||||||
<Title>Stream Overview</Title>
|
|
||||||
|
|
||||||
<div className="sections-container">
|
<div className="sections-container">
|
||||||
|
|
||||||
|
|
||||||
<div className="section online-status-section">
|
<div className="section online-status-section">
|
||||||
<Card title="Stream is online" type="inner">
|
<Card title="Stream is online" type="inner">
|
||||||
<Statistic
|
<Statistic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user