Skip to content

Commit

Permalink
fix: hybrid mapping table adaptions and additions
Browse files Browse the repository at this point in the history
  • Loading branch information
shauke committed Apr 14, 2022
1 parent a1f84b3 commit 68ac574
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions src/hybrid/default-url-mapping-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ export const HYBRID_MAPPING_TABLE: HybridMappingEntry[] = [
id: 'Product Detail Page',
icm: `${ICM_CONFIG_MATCH}/ViewProduct-Start.*(\\?|&)SKU=(?<sku>[\\w-]+).*$`,
pwaBuild: `product/$<sku>${PWA_CONFIG_BUILD}`,
pwa: `^.*/product/([\\w-]+).*$`,
icmBuild: `ViewProduct-Start?SKU=$1`,
pwa: `/(?!cat)((?!.*-cat.*-sku).*-)?sku(.*?)(-cat(.*))?$`,
icmBuild: `ViewProduct-Start?SKU=$2`,
handledBy: 'pwa',
},
{
id: 'Category Page',
icm: `${ICM_CONFIG_MATCH}/ViewStandardCatalog-Browse.*(\\?|&)CatalogID=(?<catalog>[\\w-]+).*$`,
pwaBuild: `category/$<catalog>${PWA_CONFIG_BUILD}`,
pwa: `^.*/category/([\\w-]+).*$`,
icmBuild: `ViewStandardCatalog?CatalogID=$1&CategoryName=$1`,
pwa: `^/(?!category|categoryref/.*$)(.*-)?cat([^?]*)`,
icmBuild: `ViewStandardCatalog-Browse?CatalogID=$2&CategoryName=$2`,
handledBy: 'pwa',
},
{
Expand All @@ -67,7 +67,7 @@ export const HYBRID_MAPPING_TABLE: HybridMappingEntry[] = [
pwaBuild: `basket${PWA_CONFIG_BUILD}`,
pwa: '^/basket.*$',
icmBuild: 'ViewCart-View',
handledBy: 'pwa',
handledBy: 'icm',
},
{
id: 'Login',
Expand Down Expand Up @@ -101,4 +101,28 @@ export const HYBRID_MAPPING_TABLE: HybridMappingEntry[] = [
icmBuild: 'ViewUserAccount-Start',
handledBy: 'icm',
},
{
id: 'Register',
icm: `${ICM_CONFIG_MATCH}/ViewUserAccount-ShowRegister.*$`,
pwaBuild: `register${PWA_CONFIG_BUILD}`,
pwa: '^/register.*$',
icmBuild: 'ViewUserAccount-ShowRegister',
handledBy: 'pwa',
},
{
id: 'Product Compare',
icm: `${ICM_CONFIG_MATCH}/ViewProductCompare-Show.*$`,
pwaBuild: `compare${PWA_CONFIG_BUILD}`,
pwa: '^/compare.*$',
icmBuild: 'ViewProductCompare-Show',
handledBy: 'pwa',
},
{
id: 'Quick Order',
icm: `${ICM_CONFIG_MATCH}/ViewQuickorder-Start.*$`,
pwaBuild: `quick-order${PWA_CONFIG_BUILD}`,
pwa: '^/quick-order.*$',
icmBuild: 'ViewQuickorder-Start',
handledBy: 'icm',
},
];

0 comments on commit 68ac574

Please sign in to comment.