X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/extendify/src/Agent
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
extendify
/
src
/
Agent
/
??
..
??
2b0ev5uh
(9.03 KB)
??
Agent.jsx
(15.27 KB)
??
Chat.jsx
(1.47 KB)
??
agent.css
(4.2 KB)
??
agent.js
(1.3 KB)
??
api.js
(4.99 KB)
??
buttons.js
(2.13 KB)
??
components
??
hooks
??
icons.jsx
(6.16 KB)
??
ier2lvkz
(9.03 KB)
??
k7awl7k4
(9.03 KB)
??
lib
??
state
??
tours
??
workflows
Editing: agent.js
import domReady from '@wordpress/dom-ready'; import { render } from '@shared/lib/dom'; import { isOnLaunch } from '@shared/lib/utils'; import { Agent } from '@agent/Agent.jsx'; import '@agent/agent.css'; import '@agent/buttons'; import { GuidedTour } from '@agent/components/GuidedTour'; import { ReOpenToolTip } from '@agent/components/tooltip/ReOpenToolTip'; const isInsideIframe = () => !!document.querySelector('body.iframe'); domReady(() => { const bg = // admin area document.getElementById('wpwrap') || // TODO: is this on all block themes? document.querySelector('.wp-site-blocks'); if (isOnLaunch() || isInsideIframe() || !bg) return; const id = 'extendify-agent-main'; if (document.getElementById(id)) return; const agent = Object.assign(document.createElement('div'), { className: 'extendify-agent', id, }); document.body.appendChild(agent); render(<Agent />, agent); // tours const tourId = 'extendify-agent-tour'; if (document.getElementById(tourId)) return; const tour = Object.assign(document.createElement('div'), { className: 'extendify-agent-tour', id: tourId, }); render(<GuidedTour />, tour); // tooltip const div = Object.assign(document.createElement('div'), { id: 'extendify-agent-modal-tooltip', }); document.body.appendChild(div); render(<ReOpenToolTip />, div); });
Upload File
Create Folder