reformattings and name change

This commit is contained in:
lukas 2020-06-01 21:36:55 +02:00
parent 3cc5c41a9b
commit a5edb141b2
9 changed files with 12 additions and 12 deletions

View File

@ -19,7 +19,7 @@ class App extends React.Component {
return ( return (
<div className="App"> <div className="App">
<nav className="navbar navbar-expand-sm bg-primary navbar-dark"> <nav className="navbar navbar-expand-sm bg-primary navbar-dark">
<div className="navbar-brand">Lukis Tube</div> <div className="navbar-brand">OpenMediaCenter</div>
<ul className="navbar-nav"> <ul className="navbar-nav">
<li className="nav-item"> <li className="nav-item">

View File

@ -29,7 +29,7 @@ class HomePage extends React.Component {
updateRequest.append('action', 'getMovies'); updateRequest.append('action', 'getMovies');
// fetch all videos available // fetch all videos available
fetch('/php/videoload.php', {method: 'POST', body: updateRequest}) fetch('/api/videoload.php', {method: 'POST', body: updateRequest})
.then((response) => response.json() .then((response) => response.json()
.then((result) => { .then((result) => {
this.data = result; this.data = result;

View File

@ -35,7 +35,7 @@ class Player extends React.Component {
render() { render() {
return ( return (
<div> <div id='videocontainer'>
<div className="row"> <div className="row">
<div className="col-sm-2"> <div className="col-sm-2">
<div className="videoleftbanner"> <div className="videoleftbanner">
@ -81,7 +81,7 @@ class Player extends React.Component {
updateRequest.append('action', 'loadVideo'); updateRequest.append('action', 'loadVideo');
updateRequest.append('movieid', this.props.movie_id); updateRequest.append('movieid', this.props.movie_id);
fetch('/php/videoload.php', {method: 'POST', body: updateRequest}) fetch('/api/videoload.php', {method: 'POST', body: updateRequest})
.then((response) => response.json()) .then((response) => response.json())
.then((result) => { .then((result) => {
this.setState({ this.setState({
@ -108,7 +108,7 @@ class Player extends React.Component {
updateRequest.append('action', 'addLike'); updateRequest.append('action', 'addLike');
updateRequest.append('movieid', this.props.movie_id); updateRequest.append('movieid', this.props.movie_id);
fetch('/php/videoload.php', {method: 'POST', body: updateRequest}) fetch('/api/videoload.php', {method: 'POST', body: updateRequest})
.then((response) => response.json()) .then((response) => response.json())
.then((result) => { .then((result) => {
if(result.result === "success"){ if(result.result === "success"){

View File

@ -27,7 +27,7 @@ class Preview extends React.Component {
updateRequest.append('action', 'readThumbnail'); updateRequest.append('action', 'readThumbnail');
updateRequest.append('movieid', this.props.movie_id); updateRequest.append('movieid', this.props.movie_id);
fetch('/php/videoload.php', {method: 'POST', body: updateRequest}) fetch('/api/videoload.php', {method: 'POST', body: updateRequest})
.then((response) => response.text()) .then((response) => response.text())
.then((result) => { .then((result) => {
this.setState(prevState => ({ this.setState(prevState => ({

View File

@ -3,7 +3,7 @@ import Preview from "./Preview";
import "./css/RandomPage.css" import "./css/RandomPage.css"
class RandomPage extends React.Component { class RandomPage extends React.Component {
constructor(props: P, context: any) { constructor(props, context) {
super(props, context); super(props, context);
this.state = { this.state = {
@ -53,7 +53,7 @@ class RandomPage extends React.Component {
updateRequest.append('number', nr); updateRequest.append('number', nr);
// fetch all videos available // fetch all videos available
fetch('/php/videoload.php', {method: 'POST', body: updateRequest}) fetch('/api/videoload.php', {method: 'POST', body: updateRequest})
.then((response) => response.json() .then((response) => response.json()
.then((result) => { .then((result) => {
this.setState({videos: result}); this.setState({videos: result});

View File

@ -8,9 +8,9 @@
height: 80%; height: 80%;
} }
.previewimage{ .previewimage {
width:100%; width: 100%;
height:100%; height: 100%;
} }
.videopreview { .videopreview {