+ = $block->escapeHtml( + __('Browse to find or drag image here') + ); ?> +
+Image size restricted for viewing purposes
'; + style = 'width: auto; height: auto; max-width: 500px; max-height: 500px; min-height: 50px;', + footer = 'Image size restricted for viewing purposes
'; return '| - Image - | -- Label - | -- File - | -- Free transform - | -- Action - | -
|---|---|---|---|---|
| + Image + | ++ Label + | ++ File + | ++ Cloudinary Transformation + | ++ Action + | +
-
-
+
+
|
@@ -34,4 +29,4 @@ }">Preview | - + \ No newline at end of file diff --git a/view/base/web/images/cloudinary_dropzone.svg b/view/base/web/images/cloudinary_dropzone.svg new file mode 100644 index 0000000..389b079 --- /dev/null +++ b/view/base/web/images/cloudinary_dropzone.svg @@ -0,0 +1,13 @@ + diff --git a/view/base/web/images/cloudinary_icon_for_blue_bg.svg b/view/base/web/images/cloudinary_icon_for_blue_bg.svg new file mode 100644 index 0000000..8a5c6c4 --- /dev/null +++ b/view/base/web/images/cloudinary_icon_for_blue_bg.svg @@ -0,0 +1,69 @@ + + + diff --git a/view/base/web/images/cloudinary_icon_for_dark_bg.svg b/view/base/web/images/cloudinary_icon_for_dark_bg.svg new file mode 100644 index 0000000..0dae7c9 --- /dev/null +++ b/view/base/web/images/cloudinary_icon_for_dark_bg.svg @@ -0,0 +1,69 @@ + + + diff --git a/view/base/web/images/cloudinary_logo_for_blue_bg.svg b/view/base/web/images/cloudinary_logo_for_blue_bg.svg new file mode 100644 index 0000000..72b86b0 --- /dev/null +++ b/view/base/web/images/cloudinary_logo_for_blue_bg.svg @@ -0,0 +1,188 @@ + + + diff --git a/view/base/web/images/cloudinary_logo_for_dark_bg.svg b/view/base/web/images/cloudinary_logo_for_dark_bg.svg new file mode 100644 index 0000000..58bc88b --- /dev/null +++ b/view/base/web/images/cloudinary_logo_for_dark_bg.svg @@ -0,0 +1,188 @@ + + + diff --git a/view/base/web/images/cloudinary_vertical_logo_for_blue_bg.svg b/view/base/web/images/cloudinary_vertical_logo_for_blue_bg.svg new file mode 100644 index 0000000..c29c5e7 --- /dev/null +++ b/view/base/web/images/cloudinary_vertical_logo_for_blue_bg.svg @@ -0,0 +1,203 @@ + + + diff --git a/view/base/web/images/cloudinary_vertical_logo_for_dark_bg.svg b/view/base/web/images/cloudinary_vertical_logo_for_dark_bg.svg new file mode 100644 index 0000000..73618ee --- /dev/null +++ b/view/base/web/images/cloudinary_vertical_logo_for_dark_bg.svg @@ -0,0 +1,203 @@ + + + diff --git a/view/base/web/images/colorpicker_indic.gif b/view/base/web/images/colorpicker_indic.gif new file mode 100644 index 0000000..7e86962 Binary files /dev/null and b/view/base/web/images/colorpicker_indic.gif differ diff --git a/view/base/web/js/form/element/file-uploader.js b/view/base/web/js/form/element/file-uploader.js new file mode 100644 index 0000000..77e3fa9 --- /dev/null +++ b/view/base/web/js/form/element/file-uploader.js @@ -0,0 +1,25 @@ +/** + * @api + */ +/* global Base64 */ +define([ + 'jquery', + 'Magento_Ui/js/form/element/file-uploader' +], function($, Element) { + 'use strict'; + + return Element.extend({ + + /** + * {@inheritDoc} + */ + initialize: function() { + this._super(); + this.cloudinaryMLoptions.imageParamName = this.paramName || this.inputName; + this.cloudinaryMLoptions.cldMLid = this.cloudinaryMLoptions.imageParamName + '_' + this.uid; + this.cloudinaryMLoptions.callbackHandler = this; + this.cloudinaryMLoptions.callbackHandlerMethod = 'addFile'; + }, + + }); +}); \ No newline at end of file diff --git a/view/base/web/js/form/element/image-uploader.js b/view/base/web/js/form/element/image-uploader.js new file mode 100644 index 0000000..8e11cbb --- /dev/null +++ b/view/base/web/js/form/element/image-uploader.js @@ -0,0 +1,21 @@ +/* global Base64 */ +define([ + 'jquery', + 'Magento_Ui/js/form/element/image-uploader' +], function($, Element) { + 'use strict'; + + return Element.extend({ + /** + * {@inheritDoc} + */ + initialize: function() { + this._super(); + this.cloudinaryMLoptions.imageParamName = this.paramName || this.inputName; + this.cloudinaryMLoptions.cldMLid = this.cloudinaryMLoptions.imageParamName + '_' + this.uid; + this.cloudinaryMLoptions.callbackHandler = this; + this.cloudinaryMLoptions.callbackHandlerMethod = 'addFile'; + }, + + }); +}); \ No newline at end of file diff --git a/view/base/web/template/form/element/uploader/image.html b/view/base/web/template/form/element/uploader/image.html new file mode 100644 index 0000000..7d9be1f --- /dev/null +++ b/view/base/web/template/form/element/uploader/image.html @@ -0,0 +1,79 @@ + +