Changeset 3308407
- Timestamp:
- 06/09/2025 10:40:35 AM (9 months ago)
- Location:
- visualcomposer/trunk
- Files:
-
- 1 deleted
- 9 edited
-
cache/autoload.php (modified) (1 diff)
-
public/dist/wpbackendswitch.bundle.js (modified) (1 diff)
-
public/dist/wpbackendswitch.bundle.js.gz (modified) (previous)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
vendor/composer/autoload_classmap.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (3 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
-
visualcomposer/Modules/Editors/Backend/EditorController.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
visualcomposer/trunk/cache/autoload.php
r3304839 r3308407 973 973 'singleton' => true, 974 974 ), 975 'EditorsBackendEditorController' =>976 array (977 'name' => 'EditorsBackendEditorController',978 'abstract' => 'VisualComposer\\Modules\\Editors\\Backend\\EditorController',979 'make' => true,980 'singleton' => true,981 ),982 975 'EditorsBackendSaveSetEditorController' => 983 976 array ( -
visualcomposer/trunk/public/dist/wpbackendswitch.bundle.js
r3304839 r3308407 1 "use strict";(self.vcvWebpackJsonp4x=self.vcvWebpackJsonp4x||[]).push([["wpbackendswitch"],{"./public/backendSwitch.js":function(e,t,n){n("./public/variables.js");var i=n("./node_modules/react/index.js"),o=n("./node_modules/react-dom/client.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"), s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),a=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),d=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,d.default)(this,n)}}var w=function(e){(0,c.default)(n,e);var t=u(n);function n(e){var i;(0,r.default)(this,n),i=t.call(this,e);var o=window.VCV_GUTENBERG&&window.VCV_GUTENBERG();i.handleClickEnableClassicEditor=i.handleClickEnableClassicEditor.bind((0,a.default)(i)),i.handleClickOpenFrontendEditor=i.handleClickOpenFrontendEditor.bind((0,a.default)(i)),o&&(i.handleClickEnableGutenbergEditor=i.handleClickEnableGutenbergEditor.bind((0,a.default)(i)));var s=document.getElementById("vcv-be-editor");-1!==window.location.href.indexOf("classic-editor")&&(s.value="classic");var c=s.value;return(s&&-1===["classic","gutenberg"].indexOf(c)||"gutenberg"===c&&!o)&&(c="be",i.hideClassicEditor()),i.state={editor:c},i.wpb=void 0!==window.vc,i}return(0,s.default)(n,[{key:"handleClickEnableClassicEditor",value:function(e){e.preventDefault();var t=window.VCV_I18N&&window.VCV_I18N(),n=t&&t.enableClassicEditorConfirmMessage?t.enableClassicEditorConfirmMessage:"Visual Composer will overwrite your content created in WordPress Classic editor with the latest version of content created in Visual Composer Website Builder. Do you want to continue?";window.confirm(n)&&(this.setState({editor:"classic"}),this.showClassicEditor())}},{key:"handleClickEnableGutenbergEditor",value:function(e){e.preventDefault();var t=window.VCV_I18N&&window.VCV_I18N(),n=t&&t.enableGutenbergEditorConfirmMessage?t.enableGutenbergEditorConfirmMessage:"Gutenberg will overwrite your content created in Visual Composer Website Builder. Do you want to continue?";if(window.confirm(n)){this.setState({editor:"gutenberg"});var i=window.location.href;i+=(i.match(/[?]/g)?"&":"?")+"vcv-set-editor=gutenberg",window.location=i}}},{key:"handleClickOpenFrontendEditor",value:function(e){e.preventDefault();var t=window.VCV_I18N&&window.VCV_I18N(),n=t&&t.openFrontendEditorFromClassic?t.openFrontendEditorFromClassic:"Visual Composer will overwrite your content created in WordPress Classic editor with the latest version of content created in Visual Composer Website Builder. Do you want to continue?";("be"===this.state.editor||window.confirm(n))&&(window.location.href=e.currentTarget.dataset.href)}},{key:"hideClassicEditor",value:function(){null!==document.getElementById("postdivrich")&&document.getElementById("postdivrich").classList.add("vcv-hidden")}},{key:"showClassicEditor",value:function(){var e=window.location.href;e.indexOf("?")>-1?e+="&classic-editor=1":e+="?classic-editor=1",window.location.href=e}},{key:"render",value:function(){var e=this,t=window.VCV_I18N&&window.VCV_I18N(),n=t&&t.classicEditor?t.classicEditor:"Classic Editor",o=t&&t.gutenbergEditor?t.gutenbergEditor:"Gutenberg Editor",r=this.state.editor,s=window.VCV_GUTENBERG&&window.VCV_GUTENBERG(),a=null;!this.props.isGutenbergEditor&&s&&"gutenberg"!==r&&(a=i.createElement("div",{className:"vcv-wpbackend-switcher--type-gutenberg"},i.createElement("button",{className:"vcv-wpbackend-switcher-option",onClick:this.handleClickEnableGutenbergEditor},o)));var c=i.createElement("button",{className:"vcv-wpbackend-switcher-option vcv-wpbackend-switcher-option--vceditor","data-href":window.vcvFrontendEditorLink,onClick:this.handleClickOpenFrontendEditor});return window.VCV_IS_WOOCOMMERCE_LAYOUT&&window.VCV_IS_WOOCOMMERCE_LAYOUT()&&(c=null),i.createElement("div",{className:"vcv-wpbackend-switcher-wrapper"},i.createElement("div",{className:"vcv-wpbackend-switcher"},c),"classic"===r||!1!==this.wpb||s||this.props.isGutenbergEditor?"":i.createElement("div",{className:"vcv-wpbackend-switcher--type-classic"},i.createElement("button",{className:"vcv-wpbackend-switcher-option",onClick:e.handleClickEnableClassicEditor},n)),a)}}]),n}(i.Component);(0,window.jQuery)((function(){!function(){var e=document.querySelector("div#titlediv"),t=document.getElementById("editor"),n=document.createElement("div");n.className="vcv-wpbackend-switcher-container";var r=!1,s=function(e){(0,o.createRoot)(e).render(i.createElement(w,{isGutenbergEditor:!!t}))};if(e)e.parentNode.insertBefore(n,e.nextSibling),r=!0;else if(t){var a=window.VCV_WPML&&window.VCV_WPML()?2500:1;window.wp.data.subscribe((function(){setTimeout((function(){var e=t?t.querySelector(".edit-post-header-toolbar"):null;e&&!e.querySelector(".vcv-wpbackend-switcher-container")&&(e.querySelector(".edit-post-header-toolbar__left")?e.querySelector(".edit-post-header-toolbar__left").after(n):e.append(n),s(n))}),a)}))}else{var c=document.getElementById("post-body-content");c&&(c.firstChild?c.insertBefore(n,c.firstChild):c.appendChild(n),r=!0)}r&&s(n)}()}))},"./public/variables.js":function(e,t,n){var i=n("./node_modules/vc-cake/index.js");if(void 0!==window.VCV_ENV){var o=window.VCV_ENV();Object.keys(o).forEach((function(e){(0,i.env)(e,o[e])})),o.VCV_DEBUG&&(0,i.env)("debug",!0)}}},function(e){e.O(0,["vendor"],(function(){return t="./public/backendSwitch.js",e(e.s=t);var t}));e.O()}]);1 "use strict";(self.vcvWebpackJsonp4x=self.vcvWebpackJsonp4x||[]).push([["wpbackendswitch"],{"./public/backendSwitch.js":function(e,t,n){n("./public/variables.js");var i=n("./node_modules/react/index.js"),o=n("./node_modules/react-dom/client.js"),r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),a=n("./node_modules/@babel/runtime/helpers/esm/createClass.js"),s=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),c=n("./node_modules/@babel/runtime/helpers/esm/inherits.js"),d=n("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),l=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,d.default)(this,n)}}var w=function(e){(0,c.default)(n,e);var t=u(n);function n(e){var i;(0,r.default)(this,n),i=t.call(this,e);var o=window.VCV_GUTENBERG&&window.VCV_GUTENBERG();i.handleClickEnableClassicEditor=i.handleClickEnableClassicEditor.bind((0,s.default)(i)),i.handleClickOpenFrontendEditor=i.handleClickOpenFrontendEditor.bind((0,s.default)(i)),o&&(i.handleClickEnableGutenbergEditor=i.handleClickEnableGutenbergEditor.bind((0,s.default)(i)));var a=document.getElementById("vcv-be-editor");-1!==window.location.href.indexOf("classic-editor")&&(a.value="classic");var c=a.value;return"gutenberg"!==c||o||(c="be",i.hideClassicEditor()),i.state={editor:c},i.wpb=void 0!==window.vc,i}return(0,a.default)(n,[{key:"handleClickEnableClassicEditor",value:function(e){e.preventDefault();var t=window.VCV_I18N&&window.VCV_I18N(),n=t&&t.enableClassicEditorConfirmMessage?t.enableClassicEditorConfirmMessage:"Visual Composer will overwrite your content created in WordPress Classic editor with the latest version of content created in Visual Composer Website Builder. Do you want to continue?";window.confirm(n)&&(this.setState({editor:"classic"}),this.showClassicEditor())}},{key:"handleClickEnableGutenbergEditor",value:function(e){e.preventDefault();var t=window.VCV_I18N&&window.VCV_I18N(),n=t&&t.enableGutenbergEditorConfirmMessage?t.enableGutenbergEditorConfirmMessage:"Gutenberg will overwrite your content created in Visual Composer Website Builder. Do you want to continue?";if(window.confirm(n)){this.setState({editor:"gutenberg"});var i=window.location.href;i+=(i.match(/[?]/g)?"&":"?")+"vcv-set-editor=gutenberg",window.location=i}}},{key:"handleClickOpenFrontendEditor",value:function(e){e.preventDefault();var t=window.VCV_I18N&&window.VCV_I18N(),n=t&&t.openFrontendEditorFromClassic?t.openFrontendEditorFromClassic:"Visual Composer will overwrite your content created in WordPress Classic editor with the latest version of content created in Visual Composer Website Builder. Do you want to continue?";("be"===this.state.editor||window.confirm(n))&&(window.location.href=e.currentTarget.dataset.href)}},{key:"hideClassicEditor",value:function(){null!==document.getElementById("postdivrich")&&document.getElementById("postdivrich").classList.add("vcv-hidden")}},{key:"showClassicEditor",value:function(){var e=window.location.href;e.indexOf("?")>-1?e+="&classic-editor=1":e+="?classic-editor=1",window.location.href=e}},{key:"render",value:function(){var e=this,t=window.VCV_I18N&&window.VCV_I18N(),n=t&&t.classicEditor?t.classicEditor:"Classic Editor",o=t&&t.gutenbergEditor?t.gutenbergEditor:"Gutenberg Editor",r=this.state.editor,a=window.VCV_GUTENBERG&&window.VCV_GUTENBERG(),s=null;!this.props.isGutenbergEditor&&a&&"gutenberg"!==r&&(s=i.createElement("div",{className:"vcv-wpbackend-switcher--type-gutenberg"},i.createElement("button",{className:"vcv-wpbackend-switcher-option",onClick:this.handleClickEnableGutenbergEditor},o)));var c=i.createElement("button",{className:"vcv-wpbackend-switcher-option vcv-wpbackend-switcher-option--vceditor","data-href":window.vcvFrontendEditorLink,onClick:this.handleClickOpenFrontendEditor});return window.VCV_IS_WOOCOMMERCE_LAYOUT&&window.VCV_IS_WOOCOMMERCE_LAYOUT()&&(c=null),i.createElement("div",{className:"vcv-wpbackend-switcher-wrapper"},i.createElement("div",{className:"vcv-wpbackend-switcher"},c),"classic"===r||!1!==this.wpb||a||this.props.isGutenbergEditor?"":i.createElement("div",{className:"vcv-wpbackend-switcher--type-classic"},i.createElement("button",{className:"vcv-wpbackend-switcher-option",onClick:e.handleClickEnableClassicEditor},n)),s)}}]),n}(i.Component);(0,window.jQuery)((function(){!function(){var e=document.querySelector("div#titlediv"),t=document.getElementById("editor"),n=document.createElement("div");n.className="vcv-wpbackend-switcher-container";var r=!1,a=function(e){(0,o.createRoot)(e).render(i.createElement(w,{isGutenbergEditor:!!t}))};if(e)e.parentNode.insertBefore(n,e.nextSibling),r=!0;else if(t){var s=window.VCV_WPML&&window.VCV_WPML()?2500:1;window.wp.data.subscribe((function(){setTimeout((function(){var e=t?t.querySelector(".edit-post-header-toolbar"):null;e&&!e.querySelector(".vcv-wpbackend-switcher-container")&&(e.querySelector(".edit-post-header-toolbar__left")?e.querySelector(".edit-post-header-toolbar__left").after(n):e.append(n),a(n))}),s)}))}else{var c=document.getElementById("post-body-content");c&&(c.firstChild?c.insertBefore(n,c.firstChild):c.appendChild(n),r=!0)}r&&a(n)}()}))},"./public/variables.js":function(e,t,n){var i=n("./node_modules/vc-cake/index.js");if(void 0!==window.VCV_ENV){var o=window.VCV_ENV();Object.keys(o).forEach((function(e){(0,i.env)(e,o[e])})),o.VCV_DEBUG&&(0,i.env)("debug",!0)}}},function(e){e.O(0,["vendor"],(function(){return t="./public/backendSwitch.js",e(e.s=t);var t}));e.O()}]); -
visualcomposer/trunk/vendor/autoload.php
r3304839 r3308407 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 70616533dd5a8664273b2bbf59ce7171::getLoader();7 return ComposerAutoloaderInitf114ef5e52cc0e99a74b51db8c5c7454::getLoader(); -
visualcomposer/trunk/vendor/composer/InstalledVersions.php
r3304839 r3308407 20 20 array ( 21 21 ), 22 'reference' => ' afa3ab924dedecc1fc183a257177af96f70f16d6',22 'reference' => '54c3042925f9af665eda858f81ddeab982ee3527', 23 23 'name' => '__root__', 24 24 ), … … 32 32 array ( 33 33 ), 34 'reference' => ' afa3ab924dedecc1fc183a257177af96f70f16d6',34 'reference' => '54c3042925f9af665eda858f81ddeab982ee3527', 35 35 ), 36 36 ), -
visualcomposer/trunk/vendor/composer/autoload_classmap.php
r3304839 r3308407 116 116 'VisualComposer\\Modules\\Editors\\Attributes\\Url\\Controller' => $baseDir . '/visualcomposer/Modules/Editors/Attributes/Url/Controller.php', 117 117 'VisualComposer\\Modules\\Editors\\Attributes\\WpEditor' => $baseDir . '/visualcomposer/Modules/Editors/Attributes/WpEditor.php', 118 'VisualComposer\\Modules\\Editors\\Backend\\EditorController' => $baseDir . '/visualcomposer/Modules/Editors/Backend/EditorController.php',119 118 'VisualComposer\\Modules\\Editors\\Backend\\SaveSetEditorController' => $baseDir . '/visualcomposer/Modules/Editors/Backend/SaveSetEditorController.php', 120 119 'VisualComposer\\Modules\\Editors\\DataAjax\\Controller' => $baseDir . '/visualcomposer/Modules/Editors/DataAjax/Controller.php', -
visualcomposer/trunk/vendor/composer/autoload_real.php
r3304839 r3308407 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 70616533dd5a8664273b2bbf59ce71715 class ComposerAutoloaderInitf114ef5e52cc0e99a74b51db8c5c7454 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 70616533dd5a8664273b2bbf59ce7171', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitf114ef5e52cc0e99a74b51db8c5c7454', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 70616533dd5a8664273b2bbf59ce7171', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitf114ef5e52cc0e99a74b51db8c5c7454', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 70616533dd5a8664273b2bbf59ce7171::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitf114ef5e52cc0e99a74b51db8c5c7454::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
visualcomposer/trunk/vendor/composer/autoload_static.php
r3304839 r3308407 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 70616533dd5a8664273b2bbf59ce71717 class ComposerStaticInitf114ef5e52cc0e99a74b51db8c5c7454 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 131 131 'VisualComposer\\Modules\\Editors\\Attributes\\Url\\Controller' => __DIR__ . '/../..' . '/visualcomposer/Modules/Editors/Attributes/Url/Controller.php', 132 132 'VisualComposer\\Modules\\Editors\\Attributes\\WpEditor' => __DIR__ . '/../..' . '/visualcomposer/Modules/Editors/Attributes/WpEditor.php', 133 'VisualComposer\\Modules\\Editors\\Backend\\EditorController' => __DIR__ . '/../..' . '/visualcomposer/Modules/Editors/Backend/EditorController.php',134 133 'VisualComposer\\Modules\\Editors\\Backend\\SaveSetEditorController' => __DIR__ . '/../..' . '/visualcomposer/Modules/Editors/Backend/SaveSetEditorController.php', 135 134 'VisualComposer\\Modules\\Editors\\DataAjax\\Controller' => __DIR__ . '/../..' . '/visualcomposer/Modules/Editors/DataAjax/Controller.php', … … 311 310 { 312 311 return \Closure::bind(function () use ($loader) { 313 $loader->prefixLengthsPsr4 = ComposerStaticInit 70616533dd5a8664273b2bbf59ce7171::$prefixLengthsPsr4;314 $loader->prefixDirsPsr4 = ComposerStaticInit 70616533dd5a8664273b2bbf59ce7171::$prefixDirsPsr4;315 $loader->classMap = ComposerStaticInit 70616533dd5a8664273b2bbf59ce7171::$classMap;312 $loader->prefixLengthsPsr4 = ComposerStaticInitf114ef5e52cc0e99a74b51db8c5c7454::$prefixLengthsPsr4; 313 $loader->prefixDirsPsr4 = ComposerStaticInitf114ef5e52cc0e99a74b51db8c5c7454::$prefixDirsPsr4; 314 $loader->classMap = ComposerStaticInitf114ef5e52cc0e99a74b51db8c5c7454::$classMap; 316 315 317 316 }, null, ClassLoader::class); -
visualcomposer/trunk/vendor/composer/installed.php
r3304839 r3308407 7 7 array ( 8 8 ), 9 'reference' => ' afa3ab924dedecc1fc183a257177af96f70f16d6',9 'reference' => '54c3042925f9af665eda858f81ddeab982ee3527', 10 10 'name' => '__root__', 11 11 ), … … 19 19 array ( 20 20 ), 21 'reference' => ' afa3ab924dedecc1fc183a257177af96f70f16d6',21 'reference' => '54c3042925f9af665eda858f81ddeab982ee3527', 22 22 ), 23 23 ),
Note: See TracChangeset
for help on using the changeset viewer.