[ 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
/
pages
/
parts
/
integration
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 ActiveCampaign.js
2,764 B
SET
[ EDIT ]
|
[ DEL ]
📄 FluentCRM.js
1,992 B
SET
[ EDIT ]
|
[ DEL ]
📄 Mailchimp.js
2,727 B
SET
[ EDIT ]
|
[ DEL ]
📄 MailerLite.js
2,734 B
SET
[ EDIT ]
|
[ DEL ]
📄 withIntegration.js
1,827 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Mailchimp.js
import { BaseControl, ExternalLink, Notice, PanelRow, } from "@wordpress/components"; import { compose } from "@wordpress/compose"; import { __ } from "@wordpress/i18n"; import Integration from "../../../components/Integration"; import TextControl from "../../../components/TextControl"; import withIntegration from "./withIntegration"; export default compose([withIntegration({ name: "presto_player_mailchimp" })])( ({ success, setSuccess, error, setError, isBusy, makeRequest, setting, updateSetting, }) => { const { api_key, connected } = setting || {}; const setData = (props) => { updateSetting({ ...props, }); }; const onConnect = () => { makeRequest({ path: "/presto-player/v1/mailchimp/connect", data: { api_key }, message: __("Connected", "presto-player"), success: setData, error: setData, }); }; const onDisconnect = async () => { makeRequest({ path: "/presto-player/v1/mailchimp/disconnect", message: __("Disconnected", "presto-player"), success: setData, error: setData, }); }; return ( <Integration title={"Mailchimp"} connected={connected} onDisconnect={onDisconnect} onConnect={onConnect} isBusy={isBusy} > {error && ( <PanelRow> <Notice className="presto-notice" status="error" onRemove={() => setError("")} > {error} </Notice> </PanelRow> )} {success && ( <PanelRow> <Notice className="presto-notice" status="success" onRemove={() => setSuccess("")} > {success} </Notice> </PanelRow> )} <PanelRow> <BaseControl> <TextControl className="presto-player__setting--mailchimp-api_key" label={__("Your Mailchimp API key", "presto-player")} help={ <p> {__( "You can create a new key on your mailchimp account page.", "presto-player" )}{" "} <ExternalLink href="https://us11.admin.mailchimp.com/account/api/"> {__("Get My API Key", "presto-player")} </ExternalLink> </p> } value={api_key} onChange={(api_key) => updateSetting({ api_key })} /> </BaseControl> </PanelRow> </Integration> ); } );