mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
08e5adc265
There is a linter error in the modified files of this PR about `require` not defined. It's actually not really a problem as those files are transcompiled from ES6 module to odoo module, injecting `require` before the file is actually used/read by the browser, at which point no issue actually arise. Those linter error were introduced with PR [1] in Odoo 15 but were fix in Odoo 16 with commit [2] (which should have arguably be done in Odoo 15). [1]: https://github.com/odoo/design-themes/pull/500 [2]: https://github.com/odoo/design-themes/commit/dc2f5112022b5f987ed418e04b5e15c93dc7a731 closes odoo/design-themes#747 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
/** @odoo-module */
|
|
|
|
import { _t } from 'web.core';
|
|
import wTourUtils from 'website.tour_utils';
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_cover',
|
|
name: 'Cover',
|
|
},
|
|
{
|
|
id: 's_text_image',
|
|
name: 'Text - Image',
|
|
},
|
|
{
|
|
id: 's_image_text',
|
|
name: 'Image - Text',
|
|
},
|
|
{
|
|
id: 's_title',
|
|
name: 'Title',
|
|
},
|
|
{
|
|
id: 's_three_columns',
|
|
name: 'Columns',
|
|
},
|
|
{
|
|
id: 's_picture',
|
|
name: 'Picture',
|
|
},
|
|
];
|
|
|
|
wTourUtils.registerThemeHomepageTour("aviato_tour", [
|
|
wTourUtils.dragNDrop(snippets[0]),
|
|
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
|
wTourUtils.goBackToBlocks(),
|
|
wTourUtils.dragNDrop(snippets[1]),
|
|
wTourUtils.dragNDrop(snippets[2]),
|
|
wTourUtils.dragNDrop(snippets[3]),
|
|
wTourUtils.dragNDrop(snippets[4]),
|
|
wTourUtils.dragNDrop(snippets[5]),
|
|
wTourUtils.clickOnSnippet(snippets[5], 'top'),
|
|
wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')),
|
|
wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')),
|
|
]);
|