Skip to content

Commit

Permalink
remove remoteEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 24, 2023
1 parent 2d08ba7 commit c64e526
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import type NavbarItem from 'app/layouts/navbar/navbar-item.model';
export const loadNavbarItems = async (service: string): Promise<NavbarItem[]> =>
importRemote<{ EntityNavbarItems: NavbarItem[] }>({
esm: true,
url: `${window.location.origin}/services/${service}/remoteEntry.js`,
url: `${window.location.origin}/services/${service}`,
scope: 'default',
module: 'entity-navbar-items',
}).then(({ EntityNavbarItems }) => EntityNavbarItems);
Expand All @@ -33,7 +33,7 @@ export const loadNavbarItems = async (service: string): Promise<NavbarItem[]> =>
export const loadTranslationModule = async (service: string): Promise<Type<any>> =>
importRemote<{ LazyTranslationModule: Type<any> }>({
esm: true,
url: `${window.location.origin}/services/${service}/remoteEntry.js`,
url: `${window.location.origin}/services/${service}`,
scope: 'default',
module: 'translation-module',
}).then(({ LazyTranslationModule }) => LazyTranslationModule);
Expand All @@ -42,7 +42,7 @@ export const loadTranslationModule = async (service: string): Promise<Type<any>>
export const loadEntityModule = async (service: string): Promise<Type<any>> =>
importRemote<{ EntityRoutingModule: Type<any> }>({
esm: true,
url: `${window.location.origin}/services/${service}/remoteEntry.js`,
url: `${window.location.origin}/services/${service}`,
scope: 'default',
module: 'entity-routing',
}).then(({ EntityRoutingModule }) => EntityRoutingModule);

0 comments on commit c64e526

Please sign in to comment.