mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] *: Remove alias in JS files
Rename all imports with alias old system to the new js module system Task ID: 3266759 closes odoo/design-themes#671 Related: odoo/odoo#127414 Related: odoo/enterprise#43716 Signed-off-by: Bastien Pierre (ipb) <ipb@odoo.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { patch } from 'web.utils';
|
||||
import { patch } from '@web/legacy/js/core/utils';
|
||||
import { useService } from '@web/core/utils/hooks';
|
||||
import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** @odoo-module */
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import { _t } from 'web.core';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
import { _t } from '@web/legacy/js/services/core';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import { _t } from 'web.core';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
import { _t } from '@web/legacy/js/services/core';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import { _t } from 'web.core';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
import { _t } from '@web/legacy/js/services/core';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import { _t } from 'web.core';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
import { _t } from '@web/legacy/js/services/core';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import sOptions from "web_editor.snippets.options";
|
||||
import sOptions from "@web_editor/js/editor/snippets.options";
|
||||
|
||||
sOptions.registry.BackgroundImage.include({
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import publicWidget from "web.public.widget";
|
||||
import "website.content.menu";
|
||||
import publicWidget from "@web/legacy/js/public/public_widget";
|
||||
import "@website/js/content/menu";
|
||||
|
||||
publicWidget.registry.StandardAffixedHeader.include({
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import publicWidget from "web.public.widget";
|
||||
import publicWidget from "@web/legacy/js/public/public_widget";
|
||||
|
||||
/**
|
||||
* This is a fix for some apple devices.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import publicWidget from "web.public.widget";
|
||||
import publicWidget from "@web/legacy/js/public/public_widget";
|
||||
|
||||
publicWidget.registry.s_css_slider = publicWidget.Widget.extend({
|
||||
selector: ".s_css_slider",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import dom from "web.dom";
|
||||
import publicWidget from "web.public.widget";
|
||||
import dom from "@web/legacy/js/core/dom";
|
||||
import publicWidget from "@web/legacy/js/public/public_widget";
|
||||
|
||||
publicWidget.registry.miniNavbarScroll = publicWidget.Widget.extend({
|
||||
selector: '.s_mini_nav_bar a[href*="#"]:not([href="#"])',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import dom from "web.dom";
|
||||
import publicWidget from "web.public.widget";
|
||||
import dom from "@web/legacy/js/core/dom";
|
||||
import publicWidget from "@web/legacy/js/public/public_widget";
|
||||
|
||||
publicWidget.registry.s_showcase_slider = publicWidget.Widget.extend({
|
||||
selector: ".s_showcase_slider",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import wTourUtils from "website.tour_utils";
|
||||
import wTourUtils from "@website/js/tours/tour_utils";
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import wTourUtils from "website.tour_utils";
|
||||
import wTourUtils from "@website/js/tours/tour_utils";
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import { _t } from 'web.core';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
import { _t } from '@web/legacy/js/services/core';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
@@ -18,7 +18,7 @@ const snippets = [
|
||||
{
|
||||
id: 's_images_wall',
|
||||
name: 'Images Wall',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 's_call_to_action',
|
||||
name: 'Call to Action',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import { _t } from 'web.core';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
import { _t } from '@web/legacy/js/services/core';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import { _t } from 'web.core';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
import { _t } from '@web/legacy/js/services/core';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import { _t } from 'web.core';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
import { _t } from '@web/legacy/js/services/core';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import wTourUtils from "website.tour_utils";
|
||||
import wTourUtils from "@website/js/tours/tour_utils";
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
wTourUtils.registerWebsitePreviewTour('theme_menu_hierarchies', {
|
||||
url: '/example',
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import tour from "web_tour.tour";
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
tour.register("website_theme_preview", {
|
||||
registry.category("web_tour.tours").add("website_theme_preview", {
|
||||
test: true,
|
||||
url: "/web#action=website.action_website_configuration",
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import wTourUtils from "website.tour_utils";
|
||||
import wTourUtils from "@website/js/tours/tour_utils";
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import wTourUtils from 'website.tour_utils';
|
||||
import wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user