From 0210e9f3cd9661b3dfe5243f4de299ddd2ecb13b Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Mon, 5 Oct 2020 11:17:19 +0100 Subject: [PATCH] Move files to the root of the plugin repository --- .gitignore | 44 +++++++++++++++++- .../.gitignore | 44 ------------------ .../js/block-editor.js | 1 - .../js/cloudinary.js | 1 - .../cloudinary.php => cloudinary.php | 0 .../cloudinary-console-accountdetails.png | Bin .../css => css}/cloudinary.css | 2 +- .../css => css}/cloudinary.svg | 0 ...inary.0bf34bba6c50ef8a00885c94fc39bb81.ttf | Bin ...nary.130b5d626b226659422cfb0e20ce30c1.woff | Bin ...nary.34cb260ad722325c597cdc3a3e7584d8.woff | Bin ...inary.7b8dc57b5dd3c69880043780bb9bb133.eot | Bin ...inary.7e6e75b25255a2b3b6e7ced1092c210c.eot | Bin ...inary.c2afda9d25532c03cd41beb20a1ce439.ttf | Bin .../css => css}/loading.svg | 0 .../css => css}/logo.svg | 0 .../css => css}/src/_variables.scss | 0 .../css => css}/src/components/_brand.scss | 0 .../components/_global_transformations.scss | 0 .../src/components/_media_library.scss | 0 .../css => css}/src/components/_settings.scss | 0 .../css => css}/src/components/_sync.scss | 0 .../src/components/_terms_order.scss | 0 .../css => css}/src/components/_widget.scss | 0 .../css => css}/src/fonts/cloudinary.eot | Bin .../css => css}/src/fonts/cloudinary.svg | 0 .../css => css}/src/fonts/cloudinary.ttf | Bin .../css => css}/src/fonts/cloudinary.woff | Bin .../css => css}/src/logo-icon.svg | 0 .../css => css}/src/logo.svg | 0 .../css => css}/src/main.scss | 0 .../css => css}/src/video.scss | 0 .../css => css}/video.css | 0 .../instance.php => instance.php | 0 .../js => js}/block-editor.deps.json | 0 js/block-editor.js | 1 + .../js => js}/block-editor.js.map | 0 js/cloudinary.js | 1 + .../js => js}/src/blocks.js | 0 .../src/components/featured-image.js | 0 .../src/components/global-transformations.js | 0 .../js => js}/src/components/media-library.js | 0 .../js => js}/src/components/notices.js | 0 .../js => js}/src/components/settings-page.js | 0 .../js => js}/src/components/sync.js | 0 .../js => js}/src/components/terms_order.js | 0 .../js => js}/src/components/video.js | 0 .../js => js}/src/components/widget.js | 0 .../js => js}/src/main.js | 0 .../package-lock.json => package-lock.json | 0 .../package.json => package.json | 0 .../php => php}/class-connect.php | 0 .../php => php}/class-exception.php | 0 .../php => php}/class-media.php | 0 .../php => php}/class-plugin.php | 0 .../php => php}/class-rest-api.php | 0 .../php => php}/class-settings-page.php | 0 .../php => php}/class-sync.php | 0 .../php => php}/component/class-assets.php | 0 .../php => php}/component/class-config.php | 0 .../php => php}/component/class-notice.php | 0 .../php => php}/component/class-setup.php | 0 .../php => php}/connect/class-api.php | 0 .../php => php}/media/class-filter.php | 0 .../media/class-global-transformations.php | 0 .../php => php}/media/class-upgrade.php | 0 .../php => php}/media/class-video.php | 0 .../php => php}/sync/class-delete-sync.php | 0 .../php => php}/sync/class-download-sync.php | 0 .../php => php}/sync/class-push-sync.php | 0 .../php => php}/sync/class-storage.php | 0 .../php => php}/sync/class-sync-queue.php | 0 .../php => php}/sync/class-upload-sync.php | 0 .../php => php}/templates/settings-footer.php | 0 .../php => php}/templates/settings-header.php | 0 .../templates/settings-section.php | 0 .../php => php}/templates/settings-tabs.php | 0 .../taxonomy-term-transformation-fields.php | 0 .../taxonomy-transformation-fields.php | 0 .../transformation-preview-video.php | 0 .../templates/transformation-preview.php | 0 .../postcss.config.js => postcss.config.js | 0 .../readme.txt => readme.txt | 0 .../settings.php | 0 .../tabs/connect-content.php | 0 .../tabs/dashboard-content.php | 0 .../tabs/global-transformations-content.php | 0 .../global-video-transformations-content.php | 0 .../tabs/settings-connect.php | 0 .../tabs/settings-dashboard.php | 0 .../tabs/settings-general.php | 0 .../tabs/settings-global-transformations.php | 0 .../settings-global-video-transformations.php | 0 .../tabs/settings-sync-media.php | 0 .../tabs/sync-media-content.php | 0 .../tabs/sync-media-footer.php | 0 .../webpack.config.js => webpack.config.js | 0 97 files changed, 46 insertions(+), 48 deletions(-) delete mode 100644 cloudinary-image-management-and-manipulation-in-the-cloud-cdn/.gitignore delete mode 100644 cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/block-editor.js delete mode 100644 cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/cloudinary.js rename cloudinary-image-management-and-manipulation-in-the-cloud-cdn/cloudinary.php => cloudinary.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/cloudinary-console-accountdetails.png (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/cloudinary.css (96%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/cloudinary.svg (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/fonts/cloudinary.0bf34bba6c50ef8a00885c94fc39bb81.ttf (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/fonts/cloudinary.130b5d626b226659422cfb0e20ce30c1.woff (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/fonts/cloudinary.34cb260ad722325c597cdc3a3e7584d8.woff (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/fonts/cloudinary.7b8dc57b5dd3c69880043780bb9bb133.eot (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/fonts/cloudinary.7e6e75b25255a2b3b6e7ced1092c210c.eot (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/fonts/cloudinary.c2afda9d25532c03cd41beb20a1ce439.ttf (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/loading.svg (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/logo.svg (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/_variables.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/components/_brand.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/components/_global_transformations.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/components/_media_library.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/components/_settings.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/components/_sync.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/components/_terms_order.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/components/_widget.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/fonts/cloudinary.eot (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/fonts/cloudinary.svg (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/fonts/cloudinary.ttf (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/fonts/cloudinary.woff (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/logo-icon.svg (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/logo.svg (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/main.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/src/video.scss (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css => css}/video.css (100%) rename cloudinary-image-management-and-manipulation-in-the-cloud-cdn/instance.php => instance.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/block-editor.deps.json (100%) create mode 100644 js/block-editor.js rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/block-editor.js.map (100%) create mode 100644 js/cloudinary.js rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/blocks.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/featured-image.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/global-transformations.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/media-library.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/notices.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/settings-page.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/sync.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/terms_order.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/video.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/components/widget.js (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js => js}/src/main.js (100%) rename cloudinary-image-management-and-manipulation-in-the-cloud-cdn/package-lock.json => package-lock.json (100%) rename cloudinary-image-management-and-manipulation-in-the-cloud-cdn/package.json => package.json (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/class-connect.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/class-exception.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/class-media.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/class-plugin.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/class-rest-api.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/class-settings-page.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/class-sync.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/component/class-assets.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/component/class-config.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/component/class-notice.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/component/class-setup.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/connect/class-api.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/media/class-filter.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/media/class-global-transformations.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/media/class-upgrade.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/media/class-video.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/sync/class-delete-sync.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/sync/class-download-sync.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/sync/class-push-sync.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/sync/class-storage.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/sync/class-sync-queue.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/sync/class-upload-sync.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/templates/settings-footer.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/templates/settings-header.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/templates/settings-section.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/templates/settings-tabs.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/templates/taxonomy-term-transformation-fields.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/templates/taxonomy-transformation-fields.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/templates/transformation-preview-video.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php => php}/templates/transformation-preview.php (100%) rename cloudinary-image-management-and-manipulation-in-the-cloud-cdn/postcss.config.js => postcss.config.js (100%) rename cloudinary-image-management-and-manipulation-in-the-cloud-cdn/readme.txt => readme.txt (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/settings.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/connect-content.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/dashboard-content.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/global-transformations-content.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/global-video-transformations-content.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/settings-connect.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/settings-dashboard.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/settings-general.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/settings-global-transformations.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/settings-global-video-transformations.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/settings-sync-media.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/sync-media-content.php (100%) rename {cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions => ui-definitions}/tabs/sync-media-footer.php (100%) rename cloudinary-image-management-and-manipulation-in-the-cloud-cdn/webpack.config.js => webpack.config.js (100%) diff --git a/.gitignore b/.gitignore index 7b52c7302..b7be1910b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,44 @@ +*.log +wp-config.php +wp-content/advanced-cache.php +wp-content/backup-db/ +wp-content/backups/ +wp-content/blogs.dir/ +wp-content/cache/ +wp-content/upgrade/ +wp-content/uploads/ +wp-content/mu-plugins/ +wp-content/wp-cache-config.php +wp-content/plugins/hello.php + +/.htaccess +/license.txt +/readme.html +/sitemap.xml +/sitemap.xml.gz + .DS_Store -/wordpress* + +# Grunt +/build/ +/node_modules/ +npm-debug.log + +# Composer +composer.lock +/vendor/ + +# Dev +/dev-lib/ + +# Tests +tests/data/ +tests/includes/ +coverage/html/ + +# ENV files +.env + +# IDE +.vscode +cloudinary-image-management-and-manipulation-in-the-cloud-cdn diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/.gitignore b/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/.gitignore deleted file mode 100644 index b7be1910b..000000000 --- a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/.gitignore +++ /dev/null @@ -1,44 +0,0 @@ -*.log -wp-config.php -wp-content/advanced-cache.php -wp-content/backup-db/ -wp-content/backups/ -wp-content/blogs.dir/ -wp-content/cache/ -wp-content/upgrade/ -wp-content/uploads/ -wp-content/mu-plugins/ -wp-content/wp-cache-config.php -wp-content/plugins/hello.php - -/.htaccess -/license.txt -/readme.html -/sitemap.xml -/sitemap.xml.gz - -.DS_Store - -# Grunt -/build/ -/node_modules/ -npm-debug.log - -# Composer -composer.lock -/vendor/ - -# Dev -/dev-lib/ - -# Tests -tests/data/ -tests/includes/ -coverage/html/ - -# ENV files -.env - -# IDE -.vscode -cloudinary-image-management-and-manipulation-in-the-cloud-cdn diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/block-editor.js b/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/block-editor.js deleted file mode 100644 index e005bc2a9..000000000 --- a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/block-editor.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,r){var n=r(5);e.exports=function(e){for(var t=1;t=0&&(e.metadata.cldoverwrite="true")})),wp.media.events.on("editor:image-update",(function(e){let t=e.image.className.split(" ");e.metadata.cldoverwrite&&-1===t.indexOf("cld-overwrite")?t.push("cld-overwrite"):!e.metadata.cldoverwrite&&t.indexOf("cld-overwrite")>=0&&delete t[t.indexOf("cld-overwrite")],e.image.className=t.join(" ")}));let e=null,t=wp.media.string.props;wp.media.string.props=function(n,i){return n.cldoverwrite&&(n.classes=["cld-overwrite"],e=!0),t(n,i)},wp.media.post=function(t,n){if("send-attachment-to-editor"===t){let t=wp.media.editor.get().state().get("selection").get(n.attachment);t.attributes.transformations&&(n.attachment.transformations=t.attributes.transformations),(n.html.indexOf("cld-overwrite")>-1||!0===e)&&(n.attachment.cldoverwrite=!0,e=null)}return wp.ajax.post(t,n)};wp.media.controller.Library;let n=wp.media.view.MediaFrame.Select,i=wp.media.view.MediaFrame.Post,a=wp.media.view.MediaFrame.ImageDetails,s=wp.media.view.MediaFrame.VideoDetails,r=wp.media.View.extend({tagName:"div",className:"cloudinary-widget",template:wp.template("cloudinary-dam"),active:!1,toolbar:null,frame:null,ready:function(){let e=this.controller,t=this.model.get("selection"),n=this.model.get("library"),i=wp.media.model.Attachment;if(CLDN.mloptions.multiple=e.options.multiple,this.cid!==this.active){if(CLDN.mloptions.inline_container="#cloudinary-dam-"+e.cid,1===t.length){var a=i.get(t.models[0].id);void 0!==a.attributes.public_id&&(CLDN.mloptions.asset={resource_id:a.attributes.public_id})}else CLDN.mloptions.asset=null;window.ml=cloudinary.openMediaLibrary(CLDN.mloptions,{insertHandler:function(a){for(let s=0;s'+t),t=t.replace(/(?:\r\n|\r|\n|\t| )srcset=/g," data-lazy-srcset=").replace(/(?:\r\n|\r|\n|\t| )src=/g,' src="'+i+'" data-lazy-src='))),t}(e);t.firstChild;)s||!r||void 0===n||!t.firstChild.tagName||"img"!==t.firstChild.tagName.toLowerCase()&&"iframe"!==t.firstChild.tagName.toLowerCase()||n.observe(t.firstChild),e.parentNode.insertBefore(t.firstChild,e);e.parentNode.removeChild(e)}function d(){document.querySelectorAll("noscript.loading-lazy").forEach(l),void 0!==window.matchMedia&&window.matchMedia("print").addListener((function(e){e.matches&&document.querySelectorAll(a.lazyImage+"[data-lazy-src],"+a.lazyIframe+"[data-lazy-src]").forEach((function(e){o(e)}))}))}"undefined"!=typeof NodeList&&NodeList.prototype&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"IntersectionObserver"in window&&(n=new IntersectionObserver((function(e,t){e.forEach((function(e){if(0!==e.intersectionRatio){var n=e.target;t.unobserve(n),o(n)}}))}),a)),i="requestAnimationFrame"in window?window.requestAnimationFrame:function(e){e()},/comp|inter/.test(document.readyState)?i(d):"addEventListener"in document?document.addEventListener("DOMContentLoaded",(function(){i(d)})):document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&d()}))}()},function(e,t,n){},,function(e,t,n){"use strict";n.r(t),n.d(t,"cloudinary",(function(){return y}));n(2);var i=n(0),a=n.n(i);const s={progress:document.getElementById("progress-wrapper"),submitButton:document.getElementById("submit"),stopButton:document.getElementById("stop-sync"),completed:document.getElementById("completed-notice"),show:"inline-block",hide:"none",isRunning:!1,getStatus:function(){var e=cloudinaryApi.restUrl+"cloudinary/v1/attachments";wp.ajax.send({url:e,type:"GET",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",cloudinaryApi.nonce)}}).done((function(e){s.isRunning=e.is_running,s.isRunning&&setTimeout(s.getStatus,1e4),s._updateUI(e)}))},stopSync:function(){var e=cloudinaryApi.restUrl+"cloudinary/v1/sync";s.isRunning=!1,wp.ajax.send({url:e,data:{stop:!0},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",cloudinaryApi.nonce)}}).done((function(e){s._updateUI(e)}))},pushAttachments:function(){var e=cloudinaryApi.restUrl+"cloudinary/v1/sync";s.isRunning=!0,s.progress.style.display=s.show,wp.ajax.send({url:e,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",cloudinaryApi.nonce)}}).done((function(e){setTimeout(s.getStatus,1e4)}))},_updateUI:function(e){e.percent<100&&void 0!==e.started||e.percent>=100&&void 0!==e.started?(this.submitButton.style.display=this.hide,this.stopButton.style.display=this.show):e.pending>0?(this.submitButton.style.display=this.show,this.stopButton.style.display=this.hide):e.processing>0?this.stopButton.style.display=this.show:this.stopButton.style.display=this.hide,100===e.percent&&(this.completed.style.display=this.show),this.isRunning?this.progress.style.display=this.show:this.progress.style.display=this.hide},_start:function(e){e.preventDefault(),s.stopButton.style.display=s.show,s.submitButton.style.display=s.hide,s.pushAttachments()},_reset:function(e){s.submitButton.style.display=s.hide,s.getStatus()},_init:function(e){"undefined"!=typeof cloudinaryApi&&((document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?e():document.addEventListener("DOMContentLoaded",e))}};var r=s;[...document.getElementsByClassName("cld-deactivate")].forEach(e=>{e.addEventListener("click",(function(e){confirm(wp.i18n.__('Caution: Your storage setting is currently set to "Cloudinary only", disabling the plugin will result in broken links to media assets. Are you sure you want to continue?',"cloudinary"))||e.preventDefault()}))}),s._init((function(){s._reset(),s.submitButton.addEventListener("click",s._start),s.stopButton.addEventListener("click",s.stopSync)}));var o=n(1),l=n.n(o);const d={sample:{image:document.getElementById("transformation-sample-image"),video:document.getElementById("transformation-sample-video")},preview:{image:document.getElementById("sample-image"),video:document.getElementById("sample-video")},fields:document.getElementsByClassName("cld-field"),button:{image:document.getElementById("refresh-image-preview"),video:document.getElementById("refresh-video-preview")},spinner:{image:document.getElementById("image-loader"),video:document.getElementById("video-loader")},activeItem:null,elements:{image:[],video:[]},_placeItem:function(e){null!==e&&(e.style.display="block",e.style.visibility="visible",e.style.position="absolute",e.style.top=e.parentElement.clientHeight/2-e.clientHeight/2+"px",e.style.left=e.parentElement.clientWidth/2-e.clientWidth/2+"px")},_setLoading:function(e){this.button[e].style.display="block",this._placeItem(this.button[e]),this.preview[e].style.opacity="0.1"},_build:function(e){this.sample[e].innerHTML="",this.elements[e]=[];for(let t of this.fields){if(e!==t.dataset.context)continue;let n=t.value.trim();if(n.length){if("select-one"===t.type){if("none"===n)continue;n=t.dataset.meta+"_"+n}else{let e=t.dataset.context;n=this._transformations(n,e,!0)}n&&this.elements[e].push(n)}}let t="";this.elements[e].length&&(t="/"+this.elements[e].join(",").replace(/ /g,"%20")),this.sample[e].textContent=t,this.sample[e].parentElement.href="https://res.cloudinary.com/demo/"+this.sample[e].parentElement.innerText.trim().replace("../","").replace(/ /g,"%20")},_clearLoading:function(e){this.spinner[e].style.visibility="hidden",this.activeItem=null,this.preview[e].style.opacity=1},_refresh:function(e,t){e&&e.preventDefault();let n=this,i=CLD_GLOBAL_TRANSFORMATIONS[t].preview_url+n.elements[t].join(",")+CLD_GLOBAL_TRANSFORMATIONS[t].file;if(this.button[t].style.display="none",this._placeItem(this.spinner[t]),"image"===t){let e=new Image;e.onload=function(){n.preview[t].src=this.src,n._clearLoading(t),e.remove()},e.onerror=function(){alert(CLD_GLOBAL_TRANSFORMATIONS[t].error),n._clearLoading(t)},e.src=i}else{let e=n._transformations(n.elements[t].join(","),t);samplePlayer.source({publicId:"dog",transformation:e}),n._clearLoading(t)}},_transformations:function(e,t,n=!1){let i=CLD_GLOBAL_TRANSFORMATIONS[t].valid_types,a=null,s=e.split("/"),r=[];for(let e=0;e{const i=!!n.length&&jQuery('[data-item="'+a+":"+n[0].id+'"]');i.length?i.remove():(jQuery(`.cld-tax-order-list-item:contains(${r})`).remove(),--e.startId),this.processTags(t)})}),jQuery("body").on("change",".selectit input",(function(){const t=jQuery(this),n=t.val(),i=t.is(":checked"),a=t.parent().text().trim();!0===i?e.tags.find(`[data-item="category:${n}"]`).length||e._pushItem("category:"+n,a):e.tags.find(`[data-item="category:${n}"]`).remove()}))},_createItem:function(e,t){const n=jQuery("
  • "),i=jQuery(""),a=jQuery("");return n.addClass("cld-tax-order-list-item").attr("data-item",e),a.addClass("cld-tax-order-list-item-input").attr("type","hidden").attr("name","cld_tax_order[]").val(e),i.addClass("dashicons dashicons-menu cld-tax-order-list-item-handle"),n.append(i).append(t).append(a),n},_pushItem:function(e,t){let n=this._createItem(e,t);this.tags.append(n)},_sortable:function(){jQuery(".cld-tax-order-list").sortable({connectWith:".cld-tax-order",axis:"y",handle:".cld-tax-order-list-item-handle",placeholder:"cld-tax-order-list-item-placeholder",forcePlaceholderSize:!0,helper:"clone"})}};if(void 0!==window.CLDN&&(u._init(),jQuery("[data-wp-lists] .selectit input[checked]").map((e,t)=>{jQuery(t).trigger("change")})),wp.data&&wp.data.select("core/editor")){const e={};wp.data.subscribe((function(){let t=wp.data.select("core").getTaxonomies();if(t)for(let n in t){const i=wp.data.select("core/editor").getEditedPostAttribute(t[n].rest_base);e[t[n].slug]=i}}));const t=wp.element.createElement,n=n=>{class i extends n{constructor(e){super(e),this.currentItems=jQuery(".cld-tax-order-list-item").map((e,t)=>jQuery(t).data("item")).get()}makeItem(e){if(this.currentItems.includes(this.getId(e)))return;const t=this.makeElement(e);jQuery("#cld-tax-items").append(t)}removeItem(e){const t=jQuery(`[data-item="${this.getId(e)}"]`);t.length&&(t.remove(),this.currentItems=this.currentItems.filter(t=>t!==this.getId(e)))}findOrCreateTerm(e){return(e=super.findOrCreateTerm(e)).then(e=>this.makeItem(e)),e}onChange(t){super.onChange(t);const n=this.pickItem(t);n&&(e[this.props.slug].includes(n.id)?this.makeItem(n):this.removeItem(n))}pickItem(e){if("object"==typeof e){if(e.target){for(let t in this.state.availableTerms)if(this.state.availableTerms[t].id===parseInt(e.target.value))return this.state.availableTerms[t]}else if(Array.isArray(e)){let t=this.state.selectedTerms.filter(t=>!e.includes(t))[0];return void 0===t&&(t=e.filter(e=>!this.state.selectedTerms.includes(e))[0]),this.state.availableTerms.find(e=>e.name===t)}}else if("number"==typeof e){for(let t in this.state.availableTerms)if(this.state.availableTerms[t].id===e)return this.state.availableTerms[t]}else{let t;if(e.length>this.state.selectedTerms.length)for(let n in e)-1===this.state.selectedTerms.indexOf(e[n])&&(t=e[n]);else for(let n in this.state.selectedTerms)-1===e.indexOf(this.state.selectedTerms[n])&&(t=this.state.selectedTerms[n]);for(let e in this.state.availableTerms)if(this.state.availableTerms[e].name===t)return this.state.availableTerms[e]}}getId(e){return`${this.props.slug}:${e.id}`}makeElement(e){const t=jQuery("
  • "),n=jQuery(""),i=jQuery("");return t.addClass("cld-tax-order-list-item").attr("data-item",this.getId(e)),i.addClass("cld-tax-order-list-item-input").attr("type","hidden").attr("name","cld_tax_order[]").val(this.getId(e)),n.addClass("dashicons dashicons-menu cld-tax-order-list-item-handle"),t.append(n).append(e.name).append(i),t}}return e=>t(i,e)};wp.hooks.addFilter("editor.PostTaxonomyType","cld",n)}var m=u;const p={wpWrap:document.getElementById("wpwrap"),wpContent:document.getElementById("wpbody-content"),libraryWrap:document.getElementById("cloudinary-embed"),_init:function(){let e=this;"undefined"!=typeof CLD_ML&&(cloudinary.openMediaLibrary(CLD_ML.mloptions,{insertHandler:function(e){alert("Import is not yet implemented.")}}),window.addEventListener("resize",(function(t){e._resize()})),e._resize())},_resize:function(){let e=getComputedStyle(this.wpContent);this.libraryWrap.style.height=this.wpWrap.offsetHeight-parseInt(e.getPropertyValue("padding-bottom"))+"px"}};var f=p;p._init();const h={_init:function(){let e=this;if("undefined"!=typeof CLDIS){[...document.getElementsByClassName("cld-notice")].forEach(t=>{t.addEventListener("click",n=>{"notice-dismiss"===n.target.className&&e._dismiss(t)})})}},_dismiss:function(e){let t=e.dataset.dismiss,n=e.dataset.duration;wp.ajax.send({url:CLDIS.url,data:{token:t,duration:n,_wpnonce:CLDIS.nonce}})}};window.addEventListener("load",h._init());var g=h;n(3);window.$=window.jQuery;const y={settings:a.a,sync:r,widget:l.a,Global_Transformations:c,Terms_Order:m,Media_Library:f,Notices:g}}]); \ No newline at end of file diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/cloudinary.php b/cloudinary.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/cloudinary.php rename to cloudinary.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/cloudinary-console-accountdetails.png b/css/cloudinary-console-accountdetails.png similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/cloudinary-console-accountdetails.png rename to css/cloudinary-console-accountdetails.png diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/cloudinary.css b/css/cloudinary.css similarity index 96% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/cloudinary.css rename to css/cloudinary.css index bd5ca5198..f47f14243 100644 --- a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/cloudinary.css +++ b/css/cloudinary.css @@ -1 +1 @@ -@font-face{font-family:cloudinary;src:url(../css/fonts/cloudinary.7e6e75b25255a2b3b6e7ced1092c210c.eot);src:url(../css/fonts/cloudinary.7e6e75b25255a2b3b6e7ced1092c210c.eot#iefix) format("embedded-opentype"),url(../css/fonts/cloudinary.c2afda9d25532c03cd41beb20a1ce439.ttf) format("truetype"),url(../css/fonts/cloudinary.34cb260ad722325c597cdc3a3e7584d8.woff) format("woff"),url(../css/cloudinary.svg#cloudinary) format("svg");font-weight:400;font-style:normal}.dashicons-cloudinary{speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dashicons-cloudinary:before{font-family:cloudinary!important;content:"\e900"}.dashicons-cloudinary.success{color:#558b2f}.dashicons-cloudinary.error{color:#dd2c00}.dashicons-cloudinary.error:before{content:"\e901"}.dashicons-cloudinary.uploading{color:#fd9d2c}.dashicons-cloudinary.uploading:before{content:"\e902"}.dashicons-cloudinary.info{color:#0071ba}.dashicons-cloudinary.downloading:before{content:"\e903"}.dashicons-cloudinary.syncing:before{content:"\e904"}.column-cld_status{width:5.5em}.column-cld_status .dashicons-cloudinary{display:inline-block}.column-cld_status .dashicons-cloudinary:before{font-size:1.8rem}.form-field .error-notice,.form-table .error-notice{display:none;color:#dd2c00}.form-field input.cld-field:invalid,.form-table input.cld-field:invalid{border-color:#dd2c00}.form-field input.cld-field:invalid+.error-notice,.form-table input.cld-field:invalid+.error-notice{display:inline-block}.cloudinary-welcome{background-image:url(../css/logo.svg);background-repeat:no-repeat;background-size:153px;background-position:top 12px right 20px}.cloudinary-stats{display:inline-block;margin-left:25px}.cloudinary-stat{cursor:help}.cloudinary-percent{font-size:.8em;vertical-align:top;color:#0071ba}.settings-image{max-width:100%;padding-top:5px}.settings-tabs>li{display:inline-block}.settings-tabs>li a{padding:.6em}.settings-tabs>li a.active{background-color:#fff}.settings-tab-section{padding:20px 0 0;max-width:1030px;position:relative}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard{display:flex;align-items:flex-start;align-content:flex-start;margin-top:40px}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-description{width:55%;margin:0 auto 0 0}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-content{width:35%;margin:0 auto}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-content .dashicons{color:#9ea3a8}.settings-tab-section.cloudinary-welcome .settings-tab-section-card{margin-top:0}.settings-tab-section-fields .field-heading th{display:block;width:auto;color:#23282d;font-size:1.1em;margin:1em 0}.settings-tab-section-fields .field-heading td{display:none;visibility:hidden}.settings-tab-section-fields .regular-textarea{width:100%;height:60px}.settings-tab-section-fields .dashicons{text-decoration:none;vertical-align:middle}.settings-tab-section-fields a .dashicons{color:#5f5f5f}.settings-tab-section-fields-dashboard-error{font-size:1.2em;color:#5f5f5f}.settings-tab-section-fields-dashboard-error.expanded{padding-top:40px;margin-bottom:25px}.settings-tab-section-fields-dashboard-error .dashicons{color:#ac0000}.settings-tab-section-fields-dashboard-error .button{font-size:1.1em;height:40px;line-height:40px;padding-right:40px;padding-left:40px}.settings-tab-section-fields-dashboard-success{font-size:1.2em;color:#23282d}.settings-tab-section-fields-dashboard-success.expanded{padding-top:40px;margin-bottom:25px}.settings-tab-section-fields-dashboard-success .dashicons{color:#4fb651}.settings-tab-section-fields-dashboard-success .button{font-size:1.1em;height:40px;line-height:40px;padding-right:40px;padding-left:40px}.settings-tab-section-fields-dashboard-success .description{color:#5f5f5f;font-weight:400;margin-top:12px}.settings-tab-section-card{box-sizing:border-box;border:1px solid #e5e5e5;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.07);padding:20px 23px;margin-top:12px}.settings-tab-section-card .dashicons{font-size:1.4em}.settings-tab-section-card h2{font-size:1.8em;font-weight:400;margin-top:0}.settings-tab-section-card.pull-right{width:450px;padding:12px;float:right;position:relative;z-index:10}.settings-tab-section-card.pull-right img.settings-image{box-shadow:0 2px 4px 0 rgba(0,0,0,.5);border:1px solid #979797;margin-top:12px}.settings-tab-section-card.pull-right h3,.settings-tab-section-card.pull-right h4{margin-top:0}.settings-tab-section .field-row-cloudinary_url,.settings-tab-section .field-row-signup{display:block}.settings-tab-section .field-row-cloudinary_url td,.settings-tab-section .field-row-cloudinary_url th,.settings-tab-section .field-row-signup td,.settings-tab-section .field-row-signup th{display:block;width:auto;padding:10px 0 0}.settings-tab-section .field-row-cloudinary_url td .sign-up,.settings-tab-section .field-row-cloudinary_url th .sign-up,.settings-tab-section .field-row-signup td .sign-up,.settings-tab-section .field-row-signup th .sign-up{vertical-align:baseline}.settings-tab-section.connect .form-table{display:inline-block;width:auto;max-width:580px}.settings-valid{color:#558b2f;font-size:30px}.settings-valid-field{border-color:#558b2f!important}.settings-invalid-field{border-color:#dd2c00!important}.settings-warning{display:inline-block;padding:5px 7px;background-color:#e9faff;border:1px solid #ccd0d4;border-left:4px solid #00a0d2;box-shadow:0 1px 1px rgba(0,0,0,.04)}.field-radio input[type=radio].cld-field{margin:0 5px 0 0}.field-radio label{margin-right:10px}.settings-tab-section h2{margin:0}.sync .spinner{display:inline-block;visibility:visible;float:none;margin:0 5px 0 0}.sync-media,.sync-media-progress{display:none}.sync-media-progress-outer{height:20px;margin:20px 0 10px;width:500px;background-color:#e5e5e5;position:relative}.sync-media-progress-outer .progress-bar{width:0;height:20px;background-color:#558b2f;transition:width .25s}.sync-media-progress-notice{color:#dd2c00}.sync-media-resource{width:100px;display:inline-block}.sync-media-error{color:#dd2c00}.sync-count{font-weight:700}.sync-details{margin-top:10px}.sync .button.start-sync,.sync .button.stop-sync{display:none;padding:0 16px}.sync .button.start-sync .dashicons,.sync .button.stop-sync .dashicons{line-height:2.2em}.sync .progress-text{padding:12px 4px 12px 12px;display:inline-block;font-weight:700}.sync .completed{max-width:300px;display:none}.sync-status-disabled{color:#dd2c00}.sync-status-enabled{color:#558b2f}.sync-status-button.button{vertical-align:baseline}.cloudinary-widget{height:100%}.cloudinary-widget-wrapper{height:100%;overflow:hidden;background-image:url("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ic3Bpbm5lciIgdmlld0JveD0iLTQgLTQgMTUxIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48c3R5bGU+QGtleWZyYW1lcyBjb2xvcnN7MCUsdG97c3Ryb2tlOiMwMDc4ZmZ9NTAle3N0cm9rZTojMGUyZjVhfX1Aa2V5ZnJhbWVzIGRhc2h7MCUsdG97c3Ryb2tlLWRhc2hvZmZzZXQ6NTYwfTUwJXtzdHJva2UtZGFzaG9mZnNldDowfX1ALXdlYmtpdC1rZXlmcmFtZXMgY29sb3JzezAlLHRve3N0cm9rZTojMDA3OGZmfTUwJXtzdHJva2U6IzBlMmY1YX19QC13ZWJraXQta2V5ZnJhbWVzIGRhc2h7MCUsdG97c3Ryb2tlLWRhc2hvZmZzZXQ6NTYwfTUwJXtzdHJva2UtZGFzaG9mZnNldDowfX08L3N0eWxlPjxwYXRoIGQ9Ik0xMjEuNjYzIDkwLjYzOGMtMS43OTYgMC05OS4zMy0uNDk4LTEwMS40NzQtMS40NzhDOC42ODUgODMuODc3IDEuMjUgNzIuMTk2IDEuMjUgNTkuMzk2YzAtMTYuNjU2IDEyLjc5Ny0zMC42MSAyOS4wNTItMzIuMzIzIDcuNDktMTUuNzA2IDIzLjE4Ni0yNS43MDcgNDAuNzE0LTI1LjcwNyAyMC45OCAwIDM5LjIxNSAxNC43NTIgNDMuOTQ1IDM0LjkwNyAxNS4wOS4yNDUgMjcuMjkgMTIuNjMgMjcuMjkgMjcuODIyIDAgMTEuOTY4LTcuNzM4IDIyLjU1LTE5LjI1NiAyNi4zMyIgc3Ryb2tlLXdpZHRoPSI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3R5bGU9InRyYW5zZm9ybS1vcmlnaW46Y2VudGVyOy13ZWJraXQtYW5pbWF0aW9uOmRhc2ggMnMgZWFzZS1pbi1vdXQgaW5maW5pdGUsY29sb3JzIDhzIGVhc2UtaW4tb3V0IGluZmluaXRlO2FuaW1hdGlvbjpkYXNoIDJzIGVhc2UtaW4tb3V0IGluZmluaXRlLGNvbG9ycyA4cyBlYXNlLWluLW91dCBpbmZpbml0ZSIgc3Ryb2tlLWRhc2hhcnJheT0iMjgwIi8+PC9zdmc+");background-repeat:no-repeat;background-position:50%;background-size:150px}.attachment-actions .button.edit-attachment,.attachment-info .edit-attachment{display:none}.global-transformations-preview{position:relative;max-width:600px}.global-transformations-spinner{display:none}.global-transformations-button.button-primary{display:none;position:absolute;z-index:100}.global-transformations-url{margin-bottom:5px;margin-top:5px}.global-transformations-url-transformation{max-width:100px;overflow:hidden;text-overflow:ellipsis;color:#51a3ff}.global-transformations-url-file{color:#f2d864}.global-transformations-url-link{display:block;padding:16px;background-color:#262c35;text-decoration:none;color:#fff;border-radius:6px;overflow:hidden;text-overflow:ellipsis}.global-transformations-url-link:hover{color:#888;text-decoration:underline}.cld-tax-order-list-item{border:1px solid #efefef;padding:4px;margin:0 0 -1px;background-color:#fff}.cld-tax-order-list-item.no-items{color:#888;text-align:center;display:none}.cld-tax-order-list-item.no-items:last-child{display:block}.cld-tax-order-list-item.ui-sortable-helper{box-shadow:0 2px 5px rgba(0,0,0,.2)}.cld-tax-order-list-item-placeholder{background-color:#efefef;height:45px;margin:0}.cld-tax-order-list-item-handle{cursor:grab;margin-right:4px;color:#999}.cld-tax-order-list-type{display:inline-block;margin-right:8px}.cld-tax-order-list-type input{margin-right:4px!important}.cloudinary-media-library{position:relative;margin-left:-20px}@media screen and (max-width:782px){.cloudinary-media-library{margin-left:-10px}} \ No newline at end of file +@font-face{font-family:cloudinary;src:url(../css/fonts/cloudinary.7b8dc57b5dd3c69880043780bb9bb133.eot);src:url(../css/fonts/cloudinary.7b8dc57b5dd3c69880043780bb9bb133.eot#iefix) format("embedded-opentype"),url(../css/fonts/cloudinary.0bf34bba6c50ef8a00885c94fc39bb81.ttf) format("truetype"),url(../css/fonts/cloudinary.130b5d626b226659422cfb0e20ce30c1.woff) format("woff"),url(../css/cloudinary.svg#cloudinary) format("svg");font-weight:400;font-style:normal}.dashicons-cloudinary{speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dashicons-cloudinary:before{font-family:cloudinary!important;content:"\e900"}.dashicons-cloudinary.success{color:#558b2f}.dashicons-cloudinary.error{color:#dd2c00}.dashicons-cloudinary.error:before{content:"\e901"}.dashicons-cloudinary.uploading{color:#fd9d2c}.dashicons-cloudinary.uploading:before{content:"\e902"}.dashicons-cloudinary.info{color:#0071ba}.dashicons-cloudinary.downloading:before{content:"\e903"}.dashicons-cloudinary.syncing:before{content:"\e904"}.column-cld_status{width:5.5em}.column-cld_status .dashicons-cloudinary{display:inline-block}.column-cld_status .dashicons-cloudinary:before{font-size:1.8rem}.form-field .error-notice,.form-table .error-notice{display:none;color:#dd2c00}.form-field input.cld-field:invalid,.form-table input.cld-field:invalid{border-color:#dd2c00}.form-field input.cld-field:invalid+.error-notice,.form-table input.cld-field:invalid+.error-notice{display:inline-block}.cloudinary-welcome{background-image:url(../css/logo.svg);background-repeat:no-repeat;background-size:153px;background-position:top 12px right 20px}.cloudinary-stats{display:inline-block;margin-left:25px}.cloudinary-stat{cursor:help}.cloudinary-percent{font-size:.8em;vertical-align:top;color:#0071ba}.settings-image{max-width:100%;padding-top:5px}.settings-tabs>li{display:inline-block}.settings-tabs>li a{padding:.6em}.settings-tabs>li a.active{background-color:#fff}.settings-tab-section{padding:20px 0 0;max-width:1030px;position:relative}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard{display:flex;align-items:flex-start;align-content:flex-start;margin-top:40px}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-description{width:55%;margin:0 auto 0 0}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-content{width:35%;margin:0 auto}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-content .dashicons{color:#9ea3a8}.settings-tab-section.cloudinary-welcome .settings-tab-section-card{margin-top:0}.settings-tab-section-fields .field-heading th{display:block;width:auto;color:#23282d;font-size:1.1em;margin:1em 0}.settings-tab-section-fields .field-heading td{display:none;visibility:hidden}.settings-tab-section-fields .regular-textarea{width:100%;height:60px}.settings-tab-section-fields .dashicons{text-decoration:none;vertical-align:middle}.settings-tab-section-fields a .dashicons{color:#5f5f5f}.settings-tab-section-fields-dashboard-error{font-size:1.2em;color:#5f5f5f}.settings-tab-section-fields-dashboard-error.expanded{padding-top:40px;margin-bottom:25px}.settings-tab-section-fields-dashboard-error .dashicons{color:#ac0000}.settings-tab-section-fields-dashboard-error .button{font-size:1.1em;height:40px;line-height:40px;padding-right:40px;padding-left:40px}.settings-tab-section-fields-dashboard-success{font-size:1.2em;color:#23282d}.settings-tab-section-fields-dashboard-success.expanded{padding-top:40px;margin-bottom:25px}.settings-tab-section-fields-dashboard-success .dashicons{color:#4fb651}.settings-tab-section-fields-dashboard-success .button{font-size:1.1em;height:40px;line-height:40px;padding-right:40px;padding-left:40px}.settings-tab-section-fields-dashboard-success .description{color:#5f5f5f;font-weight:400;margin-top:12px}.settings-tab-section-card{box-sizing:border-box;border:1px solid #e5e5e5;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.07);padding:20px 23px;margin-top:12px}.settings-tab-section-card .dashicons{font-size:1.4em}.settings-tab-section-card h2{font-size:1.8em;font-weight:400;margin-top:0}.settings-tab-section-card.pull-right{width:450px;padding:12px;float:right;position:relative;z-index:10}.settings-tab-section-card.pull-right img.settings-image{box-shadow:0 2px 4px 0 rgba(0,0,0,.5);border:1px solid #979797;margin-top:12px}.settings-tab-section-card.pull-right h3,.settings-tab-section-card.pull-right h4{margin-top:0}.settings-tab-section .field-row-cloudinary_url,.settings-tab-section .field-row-signup{display:block}.settings-tab-section .field-row-cloudinary_url td,.settings-tab-section .field-row-cloudinary_url th,.settings-tab-section .field-row-signup td,.settings-tab-section .field-row-signup th{display:block;width:auto;padding:10px 0 0}.settings-tab-section .field-row-cloudinary_url td .sign-up,.settings-tab-section .field-row-cloudinary_url th .sign-up,.settings-tab-section .field-row-signup td .sign-up,.settings-tab-section .field-row-signup th .sign-up{vertical-align:baseline}.settings-tab-section.connect .form-table{display:inline-block;width:auto;max-width:580px}.settings-valid{color:#558b2f;font-size:30px}.settings-valid-field{border-color:#558b2f!important}.settings-invalid-field{border-color:#dd2c00!important}.settings-warning{display:inline-block;padding:5px 7px;background-color:#e9faff;border:1px solid #ccd0d4;border-left:4px solid #00a0d2;box-shadow:0 1px 1px rgba(0,0,0,.04)}.field-radio input[type=radio].cld-field{margin:0 5px 0 0}.field-radio label{margin-right:10px}.settings-tab-section h2{margin:0}.sync .spinner{display:inline-block;visibility:visible;float:none;margin:0 5px 0 0}.sync-media,.sync-media-progress{display:none}.sync-media-progress-outer{height:20px;margin:20px 0 10px;width:500px;background-color:#e5e5e5;position:relative}.sync-media-progress-outer .progress-bar{width:0;height:20px;background-color:#558b2f;transition:width .25s}.sync-media-progress-notice{color:#dd2c00}.sync-media-resource{width:100px;display:inline-block}.sync-media-error{color:#dd2c00}.sync-count{font-weight:700}.sync-details{margin-top:10px}.sync .button.start-sync,.sync .button.stop-sync{display:none;padding:0 16px}.sync .button.start-sync .dashicons,.sync .button.stop-sync .dashicons{line-height:2.2em}.sync .progress-text{padding:12px 4px 12px 12px;display:inline-block;font-weight:700}.sync .completed{max-width:300px;display:none}.sync-status-disabled{color:#dd2c00}.sync-status-enabled{color:#558b2f}.sync-status-button.button{vertical-align:baseline}.cloudinary-widget{height:100%}.cloudinary-widget-wrapper{height:100%;overflow:hidden;background-image:url("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ic3Bpbm5lciIgdmlld0JveD0iLTQgLTQgMTUxIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48c3R5bGU+QGtleWZyYW1lcyBjb2xvcnN7MCUsdG97c3Ryb2tlOiMwMDc4ZmZ9NTAle3N0cm9rZTojMGUyZjVhfX1Aa2V5ZnJhbWVzIGRhc2h7MCUsdG97c3Ryb2tlLWRhc2hvZmZzZXQ6NTYwfTUwJXtzdHJva2UtZGFzaG9mZnNldDowfX1ALXdlYmtpdC1rZXlmcmFtZXMgY29sb3JzezAlLHRve3N0cm9rZTojMDA3OGZmfTUwJXtzdHJva2U6IzBlMmY1YX19QC13ZWJraXQta2V5ZnJhbWVzIGRhc2h7MCUsdG97c3Ryb2tlLWRhc2hvZmZzZXQ6NTYwfTUwJXtzdHJva2UtZGFzaG9mZnNldDowfX08L3N0eWxlPjxwYXRoIGQ9Ik0xMjEuNjYzIDkwLjYzOGMtMS43OTYgMC05OS4zMy0uNDk4LTEwMS40NzQtMS40NzhDOC42ODUgODMuODc3IDEuMjUgNzIuMTk2IDEuMjUgNTkuMzk2YzAtMTYuNjU2IDEyLjc5Ny0zMC42MSAyOS4wNTItMzIuMzIzIDcuNDktMTUuNzA2IDIzLjE4Ni0yNS43MDcgNDAuNzE0LTI1LjcwNyAyMC45OCAwIDM5LjIxNSAxNC43NTIgNDMuOTQ1IDM0LjkwNyAxNS4wOS4yNDUgMjcuMjkgMTIuNjMgMjcuMjkgMjcuODIyIDAgMTEuOTY4LTcuNzM4IDIyLjU1LTE5LjI1NiAyNi4zMyIgc3Ryb2tlLXdpZHRoPSI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3R5bGU9InRyYW5zZm9ybS1vcmlnaW46Y2VudGVyOy13ZWJraXQtYW5pbWF0aW9uOmRhc2ggMnMgZWFzZS1pbi1vdXQgaW5maW5pdGUsY29sb3JzIDhzIGVhc2UtaW4tb3V0IGluZmluaXRlO2FuaW1hdGlvbjpkYXNoIDJzIGVhc2UtaW4tb3V0IGluZmluaXRlLGNvbG9ycyA4cyBlYXNlLWluLW91dCBpbmZpbml0ZSIgc3Ryb2tlLWRhc2hhcnJheT0iMjgwIi8+PC9zdmc+");background-repeat:no-repeat;background-position:50%;background-size:150px}.attachment-actions .button.edit-attachment,.attachment-info .edit-attachment{display:none}.global-transformations-preview{position:relative;max-width:600px}.global-transformations-spinner{display:none}.global-transformations-button.button-primary{display:none;position:absolute;z-index:100}.global-transformations-url{margin-bottom:5px;margin-top:5px}.global-transformations-url-transformation{max-width:100px;overflow:hidden;text-overflow:ellipsis;color:#51a3ff}.global-transformations-url-file{color:#f2d864}.global-transformations-url-link{display:block;padding:16px;background-color:#262c35;text-decoration:none;color:#fff;border-radius:6px;overflow:hidden;text-overflow:ellipsis}.global-transformations-url-link:hover{color:#888;text-decoration:underline}.cld-tax-order-list-item{border:1px solid #efefef;padding:4px;margin:0 0 -1px;background-color:#fff}.cld-tax-order-list-item.no-items{color:#888;text-align:center;display:none}.cld-tax-order-list-item.no-items:last-child{display:block}.cld-tax-order-list-item.ui-sortable-helper{box-shadow:0 2px 5px rgba(0,0,0,.2)}.cld-tax-order-list-item-placeholder{background-color:#efefef;height:45px;margin:0}.cld-tax-order-list-item-handle{cursor:grab;margin-right:4px;color:#999}.cld-tax-order-list-type{display:inline-block;margin-right:8px}.cld-tax-order-list-type input{margin-right:4px!important}.cloudinary-media-library{position:relative;margin-left:-20px}@media screen and (max-width:782px){.cloudinary-media-library{margin-left:-10px}} \ No newline at end of file diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/cloudinary.svg b/css/cloudinary.svg similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/cloudinary.svg rename to css/cloudinary.svg diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.0bf34bba6c50ef8a00885c94fc39bb81.ttf b/css/fonts/cloudinary.0bf34bba6c50ef8a00885c94fc39bb81.ttf similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.0bf34bba6c50ef8a00885c94fc39bb81.ttf rename to css/fonts/cloudinary.0bf34bba6c50ef8a00885c94fc39bb81.ttf diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.130b5d626b226659422cfb0e20ce30c1.woff b/css/fonts/cloudinary.130b5d626b226659422cfb0e20ce30c1.woff similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.130b5d626b226659422cfb0e20ce30c1.woff rename to css/fonts/cloudinary.130b5d626b226659422cfb0e20ce30c1.woff diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.34cb260ad722325c597cdc3a3e7584d8.woff b/css/fonts/cloudinary.34cb260ad722325c597cdc3a3e7584d8.woff similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.34cb260ad722325c597cdc3a3e7584d8.woff rename to css/fonts/cloudinary.34cb260ad722325c597cdc3a3e7584d8.woff diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.7b8dc57b5dd3c69880043780bb9bb133.eot b/css/fonts/cloudinary.7b8dc57b5dd3c69880043780bb9bb133.eot similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.7b8dc57b5dd3c69880043780bb9bb133.eot rename to css/fonts/cloudinary.7b8dc57b5dd3c69880043780bb9bb133.eot diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.7e6e75b25255a2b3b6e7ced1092c210c.eot b/css/fonts/cloudinary.7e6e75b25255a2b3b6e7ced1092c210c.eot similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.7e6e75b25255a2b3b6e7ced1092c210c.eot rename to css/fonts/cloudinary.7e6e75b25255a2b3b6e7ced1092c210c.eot diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.c2afda9d25532c03cd41beb20a1ce439.ttf b/css/fonts/cloudinary.c2afda9d25532c03cd41beb20a1ce439.ttf similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/fonts/cloudinary.c2afda9d25532c03cd41beb20a1ce439.ttf rename to css/fonts/cloudinary.c2afda9d25532c03cd41beb20a1ce439.ttf diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/loading.svg b/css/loading.svg similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/loading.svg rename to css/loading.svg diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/logo.svg b/css/logo.svg similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/logo.svg rename to css/logo.svg diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/_variables.scss b/css/src/_variables.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/_variables.scss rename to css/src/_variables.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_brand.scss b/css/src/components/_brand.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_brand.scss rename to css/src/components/_brand.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_global_transformations.scss b/css/src/components/_global_transformations.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_global_transformations.scss rename to css/src/components/_global_transformations.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_media_library.scss b/css/src/components/_media_library.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_media_library.scss rename to css/src/components/_media_library.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_settings.scss b/css/src/components/_settings.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_settings.scss rename to css/src/components/_settings.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_sync.scss b/css/src/components/_sync.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_sync.scss rename to css/src/components/_sync.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_terms_order.scss b/css/src/components/_terms_order.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_terms_order.scss rename to css/src/components/_terms_order.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_widget.scss b/css/src/components/_widget.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/components/_widget.scss rename to css/src/components/_widget.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/fonts/cloudinary.eot b/css/src/fonts/cloudinary.eot similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/fonts/cloudinary.eot rename to css/src/fonts/cloudinary.eot diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/fonts/cloudinary.svg b/css/src/fonts/cloudinary.svg similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/fonts/cloudinary.svg rename to css/src/fonts/cloudinary.svg diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/fonts/cloudinary.ttf b/css/src/fonts/cloudinary.ttf similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/fonts/cloudinary.ttf rename to css/src/fonts/cloudinary.ttf diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/fonts/cloudinary.woff b/css/src/fonts/cloudinary.woff similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/fonts/cloudinary.woff rename to css/src/fonts/cloudinary.woff diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/logo-icon.svg b/css/src/logo-icon.svg similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/logo-icon.svg rename to css/src/logo-icon.svg diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/logo.svg b/css/src/logo.svg similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/logo.svg rename to css/src/logo.svg diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/main.scss b/css/src/main.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/main.scss rename to css/src/main.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/video.scss b/css/src/video.scss similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/src/video.scss rename to css/src/video.scss diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/video.css b/css/video.css similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/css/video.css rename to css/video.css diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/instance.php b/instance.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/instance.php rename to instance.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/block-editor.deps.json b/js/block-editor.deps.json similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/block-editor.deps.json rename to js/block-editor.deps.json diff --git a/js/block-editor.js b/js/block-editor.js new file mode 100644 index 000000000..96d4cd3ca --- /dev/null +++ b/js/block-editor.js @@ -0,0 +1 @@ +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,r){var n=r(5);e.exports=function(e){for(var t=1;t=0&&(e.metadata.cldoverwrite="true")})),wp.media.events.on("editor:image-update",(function(e){let t=e.image.className.split(" ");e.metadata.cldoverwrite&&-1===t.indexOf("cld-overwrite")?t.push("cld-overwrite"):!e.metadata.cldoverwrite&&t.indexOf("cld-overwrite")>=0&&delete t[t.indexOf("cld-overwrite")],e.image.className=t.join(" ")}));let e=null,t=wp.media.string.props;wp.media.string.props=function(i,n){return i.cldoverwrite&&(i.classes=["cld-overwrite"],e=!0),t(i,n)},wp.media.post=function(t,i){if("send-attachment-to-editor"===t){let t=wp.media.editor.get().state().get("selection").get(i.attachment);t.attributes.transformations&&(i.attachment.transformations=t.attributes.transformations),(i.html.indexOf("cld-overwrite")>-1||!0===e)&&(i.attachment.cldoverwrite=!0,e=null)}return wp.ajax.post(t,i)};wp.media.controller.Library;let i=wp.media.view.MediaFrame.Select,n=wp.media.view.MediaFrame.Post,s=wp.media.view.MediaFrame.ImageDetails,a=wp.media.view.MediaFrame.VideoDetails,o=wp.media.View.extend({tagName:"div",className:"cloudinary-widget",template:wp.template("cloudinary-dam"),active:!1,toolbar:null,frame:null,ready:function(){let e=this.controller,t=this.model.get("selection"),i=this.model.get("library"),n=wp.media.model.Attachment;if(CLDN.mloptions.multiple=e.options.multiple,this.cid!==this.active){if(CLDN.mloptions.inline_container="#cloudinary-dam-"+e.cid,1===t.length){var s=n.get(t.models[0].id);void 0!==s.attributes.public_id&&(CLDN.mloptions.asset={resource_id:s.attributes.public_id})}else CLDN.mloptions.asset=null;window.ml=cloudinary.openMediaLibrary(CLDN.mloptions,{insertHandler:function(s){for(let a=0;a'+t),t=t.replace(/(?:\r\n|\r|\n|\t| )srcset=/g," data-lazy-srcset=").replace(/(?:\r\n|\r|\n|\t| )src=/g,' src="'+n+'" data-lazy-src='))),t}(e);t.firstChild;)a||!o||void 0===i||!t.firstChild.tagName||"img"!==t.firstChild.tagName.toLowerCase()&&"iframe"!==t.firstChild.tagName.toLowerCase()||i.observe(t.firstChild),e.parentNode.insertBefore(t.firstChild,e);e.parentNode.removeChild(e)}function d(){document.querySelectorAll("noscript.loading-lazy").forEach(l),void 0!==window.matchMedia&&window.matchMedia("print").addListener((function(e){e.matches&&document.querySelectorAll(s.lazyImage+"[data-lazy-src],"+s.lazyIframe+"[data-lazy-src]").forEach((function(e){r(e)}))}))}"undefined"!=typeof NodeList&&NodeList.prototype&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"IntersectionObserver"in window&&(i=new IntersectionObserver((function(e,t){e.forEach((function(e){if(0!==e.intersectionRatio){var i=e.target;t.unobserve(i),r(i)}}))}),s)),n="requestAnimationFrame"in window?window.requestAnimationFrame:function(e){e()},/comp|inter/.test(document.readyState)?n(d):"addEventListener"in document?document.addEventListener("DOMContentLoaded",(function(){n(d)})):document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&d()}))}()},function(e,t,i){},function(e,t,i){"use strict";i.r(t);i(2);var n=i(0),s=i.n(n);const a={progress:document.getElementById("progress-wrapper"),submitButton:document.getElementById("submit"),stopButton:document.getElementById("stop-sync"),completed:document.getElementById("completed-notice"),show:"inline-block",hide:"none",isRunning:!1,getStatus:function(){var e=cloudinaryApi.restUrl+"cloudinary/v1/attachments";wp.ajax.send({url:e,type:"GET",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",cloudinaryApi.nonce)}}).done((function(e){a.isRunning=e.is_running,a.isRunning&&setTimeout(a.getStatus,1e4),a._updateUI(e)}))},stopSync:function(){var e=cloudinaryApi.restUrl+"cloudinary/v1/sync";a.isRunning=!1,wp.ajax.send({url:e,data:{stop:!0},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",cloudinaryApi.nonce)}}).done((function(e){a._updateUI(e)}))},pushAttachments:function(){var e=cloudinaryApi.restUrl+"cloudinary/v1/sync";a.isRunning=!0,a.progress.style.display=a.show,wp.ajax.send({url:e,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",cloudinaryApi.nonce)}}).done((function(e){setTimeout(a.getStatus,1e4)}))},_updateUI:function(e){e.percent<100&&void 0!==e.started?(this.submitButton.style.display=this.hide,this.stopButton.style.display=this.show):e.percent>=100&&void 0!==e.started?(this.submitButton.style.display=this.hide,this.stopButton.style.display=this.show):e.pending>0?(this.submitButton.style.display=this.show,this.stopButton.style.display=this.hide):e.processing>0?this.stopButton.style.display=this.show:this.stopButton.style.display=this.hide,100===e.percent&&(this.completed.style.display=this.show),this.isRunning?this.progress.style.display=this.show:this.progress.style.display=this.hide},_start:function(e){e.preventDefault(),a.stopButton.style.display=a.show,a.submitButton.style.display=a.hide,a.pushAttachments()},_reset:function(e){a.submitButton.style.display=a.hide,a.getStatus()},_init:function(e){"undefined"!=typeof cloudinaryApi&&((document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?e():document.addEventListener("DOMContentLoaded",e))}};var o=a;[...document.getElementsByClassName("cld-deactivate")].forEach(e=>{e.addEventListener("click",(function(e){confirm(wp.i18n.__('Caution: Your storage setting is currently set to "Cloudinary only", disabling the plugin will result in broken links to media assets. Are you sure you want to continue?',"cloudinary"))||e.preventDefault()}))}),a._init((function(){a._reset(),a.submitButton.addEventListener("click",a._start),a.stopButton.addEventListener("click",a.stopSync)}));var r=i(1),l=i.n(r);const d={sample:{image:document.getElementById("transformation-sample-image"),video:document.getElementById("transformation-sample-video")},preview:{image:document.getElementById("sample-image"),video:document.getElementById("sample-video")},fields:document.getElementsByClassName("cld-field"),button:{image:document.getElementById("refresh-image-preview"),video:document.getElementById("refresh-video-preview")},spinner:{image:document.getElementById("image-loader"),video:document.getElementById("video-loader")},activeItem:null,elements:{image:[],video:[]},_placeItem:function(e){null!==e&&(e.style.display="block",e.style.visibility="visible",e.style.position="absolute",e.style.top=e.parentElement.clientHeight/2-e.clientHeight/2+"px",e.style.left=e.parentElement.clientWidth/2-e.clientWidth/2+"px")},_setLoading:function(e){this.button[e].style.display="block",this._placeItem(this.button[e]),this.preview[e].style.opacity="0.1"},_build:function(e){this.sample[e].innerHTML="",this.elements[e]=[];for(let t of this.fields){if(e!==t.dataset.context)continue;let i=t.value.trim();if(i.length){if("select-one"===t.type){if("none"===i)continue;i=t.dataset.meta+"_"+i}else{let e=t.dataset.context;i=this._transformations(i,e,!0)}i&&this.elements[e].push(i)}}let t="";this.elements[e].length&&(t="/"+this.elements[e].join(",").replace(/ /g,"%20")),this.sample[e].textContent=t,this.sample[e].parentElement.href="https://res.cloudinary.com/demo/"+this.sample[e].parentElement.innerText.trim().replace("../","").replace(/ /g,"%20")},_clearLoading:function(e){this.spinner[e].style.visibility="hidden",this.activeItem=null,this.preview[e].style.opacity=1},_refresh:function(e,t){e&&e.preventDefault();let i=this,n=CLD_GLOBAL_TRANSFORMATIONS[t].preview_url+i.elements[t].join(",")+CLD_GLOBAL_TRANSFORMATIONS[t].file;if(this.button[t].style.display="none",this._placeItem(this.spinner[t]),"image"===t){let e=new Image;e.onload=function(){i.preview[t].src=this.src,i._clearLoading(t),e.remove()},e.onerror=function(){alert(CLD_GLOBAL_TRANSFORMATIONS[t].error),i._clearLoading(t)},e.src=n}else{let e=i._transformations(i.elements[t].join(","),t);samplePlayer.source({publicId:"dog",transformation:e}),i._clearLoading(t)}},_transformations:function(e,t,i=!1){let n=CLD_GLOBAL_TRANSFORMATIONS[t].valid_types,s=null,a=e.split("/"),o=[];for(let e=0;e{const n=!!i.length&&jQuery('[data-item="'+s+":"+i[0].id+'"]');n.length?n.remove():(jQuery(`.cld-tax-order-list-item:contains(${o})`).remove(),--e.startId),this.processTags(t)})}),jQuery("body").on("change",".selectit input",(function(){const t=jQuery(this),i=t.val(),n=t.is(":checked"),s=t.parent().text().trim();!0===n?e.tags.find(`[data-item="category:${i}"]`).length||e._pushItem(`category:${i}`,s):e.tags.find(`[data-item="category:${i}"]`).remove()}))},_createItem:function(e,t){const i=jQuery("
  • "),n=jQuery(""),s=jQuery("");return i.addClass("cld-tax-order-list-item").attr("data-item",e),s.addClass("cld-tax-order-list-item-input").attr("type","hidden").attr("name","cld_tax_order[]").val(e),n.addClass("dashicons dashicons-menu cld-tax-order-list-item-handle"),i.append(n).append(t).append(s),i},_pushItem:function(e,t){let i=this._createItem(e,t);this.tags.append(i)},_sortable:function(){jQuery(".cld-tax-order-list").sortable({connectWith:".cld-tax-order",axis:"y",handle:".cld-tax-order-list-item-handle",placeholder:"cld-tax-order-list-item-placeholder",forcePlaceholderSize:!0,helper:"clone"})}};if(void 0!==window.CLDN&&(u._init(),jQuery("[data-wp-lists] .selectit input[checked]").map((e,t)=>{jQuery(t).trigger("change")})),wp.data&&wp.data.select("core/editor")){const e={};wp.data.subscribe((function(){let t=wp.data.select("core").getTaxonomies();if(t)for(let i in t){const n=wp.data.select("core/editor").getEditedPostAttribute(t[i].rest_base);e[t[i].slug]=n}}));const t=wp.element.createElement,i=i=>{class n extends i{constructor(e){super(e),this.currentItems=jQuery(".cld-tax-order-list-item").map((e,t)=>jQuery(t).data("item")).get()}makeItem(e){if(this.currentItems.includes(this.getId(e)))return;const t=this.makeElement(e);jQuery("#cld-tax-items").append(t)}removeItem(e){const t=jQuery(`[data-item="${this.getId(e)}"]`);t.length&&(t.remove(),this.currentItems=this.currentItems.filter(t=>t!==this.getId(e)))}findOrCreateTerm(e){return(e=super.findOrCreateTerm(e)).then(e=>this.makeItem(e)),e}onChange(t){super.onChange(t);const i=this.pickItem(t);i&&(e[this.props.slug].includes(i.id)?this.makeItem(i):this.removeItem(i))}pickItem(e){if("object"==typeof e){if(e.target){for(let t in this.state.availableTerms)if(this.state.availableTerms[t].id===parseInt(e.target.value))return this.state.availableTerms[t]}else if(Array.isArray(e)){let t=this.state.selectedTerms.filter(t=>!e.includes(t))[0];return void 0===t&&(t=e.filter(e=>!this.state.selectedTerms.includes(e))[0]),this.state.availableTerms.find(e=>e.name===t)}}else if("number"==typeof e){for(let t in this.state.availableTerms)if(this.state.availableTerms[t].id===e)return this.state.availableTerms[t]}else{let t;if(e.length>this.state.selectedTerms.length)for(let i in e)-1===this.state.selectedTerms.indexOf(e[i])&&(t=e[i]);else for(let i in this.state.selectedTerms)-1===e.indexOf(this.state.selectedTerms[i])&&(t=this.state.selectedTerms[i]);for(let e in this.state.availableTerms)if(this.state.availableTerms[e].name===t)return this.state.availableTerms[e]}}getId(e){return`${this.props.slug}:${e.id}`}makeElement(e){const t=jQuery("
  • "),i=jQuery(""),n=jQuery("");return t.addClass("cld-tax-order-list-item").attr("data-item",this.getId(e)),n.addClass("cld-tax-order-list-item-input").attr("type","hidden").attr("name","cld_tax_order[]").val(this.getId(e)),i.addClass("dashicons dashicons-menu cld-tax-order-list-item-handle"),t.append(i).append(e.name).append(n),t}}return e=>t(n,e)};wp.hooks.addFilter("editor.PostTaxonomyType","cld",i)}var m=u;const p={wpWrap:document.getElementById("wpwrap"),wpContent:document.getElementById("wpbody-content"),libraryWrap:document.getElementById("cloudinary-embed"),_init:function(){let e=this;"undefined"!=typeof CLD_ML&&(cloudinary.openMediaLibrary(CLD_ML.mloptions,{insertHandler:function(e){alert("Import is not yet implemented.")}}),window.addEventListener("resize",(function(t){e._resize()})),e._resize())},_resize:function(){let e=getComputedStyle(this.wpContent);this.libraryWrap.style.height=this.wpWrap.offsetHeight-parseInt(e.getPropertyValue("padding-bottom"))+"px"}};var h=p;p._init();const f={_init:function(){let e=this;if("undefined"!=typeof CLDIS){[...document.getElementsByClassName("cld-notice")].forEach(t=>{t.addEventListener("click",i=>{"notice-dismiss"===i.target.className&&e._dismiss(t)})})}},_dismiss:function(e){let t=e.dataset.dismiss,i=e.dataset.duration;wp.ajax.send({url:CLDIS.url,data:{token:t,duration:i,_wpnonce:CLDIS.nonce}})}};window.addEventListener("load",f._init());var g=f;i(3);i.d(t,"cloudinary",(function(){return y}));window.$=window.jQuery;const y={settings:s.a,sync:o,widget:l.a,Global_Transformations:c,Terms_Order:m,Media_Library:h,Notices:g}}]); \ No newline at end of file diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/blocks.js b/js/src/blocks.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/blocks.js rename to js/src/blocks.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/featured-image.js b/js/src/components/featured-image.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/featured-image.js rename to js/src/components/featured-image.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/global-transformations.js b/js/src/components/global-transformations.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/global-transformations.js rename to js/src/components/global-transformations.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/media-library.js b/js/src/components/media-library.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/media-library.js rename to js/src/components/media-library.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/notices.js b/js/src/components/notices.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/notices.js rename to js/src/components/notices.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/settings-page.js b/js/src/components/settings-page.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/settings-page.js rename to js/src/components/settings-page.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/sync.js b/js/src/components/sync.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/sync.js rename to js/src/components/sync.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/terms_order.js b/js/src/components/terms_order.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/terms_order.js rename to js/src/components/terms_order.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/video.js b/js/src/components/video.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/video.js rename to js/src/components/video.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/widget.js b/js/src/components/widget.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/components/widget.js rename to js/src/components/widget.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/main.js b/js/src/main.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/js/src/main.js rename to js/src/main.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/package-lock.json b/package-lock.json similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/package-lock.json rename to package-lock.json diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/package.json b/package.json similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/package.json rename to package.json diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-connect.php b/php/class-connect.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-connect.php rename to php/class-connect.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-exception.php b/php/class-exception.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-exception.php rename to php/class-exception.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-media.php b/php/class-media.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-media.php rename to php/class-media.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-plugin.php b/php/class-plugin.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-plugin.php rename to php/class-plugin.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-rest-api.php b/php/class-rest-api.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-rest-api.php rename to php/class-rest-api.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-settings-page.php b/php/class-settings-page.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-settings-page.php rename to php/class-settings-page.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-sync.php b/php/class-sync.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-sync.php rename to php/class-sync.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/component/class-assets.php b/php/component/class-assets.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/component/class-assets.php rename to php/component/class-assets.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/component/class-config.php b/php/component/class-config.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/component/class-config.php rename to php/component/class-config.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/component/class-notice.php b/php/component/class-notice.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/component/class-notice.php rename to php/component/class-notice.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/component/class-setup.php b/php/component/class-setup.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/component/class-setup.php rename to php/component/class-setup.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/connect/class-api.php b/php/connect/class-api.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/connect/class-api.php rename to php/connect/class-api.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php b/php/media/class-filter.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php rename to php/media/class-filter.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-global-transformations.php b/php/media/class-global-transformations.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-global-transformations.php rename to php/media/class-global-transformations.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-upgrade.php b/php/media/class-upgrade.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-upgrade.php rename to php/media/class-upgrade.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-video.php b/php/media/class-video.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-video.php rename to php/media/class-video.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-delete-sync.php b/php/sync/class-delete-sync.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-delete-sync.php rename to php/sync/class-delete-sync.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-download-sync.php b/php/sync/class-download-sync.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-download-sync.php rename to php/sync/class-download-sync.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-push-sync.php b/php/sync/class-push-sync.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-push-sync.php rename to php/sync/class-push-sync.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-storage.php b/php/sync/class-storage.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-storage.php rename to php/sync/class-storage.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-sync-queue.php b/php/sync/class-sync-queue.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-sync-queue.php rename to php/sync/class-sync-queue.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-upload-sync.php b/php/sync/class-upload-sync.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-upload-sync.php rename to php/sync/class-upload-sync.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/settings-footer.php b/php/templates/settings-footer.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/settings-footer.php rename to php/templates/settings-footer.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/settings-header.php b/php/templates/settings-header.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/settings-header.php rename to php/templates/settings-header.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/settings-section.php b/php/templates/settings-section.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/settings-section.php rename to php/templates/settings-section.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/settings-tabs.php b/php/templates/settings-tabs.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/settings-tabs.php rename to php/templates/settings-tabs.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/taxonomy-term-transformation-fields.php b/php/templates/taxonomy-term-transformation-fields.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/taxonomy-term-transformation-fields.php rename to php/templates/taxonomy-term-transformation-fields.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/taxonomy-transformation-fields.php b/php/templates/taxonomy-transformation-fields.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/taxonomy-transformation-fields.php rename to php/templates/taxonomy-transformation-fields.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/transformation-preview-video.php b/php/templates/transformation-preview-video.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/transformation-preview-video.php rename to php/templates/transformation-preview-video.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/transformation-preview.php b/php/templates/transformation-preview.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/transformation-preview.php rename to php/templates/transformation-preview.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/postcss.config.js b/postcss.config.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/postcss.config.js rename to postcss.config.js diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/readme.txt b/readme.txt similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/readme.txt rename to readme.txt diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/settings.php b/ui-definitions/settings.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/settings.php rename to ui-definitions/settings.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/connect-content.php b/ui-definitions/tabs/connect-content.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/connect-content.php rename to ui-definitions/tabs/connect-content.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/dashboard-content.php b/ui-definitions/tabs/dashboard-content.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/dashboard-content.php rename to ui-definitions/tabs/dashboard-content.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/global-transformations-content.php b/ui-definitions/tabs/global-transformations-content.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/global-transformations-content.php rename to ui-definitions/tabs/global-transformations-content.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/global-video-transformations-content.php b/ui-definitions/tabs/global-video-transformations-content.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/global-video-transformations-content.php rename to ui-definitions/tabs/global-video-transformations-content.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-connect.php b/ui-definitions/tabs/settings-connect.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-connect.php rename to ui-definitions/tabs/settings-connect.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-dashboard.php b/ui-definitions/tabs/settings-dashboard.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-dashboard.php rename to ui-definitions/tabs/settings-dashboard.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-general.php b/ui-definitions/tabs/settings-general.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-general.php rename to ui-definitions/tabs/settings-general.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-global-transformations.php b/ui-definitions/tabs/settings-global-transformations.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-global-transformations.php rename to ui-definitions/tabs/settings-global-transformations.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-global-video-transformations.php b/ui-definitions/tabs/settings-global-video-transformations.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-global-video-transformations.php rename to ui-definitions/tabs/settings-global-video-transformations.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-sync-media.php b/ui-definitions/tabs/settings-sync-media.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/settings-sync-media.php rename to ui-definitions/tabs/settings-sync-media.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/sync-media-content.php b/ui-definitions/tabs/sync-media-content.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/sync-media-content.php rename to ui-definitions/tabs/sync-media-content.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/sync-media-footer.php b/ui-definitions/tabs/sync-media-footer.php similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/ui-definitions/tabs/sync-media-footer.php rename to ui-definitions/tabs/sync-media-footer.php diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/webpack.config.js b/webpack.config.js similarity index 100% rename from cloudinary-image-management-and-manipulation-in-the-cloud-cdn/webpack.config.js rename to webpack.config.js