Skip to content

Commit cd01d31

Browse files
Complete landing page implementation (Ficodes#231)
* Footer first implementation * New footer * Fix env * First commit * Header and dashboard fix for incoming demo * Complete * header * Dashboard * Homepage completa * x * Update enviroment * Homepage implementation complete * New landing (Ficodes#221) * Footer first implementation * New footer * Fix env * First commit * Header and dashboard fix for incoming demo * Complete * header * Dashboard * Homepage completa * x * Update enviroment * Homepage implementation complete * SBX LINKS * Complete implementation of customers landing page * Some fixes * fIX * Fix * Env restore * Providers landing (#5) * Implementation complete * Additional fixes * Fix * dashboard fix * Additional fixes * Trying to fix dep issue
1 parent adef212 commit cd01d31

80 files changed

Lines changed: 6175 additions & 831 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/app/app-routing.module.ts

Lines changed: 84 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3+
import { QuoteListComponent } from "src/app/features/quotes/pages/quote-list/quote-list.component";
4+
import { AboutDomeComponent } from "src/app/pages/about-dome/about-dome.component";
5+
import { BlogEntryDetailComponent } from "src/app/pages/dome-blog/blog-entry-detail/blog-entry-detail.component";
6+
import { DomeBlogComponent } from "src/app/pages/dome-blog/dome-blog.component";
7+
import { EntryFormComponent } from "src/app/pages/dome-blog/entry-form/entry-form.component";
8+
import { UsageSpecsComponent } from "src/app/pages/usage-specs/usage-specs.component";
9+
import { AuthGuard } from './guard/auth.guard';
10+
import { quoteGuardGuard } from './guard/quote-guard.guard';
11+
import { AdminComponent } from "./pages/admin/admin.component";
12+
import { CatalogsComponent } from "./pages/catalogs/catalogs.component";
13+
import { CheckoutComponent } from "./pages/checkout/checkout.component";
14+
import { ContactUsFormComponent } from "./pages/contact-us/contact-us-form.component";
315
import { DashboardComponent } from './pages/dashboard/dashboard.component';
4-
import { ProductInventoryComponent } from './pages/product-inventory/product-inventory.component';
5-
import { ProductInvDetailComponent } from './pages/product-inventory/inventory-items/product-inv-detail/product-inv-detail.component';
6-
import { SearchComponent } from "./pages/search/search.component";
16+
import { OrganizationDetailsComponent } from "./pages/organization-details/organization-details.component";
717
import { ProductDetailsComponent } from "./pages/product-details/product-details.component";
18+
import { ProductInvDetailComponent } from './pages/product-inventory/inventory-items/product-inv-detail/product-inv-detail.component';
19+
import { ProductInventoryComponent } from './pages/product-inventory/product-inventory.component';
20+
import { ProductOrdersComponent } from './pages/product-orders/product-orders.component';
821
import { SearchCatalogComponent } from "./pages/search-catalog/search-catalog.component";
9-
import { CatalogsComponent } from "./pages/catalogs/catalogs.component";
22+
import { SearchComponent } from "./pages/search/search.component";
23+
import { SellerOfferingsComponent } from "./pages/seller-offerings/seller-offerings.component";
1024
import { ShoppingCartComponent } from "./pages/shopping-cart/shopping-cart.component";
11-
import {CheckoutComponent} from "./pages/checkout/checkout.component";
1225
import { UserProfileComponent } from "./pages/user-profile/user-profile.component";
13-
import { SellerOfferingsComponent } from "./pages/seller-offerings/seller-offerings.component";
14-
import { AdminComponent } from "./pages/admin/admin.component";
15-
import { ContactUsFormComponent } from "./pages/contact-us/contact-us-form.component";
16-
import { AuthGuard } from './guard/auth.guard';
17-
import { quoteGuardGuard } from './guard/quote-guard.guard';
18-
import { OrganizationDetailsComponent } from "./pages/organization-details/organization-details.component"
19-
import { ProductOrdersComponent } from './pages/product-orders/product-orders.component';
20-
import {AboutDomeComponent} from "src/app/pages/about-dome/about-dome.component"
21-
import { QuoteListComponent } from "src/app/features/quotes/pages/quote-list/quote-list.component"
22-
import { UsageSpecsComponent } from "src/app/pages/usage-specs/usage-specs.component"
23-
import { DomeBlogComponent } from "src/app/pages/dome-blog/dome-blog.component"
24-
import { BlogEntryDetailComponent } from "src/app/pages/dome-blog/blog-entry-detail/blog-entry-detail.component"
25-
import { EntryFormComponent } from "src/app/pages/dome-blog/entry-form/entry-form.component"
2626

2727

2828

@@ -39,85 +39,117 @@ const routes: Routes = [
3939
path: 'search',
4040
component: SearchComponent
4141
},
42-
{ path: 'search/:id',
42+
{
43+
path: 'search/:id',
4344
component: ProductDetailsComponent
4445
},
45-
{ path: 'org-details/:id',
46+
{
47+
path: 'org-details/:id',
4648
component: OrganizationDetailsComponent
4749
},
48-
{ path: 'search/catalogue/:id',
49-
component: SearchCatalogComponent
50+
{
51+
path: 'search/catalogue/:id',
52+
component: SearchCatalogComponent
5053
},
51-
{ path: 'catalogues',
52-
component: CatalogsComponent
54+
{
55+
path: 'catalogues',
56+
component: CatalogsComponent
5357
},
54-
{ path: 'shopping-cart',
55-
component: ShoppingCartComponent,
56-
canActivate: [AuthGuard], data: { roles: [] }
58+
{
59+
path: 'shopping-cart',
60+
component: ShoppingCartComponent,
61+
canActivate: [AuthGuard], data: { roles: [] }
5762
},
58-
{ path: 'checkout',
63+
{
64+
path: 'checkout',
5965
component: CheckoutComponent,
6066
canActivate: [AuthGuard], data: { roles: [] }
6167
},
62-
{ path: 'checkout/:id',
68+
{
69+
path: 'checkout/:id',
6370
component: CheckoutComponent,
6471
canActivate: [AuthGuard], data: { roles: [] }
6572
},
66-
{ path: 'product-inventory',
67-
component: ProductInventoryComponent,
68-
canActivate: [AuthGuard], data: { roles: [] }
73+
{
74+
path: 'product-inventory',
75+
component: ProductInventoryComponent,
76+
canActivate: [AuthGuard], data: { roles: [] }
6977
},
70-
{ path: 'product-inventory/:id',
71-
component: ProductInvDetailComponent
78+
{
79+
path: 'product-inventory/:id',
80+
component: ProductInvDetailComponent
7281
},
73-
{ path: 'profile',
74-
component: UserProfileComponent,
75-
canActivate: [AuthGuard], data: { roles: [] }
82+
{
83+
path: 'profile',
84+
component: UserProfileComponent,
85+
canActivate: [AuthGuard], data: { roles: [] }
7686
},
77-
{ path: 'my-offerings',
78-
component: SellerOfferingsComponent,
79-
canActivate: [AuthGuard], data: { roles: ['seller'] }
87+
{
88+
path: 'my-offerings',
89+
component: SellerOfferingsComponent,
90+
canActivate: [AuthGuard], data: { roles: ['seller'] }
8091
},
81-
{ path: 'admin',
82-
component: AdminComponent,
83-
canActivate: [AuthGuard], data: { roles: ['admin', 'certifier'] }
92+
{
93+
path: 'admin',
94+
component: AdminComponent,
95+
canActivate: [AuthGuard], data: { roles: ['admin', 'certifier'] }
8496
},
85-
{ path: 'contact-us',
97+
{
98+
path: 'contact-us',
8699
component: ContactUsFormComponent
87100
},
88-
{ path: 'product-orders',
101+
{
102+
path: 'product-orders',
89103
component: ProductOrdersComponent,
90104
canActivate: [AuthGuard], data: { roles: [] }
91105
},
92-
{ path: 'quote-list',
106+
{
107+
path: 'quote-list',
93108
component: QuoteListComponent,
94109
canActivate: [AuthGuard, quoteGuardGuard], data: { roles: [] }
95110
},
96-
{
111+
{
97112
path: 'tenders',
98113
loadChildren: () => import('./features/tenders/tenders.module').then(m => m.TendersModule),
99-
canActivate: [AuthGuard, quoteGuardGuard],
114+
canActivate: [AuthGuard, quoteGuardGuard],
100115
data: { roles: [] }
101116
},
102117
{
103118
path: 'usage-spec',
104119
component: UsageSpecsComponent,
105120
canActivate: [AuthGuard], data: { roles: ['seller'] }
106121
},
107-
{ path: 'blog',
122+
{
123+
path: 'blog',
108124
component: DomeBlogComponent
109125
},
110-
{ path: 'blog/:id',
126+
{
127+
path: 'blog/:id',
111128
component: BlogEntryDetailComponent
112129
},
113-
{ path: 'blog-entry',
130+
{
131+
path: 'blog-entry',
114132
component: EntryFormComponent,
115133
canActivate: [AuthGuard], data: { roles: ['admin'] }
116134
},
117-
{ path: 'blog-entry/:id',
135+
{
136+
path: 'blog-entry/:id',
118137
component: EntryFormComponent,
119138
canActivate: [AuthGuard], data: { roles: ['admin'] }
120139
},
140+
141+
{
142+
path: 'landing-page',
143+
children: [{
144+
path: 'customers',
145+
loadComponent: () => import('./pages/landing-pages/customers/landing-page-customers.component').then(c => c.LandingPageCustomersComponent),
146+
},
147+
{
148+
path: 'providers',
149+
loadComponent: () => import('./pages/landing-pages/providers/landing-page-providers.component').then(c => c.LandingPageProvidersComponent),
150+
}]
151+
},
152+
121153
{ path: '**', redirectTo: 'dashboard', pathMatch: 'full' },
122154
]
123155

0 commit comments

Comments
 (0)