[ 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
/
shared
/
presets
/
parts
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 ActiveCampaignConfig.js
2,844 B
SET
[ EDIT ]
|
[ DEL ]
📄 ChooseProvider.js
3,993 B
SET
[ EDIT ]
|
[ DEL ]
📄 FluentCRMConfig.js
2,823 B
SET
[ EDIT ]
|
[ DEL ]
📄 MailchimpConfig.js
2,036 B
SET
[ EDIT ]
|
[ DEL ]
📄 MailerLiteConfig.js
1,579 B
SET
[ EDIT ]
|
[ DEL ]
📄 WebhooksConfig.js
1,573 B
SET
[ EDIT ]
|
[ DEL ]
📄 YoutubeChannelId.js
2,380 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: MailerLiteConfig.js
/** * WordPress dependencies */ const { __ } = wp.i18n; const { SelectControl, Notice } = wp.components; const { useEffect, useState } = wp.element; import LoadSelect from "../../components/LoadSelect"; export default ({ options, updateEmailState }) => { const [fetching, setFetching] = useState(false); const [groups, setGroups] = useState([ { value: null, label: __("Choose a group", "presto-player") }, ]); const [error, setError] = useState(""); const fetchGroups = async () => { setFetching(true); try { const fetched = await wp.apiFetch({ path: "presto-player/v1/mailerlite/groups", }); let listOptions = groups; (fetched || []).forEach((list) => { listOptions = [ ...listOptions, ...[ { value: list.id, label: list.name, }, ], ]; }); setGroups(listOptions); } catch (e) { if (e?.message) { setError(e.message); } } finally { setFetching(false); } }; useEffect(() => { fetchGroups(); }, []); if (fetching) { return <LoadSelect />; } if (error) { return ( <Notice className="presto-notice" status="error" isDismissible={false}> {error} </Notice> ); } return ( <div> <SelectControl label={__("Choose a group", "presto-player")} value={options?.provider_list} options={groups} onChange={(provider_list) => updateEmailState({ provider_list })} /> </div> ); };