mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 05:17:27 +08:00 
			
		
		
		
	chore: address linter warnings
This commit is contained in:
		@ -284,7 +284,8 @@ export const MainLayout: FC<MainLayoutProps> = ({ children }) => {
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    menuItems.forEach(item =>
 | 
			
		||||
    menuItems.forEach(
 | 
			
		||||
      item =>
 | 
			
		||||
        item?.children?.forEach(child => {
 | 
			
		||||
          if (child?.key === route) setOpenKeys([...openMenuItems, item.key]);
 | 
			
		||||
        }),
 | 
			
		||||
 | 
			
		||||
@ -162,9 +162,7 @@ export const ChatModerationDetailsModal: FC<ChatModerationDetailsModalProps> = (
 | 
			
		||||
    >
 | 
			
		||||
      <Spin spinning={loading}>
 | 
			
		||||
        <UserColorBlock color={displayColor} />
 | 
			
		||||
        {scopes?.map(scope => (
 | 
			
		||||
          <Tag key={scope}>{scope}</Tag>
 | 
			
		||||
        ))}
 | 
			
		||||
        {scopes?.map(scope => <Tag key={scope}>{scope}</Tag>)}
 | 
			
		||||
        {authenticated && <Tag>Authenticated</Tag>}
 | 
			
		||||
        {isBot && <Tag>Bot</Tag>}
 | 
			
		||||
        <ValueRow label="Messages Sent Across Clients" value={totalMessagesSent.toString()} />
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
/* eslint-disable react/no-danger */
 | 
			
		||||
import { Html, Head, Main, NextScript } from 'next/document';
 | 
			
		||||
import { readFileSync } from 'fs';
 | 
			
		||||
import { join } from 'path';
 | 
			
		||||
import { Html, Head, Main, NextScript } from 'next/document';
 | 
			
		||||
 | 
			
		||||
class InlineStylesHead extends Head {
 | 
			
		||||
  getCssLinks: Head['getCssLinks'] = ({ allFiles }) => {
 | 
			
		||||
 | 
			
		||||
@ -39,10 +39,13 @@ export default function VideoEmbed() {
 | 
			
		||||
   * query parameters ourselves
 | 
			
		||||
   */
 | 
			
		||||
  const path = router.asPath.split('?')[1] ?? '';
 | 
			
		||||
  const query = path.split('&').reduce((currQuery, part) => {
 | 
			
		||||
  const query = path.split('&').reduce(
 | 
			
		||||
    (currQuery, part) => {
 | 
			
		||||
      const [key, value] = part.split('=');
 | 
			
		||||
      return { ...currQuery, [key]: value };
 | 
			
		||||
  }, {} as Record<string, string>);
 | 
			
		||||
    },
 | 
			
		||||
    {} as Record<string, string>,
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  const initiallyMuted = query.initiallyMuted === 'true';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user