*: web, web_editor, web_unsplash, website_blog, website_event, website_forum, website_hr_recruitment, website_links, website_livechat, website_sale, website_slides, website_twitter This commit fixes two issues related to the loading the wysiwyg and editor assets. The media dialog components are now defined in a new assets_media_dialog bundle, to make them available both in the frontend (needed to post comments on the forum for example), and in the backend (used in the context of the wysiwyg edition or in the seo dialog). Ideally, The media dialog component would lazy load its own bundle, but right now, it is not possible when used in a ComponentWrapper. The wysiwyg assets are now completely loaded in the frontend, after creating the website root, when the frontend is displayed in an iframe. It would be better if the frontend loads only what it needs of the wysiwyg assets (some editor classes and the drop zones css), an improvement would be to create an assets_wysiwyg_frontend or assets_wysiwyg_minimal bundle. The website edition components are moved to the assets_editor bundle. For now, this bundle is included in the backend and the edition menus are hidden from the users that are not website publishers. Ideally, the client action would lazy load the assets_editor, only if the user is a website publisher. Many optimizations regarding assets will be done post-merge. See merge commit for more information. task-2687506
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Twitter Snippet',
|
|
'category': 'Website/Website',
|
|
'summary': 'Twitter scroller snippet in website',
|
|
'version': '1.0',
|
|
'description': """
|
|
This module adds a Twitter scroller building block to the website builder, so that you can display Twitter feeds on any page of your website.
|
|
""",
|
|
'depends': ['website'],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'data/website_twitter_data.xml',
|
|
'views/res_config_settings_views.xml',
|
|
'views/website_twitter_snippet_templates.xml'
|
|
],
|
|
'installable': True,
|
|
'assets': {
|
|
'web.assets_frontend': [
|
|
'website_twitter/static/src/scss/website_twitter.scss',
|
|
'website_twitter/static/src/js/website.twitter.animation.js',
|
|
],
|
|
'website.assets_wysiwyg': [
|
|
'website_twitter/static/src/js/website.twitter.editor.js',
|
|
],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|