diff --git a/gok/gok.controller.js b/gok/gok.controller.js index 6a1305b..2f80043 100644 --- a/gok/gok.controller.js +++ b/gok/gok.controller.js @@ -54,7 +54,9 @@ let prepareDetailedFileList = (parentDirPath, fileList) => { // Other file details can be added as and when required return { name : stats.name, - isDirectory : stats.isDirectory + isDirectory : stats.isDirectory, + size : stats.size, + uploadedOn : stats.birthtime.toLocalDateString() } }) .catch((error) => { diff --git a/ui/package-lock.json b/ui/package-lock.json index 9965979..7c592a2 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -11190,15 +11190,6 @@ "extsprintf": "1.3.0" } }, - "video-react": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/video-react/-/video-react-0.10.4.tgz", - "integrity": "sha512-Gu/Yw9+AhcKcTPSltY9eyZ+xR/u6eX4GfgBL2TcBrZQ0cVy9x3U/vT73xX3CcItTK4tnNNHWsv71krQtzyn6RQ==", - "requires": { - "classnames": "2.2.5", - "prop-types": "15.6.1" - } - }, "vm-browserify": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", diff --git a/ui/package.json b/ui/package.json index 4a5ce37..9f35761 100644 --- a/ui/package.json +++ b/ui/package.json @@ -12,8 +12,7 @@ "react-scripts": "1.1.1", "redux": "^3.7.2", "semantic-ui-css": "^2.3.0", - "semantic-ui-react": "^0.78.3", - "video-react": "^0.10.4" + "semantic-ui-react": "^0.78.3" }, "scripts": { "start": "react-scripts start", diff --git a/ui/src/App.js b/ui/src/App.js index 2df6793..a1b0e26 100644 --- a/ui/src/App.js +++ b/ui/src/App.js @@ -77,7 +77,7 @@ class App extends Component { /> - + - + { controls autoPlay src={props.src} + height={window.innerHeight - 60} + width={window.innerWidth - 60} /> ) } @@ -96,6 +98,20 @@ class ContentArea extends Component { /> ); break; + case '.html': + fileViewer = ( +
+