1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

add video details and extract button (#6908)

* add video details and extract button

* update

* update

* update

---------

Co-authored-by: zheng.shen <zheng.shen@seafile.com>
This commit is contained in:
shenzheng-1
2024-10-18 13:25:10 +08:00
committed by GitHub
parent 058b95362e
commit 9fbc7a8d34
9 changed files with 151 additions and 6 deletions

View File

@@ -124,7 +124,7 @@ const FileDetails = React.memo(({ repoID, repoInfo, dirent, path, direntDetail,
);
let component = dom;
if (Utils.imageCheck(dirent.name)) {
if (Utils.imageCheck(dirent.name) || Utils.videoCheck(dirent.name)) {
const fileDetails = getCellValueByColumn(record, { key: PRIVATE_COLUMN_KEY.FILE_DETAILS });
const fileDetailsJson = JSON.parse(fileDetails?.slice(9, -7) || '{}');
const fileLocation = getCellValueByColumn(record, { key: PRIVATE_COLUMN_KEY.LOCATION });