Clean up and fixes

main
Guus van Meerveld 3 years ago
parent 99d1e1dc90
commit 7797677468
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -10,9 +10,9 @@ import { useTheme } from "@mui/material/styles";
import { abbreviateNumber, formatNumber } from "@src/utils/"; import { abbreviateNumber, formatNumber } from "@src/utils/";
import { Channel as ChannelModel } from "@interfaces/api/search"; import { ChannelResult } from "@interfaces/api/search";
const Channel: FC<{ channel: ChannelModel }> = ({ channel }) => { const Channel: FC<{ channel: ChannelResult }> = ({ channel }) => {
const theme = useTheme(); const theme = useTheme();
const thumbnail = channel.authorThumbnails.find( const thumbnail = channel.authorThumbnails.find(

@ -2,7 +2,7 @@ import { FC } from "react";
import Grid from "@mui/material/Grid"; import Grid from "@mui/material/Grid";
import { Video as VideoModel } from "@interfaces/video"; import VideoModel from "@interfaces/video";
import Video from "@components/Video"; import Video from "@components/Video";

@ -1,4 +1,5 @@
import Video from "@interfaces/api/trending"; import { Quality } from "@interfaces/api";
import VideoTrending from "@interfaces/api/trending";
interface Channel { interface Channel {
author: string; author: string;
@ -14,7 +15,7 @@ interface Channel {
description: string; description: string;
descriptionHtml: string; descriptionHtml: string;
allowedRegions: string[]; allowedRegions: string[];
latestVideos: Video[]; latestVideos: VideoTrending[];
relatedChannels: RelatedChannel[]; relatedChannels: RelatedChannel[];
} }
@ -25,18 +26,6 @@ interface AuthorBanner {
quality?: Quality; quality?: Quality;
} }
enum Quality {
Default = "default",
End = "end",
High = "high",
Maxres = "maxres",
Maxresdefault = "maxresdefault",
Medium = "medium",
Middle = "middle",
Sddefault = "sddefault",
Start = "start"
}
interface RelatedChannel { interface RelatedChannel {
author: string; author: string;
authorId: string; authorId: string;

@ -50,17 +50,9 @@ interface Metadata {
} }
interface Software { interface Software {
name: Name; name: string;
version: string; version: string;
branch: Branch; branch: string;
}
export enum Branch {
Master = "master"
}
export enum Name {
Invidious = "invidious"
} }
interface Usage { interface Usage {

Loading…
Cancel
Save