Files
design-themes/theme_bistro/static/src/js/tour.js
T
Brieuc-brd 97683ee283 [IMP] theme_bistro: revamp the theme
task-4178021
Part of task-4177975

closes odoo/design-themes#919

Related: odoo/odoo#180736
Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:54 +00:00

47 lines
1.2 KiB
JavaScript

/** @odoo-module */
import * as wTourUtils from '@website/js/tours/tour_utils';
const snippets = [
{
id: 's_image_title',
name: 'Image Title',
groupName: "Images",
},
{
id: 's_key_images',
name: 'Key Images',
groupName: "Columns",
},
{
id: 's_pricelist_cafe',
name: 'Pricelist cafe',
groupName: "Content",
},
{
id: 's_quotes_carousel',
name: 'Quotes',
groupName: "People",
},
{
id: 's_quadrant',
name: 'Quadrant',
groupName: "Images",
},
];
wTourUtils.registerThemeHomepageTour("bistro_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"default-22"'),
...wTourUtils.dragNDrop(snippets[0]),
...wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
wTourUtils.goBackToBlocks(),
...wTourUtils.dragNDrop(snippets[1]),
...wTourUtils.dragNDrop(snippets[2]),
...wTourUtils.clickOnSnippet(snippets[2]),
wTourUtils.changeBackgroundColor(),
wTourUtils.selectColorPalette(),
wTourUtils.goBackToBlocks(),
...wTourUtils.dragNDrop(snippets[3]),
...wTourUtils.dragNDrop(snippets[4]),
]);