From 1f71f8f74d2904213f9318c97051e6f5223bd332 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 9 Jan 2023 07:49:37 +0100 Subject: [PATCH] Get rid of various errors. --- frontend/components/VideoList.tsx | 4 +--- .../localization/FormattedMessage.tsx | 2 -- frontend/pages/[id]/[vslug].tsx | 20 ++++++++++++++++--- streamserver/Dockerfile | 2 ++ 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/frontend/components/VideoList.tsx b/frontend/components/VideoList.tsx index 02e4454..bbc166e 100644 --- a/frontend/components/VideoList.tsx +++ b/frontend/components/VideoList.tsx @@ -85,11 +85,10 @@ class VideoList extends React.Component { filteredVideos.map(({ item: { duration, - downloadFileName: fileName, title, run, slug, @@ -106,7 +105,6 @@ class VideoList extends React.Component { duration={duration} id={id} thumbnailServerURL={thumbnailServerURL} - fileName={fileName} slug={slug} title={title} sourceVideoStart={sourceVideoStart} diff --git a/frontend/components/localization/FormattedMessage.tsx b/frontend/components/localization/FormattedMessage.tsx index e53313b..c9cc4b6 100644 --- a/frontend/components/localization/FormattedMessage.tsx +++ b/frontend/components/localization/FormattedMessage.tsx @@ -15,8 +15,6 @@ * along with this program. If not, see . */ -import React from 'react'; -import { Spinner } from 'react-bootstrap'; import { FormattedMessage } from 'react-intl'; import WrapReactIntl from './WrapReactIntl'; diff --git a/frontend/pages/[id]/[vslug].tsx b/frontend/pages/[id]/[vslug].tsx index cf31696..b6cdd02 100644 --- a/frontend/pages/[id]/[vslug].tsx +++ b/frontend/pages/[id]/[vslug].tsx @@ -67,7 +67,14 @@ interface VideoPlayerPageProps { twitchPlayerParentKey?: string, } -const getProps = withSession(async (req, _res, { id, vslug }: VideoPlayerPageParameters): Promise> => { +const getProps = withSession(async ( + req, + _res, + { + id, + vslug, + }: VideoPlayerPageParameters, +): Promise> => { if (typeof id !== 'string') { throw new Error('only expected a single id'); } @@ -186,7 +193,9 @@ const getProps = withSession(async (req, _res, { id, vslug }: VideoPlayerPagePar }; }); -export const getServerSideProps: GetServerSideProps = async ({ +type ServerSideProps = GetServerSideProps; + +export const getServerSideProps: ServerSideProps = async ({ req, res, params, @@ -279,6 +288,7 @@ export default function VideoPlayerPage({ if (typeof downloadFileName === 'string' && downloadFileName.length > 0) { tabs.push( , ); - downloadButtons.push(); + downloadButtons.push(); } // Twitch tab diff --git a/streamserver/Dockerfile b/streamserver/Dockerfile index 5ae2a3b..ab2c805 100644 --- a/streamserver/Dockerfile +++ b/streamserver/Dockerfile @@ -1,5 +1,7 @@ ARG NGINX_VERSION=1.20.1 +# FIXME - 1.20.1 uses an Alpine version that ships a _pre version of gcc/libc, that confuses the icedream/nginx module build script. Has to be fixed in that repo instead. + FROM icedream/nginx as icedream-nginx FROM nginx:${NGINX_VERSION}-alpine AS ffmpeg-build