Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
better-wp-security
/
core
/
admin-pages
/
entries
:
settings.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * WordPress dependencies */ import { setLocaleData } from '@wordpress/i18n'; import { render } from '@wordpress/element'; import domReady from '@wordpress/dom-ready'; // Silence warnings until JS i18n is stable. setLocaleData( { '': {} }, 'better-wp-security' ); /** * Internal dependencies */ import { createHistory } from './settings/history'; import App from './settings/app.js'; const history = createHistory( document.location, { page: 'itsec' } ); domReady( () => { const containerEl = document.getElementById( 'itsec-settings-root' ); if ( ! containerEl ) { return; } const serverType = containerEl.dataset.serverType; const installType = containerEl.dataset.installType; const onboardComplete = containerEl.dataset.onboard === '1'; return render( <App history={ history } serverType={ serverType } installType={ installType } onboardComplete={ onboardComplete } />, containerEl ); } ); export * from './settings/components'; export { OnboardSiteTypeBeforeFill } from './settings/pages/site-type/chooser'; export { OnboardSiteTypeIpDetectionFill } from './settings/pages/site-type/questions/questions/ip-detection'; export { Page, ChildPages, useNavigation, useCurrentPage, } from './settings/page-registration'; export { useNavigateTo, useConfigContext, useModuleRequirementsValidator, useSettingsForm, useAllowedSettingsFields, } from './settings/utils'; export { SingleModulePage } from './settings/pages/configure'; export { STORE_NAME as ONBOARD_STORE_NAME } from './settings/stores/onboard'; export { history };