[ 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
/
settings
/
components
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 CTA.js
600 B
SET
[ EDIT ]
|
[ DEL ]
📄 CheckboxControl.js
539 B
SET
[ EDIT ]
|
[ DEL ]
📄 ColorPicker.js
730 B
SET
[ EDIT ]
|
[ DEL ]
📄 ComboboxControl.js
612 B
SET
[ EDIT ]
|
[ DEL ]
📄 CustomCSS.js
1,213 B
SET
[ EDIT ]
|
[ DEL ]
📄 Disabled.js
861 B
SET
[ EDIT ]
|
[ DEL ]
📄 Fields.js
1,321 B
SET
[ EDIT ]
|
[ DEL ]
📄 Group.js
2,021 B
SET
[ EDIT ]
|
[ DEL ]
📄 Groups.js
747 B
SET
[ EDIT ]
|
[ DEL ]
📄 Integration.js
3,088 B
SET
[ EDIT ]
|
[ DEL ]
📄 Loading.js
253 B
SET
[ EDIT ]
|
[ DEL ]
📄 Media.js
1,903 B
SET
[ EDIT ]
|
[ DEL ]
📄 Notices.js
552 B
SET
[ EDIT ]
|
[ DEL ]
📄 NullView.js
47 B
SET
[ EDIT ]
|
[ DEL ]
📄 Page.js
428 B
SET
[ EDIT ]
|
[ DEL ]
📄 SaveButton.js
1,309 B
SET
[ EDIT ]
|
[ DEL ]
📄 SelectControl.js
623 B
SET
[ EDIT ]
|
[ DEL ]
📄 TextControl.js
775 B
SET
[ EDIT ]
|
[ DEL ]
📄 ToggleControl.js
1,802 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Group.js
import { __ } from "@wordpress/i18n"; const { Card, CardBody, CardFooter } = wp.components; import SaveButton from "./SaveButton"; import { useDispatch } from "@wordpress/data"; import { store as noticesStore } from "@wordpress/notices"; import Disabled from "./Disabled"; import useSave from "../../../hooks/useSave"; export default ({ title, description, children, disabled, hideSaveButton, saveDisabled, }) => { const { save } = useSave(); const { createSuccessNotice, createErrorNotice } = useDispatch(noticesStore); /** * Form is submitted. */ const onSave = async () => { if (saveDisabled) { return; } try { await save(); createSuccessNotice(__("Settings Updated", "presto-player"), { type: "snackbar", }); } catch (e) { console.error(e); createErrorNotice( e?.message || __("Something went wrong", "presto-player") ); } }; return ( <Disabled disabled={disabled}> <Card size="large" className="presto-options__card"> <CardBody className={`presto-options__card-body`}> <div className="presto-flow" style={{ "--presto-flow-space": "2em" }}> <div className="presto-flow" style={{ "--presto-flow-space": "1em" }} > {title && ( <h2 style={{ marginBottom: 0 }}> {title}{" "} {!!disabled && ( <div className="presto-options__pro-badge">Pro</div> )} </h2> )} {description && <p>{description}</p>} </div> <div>{children}</div> </div> </CardBody> {!hideSaveButton ? ( <CardFooter isShady> <div> <SaveButton onSave={onSave}>{__("Update Settings", "presto-player")}</SaveButton> </div> </CardFooter> ) : ( <br /> )} </Card> </Disabled> ); };