1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 04:18:21 +00:00

[view history/snapshot/trash file] rewrote them with react

This commit is contained in:
llj
2019-06-25 15:47:43 +08:00
parent c958c1c642
commit 0868add020
22 changed files with 451 additions and 14 deletions

View File

@@ -0,0 +1,28 @@
import React from 'react';
import VideoPlayer from '../video-player';
import '../../css/video-file-view.css';
const {
rawPath
} = window.app.pageOptions;
class FileContent extends React.Component {
render() {
const videoJsOptions = {
autoplay: false,
controls: true,
preload: 'auto',
sources: [{
src: rawPath
}]
};
return (
<div className="file-view-content flex-1 video-file-view">
<VideoPlayer { ...videoJsOptions } />
</div>
);
}
}
export default FileContent;