From d8a5dc4fd854194e4ac3699ab32ddee23e08de22 Mon Sep 17 00:00:00 2001 From: "Robin Lejeune (role)" Date: Tue, 9 Jul 2024 16:54:56 +0200 Subject: [PATCH] Do not pick - trash commit --- .../static/src/js/editor/snippets.editor.js | 6 +++--- .../static/src/js/editor/snippets.options.js | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index b7218bad670e2..001100f4fe8b6 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -776,7 +776,7 @@ var SnippetEditor = Widget.extend({ this._customize$Elements = this._customize$Elements .concat(parentEditor._customize$Elements); // TODO: @owl-options This was meant to have the same behavior - // as the old editor, but as of now, options are just added + // as the old editor, but as of now, options are just added // with a loop on "enabledEditorHierarchy", so this would lead // to duplicate option Components. // this.snippetOptions = [...this.snippetOptions,...parentEditor.snippetOptions]; @@ -5179,8 +5179,8 @@ class SnippetsMenu extends Component { // Delay the mutex until all post drop actions are done. It cannot be // awaited inside the mutex because callPostSnippetDrop locks the mutex // and it needs to be awaited because callPostSnippetDrop also creates - // editors, but it does so outside the mutex. However, calling - // updateOptionsUI while editors are being created creates race + // editors, but it does so outside the mutex. However, calling + // updateOptionsUI while editors are being created creates race // conditions if (this.postSnippetDropPromise) { await this.postSnippetDropPromise; diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 64299ed8ba7f7..daf6be26fec42 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -966,7 +966,7 @@ export class UserValueComponent extends Component { } /** * Sets all props as data attributes to match with existing tours. - * @TODO this should be removed or only shown when tours are actually + * @TODO this should be removed or only shown when tours are actually * activated. However, some SCSS styles are using attributes to style some * buttons (e.g. BackgroundShape). */ @@ -980,7 +980,7 @@ export class UserValueComponent extends Component { } /** * Prepare the values that will be passed as parameters to the state. - * + * * @private * @return {Objectl} */ @@ -1919,7 +1919,7 @@ class WeMulti extends UserValueComponent { registry.category("snippet_widgets").add("WeMulti", WeMulti); export class ColorpickerUserValue extends SelectUserValue { - /** + /** * The Color Combination value, which is a string ranging from 1 to 5 * * @type {string} @@ -2937,7 +2937,7 @@ class RangeUserValue extends UnitUserValue { } /** * @private - * @param {string} inputValue + * @param {string} inputValue */ _computeDisplayValue(inputValue) { if (this.toRatio) { @@ -3707,7 +3707,7 @@ export class SnippetOptionComponent extends Component { this.$overlay = this.props.snippetOption.instance.$overlay; this.renderContext = useState(this.props.snippetOption.instance.renderContext); // When a component is mounted or unmounted, the state of other - // components might be impacted. (i.e. dependencies behaving + // components might be impacted. (i.e. dependencies behaving // differently when a component is in the DOM or when it isn't) this.updateUI = false; @@ -6297,7 +6297,7 @@ registry.category("snippet_widgets").add("Overlay", Overlay); */ export class SnippetMove extends ColumnLayoutMixin(SnippetOption) { static displayOverlayOptions = true; - + /** * @override */ @@ -7498,7 +7498,7 @@ export class ImageTools extends ImageHandlerOption { /** * Replace animation durations in SVG and CSS with modified values. * - * This function takes a ratio and an SVG string containing animations. It + * This function takes a ratio and an SVG string containing animations. It * uses regular expressions to find and replace the duration values in both * CSS animation rules and SVG duration attributes based on the provided * ratio. @@ -7507,7 +7507,7 @@ export class ImageTools extends ImageHandlerOption { * durations. If speed is 0.0, the original * durations are preserved. * @param {string} svg The SVG string containing animations. - * @returns {string} The modified SVG string with updated animation + * @returns {string} The modified SVG string with updated animation * durations. */ _replaceAnimationDuration(speed, svg) { @@ -7534,7 +7534,7 @@ export class ImageTools extends ImageHandlerOption { // Replace the CSS --animation_ratio variable for future purpose. svg = svg.replace(CSS_ANIMATION_RATIO_REGEX, `--animation_ratio: ${ratio};`); } else { - // Add the style tag with the root variable --animation ratio for + // Add the style tag with the root variable --animation ratio for // future purpose. const regex = //m; const subst = `$&\n\t`;