incomplete commit
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@43794 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
62f0c94cf2
commit
d38a3f298e
|
@ -10,50 +10,16 @@ import { Routes, RouterModule } from "@angular/router";
|
||||||
import {ClaimModule} from './app/claimPages/claim.module';
|
import {ClaimModule} from './app/claimPages/claim.module';
|
||||||
import {SearchModule} from './app/searchPages/search.module';
|
import {SearchModule} from './app/searchPages/search.module';
|
||||||
import {DepoditModule} from './app/deposit/deposit.module';
|
import {DepoditModule} from './app/deposit/deposit.module';
|
||||||
|
import {LandingModule} from './app/landingPages/landing.module';
|
||||||
|
|
||||||
//Entities
|
import {ServicesModule} from './app/services/services.module';
|
||||||
import {DatasetInfo} from './app/entities/datasetInfo';
|
|
||||||
import {OrganizationInfo} from './app/entities/organizationInfo';
|
|
||||||
import {PersonInfo} from './app/entities/personInfo';
|
|
||||||
import {ProjectInfo} from './app/entities/projectInfo';
|
|
||||||
import {Publication} from './app/entities/publication';
|
|
||||||
import {PublicationInfo} from './app/entities/publicationInfo';
|
|
||||||
import {SearchResult} from './app/entities/searchResult';
|
|
||||||
import {OpenaireProperties} from './app/openaireProperties';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Services
|
|
||||||
import { ContextsService} from './app/services/contexts.service';
|
|
||||||
import { DatasetService} from './app/services/dataset.service';
|
|
||||||
import { OpenaireProjectsService } from './app/services/openaireProjects.service';
|
|
||||||
import { OrganizationService} from './app/services/organization.service';
|
|
||||||
import { PersonService} from './app/services/person.service';
|
|
||||||
import { ProjectService} from './app/services/project.service';
|
|
||||||
import { PublicationService} from './app/services/publication.service';
|
|
||||||
import { SearchCrossrefService } from './app/services/searchCrossref.service';
|
|
||||||
import { SearchDataciteService } from './app/services/searchDatacite.service';
|
|
||||||
import { SearchOrcidService } from './app/services/searchOrcid.service';
|
|
||||||
import {SearchPublicationsService} from './app/services/searchPublications.service';
|
|
||||||
//Main Router Components
|
//Main Router Components
|
||||||
|
|
||||||
import {HomeComponent} from './app/home/home.component';
|
import {HomeComponent} from './app/home/home.component';
|
||||||
|
|
||||||
import { PersonComponent } from './app/landingPages/person/person.component';
|
import {ErrorPageComponent} from './app/error/errorPage.component';
|
||||||
import { ProjectComponent } from './app/landingPages/project/project.component';
|
|
||||||
import { OrganizationComponent } from './app/landingPages/organization/organization.component';
|
|
||||||
import { DatasetComponent } from './app/landingPages/dataset/dataset.component';
|
|
||||||
|
|
||||||
import { PublicationComponent } from './app/landingPages/publication/publication.component';
|
|
||||||
//Other Components
|
|
||||||
|
|
||||||
import {ExportCSVComponent} from './app/exportCSV.component.ts';
|
|
||||||
import {TabPagingComponent} from './app/landingPages/tabPaging.component.ts';
|
|
||||||
import {TabTableComponent} from './app/landingPages/tabTable.component.ts';
|
|
||||||
import {ShowTitleComponent} from './app/landingPages/showTitle.component.ts';
|
|
||||||
import {ShowAuthorsComponent} from './app/landingPages/showAuthors.component.ts';
|
|
||||||
import {ShowIdentifiersComponent} from './app/landingPages/showIdentifiers.component.ts';
|
|
||||||
import {ShowSubjectsComponent} from './app/landingPages/showSubjects.component.ts';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
bootstrap: [ App ],
|
bootstrap: [ App ],
|
||||||
|
@ -63,20 +29,17 @@ import {ShowSubjectsComponent} from './app/landingPages/showSubjects.component.t
|
||||||
ClaimModule,
|
ClaimModule,
|
||||||
SearchModule,
|
SearchModule,
|
||||||
DepoditModule,
|
DepoditModule,
|
||||||
|
LandingModule,
|
||||||
|
ServicesModule,
|
||||||
routing
|
routing
|
||||||
],
|
],
|
||||||
declarations: [ App,
|
declarations: [ App,
|
||||||
HomeComponent, PersonComponent, ProjectComponent,
|
HomeComponent,
|
||||||
PublicationComponent,
|
ErrorPageComponent
|
||||||
ExportCSVComponent, OrganizationComponent, DatasetComponent,
|
|
||||||
TabPagingComponent, TabTableComponent, ShowTitleComponent, ShowAuthorsComponent, ShowIdentifiersComponent, ShowSubjectsComponent,
|
|
||||||
|
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
ContextsService, DatasetService, OpenaireProjectsService,OrganizationService,
|
|
||||||
PersonService, ProjectService, PublicationService, SearchCrossrefService,
|
|
||||||
SearchCrossrefService, SearchDataciteService, SearchOrcidService,
|
|
||||||
SearchPublicationsService
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class MainModule {
|
export class MainModule {
|
||||||
|
|
|
@ -1,20 +1,46 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { RouterModule } from '@angular/router';
|
|
||||||
import { UniversalModule } from 'angular2-universal';
|
import { UniversalModule } from 'angular2-universal';
|
||||||
import { HomeComponent } from './app/home/home.component';
|
|
||||||
import { App } from './app/app';
|
import { App } from './app/app';
|
||||||
|
//for routing:
|
||||||
|
import { routing } from './app/app.routing';
|
||||||
|
import { Routes, RouterModule } from "@angular/router";
|
||||||
|
|
||||||
|
// custom modules::
|
||||||
|
import {ClaimModule} from './app/claimPages/claim.module';
|
||||||
|
import {SearchModule} from './app/searchPages/search.module';
|
||||||
|
import {DepoditModule} from './app/deposit/deposit.module';
|
||||||
|
import {LandingModule} from './app/landingPages/landing.module';
|
||||||
|
|
||||||
|
import {ServicesModule} from './app/services/services.module';
|
||||||
|
|
||||||
|
|
||||||
|
//Main Router Components
|
||||||
|
|
||||||
|
import {HomeComponent} from './app/home/home.component';
|
||||||
|
|
||||||
|
import {ErrorPageComponent} from './app/error/errorPage.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
bootstrap: [ App ],
|
bootstrap: [ App ],
|
||||||
declarations: [ App, HomeComponent ],
|
|
||||||
imports: [
|
imports: [
|
||||||
UniversalModule, // NodeModule, NodeHttpModule, and NodeJsonpModule are included
|
UniversalModule, // BrowserModule, HttpModule, and JsonpModule are included
|
||||||
FormsModule,
|
FormsModule,
|
||||||
RouterModule.forRoot([
|
ClaimModule,
|
||||||
{ path: '', component: HomeComponent, pathMatch: 'full' }
|
SearchModule,
|
||||||
])
|
DepoditModule,
|
||||||
]
|
LandingModule,
|
||||||
|
ServicesModule,
|
||||||
|
routing
|
||||||
|
],
|
||||||
|
declarations: [ App,
|
||||||
|
HomeComponent,
|
||||||
|
ErrorPageComponent
|
||||||
|
|
||||||
|
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
],
|
||||||
})
|
})
|
||||||
export class MainModule {
|
export class MainModule {
|
||||||
|
|
||||||
|
|
|
@ -63,20 +63,24 @@ app.get('/person', ngApp);
|
||||||
app.get('/project', ngApp);
|
app.get('/project', ngApp);
|
||||||
app.get('/organization', ngApp);
|
app.get('/organization', ngApp);
|
||||||
app.get('/dataset', ngApp);
|
app.get('/dataset', ngApp);
|
||||||
|
app.get('/dataprovider', ngApp);
|
||||||
app.get('/publication', ngApp);
|
app.get('/publication', ngApp);
|
||||||
app.get('/search', ngApp);
|
app.get('/search', ngApp);
|
||||||
app.get('/search-publications', ngApp);
|
app.get('/search-publications', ngApp);
|
||||||
app.get('/advanced-search-publications', ngApp);
|
app.get('/advanced-search-publications', ngApp);
|
||||||
app.get('/deposit', ngApp);
|
app.get('/deposit', ngApp);
|
||||||
|
app.get('/deposit-result', ngApp);
|
||||||
|
app.get('/error', ngApp);
|
||||||
|
app.get('*', ngApp);
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
app.get('*', function(req, res) {
|
// app.get('*', function(req, res) {
|
||||||
res.setHeader('Content-Type', 'application/json');
|
// res.setHeader('Content-Type', 'application/json');
|
||||||
var pojo = { status: 404, message: 'No Content' };
|
// var pojo = { status: 404, message: 'No Content' };
|
||||||
var json = JSON.stringify(pojo, null, 2);
|
// var json = JSON.stringify(pojo, null, 2);
|
||||||
res.status(404).send(json);
|
// res.status(404).send(json);
|
||||||
});
|
// });
|
||||||
|
|
||||||
// Server
|
// Server
|
||||||
let server = app.listen(process.env.PORT || 3000, () => {
|
let server = app.listen(process.env.PORT || 3000, () => {
|
||||||
|
|
Loading…
Reference in New Issue