Merge branch 'fileupload' into 'master'

Video upload through webpage

Closes #59

See merge request lukas/openmediacenter!55
This commit is contained in:
2021-09-26 20:46:21 +00:00
13 changed files with 266 additions and 21 deletions

View File

@ -11,3 +11,9 @@
padding: 10px;
width: 40%;
}
.uploadtext {
font-size: x-large;
margin-top: 30px;
margin-bottom: 10px;
}

View File

@ -2,6 +2,8 @@ import React from 'react';
import style from './MovieSettings.module.css';
import {APINode, callAPI} from '../../utils/Api';
import {GeneralSuccess} from '../../types/GeneralTypes';
import {DropZone} from '../../elements/DropZone/DropZone';
import GlobalInfos from '../../utils/GlobalInfos';
interface state {
text: string[];
@ -99,6 +101,8 @@ class MovieSettings extends React.Component<Props, state> {
}
render(): JSX.Element {
const theme = GlobalInfos.getThemeStyle();
return (
<>
<button
@ -123,6 +127,10 @@ class MovieSettings extends React.Component<Props, state> {
</div>
))}
</div>
<div className={theme.textcolor}>
<div className={style.uploadtext}>Video Upload:</div>
<DropZone />
</div>
</>
);
}