@@ -2,7 +2,6 @@ import { BrowserModule } from '@angular/platform-browser';
22import { NgModule } from '@angular/core' ;
33import { JwtModule , JWT_OPTIONS } from '@auth0/angular-jwt' ;
44import { AppComponent } from './app.component' ;
5- import { FormsModule , ReactiveFormsModule } from '@angular/forms' ;
65import { BaseRequestOptions , HttpModule } from '@angular/http' ;
76import { NavbarComponent } from './general/navbar/navbar.component' ;
87import { LoginComponent } from './general/login/login.component' ;
@@ -13,58 +12,36 @@ import { AuthService } from './services/auth.service';
1312import { StudentService } from './services/student.service' ;
1413import { ThesisService } from './services/thesis.service' ;
1514import { ArticlesService } from './services/articles.service' ;
16- import { FlashMessagesModule } from 'angular2-flash-messages' ;
17- import { DashboardStudentComponent } from './user-student/student-dashboard/student-dashboard.component' ;
1815import { AuthGuardService } from './services/auth-guard.service' ;
1916import { FeedbackService } from './services/feedback.service' ;
2017import { FooterComponent } from './general/footer/footer.component' ;
2118import { StudentProfileComponent } from './user-student/student-profile/student-profile.component' ;
22- import { InfoComponent } from './general/info/info.component' ;
2319import { LoginStudentComponent } from './general/login/login-student/login-student.component' ;
2420import { MockBackend } from '@angular/http/testing' ;
25- import { FeedbackComponent } from './general/feedback/feedback.component' ;
26- import { AgmCoreModule } from '@agm/core' ;
2721import { ComingSoonComponent } from './general/coming-soon/coming-soon.component' ;
2822import { PrivacyPolicyComponent } from './general/privacy-policy/privacy-policy.component' ;
29- import { TermsUsageComponent } from './general/terms-usage/terms-usage.component' ;
30- import { GceHashCodeComponent } from './general/gce-hash-code/gce-hash-code.component' ;
31- import { GceHashCodeNextComponent } from './general/gce-hash-code-next/gce-hash-code-next.component' ;
3223import { Vars } from '../../.env' ;
33- import { GceHashCodeProgramComponent } from './general/gce-hash-code-program/gce-hash-code-program.component' ;
34- import { ChartsModule } from 'ng2-charts' ;
3524import { GceThesisComponent } from './general/gce-thesis/gce-thesis.component' ;
36- import { PartnersCarouselComponent } from './general/partners-carousel/partners-carousel.component' ;
37- import { FilterResultsPipe } from './general/gce-thesis/filter-results.pipe' ;
38- import { NgbModule } from '@ng-bootstrap/ng-bootstrap' ;
39- import { AboutUsComponent } from './general/about-us/about-us.component' ;
25+ import { FilterResultsPipe } from './general/gce-thesis/filter-results.pipe' ;
26+ import { NgbModule } from '@ng-bootstrap/ng-bootstrap' ;
4027import { GceArticlesComponent } from './general/gce-articles/gce-articles.component' ;
41- import { GetAdviceComponent } from './general/get-advice/get-advice.component' ;
4228import { AreasDump } from './general/gce-thesis/areas-dump' ;
43- import { ChatModule } from './general/chat/chat.module' ;
44- import { PinnedArticleComponent } from './general/gce-articles-pinned/gce-articles-pinned.component'
29+ import { PinnedArticleComponent } from './general/gce-articles-pinned/gce-articles-pinned.component'
4530
4631const appRoutes : Routes = [
47- { path : '' , component : HomeComponent } ,
48- { path : 'login' , children : [
49- { path : '' , component : LoginComponent } ,
50- { path : 'student' , component : LoginStudentComponent }
51- ] } ,
52- { path : 'dashboardStudent' , component : DashboardStudentComponent , canActivate :[ AuthGuardService ] } ,
53- { path : 'profileStudent' , component : StudentProfileComponent , canActivate :[ AuthGuardService ] } ,
54- { path : 'wip' , component : ComingSoonComponent } ,
55- { path : 'terms-of-use' , component : TermsUsageComponent } ,
56- { path : 'articles' , component : GceArticlesComponent } ,
57- { path : 'chatbot' , component : GetAdviceComponent , canActivate : [ AuthGuardService ] } ,
32+ { path : '' , component : HomeComponent } ,
33+ {
34+ path : 'login' , children : [
35+ { path : '' , component : LoginComponent } ,
36+ { path : 'student' , component : LoginStudentComponent }
37+ ]
38+ } ,
39+ { path : 'profileStudent' , component : StudentProfileComponent , canActivate : [ AuthGuardService ] } ,
40+ { path : 'wip' , component : ComingSoonComponent } ,
41+ { path : 'articles' , component : GceArticlesComponent } ,
5842
59- { path : 'privacy-policy' , component : PrivacyPolicyComponent } ,
60- { path : 'aboutUs' , component : AboutUsComponent } ,
61- { path : 'partners' , component : PartnersCarouselComponent } ,
62- /**{path: 'hashcode', children: [
63- * {path: '', component: GceHashCodeComponent,canActivate:[AuthGuardService]},
64- * {path: 'faq', component: PrivacyPolicyComponent}
65- ]},
66- {path: 'next-steps', component: GceHashCodeNextComponent,canActivate:[AuthGuardService]},*/
67- { path : 'thesis' , component : GceThesisComponent , canActivate :[ AuthGuardService ] }
43+ { path : 'privacy-policy' , component : PrivacyPolicyComponent } ,
44+ { path : 'thesis' , component : GceThesisComponent , canActivate : [ AuthGuardService ] }
6845
6946] ;
7047
@@ -74,48 +51,27 @@ const appRoutes: Routes = [
7451 NavbarComponent ,
7552 LoginComponent ,
7653 HomeComponent ,
77- DashboardStudentComponent ,
7854 FooterComponent ,
7955 StudentProfileComponent ,
80- InfoComponent ,
8156 LoginStudentComponent ,
82- FeedbackComponent ,
8357 ComingSoonComponent ,
8458 PrivacyPolicyComponent ,
85- TermsUsageComponent ,
86- GceHashCodeComponent ,
87- GceHashCodeNextComponent ,
88- GceHashCodeProgramComponent ,
8959 GceThesisComponent ,
9060 FilterResultsPipe ,
91- PartnersCarouselComponent ,
92- AboutUsComponent ,
9361 GceArticlesComponent ,
94- GetAdviceComponent ,
95- PartnersCarouselComponent ,
9662 PinnedArticleComponent
9763
9864 ] ,
9965 imports : [
10066 BrowserModule ,
101- ChatModule ,
102- FormsModule ,
10367 HttpModule ,
10468 NgbModule ,
105- ReactiveFormsModule ,
106- ChartsModule ,
10769 JwtModule . forRoot ( {
10870 config : {
109- whitelistedDomains : [ 'localhost:3001' , 'localhost:8080' , 'gce-neiist.org' ,
110- 'gce-neiist-development.herokuapp.com' , 'gce-neiist-staging.herokuapp.com/' ,
111- 'fenix.tecnico.ulisboa.pt/oauth, maps.googleapis.com' ]
71+ allowedDomains : [ 'localhost:8080' , 'fenix.tecnico.ulisboa.pt/oauth' ]
11272 }
11373 } ) ,
11474 RouterModule . forRoot ( appRoutes ) ,
115- AgmCoreModule . forRoot ( {
116- apiKey : Vars . GOOGLE_MAPS ,
117- } ) ,
118- FlashMessagesModule ,
11975 ] ,
12076 providers : [
12177 ValidateService ,
0 commit comments