| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/cwd/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