[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:
Bastien PIERRE
2023-07-13 06:53:15 +00:00
parent ab791fab67
commit b9d48ebe86
36 changed files with 49 additions and 49 deletions
@@ -1,6 +1,6 @@
/** @odoo-module **/ /** @odoo-module **/
import { patch } from 'web.utils'; import { patch } from '@web/legacy/js/core/utils';
import { useService } from '@web/core/utils/hooks'; import { useService } from '@web/core/utils/hooks';
import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher'; import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher';
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,5 +1,5 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,7 +1,7 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from 'web.core'; import { _t } from '@web/legacy/js/services/core';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from 'web.core'; import { _t } from '@web/legacy/js/services/core';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,7 +1,7 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from 'web.core'; import { _t } from '@web/legacy/js/services/core';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,7 +1,7 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from 'web.core'; import { _t } from '@web/legacy/js/services/core';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
@@ -1,6 +1,6 @@
/** @odoo-module **/ /** @odoo-module **/
import sOptions from "web_editor.snippets.options"; import sOptions from "@web_editor/js/editor/snippets.options";
sOptions.registry.BackgroundImage.include({ sOptions.registry.BackgroundImage.include({
/** /**
+2 -2
View File
@@ -1,7 +1,7 @@
/** @odoo-module **/ /** @odoo-module **/
import publicWidget from "web.public.widget"; import publicWidget from "@web/legacy/js/public/public_widget";
import "website.content.menu"; import "@website/js/content/menu";
publicWidget.registry.StandardAffixedHeader.include({ publicWidget.registry.StandardAffixedHeader.include({
/** /**
@@ -1,6 +1,6 @@
/** @odoo-module **/ /** @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. * This is a fix for some apple devices.
@@ -1,6 +1,6 @@
/** @odoo-module **/ /** @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({ publicWidget.registry.s_css_slider = publicWidget.Widget.extend({
selector: ".s_css_slider", selector: ".s_css_slider",
@@ -1,7 +1,7 @@
/** @odoo-module **/ /** @odoo-module **/
import dom from "web.dom"; import dom from "@web/legacy/js/core/dom";
import publicWidget from "web.public.widget"; import publicWidget from "@web/legacy/js/public/public_widget";
publicWidget.registry.miniNavbarScroll = publicWidget.Widget.extend({ publicWidget.registry.miniNavbarScroll = publicWidget.Widget.extend({
selector: '.s_mini_nav_bar a[href*="#"]:not([href="#"])', selector: '.s_mini_nav_bar a[href*="#"]:not([href="#"])',
@@ -1,7 +1,7 @@
/** @odoo-module **/ /** @odoo-module **/
import dom from "web.dom"; import dom from "@web/legacy/js/core/dom";
import publicWidget from "web.public.widget"; import publicWidget from "@web/legacy/js/public/public_widget";
publicWidget.registry.s_showcase_slider = publicWidget.Widget.extend({ publicWidget.registry.s_showcase_slider = publicWidget.Widget.extend({
selector: ".s_showcase_slider", selector: ".s_showcase_slider",
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module **/ /** @odoo-module **/
import wTourUtils from "website.tour_utils"; import wTourUtils from "@website/js/tours/tour_utils";
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module **/ /** @odoo-module **/
import wTourUtils from "website.tour_utils"; import wTourUtils from "@website/js/tours/tour_utils";
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from 'web.core'; import { _t } from '@web/legacy/js/services/core';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
@@ -18,7 +18,7 @@ const snippets = [
{ {
id: 's_images_wall', id: 's_images_wall',
name: 'Images Wall', name: 'Images Wall',
}, },
{ {
id: 's_call_to_action', id: 's_call_to_action',
name: 'Call to Action', name: 'Call to Action',
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,7 +1,7 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from 'web.core'; import { _t } from '@web/legacy/js/services/core';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,7 +1,7 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from 'web.core'; import { _t } from '@web/legacy/js/services/core';
const snippets = [ const snippets = [
{ {
+2 -2
View File
@@ -1,7 +1,7 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from 'web.core'; import { _t } from '@web/legacy/js/services/core';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module **/ /** @odoo-module **/
import wTourUtils from "website.tour_utils"; import wTourUtils from "@website/js/tours/tour_utils";
const snippets = [ const snippets = [
{ {
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
wTourUtils.registerWebsitePreviewTour('theme_menu_hierarchies', { wTourUtils.registerWebsitePreviewTour('theme_menu_hierarchies', {
url: '/example', url: '/example',
@@ -1,8 +1,8 @@
/** @odoo-module */ /** @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, test: true,
url: "/web#action=website.action_website_configuration", url: "/web#action=website.action_website_configuration",
}, },
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module **/ /** @odoo-module **/
import wTourUtils from "website.tour_utils"; import wTourUtils from "@website/js/tours/tour_utils";
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
/** @odoo-module */ /** @odoo-module */
import wTourUtils from 'website.tour_utils'; import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [ const snippets = [
{ {