Archived
temporary
This commit is contained in:
+5
-5
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import Wikipedia from './Wikipedia';
|
||||
import { Card, Tabs, Tab } from 'react-bootstrap';
|
||||
import {Link} from 'react-router-dom';
|
||||
import { Link } from 'react-router-dom';
|
||||
import axios from 'axios';
|
||||
import Linkify from "react-linkify";
|
||||
import moment from 'moment';
|
||||
@@ -98,8 +98,8 @@ class VideoInfo extends React.Component {
|
||||
<b>Channel name: </b>{VideoDetails.snippet.channelTitle}<br />
|
||||
<b>Description: </b><Linkify>{VideoDetails.snippet.description}</Linkify><br />
|
||||
<b>Tags: </b>{VideoDetails.snippet.tags ?
|
||||
VideoDetails.snippet.tags.map((tag,i) =>
|
||||
( <span key={i}><Link to={{pathname: '/search/' + tag}}>{tag}</Link>{" "}</span> ))
|
||||
VideoDetails.snippet.tags.map((tag, i) =>
|
||||
(<span key={i}><Link to={{ pathname: '/search/' + tag }}>{tag}</Link>{" "}</span>))
|
||||
: ""}
|
||||
</p>
|
||||
</Tab>
|
||||
@@ -137,9 +137,9 @@ class VideoInfo extends React.Component {
|
||||
</Tab>
|
||||
<Tab className="text-white" eventKey="wikipedia" title="Wikipedia">
|
||||
<Wikipedia
|
||||
title={this.props.location.state.title}
|
||||
title={'undefined' !== typeof this.props.location.state ? this.props.location.state.title : undefined}
|
||||
title2={ytclear(this.state.VideoDetails.snippet.title).split('-')[1]}
|
||||
artist={this.props.location.state.artist}
|
||||
artist={'undefined' !== typeof this.props.location.state ? this.props.location.state.artist : undefined}
|
||||
artist2={ytclear(this.state.VideoDetails.snippet.title).split('-')[0]}
|
||||
key={this.props.videoId}
|
||||
videoId={this.props.videoId}
|
||||
|
||||
@@ -40,6 +40,9 @@ class Wikipedia extends Component {
|
||||
wikidatakeys: Object.keys(wikidatatmp.claims),
|
||||
isWDataLoaded: true
|
||||
});
|
||||
wdk.getManyEntities(Object.keys(wikidatatmp.claims), 'en').then(
|
||||
res=> console.info(res,'eee')
|
||||
)
|
||||
if (wikidatatmp.sitelinks.enwiki)
|
||||
wikijs()
|
||||
.page(wikidatatmp.sitelinks.enwiki.title)
|
||||
|
||||
Reference in New Issue
Block a user