__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { createElement, Component } from '@wordpress/element'
import * as check from '@wordpress/element'
import ctEvents from 'ct-events'
import { __ } from 'ct-i18n'
import Extensions from './dashboard/screens/Extensions'
import Extension from './dashboard/screens/Extension'
import DemoInstall from './dashboard/screens/DemoInstall'
import SiteExport from './dashboard/screens/SiteExport'
import DemoToInstall from './dashboard/screens/DemoInstall/DemoToInstall'
import { getStarterSitesStatus } from './dashboard/helpers/starter-sites'
getStarterSitesStatus()
.then((response) => {
if (response.status !== 511) {
// We are good, do nothing
return
}
fetch(
`${ctDashboardLocalizations.ajax_url}?action=blocksy_dashboard_handle_incorrect_license`,
{
method: 'POST',
body: JSON.stringify({}),
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
}
).then(({ success, data }) => {
// Ignore result
})
})
.catch((response) => {
console.error('Error:', response)
})
ctEvents.on('ct:dashboard:routes', (r) => {
r.push({
Component: (props) => <Extensions {...props} />,
path: '/extensions',
})
r.push({
Component: (props) => <Extension {...props} />,
path: '/extensions/:extension',
})
if (ctDashboardLocalizations.plugin_data.has_demo_install === 'yes') {
r.push({
Component: (props) => <DemoInstall {...props} />,
path: '/demos',
})
}
})
ctEvents.on('ct:dashboard:navigation-links', (r) => {
if (ctDashboardLocalizations.plugin_data.has_demo_install === 'yes') {
r.push({
text: __('Starter Sites', 'blocksy-companion'),
path: 'demos',
getProps: ({ isPartiallyCurrent, isCurrent }) =>
isPartiallyCurrent
? {
'aria-current': 'page',
}
: {},
})
}
r.push({
text: __('Extensions', 'blocksy-companion'),
path: '/extensions',
onClick: (e) => {
if (location.hash.indexOf('extensions') > -1) {
e.preventDefault()
}
},
getProps: ({ isPartiallyCurrent, isCurrent }) => {
return {
...(isPartiallyCurrent || isCurrent
? {
'aria-current': 'page',
}
: {}),
}
},
})
})
ctEvents.on('ct:dashboard:heading:after', (r) => {
if (!ctDashboardLocalizations.plugin_data.is_pro) {
return
}
r.content = <span>PRO</span>
})
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| dashboard | Folder | 0775 |
|
|
| editor | Folder | 0775 |
|
|
| frontend | Folder | 0775 |
|
|
| header | Folder | 0775 |
|
|
| helpers | Folder | 0775 |
|
|
| notifications | Folder | 0775 |
|
|
| options | Folder | 0775 |
|
|
| sync | Folder | 0775 |
|
|
| account.js | File | 3.71 KB | 0775 |
|
| dashboard-no-theme.js | File | 719 B | 0775 |
|
| dashboard.js | File | 2.27 KB | 0775 |
|
| flushPermalinks.js | File | 347 B | 0775 |
|
| notifications.js | File | 703 B | 0775 |
|
| options.js | File | 916 B | 0775 |
|
| sticky.js | File | 356 B | 0775 |
|
| sync.js | File | 83 B | 0775 |
|