From e871d8a88ea59bda7b9e47233cbdc6b68e56ea45 Mon Sep 17 00:00:00 2001
From: Carlos Lopez
Date: Tue, 22 Apr 2025 09:48:48 -0500
Subject: [PATCH] [MIG] web_editor_class_selector: Migration to version 18.0
---
web_editor_class_selector/README.rst | 18 +++--
web_editor_class_selector/__manifest__.py | 13 ++--
.../static/description/index.html | 8 ++-
.../src/js/css_selector/css_selector.esm.js | 24 +++++++
.../src/js/css_selector/css_selector.xml | 20 ++++++
.../css_selector/css_selector_plugin.esm.js | 71 +++++++++++++++++++
.../js/{backend => fields}/html_field.esm.js | 20 +++---
.../src/js/odoo-editor/OdooEditor.esm.js | 68 ------------------
.../static/src/js/odoo-editor/commands.esm.js | 12 ----
.../static/src/js/odoo-editor/toolbar.esm.js | 13 ----
.../js/{odoo-editor => utils}/utils.esm.js | 9 +--
.../static/src/js/wysiwyg/wysiwyg.esm.js | 17 +++--
.../static/src/xml/web_editor.xml | 37 ----------
.../views/web_editor_class_views.xml | 8 +--
14 files changed, 163 insertions(+), 175 deletions(-)
create mode 100644 web_editor_class_selector/static/src/js/css_selector/css_selector.esm.js
create mode 100644 web_editor_class_selector/static/src/js/css_selector/css_selector.xml
create mode 100644 web_editor_class_selector/static/src/js/css_selector/css_selector_plugin.esm.js
rename web_editor_class_selector/static/src/js/{backend => fields}/html_field.esm.js (53%)
delete mode 100644 web_editor_class_selector/static/src/js/odoo-editor/OdooEditor.esm.js
delete mode 100644 web_editor_class_selector/static/src/js/odoo-editor/commands.esm.js
delete mode 100644 web_editor_class_selector/static/src/js/odoo-editor/toolbar.esm.js
rename web_editor_class_selector/static/src/js/{odoo-editor => utils}/utils.esm.js (86%)
delete mode 100644 web_editor_class_selector/static/src/xml/web_editor.xml
diff --git a/web_editor_class_selector/README.rst b/web_editor_class_selector/README.rst
index f9b51cda2..12896bea4 100644
--- a/web_editor_class_selector/README.rst
+++ b/web_editor_class_selector/README.rst
@@ -17,13 +17,13 @@ Web editor class selector
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
- :target: https://github.com/OCA/web/tree/17.0/web_editor_class_selector
+ :target: https://github.com/OCA/web/tree/18.0/web_editor_class_selector
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_editor_class_selector
+ :target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_editor_class_selector
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -60,7 +60,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -85,6 +85,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/web `_ project on GitHub.
+.. |maintainer-carlos-lopez-tecnativa| image:: https://github.com/carlos-lopez-tecnativa.png?size=40px
+ :target: https://github.com/carlos-lopez-tecnativa
+ :alt: carlos-lopez-tecnativa
+
+Current `maintainer `__:
+
+|maintainer-carlos-lopez-tecnativa|
+
+This module is part of the `OCA/web `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/web_editor_class_selector/__manifest__.py b/web_editor_class_selector/__manifest__.py
index 70c7eddb3..7c386c00a 100644
--- a/web_editor_class_selector/__manifest__.py
+++ b/web_editor_class_selector/__manifest__.py
@@ -1,6 +1,6 @@
{
"name": "Web editor class selector",
- "version": "17.0.1.1.0",
+ "version": "18.0.1.0.0",
"summary": "",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
@@ -17,15 +17,14 @@
],
"assets": {
"web.assets_backend": [
- "web_editor_class_selector/static/src/js/backend/**/*",
- ],
- "web_editor.backend_assets_wysiwyg": [
- "web_editor_class_selector/static/src/js/odoo-editor/**/*",
- "web_editor_class_selector/static/src/js/wysiwyg/**/*",
+ "web_editor_class_selector/static/src/js/css_selector/**/*",
"web_editor_class_selector/static/src/scss/demo_styles.scss",
- "web_editor_class_selector/static/src/xml/**/",
+ "web_editor_class_selector/static/src/js/fields/**/*",
+ "web_editor_class_selector/static/src/js/utils/**/*",
+ "web_editor_class_selector/static/src/js/wysiwyg/**/*",
],
},
+ "maintainers": ["carlos-lopez-tecnativa"],
"installable": True,
"auto_install": False,
"license": "AGPL-3",
diff --git a/web_editor_class_selector/static/description/index.html b/web_editor_class_selector/static/description/index.html
index ee0d6aea9..a9a93015f 100644
--- a/web_editor_class_selector/static/description/index.html
+++ b/web_editor_class_selector/static/description/index.html
@@ -369,7 +369,7 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:53a338e09db97f68da45d08f963625f60a4069424d8d2f75bcca9887a201824b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module allows users to create custom CSS class records, which can
then be selected and applied directly in the HTML editor. Note: The
actual CSS file containing the class definitions is not provided by this
@@ -408,7 +408,7 @@ supported)
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -428,7 +428,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-
This module is part of the OCA/web project on GitHub.