arch(sprint1): remove tenant-specific brand route replacement
This commit is contained in:
16
angular.json
16
angular.json
@@ -93,10 +93,6 @@
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.novo.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/brands/brand-routes.ts",
|
||||
"with": "src/app/brands/brand-routes.novo.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/interceptors/mock-data.interceptor.ts",
|
||||
"with": "src/app/interceptors/mock-data.interceptor.production.ts"
|
||||
@@ -117,10 +113,6 @@
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.novo.production.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/brands/brand-routes.ts",
|
||||
"with": "src/app/brands/brand-routes.novo.ts"
|
||||
}
|
||||
],
|
||||
"index": "src/index.novo.html",
|
||||
@@ -163,10 +155,6 @@
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.lavero.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/brands/brand-routes.ts",
|
||||
"with": "src/app/brands/brand-routes.lavero.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/interceptors/mock-data.interceptor.ts",
|
||||
"with": "src/app/interceptors/mock-data.interceptor.production.ts"
|
||||
@@ -187,10 +175,6 @@
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.lavero.production.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/brands/brand-routes.ts",
|
||||
"with": "src/app/brands/brand-routes.lavero.ts"
|
||||
}
|
||||
],
|
||||
"index": "src/index.lavero.html",
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { brandInfoRoutes, brandLegalRoutes } from './brands/brand-routes';
|
||||
import { languageGuard } from './guards/language.guard';
|
||||
|
||||
// Core routes (same across all brands)
|
||||
@@ -42,6 +41,52 @@ const coreRoutes: Routes = [
|
||||
}
|
||||
];
|
||||
|
||||
const infoRoutes: Routes = [
|
||||
{
|
||||
path: 'about',
|
||||
loadComponent: () => import('./pages/info/about/about.component').then(m => m.AboutComponent)
|
||||
},
|
||||
{
|
||||
path: 'contacts',
|
||||
loadComponent: () => import('./pages/info/contacts/contacts.component').then(m => m.ContactsComponent)
|
||||
},
|
||||
{
|
||||
path: 'faq',
|
||||
loadComponent: () => import('./pages/info/faq/faq.component').then(m => m.FaqComponent)
|
||||
},
|
||||
{
|
||||
path: 'delivery',
|
||||
loadComponent: () => import('./pages/info/delivery/delivery.component').then(m => m.DeliveryComponent)
|
||||
},
|
||||
{
|
||||
path: 'guarantee',
|
||||
loadComponent: () => import('./pages/info/guarantee/guarantee.component').then(m => m.GuaranteeComponent)
|
||||
}
|
||||
];
|
||||
|
||||
const legalRoutes: Routes = [
|
||||
{
|
||||
path: 'company-details',
|
||||
loadComponent: () => import('./pages/legal/company-details/company-details.component').then(m => m.CompanyDetailsComponent)
|
||||
},
|
||||
{
|
||||
path: 'payment-terms',
|
||||
loadComponent: () => import('./pages/legal/payment-terms/payment-terms.component').then(m => m.PaymentTermsComponent)
|
||||
},
|
||||
{
|
||||
path: 'return-policy',
|
||||
loadComponent: () => import('./pages/legal/return-policy/return-policy.component').then(m => m.ReturnPolicyComponent)
|
||||
},
|
||||
{
|
||||
path: 'public-offer',
|
||||
loadComponent: () => import('./pages/legal/public-offer/public-offer.component').then(m => m.PublicOfferComponent)
|
||||
},
|
||||
{
|
||||
path: 'privacy-policy',
|
||||
loadComponent: () => import('./pages/legal/privacy-policy/privacy-policy.component').then(m => m.PrivacyPolicyComponent)
|
||||
}
|
||||
];
|
||||
|
||||
// All routes sit under a :lang prefix (e.g. /ru/cart, /en/item/5)
|
||||
export const routes: Routes = [
|
||||
{
|
||||
@@ -49,8 +94,8 @@ export const routes: Routes = [
|
||||
canActivate: [languageGuard],
|
||||
children: [
|
||||
...coreRoutes,
|
||||
...brandInfoRoutes,
|
||||
...brandLegalRoutes,
|
||||
...infoRoutes,
|
||||
...legalRoutes,
|
||||
{ path: '**', redirectTo: '' }
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user