@@ -2,8 +2,6 @@ import { provideStates } from '@ngxs/store';
22
33import { Routes } from '@angular/router' ;
44
5- import { RegistryOverviewState } from '@osf/features/registry/store/registry-overview' ;
6-
75import { MyProfileResourceFiltersOptionsState } from './features/my-profile/components/filters/store' ;
86import { MyProfileResourceFiltersState } from './features/my-profile/components/my-profile-resource-filters/store' ;
97import { MyProfileState } from './features/my-profile/store' ;
@@ -22,78 +20,52 @@ export const routes: Routes = [
2220 redirectTo : 'home' ,
2321 } ,
2422 {
25- path : 'sign-up' ,
26- loadComponent : ( ) =>
27- import ( './features/auth/pages/sign-up/sign-up.component' ) . then ( ( mod ) => mod . SignUpComponent ) ,
28- data : { skipBreadcrumbs : true } ,
29- } ,
30- {
31- path : 'forgot-password' ,
32- loadComponent : ( ) =>
33- import ( './features/auth/pages/forgot-password/forgot-password.component' ) . then (
34- ( mod ) => mod . ForgotPasswordComponent
35- ) ,
23+ path : 'home' ,
24+ loadComponent : ( ) => import ( './features/home/home.component' ) . then ( ( mod ) => mod . HomeComponent ) ,
3625 data : { skipBreadcrumbs : true } ,
3726 } ,
3827 {
39- path : 'reset-password ' ,
28+ path : 'home-logged-out ' ,
4029 loadComponent : ( ) =>
41- import ( '. /features/auth /pages/reset-password/reset-password .component' ) . then (
42- ( mod ) => mod . ResetPasswordComponent
30+ import ( '@osf /features/home /pages/home-logged-out/home-logged-out .component' ) . then (
31+ ( mod ) => mod . HomeLoggedOutComponent
4332 ) ,
4433 data : { skipBreadcrumbs : true } ,
4534 } ,
4635 {
47- path : 'home ' ,
36+ path : 'confirm/:userId/:token ' ,
4837 loadComponent : ( ) => import ( './features/home/home.component' ) . then ( ( mod ) => mod . HomeComponent ) ,
4938 data : { skipBreadcrumbs : true } ,
5039 } ,
5140 {
52- path : 'home-logged-out ' ,
41+ path : 'sign-up ' ,
5342 loadComponent : ( ) =>
54- import ( '@osf/features/home/pages/home-logged-out/home-logged-out.component' ) . then (
55- ( mod ) => mod . HomeLoggedOutComponent
56- ) ,
43+ import ( './features/auth/pages/sign-up/sign-up.component' ) . then ( ( mod ) => mod . SignUpComponent ) ,
5744 data : { skipBreadcrumbs : true } ,
5845 } ,
5946 {
60- path : 'support' ,
61- loadComponent : ( ) => import ( './features/support/support.component' ) . then ( ( mod ) => mod . SupportComponent ) ,
62- } ,
63- {
64- path : 'terms-of-use' ,
47+ path : 'forgot-password' ,
6548 loadComponent : ( ) =>
66- import ( './features/static/terms-of-use/terms-of-use.component' ) . then ( ( mod ) => mod . TermsOfUseComponent ) ,
49+ import ( './features/auth/pages/forgot-password/forgot-password.component' ) . then (
50+ ( mod ) => mod . ForgotPasswordComponent
51+ ) ,
52+ data : { skipBreadcrumbs : true } ,
6753 } ,
6854 {
69- path : 'privacy-policy ' ,
55+ path : 'reset-password ' ,
7056 loadComponent : ( ) =>
71- import ( './features/static/privacy-policy/privacy-policy.component' ) . then ( ( mod ) => mod . PrivacyPolicyComponent ) ,
57+ import ( './features/auth/pages/reset-password/reset-password.component' ) . then (
58+ ( mod ) => mod . ResetPasswordComponent
59+ ) ,
60+ data : { skipBreadcrumbs : true } ,
7261 } ,
7362 {
7463 path : 'collections' ,
7564 loadChildren : ( ) => import ( './features/collections/collections.routes' ) . then ( ( mod ) => mod . collectionsRoutes ) ,
7665 } ,
7766 {
7867 path : 'meetings' ,
79- loadComponent : ( ) => import ( './features/meetings/meetings.component' ) . then ( ( mod ) => mod . MeetingsComponent ) ,
80- children : [
81- {
82- path : '' ,
83- pathMatch : 'full' ,
84- loadComponent : ( ) =>
85- import ( '@osf/features/meetings/pages/meetings-landing/meetings-landing.component' ) . then (
86- ( mod ) => mod . MeetingsLandingComponent
87- ) ,
88- } ,
89- {
90- path : ':id' ,
91- loadComponent : ( ) =>
92- import ( '@osf/features/meetings/pages/meeting-details/meeting-details.component' ) . then (
93- ( mod ) => mod . MeetingDetailsComponent
94- ) ,
95- } ,
96- ] ,
68+ loadChildren : ( ) => import ( './features/meetings/meetings.routes' ) . then ( ( mod ) => mod . meetingsRoutes ) ,
9769 } ,
9870 {
9971 path : 'my-projects' ,
@@ -104,11 +76,6 @@ export const routes: Routes = [
10476 path : 'my-projects/:id' ,
10577 loadChildren : ( ) => import ( './features/project/project.routes' ) . then ( ( mod ) => mod . projectRoutes ) ,
10678 } ,
107- {
108- path : 'registries' ,
109- loadChildren : ( ) => import ( './features/registries/registries.routes' ) . then ( ( mod ) => mod . registriesRoutes ) ,
110- } ,
111-
11279 {
11380 path : 'settings' ,
11481 loadChildren : ( ) => import ( './features/settings/settings.routes' ) . then ( ( mod ) => mod . settingsRoutes ) ,
@@ -134,9 +101,22 @@ export const routes: Routes = [
134101 loadChildren : ( ) => import ( './features/institutions/institutions.routes' ) . then ( ( r ) => r . routes ) ,
135102 } ,
136103 {
137- path : 'confirm/:userId/:token' ,
138- loadComponent : ( ) => import ( './features/home/home.component' ) . then ( ( mod ) => mod . HomeComponent ) ,
139- data : { skipBreadcrumbs : true } ,
104+ path : 'registries' ,
105+ loadChildren : ( ) => import ( './features/registries/registries.routes' ) . then ( ( mod ) => mod . registriesRoutes ) ,
106+ } ,
107+ {
108+ path : 'registries/:id' ,
109+ loadChildren : ( ) => import ( './features/registry/registry.routes' ) . then ( ( mod ) => mod . registryRoutes ) ,
110+ } ,
111+ {
112+ path : 'terms-of-use' ,
113+ loadComponent : ( ) =>
114+ import ( './features/static/terms-of-use/terms-of-use.component' ) . then ( ( mod ) => mod . TermsOfUseComponent ) ,
115+ } ,
116+ {
117+ path : 'privacy-policy' ,
118+ loadComponent : ( ) =>
119+ import ( './features/static/privacy-policy/privacy-policy.component' ) . then ( ( mod ) => mod . PrivacyPolicyComponent ) ,
140120 } ,
141121 {
142122 path : 'forbidden' ,
@@ -145,20 +125,11 @@ export const routes: Routes = [
145125 data : { skipBreadcrumbs : true } ,
146126 } ,
147127 {
148- path : 'request-access/:projectId ' ,
128+ path : 'request-access/:id ' ,
149129 loadComponent : ( ) =>
150130 import ( './core/components/request-access/request-access.component' ) . then ( ( mod ) => mod . RequestAccessComponent ) ,
151131 data : { skipBreadcrumbs : true } ,
152132 } ,
153- {
154- path : 'registries' ,
155- loadChildren : ( ) => import ( './features/registries/registries.routes' ) . then ( ( mod ) => mod . registriesRoutes ) ,
156- } ,
157- {
158- path : 'registries/my-registrations/:registrationId' ,
159- loadChildren : ( ) => import ( './features/registry/registry.routes' ) . then ( ( mod ) => mod . registryRoutes ) ,
160- providers : [ provideStates ( [ RegistryOverviewState ] ) ] ,
161- } ,
162133 {
163134 path : '**' ,
164135 loadComponent : ( ) =>
0 commit comments