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 { 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 thumbnail = channel.authorThumbnails.find(

@ -2,7 +2,7 @@ import { FC } from "react";
import Grid from "@mui/material/Grid";
import { Video as VideoModel } from "@interfaces/video";
import VideoModel from "@interfaces/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 {
author: string;
@ -14,7 +15,7 @@ interface Channel {
description: string;
descriptionHtml: string;
allowedRegions: string[];
latestVideos: Video[];
latestVideos: VideoTrending[];
relatedChannels: RelatedChannel[];
}
@ -25,18 +26,6 @@ interface AuthorBanner {
quality?: Quality;
}
enum Quality {
Default = "default",
End = "end",
High = "high",
Maxres = "maxres",
Maxresdefault = "maxresdefault",
Medium = "medium",
Middle = "middle",
Sddefault = "sddefault",
Start = "start"
}
interface RelatedChannel {
author: string;
authorId: string;

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

Loading…
Cancel
Save