|
1 | 1 | import { Routes, UrlSegment } from '@angular/router'; |
2 | 2 |
|
3 | 3 | export const routes: Routes = [ |
4 | | - //Home Page |
5 | | - { path: '', loadComponent: () => import('./home-page/home-page.component').then(m => m.HomePageComponent), pathMatch: 'full' }, |
6 | | - |
7 | | - /* Non - CMS Pages Below this Line */ |
8 | | - //News Pages |
9 | | - { path: 'about/news', loadComponent: () => import('./article/article-page/article-page.component').then(m => m.ArticlePageComponent), pathMatch: 'full' }, |
10 | | - { path: 'about/news/:slug', loadComponent: () => import('./article/article/article.component').then(m => m.ArticleComponent), pathMatch: 'full' }, |
11 | | - { path: 'about/logo', loadComponent: () => import('./about/logo-page/logo-page.component').then(m => m.LogoPageComponent), pathMatch: 'full' }, |
12 | | - { path: 'about/release-calendar', loadComponent: () => import('./about/release-calendar/release-calendar.component').then(m => m.ReleaseCalendarComponent), pathMatch: 'full' }, |
13 | | - { path: 'about/editorial-calendar', loadComponent: () => import('./about/editorial-calendar/editorial-calendar.component').then(m => m.EditorialCalendarComponent), pathMatch: 'full' }, |
14 | | - |
15 | | - //Community Pages |
16 | | - { path: 'community/partners', loadComponent: () => import('./community/partners/partners.component').then(m => m.PartnersComponent), pathMatch: 'full' }, |
17 | | - { path: 'community/resources', loadComponent: () => import('./community/resources/resources.component').then(m => m.ResourcesComponent), pathMatch: 'full' }, |
18 | | - { path: 'community/collaboration', loadComponent: () => import('./community/collaboration/collaboration.component').then(m => m.CollaborationComponent), pathMatch: 'full' }, |
19 | | - { path: 'community/icon-lib', loadComponent: () => import('./community/icon-lib/icon-lib.component').then(m => m.IconLibComponent), pathMatch: 'full' }, |
20 | | - { path: 'community/icon-lib/:id', loadComponent: () => import('./community/icon-lib/icon-lib.component').then(m => m.IconLibComponent), pathMatch: 'full' }, |
21 | | - { path: 'community/contributors', loadComponent: () => import('./content/contributors/contributors.component').then(m => m.ContributorsComponent), pathMatch: 'full' }, |
22 | | - |
23 | | - //Documentation Pages |
24 | | - { path: 'documentation/faq', loadComponent: () => import('./documentation/faq/faq.component').then(m => m.FaqComponent), pathMatch: 'full' }, |
25 | | - |
26 | | - //Download Page |
27 | | - { path: 'download-data', loadComponent: () => import('./download-data/download-data.component').then(m => m.DownloadDataComponent), pathMatch: 'full' }, |
28 | | - |
29 | | - //Reactome Research Spotlights |
30 | | - { path: 'content/reactome-research-spotlight', loadComponent: () => import('./article/article-page/article-page.component').then(m => m.ArticlePageComponent), pathMatch: 'full' }, |
31 | | - { path: 'content/reactome-research-spotlight/:slug', loadComponent: () => import('./article/article/article.component').then(m => m.ArticleComponent), pathMatch: 'full' }, |
32 | | - |
33 | | - //Content Pages (TOC, DOI, Schema) |
34 | | - { path: 'content/toc', loadComponent: () => import('./content/toc/toc.component').then(m => m.TocComponent), pathMatch: 'full' }, |
35 | | - { path: 'content/doi', loadComponent: () => import('./content/doi/doi.component').then(m => m.DoiComponent), pathMatch: 'full' }, |
36 | | - { path: 'content/schema', loadComponent: () => import('./content/schema/schema.component').then(m => m.SchemaComponent), pathMatch: 'full' }, |
37 | | - { path: 'content/schema/:className', loadComponent: () => import('./content/schema/schema.component').then(m => m.SchemaComponent), pathMatch: 'full' }, |
38 | | - |
39 | | - //Detail Pages |
40 | | - { path: 'content/detail/interactor/:acc', loadComponent: () => import('./content/detail/interactor-detail/interactor-detail.component').then(m => m.InteractorDetailComponent) }, |
41 | | - { path: 'content/detail/icon/:id', loadComponent: () => import('./content/detail/icon-detail/icon-detail.component').then(m => m.IconDetailComponent) }, |
42 | | - { path: 'content/detail/:id', loadComponent: () => import('./content/detail/detail.component').then(m => m.DetailComponent) }, |
43 | | - |
44 | | - //Search Pages |
45 | | - { path: 'content/query', loadComponent: () => import('./search/search.component').then(m => m.SearchComponent) }, |
46 | | - |
47 | | - //API Documentation (Swagger UI) |
48 | | - { path: 'ContentService', loadComponent: () => import('./swagger-page/swagger-page.component').then(m => m.SwaggerPageComponent), data: { serviceName: 'ContentService' } }, |
49 | | - { path: 'AnalysisService', loadComponent: () => import('./swagger-page/swagger-page.component').then(m => m.SwaggerPageComponent), data: { serviceName: 'AnalysisService' } }, |
50 | | - |
51 | | - //404 Page |
52 | | - { path: '404', loadComponent: () => import('./page-not-found/page-not-found.component').then(m => m.PageNotFoundComponent) }, //TODO: Remove? |
53 | | - /* Non - CMS Pages Above this Line */ |
54 | | - |
55 | | - //CMS Pages |
56 | | - { path: '**', loadComponent: () => import('./page/page.component').then(m => m.PageComponent) }, |
57 | | - |
| 4 | + //Home Page |
| 5 | + { |
| 6 | + path: '', |
| 7 | + loadComponent: () => |
| 8 | + import('./home-page/home-page.component').then( |
| 9 | + (m) => m.HomePageComponent |
| 10 | + ), |
| 11 | + pathMatch: 'full', |
| 12 | + }, |
| 13 | + |
| 14 | + /* Non - CMS Pages Below this Line */ |
| 15 | + //News Pages |
| 16 | + { |
| 17 | + path: 'about/news', |
| 18 | + loadComponent: () => |
| 19 | + import('./article/article-page/article-page.component').then( |
| 20 | + (m) => m.ArticlePageComponent |
| 21 | + ), |
| 22 | + pathMatch: 'full', |
| 23 | + }, |
| 24 | + { |
| 25 | + path: 'about/news/:slug', |
| 26 | + loadComponent: () => |
| 27 | + import('./article/article/article.component').then( |
| 28 | + (m) => m.ArticleComponent |
| 29 | + ), |
| 30 | + pathMatch: 'full', |
| 31 | + }, |
| 32 | + { |
| 33 | + path: 'about/logo', |
| 34 | + loadComponent: () => |
| 35 | + import('./about/logo-page/logo-page.component').then( |
| 36 | + (m) => m.LogoPageComponent |
| 37 | + ), |
| 38 | + pathMatch: 'full', |
| 39 | + }, |
| 40 | + { |
| 41 | + path: 'about/release-calendar', |
| 42 | + loadComponent: () => |
| 43 | + import('./about/release-calendar/release-calendar.component').then( |
| 44 | + (m) => m.ReleaseCalendarComponent |
| 45 | + ), |
| 46 | + pathMatch: 'full', |
| 47 | + }, |
| 48 | + { |
| 49 | + path: 'about/editorial-calendar', |
| 50 | + loadComponent: () => |
| 51 | + import('./about/editorial-calendar/editorial-calendar.component').then( |
| 52 | + (m) => m.EditorialCalendarComponent |
| 53 | + ), |
| 54 | + pathMatch: 'full', |
| 55 | + }, |
| 56 | + |
| 57 | + //Community Pages |
| 58 | + { |
| 59 | + path: 'community/partners', |
| 60 | + loadComponent: () => |
| 61 | + import('./community/partners/partners.component').then( |
| 62 | + (m) => m.PartnersComponent |
| 63 | + ), |
| 64 | + pathMatch: 'full', |
| 65 | + }, |
| 66 | + { |
| 67 | + path: 'community/resources', |
| 68 | + loadComponent: () => |
| 69 | + import('./community/resources/resources.component').then( |
| 70 | + (m) => m.ResourcesComponent |
| 71 | + ), |
| 72 | + pathMatch: 'full', |
| 73 | + }, |
| 74 | + { |
| 75 | + path: 'community/collaboration', |
| 76 | + loadComponent: () => |
| 77 | + import('./community/collaboration/collaboration.component').then( |
| 78 | + (m) => m.CollaborationComponent |
| 79 | + ), |
| 80 | + pathMatch: 'full', |
| 81 | + }, |
| 82 | + { |
| 83 | + path: 'community/icon-lib', |
| 84 | + loadComponent: () => |
| 85 | + import('./community/icon-lib/icon-lib.component').then( |
| 86 | + (m) => m.IconLibComponent |
| 87 | + ), |
| 88 | + pathMatch: 'full', |
| 89 | + }, |
| 90 | + { |
| 91 | + path: 'community/icon-lib/:id', |
| 92 | + loadComponent: () => |
| 93 | + import('./community/icon-lib/icon-lib.component').then( |
| 94 | + (m) => m.IconLibComponent |
| 95 | + ), |
| 96 | + pathMatch: 'full', |
| 97 | + }, |
| 98 | + { |
| 99 | + path: 'community/contributors', |
| 100 | + loadComponent: () => |
| 101 | + import('./content/contributors/contributors.component').then( |
| 102 | + (m) => m.ContributorsComponent |
| 103 | + ), |
| 104 | + pathMatch: 'full', |
| 105 | + }, |
| 106 | + |
| 107 | + //Documentation Pages |
| 108 | + { |
| 109 | + path: 'documentation/faq', |
| 110 | + loadComponent: () => |
| 111 | + import('./documentation/faq/faq.component').then((m) => m.FaqComponent), |
| 112 | + pathMatch: 'full', |
| 113 | + }, |
| 114 | + |
| 115 | + //Download Page |
| 116 | + { |
| 117 | + path: 'download-data', |
| 118 | + loadComponent: () => |
| 119 | + import('./download-data/download-data.component').then( |
| 120 | + (m) => m.DownloadDataComponent |
| 121 | + ), |
| 122 | + pathMatch: 'full', |
| 123 | + }, |
| 124 | + |
| 125 | + //Reactome Research Spotlights |
| 126 | + { |
| 127 | + path: 'content/reactome-research-spotlight', |
| 128 | + loadComponent: () => |
| 129 | + import('./article/article-page/article-page.component').then( |
| 130 | + (m) => m.ArticlePageComponent |
| 131 | + ), |
| 132 | + pathMatch: 'full', |
| 133 | + }, |
| 134 | + { |
| 135 | + path: 'content/reactome-research-spotlight/:slug', |
| 136 | + loadComponent: () => |
| 137 | + import('./article/article/article.component').then( |
| 138 | + (m) => m.ArticleComponent |
| 139 | + ), |
| 140 | + pathMatch: 'full', |
| 141 | + }, |
| 142 | + |
| 143 | + //Content Pages (TOC, DOI, Schema) |
| 144 | + { |
| 145 | + path: 'content/toc', |
| 146 | + loadComponent: () => |
| 147 | + import('./content/toc/toc.component').then((m) => m.TocComponent), |
| 148 | + pathMatch: 'full', |
| 149 | + }, |
| 150 | + { |
| 151 | + path: 'content/doi', |
| 152 | + loadComponent: () => |
| 153 | + import('./content/doi/doi.component').then((m) => m.DoiComponent), |
| 154 | + pathMatch: 'full', |
| 155 | + }, |
| 156 | + { |
| 157 | + path: 'content/schema', |
| 158 | + loadComponent: () => |
| 159 | + import('./content/schema/schema.component').then( |
| 160 | + (m) => m.SchemaComponent |
| 161 | + ), |
| 162 | + pathMatch: 'full', |
| 163 | + }, |
| 164 | + { |
| 165 | + path: 'content/schema/:className', |
| 166 | + loadComponent: () => |
| 167 | + import('./content/schema/schema.component').then( |
| 168 | + (m) => m.SchemaComponent |
| 169 | + ), |
| 170 | + pathMatch: 'full', |
| 171 | + }, |
| 172 | + |
| 173 | + //Detail Pages |
| 174 | + { |
| 175 | + path: 'content/detail/interactor/:acc', |
| 176 | + loadComponent: () => |
| 177 | + import( |
| 178 | + './content/detail/interactor-detail/interactor-detail.component' |
| 179 | + ).then((m) => m.InteractorDetailComponent), |
| 180 | + }, |
| 181 | + { |
| 182 | + path: 'content/detail/icon/:id', |
| 183 | + loadComponent: () => |
| 184 | + import('./content/detail/icon-detail/icon-detail.component').then( |
| 185 | + (m) => m.IconDetailComponent |
| 186 | + ), |
| 187 | + }, |
| 188 | + { |
| 189 | + path: 'content/detail/:id', |
| 190 | + loadComponent: () => |
| 191 | + import('./content/detail/detail.component').then( |
| 192 | + (m) => m.DetailComponent |
| 193 | + ), |
| 194 | + }, |
| 195 | + |
| 196 | + //Search Pages |
| 197 | + { |
| 198 | + path: 'content/query', |
| 199 | + loadComponent: () => |
| 200 | + import('./search/search.component').then((m) => m.SearchComponent), |
| 201 | + }, |
| 202 | + |
| 203 | + //API Documentation (Swagger UI) |
| 204 | + { |
| 205 | + path: 'ContentService', |
| 206 | + loadComponent: () => |
| 207 | + import('./swagger-page/swagger-page.component').then( |
| 208 | + (m) => m.SwaggerPageComponent |
| 209 | + ), |
| 210 | + data: { serviceName: 'ContentService' }, |
| 211 | + }, |
| 212 | + { |
| 213 | + path: 'AnalysisService', |
| 214 | + loadComponent: () => |
| 215 | + import('./swagger-page/swagger-page.component').then( |
| 216 | + (m) => m.SwaggerPageComponent |
| 217 | + ), |
| 218 | + data: { serviceName: 'AnalysisService' }, |
| 219 | + }, |
| 220 | + |
| 221 | + //404 Page |
| 222 | + { |
| 223 | + path: '404', |
| 224 | + loadComponent: () => |
| 225 | + import('./page-not-found/page-not-found.component').then( |
| 226 | + (m) => m.PageNotFoundComponent |
| 227 | + ), |
| 228 | + }, //TODO: Remove? |
| 229 | + /* Non - CMS Pages Above this Line */ |
| 230 | + |
| 231 | + //CMS Pages |
| 232 | + { |
| 233 | + path: '**', |
| 234 | + loadComponent: () => |
| 235 | + import('./page/page.component').then((m) => m.PageComponent), |
| 236 | + }, |
58 | 237 | ]; |
0 commit comments