mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
- Reorganize core/tabs internal structure: - Move guards to `guards/` folder - Move internal services to `internal/` folder - Move resolvers to `resolvers/` folder - Move components to `components/` folder - Migrate title-management library into core/tabs: - Move TitleStrategy to `internal/tab-title.strategy.ts` - Add `provideCoreTabs()` provider function - Delete common/title-management library - Improve code quality from review findings: - Add SVG validation before bypassSecurityTrustHtml (security) - Convert TokenLoginComponent to standalone with inject() - Fix typo: laoderElement → loaderElement - Improve type safety in oms.service.ts - Rename getCurrentLocation → getCurrentLocationWithValidation - Remove empty ngOnInit from AbstractCreateCustomer - Update shell-tab-item component with new styling and animations
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { CheckoutReviewComponent } from './checkout-review/checkout-review.component';
|
|
import { CheckoutSummaryComponent } from './checkout-summary/checkout-summary.component';
|
|
import { PageCheckoutComponent } from './page-checkout.component';
|
|
import { CheckoutReviewDetailsComponent } from './checkout-review/details/checkout-review-details.component';
|
|
import { canDeactivateTabCleanup } from '@isa/core/tabs';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: PageCheckoutComponent,
|
|
children: [
|
|
{
|
|
path: 'details',
|
|
component: CheckoutReviewDetailsComponent,
|
|
title: 'Warenkorb',
|
|
outlet: 'side',
|
|
},
|
|
{
|
|
path: 'review',
|
|
component: CheckoutReviewComponent,
|
|
title: 'Warenkorb',
|
|
},
|
|
{
|
|
path: 'summary',
|
|
component: CheckoutSummaryComponent,
|
|
title: 'Bestellbestätigung',
|
|
canDeactivate: [canDeactivateTabCleanup],
|
|
},
|
|
{
|
|
path: 'summary/:orderIds',
|
|
component: CheckoutSummaryComponent,
|
|
title: 'Bestellbestätigung',
|
|
canDeactivate: [canDeactivateTabCleanup],
|
|
},
|
|
{ path: '', pathMatch: 'full', redirectTo: 'review' },
|
|
],
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class PageCheckoutRoutingModule {}
|