53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
|
|
odoo.define("theme_orchid.tour.orchid", function (require) {
|
||
|
|
"use strict";
|
||
|
|
|
||
|
|
const core = require("web.core");
|
||
|
|
const _t = core._t;
|
||
|
|
const wTourUtils = require("website.tour_utils");
|
||
|
|
var tour = require("web_tour.tour");
|
||
|
|
|
||
|
|
const snippets = [
|
||
|
|
{
|
||
|
|
id: 's_cover',
|
||
|
|
name: 'Cover',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 's_image_text',
|
||
|
|
name: 'Image - Text',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 's_text_image',
|
||
|
|
name: 'Text - Image',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 's_three_columns',
|
||
|
|
name: 'Columns',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 's_quotes_carousel',
|
||
|
|
name: 'Quotes',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 's_call_to_action',
|
||
|
|
name: 'Call to Action',
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
wTourUtils.registerThemeHomepageTour("orchid_tour", [
|
||
|
|
wTourUtils.dragNDrop(snippets[0]),
|
||
|
|
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||
|
|
wTourUtils.goBackToBlocks(),
|
||
|
|
wTourUtils.dragNDrop(snippets[1]),
|
||
|
|
wTourUtils.dragNDrop(snippets[2]),
|
||
|
|
wTourUtils.dragNDrop(snippets[3]),
|
||
|
|
wTourUtils.clickOnSnippet(snippets[3]),
|
||
|
|
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
|
||
|
|
wTourUtils.goBackToBlocks(),
|
||
|
|
wTourUtils.dragNDrop(snippets[4]),
|
||
|
|
wTourUtils.dragNDrop(snippets[5]),
|
||
|
|
wTourUtils.clickOnSnippet(snippets[5]),
|
||
|
|
wTourUtils.changeBackgroundColor(),
|
||
|
|
wTourUtils.selectColorPalette(),
|
||
|
|
]);
|
||
|
|
});
|