[ 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: APIPlaceholder.js
import { __ } from "@wordpress/i18n"; import { Button, TextControl, Placeholder, Flex, FlexBlock, ExternalLink, Spinner, FlexItem, Notice, } from "@wordpress/components"; import { useEffect } from "@wordpress/element"; import useStorageConnection from "./useStorageConnection"; import useStreamConnection from "./useStreamConnection"; export default ({ onRefetch, type, autoSubmit }) => { const { saveKey, apikey, setApikey, saveMessage, saving, totalSteps, step, error, } = type === "stream" ? useStreamConnection(onRefetch) : useStorageConnection(onRefetch); useEffect(() => { if (autoSubmit) { saveKey(); } }, [autoSubmit]); return ( <Placeholder label={__("Bunny.net Video", "presto-player")} instructions={__( "Enter your Bunny.net API key, which can be found on your Bunny CDN Account page.", "presto-player" )} > {saving ? ( <Flex> <FlexItem> <Spinner /> </FlexItem> <FlexBlock> {saveMessage} <progress className="presto-progress" max={totalSteps} value={step} style={{ width: "100%" }} ></progress> </FlexBlock> </Flex> ) : ( <form onSubmit={(e) => { e.preventDefault(); saveKey(); }} > {error && ( <Flex style={{ width: "100%" }}> <FlexBlock> <Notice status="error" isDismissible={false}> {error} </Notice> </FlexBlock> </Flex> )} <Flex style={{ width: "100%", maxWidth: "400px" }}> <FlexBlock> <TextControl value={apikey} onChange={(apikey) => setApikey(apikey)} className={"presto-link-placeholder-input"} type="password" autoComplete="off" placeholder={__("Your Bunny.net API Key", "presto-player")} required /> </FlexBlock> <FlexItem> <Button isPrimary style={{ marginBottom: "8px" }} type="submit"> {__("Next", "presto-player")} → </Button> </FlexItem> </Flex> </form> )} </Placeholder> ); };