|
@@ -4,7 +4,7 @@ import { ChevronLeft, ChevronRight } from "react-feather";
|
|
import Buttons from "./Buttons";
|
|
import Buttons from "./Buttons";
|
|
import ToggleCurated from "./ToggleCurated";
|
|
import ToggleCurated from "./ToggleCurated";
|
|
import Curated from "./Curated";
|
|
import Curated from "./Curated";
|
|
-import Loading from "../Loading";
|
|
|
|
|
|
+//import Loading from "../Loading";
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
|
|
|
|
@@ -34,7 +34,6 @@ class Curation extends React.Component<> {
|
|
}
|
|
}
|
|
|
|
|
|
async fetchPending(offset: number = 0) {
|
|
async fetchPending(offset: number = 0) {
|
|
- const { page } = this.state;
|
|
|
|
console.log(`Fetching videos`);
|
|
console.log(`Fetching videos`);
|
|
const videos = await fetchPending(offset);
|
|
const videos = await fetchPending(offset);
|
|
if (!videos) return;
|
|
if (!videos) return;
|
|
@@ -79,20 +78,18 @@ class Curation extends React.Component<> {
|
|
handleChange,
|
|
handleChange,
|
|
addVideoVote,
|
|
addVideoVote,
|
|
selectVideo,
|
|
selectVideo,
|
|
- videos = [],
|
|
|
|
curations = [],
|
|
curations = [],
|
|
search,
|
|
search,
|
|
- providers,
|
|
|
|
} = this.props;
|
|
} = this.props;
|
|
const {
|
|
const {
|
|
loading,
|
|
loading,
|
|
pending,
|
|
pending,
|
|
page,
|
|
page,
|
|
- hideWithoutThumb,
|
|
|
|
|
|
+ //hideWithoutThumb,
|
|
ipfsLocations,
|
|
ipfsLocations,
|
|
} = this.state;
|
|
} = this.state;
|
|
|
|
|
|
- const showCurated = this.props.showCurated ? "" : "un";
|
|
|
|
|
|
+ //const showCurated = this.props.showCurated ? "" : "un";
|
|
const noThumb = pending.filter((v) => !v.thumbnailPhotoDataObject);
|
|
const noThumb = pending.filter((v) => !v.thumbnailPhotoDataObject);
|
|
|
|
|
|
return (
|
|
return (
|
|
@@ -149,26 +146,26 @@ class Curation extends React.Component<> {
|
|
createdAt,
|
|
createdAt,
|
|
updatedAt,
|
|
updatedAt,
|
|
channelId,
|
|
channelId,
|
|
- categoryId,
|
|
|
|
|
|
+ //categoryId,
|
|
title,
|
|
title,
|
|
description,
|
|
description,
|
|
duration,
|
|
duration,
|
|
- thumbnailPhotoDataObjectId,
|
|
|
|
- thumbnailPhotoUrls,
|
|
|
|
- thumbnailPhotoAvailability,
|
|
|
|
|
|
+ //thumbnailPhotoDataObjectId,
|
|
|
|
+ //thumbnailPhotoUrls,
|
|
|
|
+ //thumbnailPhotoAvailability,
|
|
languageId,
|
|
languageId,
|
|
- hasMarketing,
|
|
|
|
- publishedBeforeJoystream,
|
|
|
|
- isPublic,
|
|
|
|
- isCensored,
|
|
|
|
- isExplicit,
|
|
|
|
|
|
+ //hasMarketing,
|
|
|
|
+ //publishedBeforeJoystream,
|
|
|
|
+ //isPublic,
|
|
|
|
+ //isCensored,
|
|
|
|
+ //isExplicit,
|
|
licenseId,
|
|
licenseId,
|
|
- mediaDataObjectId,
|
|
|
|
- mediaUrls,
|
|
|
|
- mediaAvailability,
|
|
|
|
- mediaMetadataId,
|
|
|
|
|
|
+ //mediaDataObjectId,
|
|
|
|
+ //mediaUrls,
|
|
|
|
+ //mediaAvailability,
|
|
|
|
+ //mediaMetadataId,
|
|
createdInBlock,
|
|
createdInBlock,
|
|
- isFeatured,
|
|
|
|
|
|
+ //isFeatured,
|
|
} = v.videomediaDataObject[0];
|
|
} = v.videomediaDataObject[0];
|
|
|
|
|
|
return (
|
|
return (
|