Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/api-harmonization/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import * as UserAccount from '@o2s/blocks.user-account/api-harmonization';

import { configuration } from '@o2s/api-harmonization/config/configuration';

import * as ProductList from '@dxp/blocks.product-list/api-harmonization';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change the scope from @dxp to @o2s, there was a mistake in the generator that that has a pending fix

// BLOCK IMPORT
import { AppConfig } from './app.config';
import { AppService } from './app.service';
Expand Down Expand Up @@ -133,6 +134,7 @@ export const AuthModuleBaseModule = AuthModule.Module.register(AppConfig);
ArticleSearch.Module.register(AppConfig),
FeaturedServiceList.Module.register(AppConfig),
ArticleList.Module.register(AppConfig),
ProductList.Module.register(AppConfig),
// BLOCK REGISTER
],
providers: [
Expand Down
2 changes: 2 additions & 0 deletions apps/api-harmonization/src/modules/page/page.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import * as TicketDetails from '@o2s/blocks.ticket-details/api-harmonization';
import * as TicketList from '@o2s/blocks.ticket-list/api-harmonization';
import * as TicketRecent from '@o2s/blocks.ticket-recent/api-harmonization';
import * as UserAccount from '@o2s/blocks.user-account/api-harmonization';
import * as ProductList from '@dxp/blocks.product-list/api-harmonization';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change the scope from @dxp to @o2s, there was a mistake in the generator that that has a pending fix


export class Init {
locales!: {
Expand Down Expand Up @@ -73,6 +74,7 @@ export class PageData {

export type Blocks =
// BLOCK REGISTER
| ProductList.Model.ProductListBlock['__typename']
| ArticleList.Model.ArticleListBlock['__typename']
| Category.Model.CategoryBlock['__typename']
| Article.Model.ArticleBlock['__typename']
Expand Down
3 changes: 3 additions & 0 deletions apps/frontend/src/blocks/renderBlocks.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use server';

import * as ProductList from '@dxp/blocks.product-list/frontend';
import { Modules } from '@o2s/api-harmonization';
import * as ArticleList from '@o2s/blocks.article-list/frontend';
import * as ArticleSearch from '@o2s/blocks.article-search/frontend';
Expand Down Expand Up @@ -129,6 +130,8 @@ const renderBlock = (typename: string, blockProps: BlockProps) => {
return <ArticleSearch.Renderer {...blockProps} />;
case 'FeaturedServiceListBlock':
return <FeaturedServiceList.Renderer {...blockProps} />;
case 'ProductListBlock':
return <ProductList.Renderer {...blockProps} />;
// BLOCK REGISTER
default:
return null;
Expand Down
Loading
Loading