Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit 4bdedfe

Browse files
committed
Merge branch 'develop' of https://github.com/GCE-NEIIST/GCE-NEIIST-webapp into develop
2 parents aadccac + 99595c7 commit 4bdedfe

File tree

104 files changed

+90
-25701
lines changed

Some content is hidden

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

104 files changed

+90
-25701
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ angular-src/scripts/set-env.env
4040
### MEAN.Anglar Stack ###
4141
## Angular ##
4242
# compiled output
43-
angular-src/src/assets
43+
#angular-src/src/assets
4444
client/assets/libs
4545
public
4646
/dist
@@ -135,3 +135,6 @@ typings/
135135
*.js___jb_tmp___
136136

137137
# End of https://www.gitignore.io/api/mean
138+
139+
package-lock.json
140+
angular-src/package-lock.json

angular-src/package-lock.json

Lines changed: 0 additions & 10414 deletions
This file was deleted.

angular-src/package.json

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,47 @@
1010
"test": "ng test",
1111
"lint": "ng lint",
1212
"e2e": "ng e2e",
13-
"postinstall": "npm run config && ng build --prod --build-optimizer=true"
13+
"postinstall": "npm run config && ngcc",
14+
"dist": "http-server dist --port 4200"
1415
},
1516
"private": true,
1617
"dependencies": {
17-
"@agm/core": "^1.0.0-beta.3",
18-
"@angular-devkit/build-angular": "^0.13.5",
19-
"@angular/animations": "6.1.7",
20-
"@angular/cli": "^6.2.1",
21-
"@angular/common": "6.1.7",
22-
"@angular/compiler": "6.1.7",
23-
"@angular/compiler-cli": "^7.2.8",
24-
"@angular/core": "6.1.7",
25-
"@angular/forms": "6.1.7",
26-
"@angular/http": "6.1.7",
27-
"@angular/language-service": "6.1.7",
28-
"@angular/material": "^6.4.7",
29-
"@angular/platform-browser": "6.1.7",
30-
"@angular/platform-browser-dynamic": "6.1.7",
31-
"@angular/router": "6.1.7",
32-
"@auth0/angular-jwt": "^2.0.0",
18+
"@angular-devkit/build-angular": "^0.1002.0",
19+
"@angular/cli": "^10.2.0",
20+
"@angular/common": "^10.2.1",
21+
"@angular/compiler": "^10.2.1",
22+
"@angular/compiler-cli": "^10.2.1",
23+
"@angular/core": "^10.2.1",
24+
"@angular/forms": "^10.2.1",
25+
"@angular/http": "^7.2.16",
26+
"@angular/platform-browser": "^10.2.1",
27+
"@angular/platform-browser-dynamic": "^10.2.1",
28+
"@angular/router": "^10.2.1",
29+
"@auth0/angular-jwt": "^5.0.1",
3330
"@ng-bootstrap/ng-bootstrap": "^4.1.0",
31+
"@ngtools/webpack": "^10.2.0",
3432
"@types/node": "^6.0.117",
3533
"adm-zip": "^0.4.11",
36-
"angular2-flash-messages": "^1.0.8",
3734
"bootstrap": "^4.3.1",
3835
"chart.js": "^2.7.1",
3936
"core-js": "^2.4.1",
4037
"dotenv": "^6.0.0",
4138
"font-awesome": "^4.7.0",
4239
"hoek": "^5.0.4",
4340
"jquery": "^3.4.1",
44-
"ng2-charts": "^1.6.0",
4541
"parsejson": "0.0.3",
46-
"rxjs": "^6.3.2",
42+
"rxjs": "^6.6.3",
4743
"rxjs-compat": "^6.3.2",
4844
"ts-node": "^3.2.2",
49-
"typescript": "3.1.1",
45+
"typescript": "^4.0.5",
5046
"url-parse": "^1.4.3",
5147
"zone.js": "^0.8.26"
5248
},
5349
"devDependencies": {
5450
"@types/jasmine": "~2.5.53",
5551
"@types/jasminewd2": "~2.0.2",
5652
"codelyzer": "~3.1.1",
53+
"http-server": "^0.12.3",
5754
"jasmine-core": "~2.6.2",
5855
"jasmine-spec-reporter": "~4.1.0",
5956
"karma": "^4.0.1",

angular-src/src/app/app.component.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33

44
<app-navbar [navbarVisible]="navbarVisible"></app-navbar>
5-
<!--<app-feedback></app-feedback>-->
6-
<flash-messages></flash-messages>
75
<router-outlet (activate)="onActivate($event)"></router-outlet>
86
<app-footer *ngIf="controlVariable"></app-footer>
97

angular-src/src/app/app.module.ts

Lines changed: 16 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33
import { JwtModule, JWT_OPTIONS } from '@auth0/angular-jwt';
44
import { AppComponent } from './app.component';
5-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
65
import { BaseRequestOptions, HttpModule } from '@angular/http';
76
import { NavbarComponent } from './general/navbar/navbar.component';
87
import { LoginComponent } from './general/login/login.component';
@@ -13,58 +12,36 @@ import { AuthService } from './services/auth.service';
1312
import { StudentService } from './services/student.service';
1413
import { ThesisService } from './services/thesis.service';
1514
import { ArticlesService } from './services/articles.service';
16-
import { FlashMessagesModule } from 'angular2-flash-messages';
17-
import { DashboardStudentComponent } from './user-student/student-dashboard/student-dashboard.component';
1815
import { AuthGuardService } from './services/auth-guard.service';
1916
import { FeedbackService } from './services/feedback.service';
2017
import { FooterComponent } from './general/footer/footer.component';
2118
import { StudentProfileComponent } from './user-student/student-profile/student-profile.component';
22-
import { InfoComponent } from './general/info/info.component';
2319
import { LoginStudentComponent } from './general/login/login-student/login-student.component';
2420
import {MockBackend} from '@angular/http/testing';
25-
import { FeedbackComponent } from './general/feedback/feedback.component';
26-
import { AgmCoreModule } from '@agm/core';
2721
import { ComingSoonComponent } from './general/coming-soon/coming-soon.component';
2822
import { 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';
3223
import { Vars } from '../../.env';
33-
import { GceHashCodeProgramComponent } from './general/gce-hash-code-program/gce-hash-code-program.component';
34-
import { ChartsModule } from 'ng2-charts';
3524
import { 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';
4027
import { GceArticlesComponent } from './general/gce-articles/gce-articles.component';
41-
import { GetAdviceComponent } from './general/get-advice/get-advice.component';
4228
import { 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

4631
const 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

Comments
 (0)