Server IP : 15.235.198.142 / Your IP : 216.73.216.237 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/rhodeworks/wp-content/plugins/really-simple-ssl/settings/src/Dashboard/ |
Upload File : |
import GridBlock from "./GridBlock"; import ProgressHeader from "./Progress/ProgressBlockHeader"; import ProgressBlock from "./Progress/ProgressBlock"; import ProgressFooter from "./Progress/ProgressFooter"; import SslLabsHeader from "./SslLabs/SslLabsHeader"; import SslLabs from "./SslLabs/SslLabs"; import SslLabsFooter from "./SslLabs/SslLabsFooter"; import VulnerabilitiesHeader from "./Vulnerabilities/VulnerabilitiesHeader"; import Vulnerabilities from "./Vulnerabilities/Vulnerabilities"; import VulnerabilitiesFooter from "./Vulnerabilities/VulnerabilitiesFooter"; import TipsTricks from "./TipsTricks/TipsTricks"; import TipsTricksFooter from "./TipsTricks/TipsTricksFooter"; import OtherPluginsHeader from "./OtherPlugins/OtherPluginsHeader"; import OtherPlugins from "./OtherPlugins/OtherPlugins"; import { __ } from '@wordpress/i18n'; import DashboardPlaceholder from "../Placeholder/DashboardPlaceholder"; import useFields from "../Settings/FieldsData"; import ErrorBoundary from "../utils/ErrorBoundary"; const DashboardPage = () => { const {fieldsLoaded} = useFields(); const blocks = [ { id: 'progress', header: ProgressHeader, content: ProgressBlock, footer: ProgressFooter, class: ' rsssl-column-2', }, { id: 'ssllabs', header: SslLabsHeader, content: SslLabs, footer: SslLabsFooter, class: 'border-to-border', }, { id: 'wpvul', header: VulnerabilitiesHeader, content: Vulnerabilities, footer: VulnerabilitiesFooter, class: 'border-to-border', }, { id: 'tips_tricks', title: __("Tips & Tricks", 'really-simple-ssl'), content: TipsTricks, footer: TipsTricksFooter, class: ' rsssl-column-2', }, { id: 'other-plugins', header: OtherPluginsHeader, content: OtherPlugins, class: ' rsssl-column-2 no-border no-background', }, ] return ( <> {!fieldsLoaded && <DashboardPlaceholder></DashboardPlaceholder>} {fieldsLoaded && blocks.map((block, i) => <ErrorBoundary key={"grid_"+i} fallback={"Could not load dashboard block"}><GridBlock block={block}/></ErrorBoundary>)} </> ); } export default DashboardPage