����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { __ } from '@wordpress/i18n';
import {
Component,
} from '@wordpress/element';
import Icon from '../utils/Icon'
import {dispatch,} from '@wordpress/data';
import Notices from "../Settings/Notices";
import * as rsssl_api from "../utils/api";
import sleeper from "../utils/sleeper";
class TaskElement extends Component {
constructor() {
super( ...arguments);
}
handleClick(){
this.props.highLightField(this.props.notice.output.highlight_field_id);
}
handleClearCache(cache_id){
let data = {};
data.cache_id = cache_id;
rsssl_api.doAction('clear_cache', data).then( ( response ) => {
const notice = dispatch('core/notices').createNotice(
'success',
__( 'Re-started test', 'really-simple-ssl' ),
{
__unstableHTML: true,
id: 'rsssl_clear_cache',
type: 'snackbar',
isDismissible: true,
}
).then(sleeper(3000)).then(( response ) => {
dispatch('core/notices').removeNotice('rsssl_clear_cache');
});
this.props.getFields();
});
}
componentDidMount() {
this.handleClick = this.handleClick.bind(this);
}
render(){
let notice = this.props.notice;
let premium = notice.output.icon==='premium';
//treat links to rsssl.com and internal links different.
let urlIsExternal = notice.output.url && notice.output.url.indexOf('really-simple-ssl.com') !== -1;
return(
<div className="rsssl-task-element">
<span className={'rsssl-task-status rsssl-' + notice.output.icon}>{ notice.output.label }</span>
<p className="rsssl-task-message" dangerouslySetInnerHTML={{__html: notice.output.msg}}></p>
{urlIsExternal && notice.output.url && <a target="_blank" href={notice.output.url}>{__("More info", "really-simple-ssl")}</a> }
{notice.output.clear_cache_id && <span className="rsssl-task-enable button button-secondary" onClick={ () => this.handleClearCache(notice.output.clear_cache_id ) }>{__("Re-check", "really-simple-ssl")}</span> }
{!premium && !urlIsExternal && notice.output.url && <a className="rsssl-task-enable button button-secondary" href={notice.output.url}>{__("Fix", "really-simple-ssl")}</a> }
{!premium && notice.output.highlight_field_id && <span className="rsssl-task-enable button button-secondary" onClick={this.handleClick}>{__("Fix", "really-simple-ssl")}</span> }
{notice.output.plusone && <span className='rsssl-plusone'>1</span>}
{notice.output.dismissible && notice.output.status!=='completed' &&
<div className="rsssl-task-dismiss">
<button type='button' data-id={notice.id} onClick={this.props.onCloseTaskHandler}>
<Icon name='times' />
</button>
</div>
}
</div>
);
}
}
export default TaskElement;| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| SecurityFeaturesBlock | Folder | 0755 |
|
|
| DashboardPage.js | File | 1.01 KB | 0644 |
|
| GridBlock.js | File | 4.48 KB | 0644 |
|
| OtherPlugins.js | File | 3.9 KB | 0644 |
|
| ProgressBlock.js | File | 4.55 KB | 0644 |
|
| ProgressBlockHeader.js | File | 2.22 KB | 0644 |
|
| ProgressFooter.js | File | 2.93 KB | 0644 |
|
| SslLabs.js | File | 16.59 KB | 0644 |
|
| SslLabsFooter.js | File | 795 B | 0644 |
|
| TaskElement.js | File | 3.08 KB | 0644 |
|