Server IP : 85.214.239.14 / Your IP : 3.133.155.253 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/wordpress/wp-content/plugins/really-simple-ssl/settings/src/LetsEncrypt/ |
Upload File : |
import { __ } from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import {dispatch,} from '@wordpress/data'; import sleeper from "../utils/sleeper"; import Hyperlink from "../utils/Hyperlink"; import { Button, } from '@wordpress/components'; import useFields from "../Settings/FieldsData"; const Generation = (props) => { let action = props.action; if (!action) { return (<></>); } const handleSkipDNS = () => { return rsssl_api.runLetsEncryptTest('skip_dns_check').then( ( response ) => { props.restartTests(); const notice = dispatch('core/notices').createNotice( 'success', __( 'Skip DNS verification', 'really-simple-ssl' ), { __unstableHTML: true, id: 'rsssl_skip_dns', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then(( response ) => { dispatch('core/notices').removeNotice('rsssl_skip_dns'); }); }); } return ( <div className="rsssl-test-results"> { (action.status === 'error' && action.action==='verify_dns' ) && <> <p>{ __("We could not check the DNS records. If you just added the record, please check in a few minutes.","really-simple-ssl")} <Hyperlink target="_blank" rel="noopener noreferrer" text={__("You can manually check the DNS records in an %sonline tool%s.","really-simple-ssl")} url="https://mxtoolbox.com/SuperTool.aspx"/> { ' '+__("If you're sure it's set correctly, you can click the button to skip the DNS check.","really-simple-ssl")} </p> <Button variant="secondary" onClick={() => handleSkipDNS()} > { __( 'Skip DNS check', 'really-simple-ssl' ) } </Button> </> } </div> ); } export default Generation;