[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
src
/
admin
/
blocks
/
blocks
/
bunny
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 popup
SET
[ DEL ]
📄 APIPlaceholder.js
2,475 B
SET
[ EDIT ]
|
[ DEL ]
📄 StorageMedia.js
3,138 B
SET
[ EDIT ]
|
[ DEL ]
📄 StreamMedia.js
968 B
SET
[ EDIT ]
|
[ DEL ]
📄 block.json
3,024 B
SET
[ EDIT ]
|
[ DEL ]
📄 edit.js
15,670 B
SET
[ EDIT ]
|
[ DEL ]
📄 index.js
1,012 B
SET
[ EDIT ]
|
[ DEL ]
📄 useMedia.js
1,017 B
SET
[ EDIT ]
|
[ DEL ]
📄 useStorageConnection.js
2,896 B
SET
[ EDIT ]
|
[ DEL ]
📄 useStreamConnection.js
2,995 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: useMedia.js
const { __ } = wp.i18n; const { Modal, Spinner, Button, BaseControl, Flex, FlexBlock, Notice, Card, CardBody, Disabled, DropZone, FormFileUpload, DropZoneProvider, } = wp.components; const { useEffect, useState, useRef, Fragment } = wp.element; export default () => { const bytesToSize = (bytes) => { var sizes = ["Bytes", "KB", "MB", "GB", "TB"]; if (bytes == 0) return "0 Byte"; var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024))); return Math.round(bytes / Math.pow(1024, i), 2) + " " + sizes[i]; }; const toDate = (d) => { d = new Date(d); var hours = d.getHours(); var minutes = d.getMinutes(); var ampm = hours >= 12 ? "pm" : "am"; hours = hours % 12; hours = hours ? hours : 12; minutes = minutes < 10 ? "0" + minutes : minutes; return ( d.getDate() + "-" + (d.getMonth() + 1) + "-" + d.getFullYear() + " at " + hours + ":" + minutes + ampm ); }; };