import Icon from "../utils/Icon"; import { __ } from '@wordpress/i18n'; import DOMPurify from "dompurify"; /** * Render a help notice in the sidebar */ const Help = (props) => { let notice = {...props.help}; if ( !notice.title ){ notice.title = notice.text; notice.text = false; } let openStatus = props.noticesExpanded ? 'open' : ''; //we can use notice.linked_field to create a visual link to the field. let target = notice.url && notice.url.indexOf("really-simple-ssl.com") !==-1 ? "_blank" : '_self'; return ( <div> { notice.title && notice.text && <details className={"rsssl-wizard-help-notice rsssl-" + notice.label.toLowerCase()} open={openStatus}> <summary>{notice.title} <Icon name='chevron-down' /></summary> {/*some notices contain html, like for the htaccess notices. A title is required for those options, otherwise the text becomes the title. */} <div dangerouslySetInnerHTML={{__html: DOMPurify.sanitize(notice.text)}}></div> {notice.url && <div className="rsssl-help-more-info"><a target={target} href={notice.url}>{__("More info", "really-simple-ssl")}</a></div>} </details> } { notice.title && !notice.text && <div className={"rsssl-wizard-help-notice rsssl-" + notice.label.toLowerCase()}><p>{notice.title}</p></div> } </div> ); } export default Help
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
AutoComplete | Folder | 0755 |
|
|
Captcha | Folder | 0755 |
|
|
DataTable | Folder | 0755 |
|
|
DynamicDataTable | Folder | 0755 |
|
|
EventLog | Folder | 0755 |
|
|
FileChangeDetection | Folder | 0755 |
|
|
GeoBlockList | Folder | 0755 |
|
|
Host | Folder | 0755 |
|
|
LearningMode | Folder | 0755 |
|
|
License | Folder | 0755 |
|
|
LimitLoginAttempts | Folder | 0755 |
|
|
MixedContentScan | Folder | 0755 |
|
|
RiskConfiguration | Folder | 0755 |
|
|
TwoFA | Folder | 0755 |
|
|
firewall | Folder | 0755 |
|
|
Button.js | File | 1.48 KB | 0644 |
|
CheckboxControl.js | File | 3.26 KB | 0644 |
|
Field.js | File | 20.21 KB | 0644 |
|
FieldsData.js | File | 15.3 KB | 0644 |
|
FilterData.js | File | 590 B | 0644 |
|
Help.js | File | 1.48 KB | 0644 |
|
Notices.js | File | 782 B | 0644 |
|
Password.js | File | 1009 B | 0644 |
|
PermissionsPolicy.js | File | 7.9 KB | 0644 |
|
PostDropDown.js | File | 2.86 KB | 0644 |
|
PremiumOverlay.js | File | 1.91 KB | 0644 |
|
RolesDropDown.js | File | 3.6 KB | 0644 |
|
SelectControl.js | File | 2.91 KB | 0644 |
|
Settings.js | File | 7.26 KB | 0644 |
|
SettingsGroup.js | File | 8.07 KB | 0644 |
|
Support.js | File | 1.9 KB | 0644 |
|