Skip to content

Commit 54b7266

Browse files
ged-odooaans-odooAlessandroLupoagau-odooZynton
committed
[REF] website: rewrite website builder using owl and new html editor
This commit introduces a full rewrite of the website builder to leverage the OWL framework and the new HTML editor. The goal is to modernize the codebase, improve maintainability, and provide a more reactive and modular architecture. A major part of this refactoring is the complete rethinking of how options are defined. They are now implemented as OWL components or simple template-driven views, and registered as plugins. The system introduces two distinct concepts: *options*, which handle the user interface, and *actions*, which encapsulate the actual DOM or HTML updates. The builder code is now split into two addons: - `html_builder`: contains a shared foundation for building HTML UIs, designed to be reusable across apps, including mass mailing. - `website`: contains all website-specific logic and components. The legacy builder code has not been removed yet, as parts of it are still in use, most notably in the mass mailing application. It will be removed in the near future. Many thanks to everyone who contributed to this project, whether through code, testing, reviews, design, or support — your efforts made this major milestone possible. Also, this sentence was totally not generated by a AI language model. Co-authored-by: aans-odoo <[email protected]> Co-authored-by: Alessandro Lupo <[email protected]> Co-authored-by: Alice Gaudon <[email protected]> Co-authored-by: Antoine Guenet <[email protected]> Co-authored-by: Augustin (duau) <[email protected]> Co-authored-by: Benoit Socias <[email protected]> Co-authored-by: chdh-odoo <[email protected]> Co-authored-by: Davide Bonetto <[email protected]> Co-authored-by: Denis Rygaert <[email protected]> Co-authored-by: divy-odoo <[email protected]> Co-authored-by: emge-odoo <[email protected]> Co-authored-by: fdardenne <[email protected]> Co-authored-by: FrancoisGe <[email protected]> Co-authored-by: Géry Debongnie <[email protected]> Co-authored-by: Guillaume Jacquet <[email protected]> Co-authored-by: Jinjiu Liu <[email protected]> Co-authored-by: ksbh-odoo <[email protected]> Co-authored-by: Louis (loco) <[email protected]> Co-authored-by: Mohammed Shekha <[email protected]> Co-authored-by: Nicolas Bayet <[email protected]> Co-authored-by: panv-odoo <[email protected]> Co-authored-by: paru-odoo <[email protected]> Co-authored-by: Rahil Ghanchi <[email protected]> Co-authored-by: Robin Lejeune (role) <[email protected]> Co-authored-by: Rodolpho Lima <[email protected]> Co-authored-by: Sanjay Sharma <[email protected]> Co-authored-by: Sébastien Blondiau <[email protected]> Co-authored-by: Sébastien Geelen <[email protected]> Co-authored-by: Serhii Rubanskyi - seru <[email protected]> Co-authored-by: Soukéina Bojabza <[email protected]> Co-authored-by: Subhadeep <[email protected]> Co-authored-by: visp-odoo <[email protected]>
1 parent 3ce5102 commit 54b7266

File tree

1,091 files changed

+70527
-3183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,091 files changed

+70527
-3183
lines changed

addons/html_builder/__init__.py

Whitespace-only changes.

addons/html_builder/__manifest__.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
'name': "HTML Builder",
3+
'summary': "Generic html builder",
4+
'description': """
5+
This addon contains a generic html builder application. It is designed to be
6+
used by the website builder and mass mailing editor.
7+
""",
8+
9+
'author': "Odoo",
10+
'website': "https://www.odoo.com",
11+
12+
# Categories can be used to filter modules in modules listing
13+
# Check https://github.com/odoo/odoo/blob/15.0/odoo/addons/base/data/ir_module_category_data.xml
14+
# for the full list
15+
'category': 'Uncategorized',
16+
'version': '0.1',
17+
18+
# any module necessary for this one to work correctly
19+
# so stupid that we need to use the stupid defineMailModel helper, so we need
20+
# to depend on mail
21+
'depends': ['base', 'html_editor', 'mail'],
22+
23+
'assets': {
24+
# this bundle is lazy loaded when the editor is ready
25+
'html_builder.assets': [
26+
('include', 'web._assets_helpers'),
27+
28+
'html_builder/static/src/bootstrap_overriden.scss',
29+
'web/static/src/scss/pre_variables.scss',
30+
'web/static/lib/bootstrap/scss/_variables.scss',
31+
'web/static/lib/bootstrap/scss/_variables-dark.scss',
32+
'web/static/lib/bootstrap/scss/_maps.scss',
33+
'html_builder/static/src/**/*',
34+
],
35+
'html_builder.inside_builder_style': [
36+
('include', 'web._assets_helpers'),
37+
('include', 'web._assets_primary_variables'),
38+
'web/static/src/scss/bootstrap_overridden.scss',
39+
'html_builder/static/src/**/*.inside.scss',
40+
],
41+
'html_builder.assets_edit_frontend': [
42+
('include', 'website.assets_edit_frontend'),
43+
],
44+
'html_builder.iframe_add_dialog': [
45+
('include', 'web.assets_frontend'),
46+
'html_builder/static/src/snippets/snippet_viewer.scss',
47+
'website/static/src/snippets/**/*.edit.scss',
48+
],
49+
'web.assets_unit_tests': [
50+
'html_builder/static/tests/**/*',
51+
('include', 'html_builder.assets'),
52+
],
53+
},
54+
'license': 'LGPL-3',
55+
}
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 31 additions & 0 deletions
Loading
Lines changed: 40 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)