Revision 61382
Added by Konstantinos Triantafyllou almost 3 years ago
modules/uoa-aggregator-portal/trunk/webpack.server.config.js | ||
---|---|---|
1 |
// Work around for https://github.com/angular/angular-cli/issues/7200 |
|
2 |
|
|
3 |
const path = require('path'); |
|
4 |
const webpack = require('webpack'); |
|
5 |
|
|
6 |
module.exports = { |
|
7 |
//mode: 'none', |
|
8 |
entry: { |
|
9 |
// This is our Express server for Dynamic universal |
|
10 |
server: './server.ts', |
|
11 |
// This is an example of Static prerendering (generative) |
|
12 |
prerender: './prerender.ts' |
|
13 |
}, |
|
14 |
target: 'node', |
|
15 |
resolve: { extensions: ['.ts', '.js'] }, |
|
16 |
// Make sure we include all node_modules etc |
|
17 |
externals: [/(node_modules|main\..*\.js)/,], |
|
18 |
optimization: { |
|
19 |
minimize: false |
|
20 |
}, |
|
21 |
output: { |
|
22 |
// Puts the output at the root of the dist folder |
|
23 |
path: path.join(__dirname, 'dist'), |
|
24 |
filename: '[name].js' |
|
25 |
}, |
|
26 |
module: { |
|
27 |
rules: [ |
|
28 |
{ test: /\.ts$/, loader: 'ts-loader' } |
|
29 |
,{ |
|
30 |
// Mark files inside `@angular/core` as using SystemJS style dynamic imports. |
|
31 |
// Removing this will cause deprecation warnings to appear. |
|
32 |
test: /(\\|\/)@angular(\\|\/)core(\\|\/).+\.js$/, |
|
33 |
parser: { system: true }, |
|
34 |
}, |
|
35 |
] |
|
36 |
}, |
|
37 |
plugins: [ |
|
38 |
new webpack.ContextReplacementPlugin( |
|
39 |
// fixes WARNING Critical dependency: the request of a dependency is an expression |
|
40 |
/(.+)?angular(\\|\/)core(.+)?/, |
|
41 |
path.join(__dirname, 'src'), // location of your src |
|
42 |
{} // a map of your routes |
|
43 |
), |
|
44 |
new webpack.ContextReplacementPlugin( |
|
45 |
// fixes WARNING Critical dependency: the request of a dependency is an expression |
|
46 |
/(.+)?express(\\|\/)(.+)?/, |
|
47 |
path.join(__dirname, 'src'), |
|
48 |
{} |
|
49 |
) |
|
50 |
] |
|
51 |
} |
|
52 |
|
modules/uoa-aggregator-portal/trunk/static.paths.ts | ||
---|---|---|
1 |
export const ROUTES = [ |
|
2 |
'/', |
|
3 |
'/lazy', |
|
4 |
'/home', |
|
5 |
'/search/publication','/search/project','/search/dataset','/search/dataprovider','/search/organization', |
|
6 |
'/search/find', |
|
7 |
'/search/person','/search/publication','/search/project','/search/dataset','/search/dataprovider','/search/organization', |
|
8 |
'/search/find/people','/search/find/publications','/search/find/projects','/search/find/datasets','/search/find/dataproviders','/search/find/organizations', |
|
9 |
'/search/advanced/people','/search/advanced/publications','/search/advanced/projects','/search/advanced/datasets','/search/advanced/dataproviders','/search/advanced/organizations', |
|
10 |
'/participate/deposit-publications','/participate/deposit-datasets','/participate/deposit-publications-result','/participate/deposit-datasets-result','/participate/deposit-subject-result', |
|
11 |
'/search/content-providers','/search/content-providers-table','/search/entity-registries','/search/entity-registries-table','/search/journals','/search/journals-table', |
|
12 |
'/project-report','/claims','/myclaims','/participate/claim','/participate/direct-claim','/claims-project-manager', |
|
13 |
'/test','/user-info', |
|
14 |
'/error', '/*path' |
|
15 |
]; |
modules/uoa-aggregator-portal/trunk/prerender.ts | ||
---|---|---|
1 |
// Load zone.js for the server. |
|
2 |
import 'zone.js/dist/zone-node'; |
|
3 |
import 'reflect-metadata'; |
|
4 |
import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'fs'; |
|
5 |
import { join } from 'path'; |
|
6 |
|
|
7 |
import { enableProdMode } from '@angular/core'; |
|
8 |
// Faster server renders w/ Prod mode (dev mode never needed) |
|
9 |
enableProdMode(); |
|
10 |
|
|
11 |
// Express Engine |
|
12 |
import { ngExpressEngine } from '@nguniversal/express-engine'; |
|
13 |
// Import module map for lazy loading |
|
14 |
import { provideModuleMap } from '@nguniversal/module-map-ngfactory-loader'; |
|
15 |
import { renderModuleFactory } from '@angular/platform-server'; |
|
16 |
import { ROUTES } from './static.paths'; |
|
17 |
|
|
18 |
// * NOTE :: leave this as require() since this file is built Dynamically from webpack |
|
19 |
const { AppServerModuleNgFactory, LAZY_MODULE_MAP } = require('./dist/server/main'); |
|
20 |
|
|
21 |
const BROWSER_FOLDER = join(process.cwd(), 'browser'); |
|
22 |
|
|
23 |
// Load the index.html file containing referances to your application bundle. |
|
24 |
const index = readFileSync(join('browser', 'index.html'), 'utf8'); |
|
25 |
|
|
26 |
let previousRender = Promise.resolve(); |
|
27 |
|
|
28 |
// Iterate each route path |
|
29 |
ROUTES.forEach(route => { |
|
30 |
const fullPath = join(BROWSER_FOLDER, route); |
|
31 |
|
|
32 |
// Make sure the directory structure is there |
|
33 |
if(!existsSync(fullPath)){ |
|
34 |
mkdirSync(fullPath); |
|
35 |
} |
|
36 |
|
|
37 |
// Writes rendered HTML to index.html, replacing the file if it already exists. |
|
38 |
previousRender = previousRender.then(_ => renderModuleFactory(AppServerModuleNgFactory, { |
|
39 |
document: index, |
|
40 |
url: route, |
|
41 |
extraProviders: [ |
|
42 |
provideModuleMap(LAZY_MODULE_MAP) |
|
43 |
] |
|
44 |
})).then(html => writeFileSync(join(fullPath, 'index.html'), html)); |
|
45 |
}); |
modules/uoa-aggregator-portal/trunk/deploy/beta-properties.json | ||
---|---|---|
1 |
{ |
|
2 |
"environment" : "beta", |
|
3 |
"enablePiwikTrack" : false, |
|
4 |
"enableHelper" : false, |
|
5 |
"useCache" : true, |
|
6 |
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/", |
|
7 |
"framesAPIURL" : "https://beta.openaire.eu/stats3/", |
|
8 |
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/", |
|
9 |
"statisticsFrameAPIURL":"https://beta.openaire.eu/stats/", |
|
10 |
"claimsAPIURL" : "https://beta.services.openaire.eu/claims/rest/claimsService/", |
|
11 |
"searchAPIURLLAst" : "https://beta.services.openaire.eu/search/v2/api/", |
|
12 |
"searchResourcesAPIURL" : "https://beta.services.openaire.eu/search/v2/api/resources", |
|
13 |
"openCitationsAPIURL" : "https://services.openaire.eu/opencitations/getCitations?id=", |
|
14 |
"csvAPIURL" : "https://beta.services.openaire.eu/search/v2/api/reports", |
|
15 |
"searchCrossrefAPIURL" : "https://api.crossref.org/works", |
|
16 |
"searchDataciteAPIURL" : "https://api.datacite.org/works", |
|
17 |
"searchOrcidURL" : "https://pub.orcid.org/v2.1/", |
|
18 |
"pmidURL" : "http://www.ncbi.nlm.nih.gov/pubmed/", |
|
19 |
"doiURL" : "https://dx.doi.org/", |
|
20 |
"cordisURL" : "http://cordis.europa.eu/projects/", |
|
21 |
"pmcURL" : "http://europepmc.org/articles/", |
|
22 |
"handleURL" : "http://hdl.handle.net/", |
|
23 |
"openDoarURL": "http://v2.sherpa.ac.uk/id/repository/", |
|
24 |
"r3DataURL": "http://service.re3data.org/repository/", |
|
25 |
"zenodo" : "https://zenodo.org/", |
|
26 |
"openAccess" : "https://www.openaire.eu/support/faq#article-id-234", |
|
27 |
"openAccessRepo" : "https://www.openaire.eu/support/faq#article-id-310", |
|
28 |
"fp7Guidlines" : "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme", |
|
29 |
"h2020Guidlines" : "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020", |
|
30 |
"ercGuidlines" : "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf", |
|
31 |
"helpdesk" : "https://www.openaire.eu/support/helpdesk", |
|
32 |
"uploadService" : "https://demo.openaire.eu/upload/", |
|
33 |
|
|
34 |
"vocabulariesAPI" :"https://beta.services.openaire.eu/provision/mvc/vocabularies/", |
|
35 |
|
|
36 |
"piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=", |
|
37 |
"piwikSiteId" : "6", |
|
38 |
"loginUrl" :"https://beta.services.openaire.eu/uoa-user-management/openid_connect_login", |
|
39 |
|
|
40 |
"logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=", |
|
41 |
|
|
42 |
"cookieDomain" :".openaire.eu", |
|
43 |
|
|
44 |
"feedbackmail" :"openaire.test@gmail.com", |
|
45 |
|
|
46 |
"helperPageUrl" :"http://scoobydoo.di.uoa.gr:16000/api/page/route", |
|
47 |
|
|
48 |
"cacheUrl" :"https://demo.openaire.eu/cache/get?url=", |
|
49 |
|
|
50 |
"datasourcesAPI": "https://beta.services.openaire.eu/openaire/ds/search/", |
|
51 |
|
|
52 |
"adminToolsAPIURL" :"https://beta.services.openaire.eu/uoa-admin-tools/", |
|
53 |
|
|
54 |
"adminToolsCommunity" :"openaire", |
|
55 |
"contextsAPI":"https://beta.services.openaire.eu/openaire/context", |
|
56 |
"communityAPI": "https://beta.services.openaire.eu/openaire/community/", |
|
57 |
|
|
58 |
"csvLimit": 2000, |
|
59 |
"pagingLimit": 20, |
|
60 |
"resultsPerPage": 10, |
|
61 |
|
|
62 |
"baseLink" : "https://beta.explore.openaire.eu", |
|
63 |
|
|
64 |
"searchLinkToPublication" : "/search/publication?articleId=", |
|
65 |
"searchLinkToProject" : "/search/project?projectId=", |
|
66 |
"searchLinkToDataProvider" : "/search/dataprovider?datasourceId=", |
|
67 |
"searchLinkToDataset" : "/search/dataset?datasetId=", |
|
68 |
"searchLinkToOrp" : "/search/other?orpId=", |
|
69 |
"searchLinkToOrganization" : "/search/organization?organizationId=", |
|
70 |
|
|
71 |
"searchLinkToPublications" : "/search/find/publications", |
|
72 |
"searchLinkToDataProviders" : "/search/find/dataproviders", |
|
73 |
"searchLinkToProjects" : "/search/find/projects", |
|
74 |
"searchLinkToDatasets" : "/search/find/datasets", |
|
75 |
"searchLinkToSoftware" : "/search/find/software", |
|
76 |
"searchLinkToOrps" : "/search/find/other", |
|
77 |
"searchLinkToOrganizations" : "/search/find/organizations", |
|
78 |
"searchLinkToCompatibleDataProviders" : "/search/content-providers", |
|
79 |
"searchLinkToCompatibleDataProvidersTable" : "/search/content-providers-table", |
|
80 |
"searchLinkToEntityRegistriesDataProviders" : "/search/entity-registries", |
|
81 |
"searchLinkToEntityRegistriesDataProvidersTable" : "/search/entity-registries-table", |
|
82 |
"searchLinkToJournals" : "/search/journals", |
|
83 |
"searchLinkToJournalsTable" : "/search/journals-table", |
|
84 |
|
|
85 |
"searchLinkToAdvancedPublications" : "/search/advanced/publications", |
|
86 |
"searchLinkToAdvancedProjects" : "/search/advanced/projects", |
|
87 |
"searchLinkToAdvancedDatasets" : "/search/advanced/datasets", |
|
88 |
"searchLinkToAdvancedSoftware" : "/search/advanced/software", |
|
89 |
"searchLinkToAdvancedOrps" : "/search/advanced/other", |
|
90 |
"searchLinkToAdvancedDataProviders" : "/search/advanced/dataproviders", |
|
91 |
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations", |
|
92 |
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows", |
|
93 |
"showLastIndexInformationLink" : false, |
|
94 |
"widgetLink" : "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=", |
|
95 |
"claimsInformationLink": "https://beta.openaire.eu/linking" |
|
96 |
} |
modules/uoa-aggregator-portal/trunk/deploy/copysitemaps | ||
---|---|---|
1 |
cp /home/argiro.kokogiannaki/sitemap/dataset/* dist/server/; |
|
2 |
cp /home/argiro.kokogiannaki/sitemap/dataset/* dist/browser/; |
|
3 |
cp /home/argiro.kokogiannaki/sitemap/publication/* dist/server/; |
|
4 |
cp /home/argiro.kokogiannaki/sitemap/publication/* dist/browser/; |
|
5 |
cp /home/argiro.kokogiannaki/sitemap/software/* dist/server/; |
|
6 |
cp /home/argiro.kokogiannaki/sitemap/software/* dist/browser/; |
|
7 |
cp /home/argiro.kokogiannaki/sitemap/other/* dist/server/; |
|
8 |
cp /home/argiro.kokogiannaki/sitemap/other/* dist/browser/; |
|
9 |
cp /home/argiro.kokogiannaki/sitemap/project/* dist/server/; |
|
10 |
cp /home/argiro.kokogiannaki/sitemap/project/* dist/browser/; |
|
11 |
cp /home/argiro.kokogiannaki/sitemap/organization/* dist/server/; |
|
12 |
cp /home/argiro.kokogiannaki/sitemap/organization/* dist/browser/; |
|
13 |
cp /home/argiro.kokogiannaki/sitemap/dataprovider//* dist/server/; |
|
14 |
cp /home/argiro.kokogiannaki/sitemap/dataprovider/* dist/browser/; |
modules/uoa-aggregator-portal/trunk/deploy/test-properties.json | ||
---|---|---|
1 |
{ |
|
2 |
"environment" : "test", |
|
3 |
"enablePiwikTrack" : true, |
|
4 |
"enableHelper" : true, |
|
5 |
"useCache" : true, |
|
6 |
"metricsAPIURL" : "https://services.openaire.eu/usagestats/", |
|
7 |
"framesAPIURL" : "https://test.openaire.eu/stats3/", |
|
8 |
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/", |
|
9 |
"statisticsFrameAPIURL":"https://test.openaire.eu/stats/", |
|
10 |
"claimsAPIURL" : "https://services.openaire.eu/claims/rest/claimsService/", |
|
11 |
"searchAPIURLLAst" : "http://services.openaire.eu:8480/shadowSearch/rest/v2/api/", |
|
12 |
"searchResourcesAPIURL" : "http://services.openaire.eu:8480/shadowSearch/rest/v2/api/resources", |
|
13 |
"csvAPIURL" : "http://services.openaire.eu:8480/shadowSearch/rest/v2/api/reports", |
|
14 |
"searchCrossrefAPIURL" : "https://api.crossref.org/works", |
|
15 |
"searchDataciteAPIURL" : "https://api.datacite.org/works", |
|
16 |
"searchOrcidURL" : "https://pub.orcid.org/v2.1/", |
|
17 |
"pmidURL" : "http://www.ncbi.nlm.nih.gov/pubmed/", |
|
18 |
"doiURL" : "https://dx.doi.org/", |
|
19 |
"cordisURL" : "http://cordis.europa.eu/projects/", |
|
20 |
"pmcURL" : "http://europepmc.org/articles/", |
|
21 |
"handleURL" : "http://hdl.handle.net/", |
|
22 |
"openDoarURL": "http://v2.sherpa.ac.uk/id/repository/", |
|
23 |
"r3DataURL": "http://service.re3data.org/repository/", |
|
24 |
"zenodo" : "https://zenodo.org/", |
|
25 |
"openAccess" : "https://www.openaire.eu/support/faq#article-id-234", |
|
26 |
"openAccessRepo" : "https://www.openaire.eu/support/faq#article-id-310", |
|
27 |
"fp7Guidlines" : "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme", |
|
28 |
"h2020Guidlines" : "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020", |
|
29 |
"ercGuidlines" : "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf", |
|
30 |
"helpdesk" : "https://www.openaire.eu/support/helpdesk", |
|
31 |
"uploadService" : "https://explore.openaire.eu/upload/", |
|
32 |
|
|
33 |
"vocabulariesAPI" :"https://services.openaire.eu/provision/mvc/vocabularies/", |
|
34 |
|
|
35 |
"piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=", |
|
36 |
"piwikSiteId" : "109", |
|
37 |
"loginUrl" :"https://services.openaire.eu/uoa-user-management/openid_connect_login", |
|
38 |
|
|
39 |
"logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=", |
|
40 |
|
|
41 |
"cookieDomain" :".openaire.eu", |
|
42 |
|
|
43 |
"feedbackmail" :"feedback@openaire.eu", |
|
44 |
|
|
45 |
"cacheUrl" :"https://explore.openaire.eu/cache/get?url=", |
|
46 |
|
|
47 |
"datasourcesAPI": "https://services.openaire.eu/openaire/ds/search/", |
|
48 |
|
|
49 |
"adminToolsAPIURL" :"https://services.openaire.eu/uoa-admin-tools/", |
|
50 |
|
|
51 |
"adminToolsCommunity" :"openaire", |
|
52 |
"contextsAPI":"https://services.openaire.eu/openaire/context", |
|
53 |
"communityAPI": "https://services.openaire.eu/openaire/community/", |
|
54 |
|
|
55 |
"csvLimit": 2000, |
|
56 |
"pagingLimit": 20, |
|
57 |
"resultsPerPage": 10, |
|
58 |
|
|
59 |
"baseLink" : "https://test.explore.openaire.eu", |
|
60 |
|
|
61 |
"searchLinkToPublication" : "/search/publication?articleId=", |
|
62 |
"searchLinkToProject" : "/search/project?projectId=", |
|
63 |
"searchLinkToDataProvider" : "/search/dataprovider?datasourceId=", |
|
64 |
"searchLinkToDataset" : "/search/dataset?datasetId=", |
|
65 |
"searchLinkToOrp" : "/search/other?orpId=", |
|
66 |
"searchLinkToOrganization" : "/search/organization?organizationId=", |
|
67 |
|
|
68 |
"searchLinkToPublications" : "/search/find/publications", |
|
69 |
"searchLinkToDataProviders" : "/search/find/dataproviders", |
|
70 |
"searchLinkToProjects" : "/search/find/projects", |
|
71 |
"searchLinkToDatasets" : "/search/find/datasets", |
|
72 |
"searchLinkToSoftware" : "/search/find/software", |
|
73 |
"searchLinkToOrps" : "/search/find/other", |
|
74 |
"searchLinkToOrganizations" : "/search/find/organizations", |
|
75 |
"searchLinkToCompatibleDataProviders" : "/search/content-providers", |
|
76 |
"searchLinkToCompatibleDataProvidersTable" : "/search/content-providers-table", |
|
77 |
"searchLinkToEntityRegistriesDataProviders" : "/search/entity-registries", |
|
78 |
"searchLinkToEntityRegistriesDataProvidersTable" : "/search/entity-registries-table", |
|
79 |
"searchLinkToJournals" : "/search/journals", |
|
80 |
"searchLinkToJournalsTable" : "/search/journals-table", |
|
81 |
|
|
82 |
"searchLinkToAdvancedPublications" : "/search/advanced/publications", |
|
83 |
"searchLinkToAdvancedProjects" : "/search/advanced/projects", |
|
84 |
"searchLinkToAdvancedDatasets" : "/search/advanced/datasets", |
|
85 |
"searchLinkToAdvancedSoftware" : "/search/advanced/software", |
|
86 |
"searchLinkToAdvancedOrps" : "/search/advanced/other", |
|
87 |
"searchLinkToAdvancedDataProviders" : "/search/advanced/dataproviders", |
|
88 |
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations", |
|
89 |
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows", |
|
90 |
"showLastIndexInformationLink" : false, |
|
91 |
"widgetLink" : "https://test.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=", |
|
92 |
"claimsInformationLink": "https://www.openaire.eu/linking" |
|
93 |
} |
modules/uoa-aggregator-portal/trunk/deploy/prepareDeploy.sh | ||
---|---|---|
1 |
#ATTENTION |
|
2 |
#DON'T run it in svn folder - it REMOVES files |
|
3 |
#Copy project in another file "deploy-folder" |
|
4 |
#cd "deploy-folder" |
|
5 |
#run the script |
|
6 |
|
|
7 |
## cp the file according to the deploy environment |
|
8 |
|
|
9 |
# cp production-properties.json ../src/assets/env-properties.json; |
|
10 |
# cp test-properties.json ../src/assets/env-properties.json; |
|
11 |
# cp beta-properties.json ../src/assets/env-properties.json; |
|
12 |
|
|
13 |
## uncommect from here--> |
|
14 |
# echo -n 'Check that you have the correct properties file'; |
|
15 |
# echo -n "Press key:"; |
|
16 |
# read -n1 ans |
|
17 |
# pico ../src/assets/env-properties.json; |
|
18 |
# echo 'For Production keep meta for bots'; |
|
19 |
# echo -n 'Check index.html: For test keep meta for noindex, for production remove noindex and keep meta for Search engines verification'; |
|
20 |
# echo -n "Press key:"; |
|
21 |
# read -n1 ans |
|
22 |
# echo -n "Pressed"; |
|
23 |
# pico ../src/index.html; |
|
24 |
# echo -n 'Check Robots.txt: For test and beta add "Diasallow /", for production remove it!'; |
|
25 |
# echo -n "Press key:"; |
|
26 |
# read -n1 ans |
|
27 |
# echo -n "Pressed"; |
|
28 |
# pico ../src/robots.txt; |
|
29 |
# rm -rf ../src/assets/common-assets/.svn/; |
|
30 |
# rm -rf ../src/app/openaireLibrary/.svn/; |
|
31 |
# cd ..; npm run build:ssr; cd deploy; |
|
32 |
# rm -rf ../src ../node_modules ../.idea/ ../installOpenaireLib.sh; |
|
33 |
# cd ..; rm -rf deploy; |
|
34 |
# echo 'Now copy to the server!' |
|
35 |
##<-- to here |
|
36 |
|
|
37 |
#Deploy instructions! |
|
38 |
#copy "deploy-folder" in beta.explore.openaire.eu, test.openaire.eu or explore.openaire.eu depending which in environment want to deploy and properties selected |
|
39 |
#copies of previous deployments exist in "/home/argiro.kokogiannaki/deployments-folder/dashboardYYYY-MM-DD" |
|
40 |
#run "npm i" |
|
41 |
#become nodejs user: "sudo su nodejs -s /bin/bash" |
|
42 |
#go to "cd /srv/www/portal" |
|
43 |
#cp files from "cp -r HOME_PATH/deployments-folder/* ." |
|
44 |
#restart portal "pm2 restart openaire" |
|
45 | 0 |
modules/uoa-aggregator-portal/trunk/deploy/production-properties.json | ||
---|---|---|
1 |
{ |
|
2 |
"environment" : "production", |
|
3 |
"enablePiwikTrack" : true, |
|
4 |
"enableHelper" : true, |
|
5 |
"useCache" : true, |
|
6 |
"metricsAPIURL" : "https://services.openaire.eu/usagestats/", |
|
7 |
"framesAPIURL" : "https://www.openaire.eu/stats3/", |
|
8 |
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/", |
|
9 |
"statisticsFrameAPIURL":"https://www.openaire.eu/stats/", |
|
10 |
"claimsAPIURL" : "https://services.openaire.eu/claims/rest/claimsService/", |
|
11 |
"searchAPIURLLAst" : "https://services.openaire.eu/search/v2/api/", |
|
12 |
"searchResourcesAPIURL" : "https://services.openaire.eu/search/v2/api/resources", |
|
13 |
"openCitationsAPIURL" : "https://services.openaire.eu/opencitations/getCitations?id=", |
|
14 |
"csvAPIURL" : "https://services.openaire.eu/search/v2/api/reports", |
|
15 |
"searchCrossrefAPIURL" : "https://api.crossref.org/works", |
|
16 |
"searchDataciteAPIURL" : "https://api.datacite.org/works", |
|
17 |
"searchOrcidURL" : "https://pub.orcid.org/v2.1/", |
|
18 |
"pmidURL" : "http://www.ncbi.nlm.nih.gov/pubmed/", |
|
19 |
"doiURL" : "https://dx.doi.org/", |
|
20 |
"cordisURL" : "http://cordis.europa.eu/projects/", |
|
21 |
"pmcURL" : "http://europepmc.org/articles/", |
|
22 |
"handleURL" : "http://hdl.handle.net/", |
|
23 |
"openDoarURL": "http://v2.sherpa.ac.uk/id/repository/", |
|
24 |
"r3DataURL": "http://service.re3data.org/repository/", |
|
25 |
"zenodo" : "https://zenodo.org/", |
|
26 |
"openAccess" : "https://www.openaire.eu/support/faq#article-id-234", |
|
27 |
"openAccessRepo" : "https://www.openaire.eu/support/faq#article-id-310", |
|
28 |
"fp7Guidlines" : "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme", |
|
29 |
"h2020Guidlines" : "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020", |
|
30 |
"ercGuidlines" : "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf", |
|
31 |
"helpdesk" : "https://www.openaire.eu/support/helpdesk", |
|
32 |
"uploadService" : "https://explore.openaire.eu/upload/", |
|
33 |
|
|
34 |
"vocabulariesAPI" :"https://services.openaire.eu/provision/mvc/vocabularies/", |
|
35 |
|
|
36 |
"piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=", |
|
37 |
"piwikSiteId" : "109", |
|
38 |
"loginUrl" :"https://services.openaire.eu/uoa-user-management/openid_connect_login", |
|
39 |
|
|
40 |
"logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=", |
|
41 |
|
|
42 |
"cookieDomain" :".openaire.eu", |
|
43 |
|
|
44 |
"feedbackmail" :"feedback@openaire.eu", |
|
45 |
|
|
46 |
"cacheUrl" :"https://explore.openaire.eu/cache/get?url=", |
|
47 |
|
|
48 |
"datasourcesAPI": "https://services.openaire.eu/openaire/ds/search/", |
|
49 |
|
|
50 |
"adminToolsAPIURL" :"https://services.openaire.eu/uoa-admin-tools/", |
|
51 |
|
|
52 |
"adminToolsCommunity" :"openaire", |
|
53 |
"contextsAPI":"https://services.openaire.eu/openaire/context", |
|
54 |
"communityAPI": "https://services.openaire.eu/openaire/community/", |
|
55 |
|
|
56 |
"csvLimit": 2000, |
|
57 |
"pagingLimit": 20, |
|
58 |
"resultsPerPage": 10, |
|
59 |
|
|
60 |
"baseLink" : "https://explore.openaire.eu", |
|
61 |
|
|
62 |
"searchLinkToPublication" : "/search/publication?articleId=", |
|
63 |
"searchLinkToProject" : "/search/project?projectId=", |
|
64 |
"searchLinkToDataProvider" : "/search/dataprovider?datasourceId=", |
|
65 |
"searchLinkToDataset" : "/search/dataset?datasetId=", |
|
66 |
"searchLinkToOrp" : "/search/other?orpId=", |
|
67 |
"searchLinkToOrganization" : "/search/organization?organizationId=", |
|
68 |
|
|
69 |
"searchLinkToPublications" : "/search/find/publications", |
|
70 |
"searchLinkToDataProviders" : "/search/find/dataproviders", |
|
71 |
"searchLinkToProjects" : "/search/find/projects", |
|
72 |
"searchLinkToDatasets" : "/search/find/datasets", |
|
73 |
"searchLinkToSoftware" : "/search/find/software", |
|
74 |
"searchLinkToOrps" : "/search/find/other", |
|
75 |
"searchLinkToOrganizations" : "/search/find/organizations", |
|
76 |
"searchLinkToCompatibleDataProviders" : "/search/content-providers", |
|
77 |
"searchLinkToCompatibleDataProvidersTable" : "/search/content-providers-table", |
|
78 |
"searchLinkToEntityRegistriesDataProviders" : "/search/entity-registries", |
|
79 |
"searchLinkToEntityRegistriesDataProvidersTable" : "/search/entity-registries-table", |
|
80 |
"searchLinkToJournals" : "/search/journals", |
|
81 |
"searchLinkToJournalsTable" : "/search/journals-table", |
|
82 |
|
|
83 |
"searchLinkToAdvancedPublications" : "/search/advanced/publications", |
|
84 |
"searchLinkToAdvancedProjects" : "/search/advanced/projects", |
|
85 |
"searchLinkToAdvancedDatasets" : "/search/advanced/datasets", |
|
86 |
"searchLinkToAdvancedSoftware" : "/search/advanced/software", |
|
87 |
"searchLinkToAdvancedOrps" : "/search/advanced/other", |
|
88 |
"searchLinkToAdvancedDataProviders" : "/search/advanced/dataproviders", |
|
89 |
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations", |
|
90 |
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows", |
|
91 |
"showLastIndexInformationLink" : true, |
|
92 |
"widgetLink" : "https://www.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=", |
|
93 |
"claimsInformationLink": "https://www.openaire.eu/linking" |
|
94 |
} |
modules/uoa-aggregator-portal/trunk/prometheus.ts | ||
---|---|---|
46 | 46 |
help: 'organization Landing Page Counter', |
47 | 47 |
registers: [this.register] |
48 | 48 |
})], |
49 |
// ["/participate/deposit-datasets", new prom.Counter({ |
|
50 |
// name: 'participate_deposit_datasets', |
|
51 |
// help: 'Participate Deposit Datasets Page Counter', |
|
52 |
// registers: [this.register] |
|
53 |
// })], |
|
54 |
// ["/participate/deposit-datasets-result", new prom.Counter({ |
|
55 |
// name: 'participate_deposit_datasets_result', |
|
56 |
// help: 'Participate Deposit Datasets Result Page Counter', |
|
57 |
// registers: [this.register] |
|
58 |
// })], |
|
59 |
// ["/participate/deposit-subject-result", new prom.Counter({ |
|
60 |
// name: 'participate_deposit_subject_result', |
|
61 |
// help: 'Participate Deposit Subject Result Page Counter', |
|
62 |
// registers: [this.register] |
|
63 |
// })], |
|
64 |
// ["/participate/deposit-publications", new prom.Counter({ |
|
65 |
// name: 'participate_deposit_publications', |
|
66 |
// help: 'Participate Deposit Publications Page Counter', |
|
67 |
// registers: [this.register] |
|
68 |
// })], |
|
69 |
// ["/participate/deposit-publications-result", new prom.Counter({ |
|
70 |
// name: 'participate_deposit_publications_result', |
|
71 |
// help: 'Participate Deposit Publications Result Page Counter', |
|
72 |
// registers: [this.register] |
|
73 |
// })], |
|
74 | 49 |
["/search/find", new prom.Counter({ |
75 | 50 |
name: 'search_find', |
76 | 51 |
help: 'Main Search Page Counter', |
... | ... | |
111 | 86 |
help: 'Organizations Search Page Counter', |
112 | 87 |
registers: [this.register] |
113 | 88 |
})], |
114 |
// ["/search/content-providers", new prom.Counter({ |
|
115 |
// name: 'search_content_providers', |
|
116 |
// help: 'Repositories Search Page Counter', |
|
117 |
// registers: [this.register] |
|
118 |
// })], |
|
119 |
// ["/search/content-providers-table", new prom.Counter({ |
|
120 |
// name: 'search_content_providers_table', |
|
121 |
// help: 'Repositories Search Page Table Counter', |
|
122 |
// registers: [this.register] |
|
123 |
// })], |
|
124 |
// ["/search/entity-registries", new prom.Counter({ |
|
125 |
// name: 'search_entity_registries', |
|
126 |
// help: 'Registries Search Page Counter', |
|
127 |
// registers: [this.register] |
|
128 |
// })], |
|
129 |
// ["/search/entity-registries-table", new prom.Counter({ |
|
130 |
// name: 'search_entity_registries_table', |
|
131 |
// help: 'Registries Search Page Table Counter', |
|
132 |
// registers: [this.register] |
|
133 |
// })], |
|
134 |
// ["/search/journals", new prom.Counter({ |
|
135 |
// name: 'search_journals', |
|
136 |
// help: 'Journals Search Page Counter', |
|
137 |
// registers: [this.register] |
|
138 |
// })], |
|
139 |
// ["/search/journals-table", new prom.Counter({ |
|
140 |
// name: 'search_journals_table', |
|
141 |
// help: 'Journals Search Page Table Counter', |
|
142 |
// registers: [this.register] |
|
143 |
// })], |
|
144 | 89 |
["/search/advanced/publications", new prom.Counter({ |
145 | 90 |
name: 'search_advanced_publications', |
146 | 91 |
help: 'Publications Advanced Search Page Counter', |
... | ... | |
175 | 120 |
name: 'search_advanced_organizations', |
176 | 121 |
help: 'Organizations Advanced Search Page Counter', |
177 | 122 |
registers: [this.register] |
178 |
})], |
|
179 |
// ["/myclaims", new prom.Counter({ |
|
180 |
// name: 'my_claims', |
|
181 |
// help: 'My Claims Page Counter', |
|
182 |
// registers: [this.register] |
|
183 |
// })], |
|
184 |
// ["/claims", new prom.Counter({ |
|
185 |
// name: 'claims', |
|
186 |
// help: 'Admin Claims Page Counter', |
|
187 |
// registers: [this.register] |
|
188 |
// })], |
|
189 |
// ["/participate/claim", new prom.Counter({ |
|
190 |
// name: 'participate_claim', |
|
191 |
// help: 'Linking Page Counter', |
|
192 |
// registers: [this.register] |
|
193 |
// })], |
|
194 |
// ["/participate/direct-claim", new prom.Counter({ |
|
195 |
// name: 'participate_direct_claim', |
|
196 |
// help: 'Direct Linking Page Counter', |
|
197 |
// registers: [this.register] |
|
198 |
// })] |
|
123 |
})] |
|
199 | 124 |
]); |
200 | 125 |
} |
modules/uoa-aggregator-portal/trunk/angular.json | ||
---|---|---|
1 | 1 |
{ |
2 |
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
|
|
2 |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3 | 3 |
"version": 1, |
4 | 4 |
"newProjectRoot": "projects", |
5 | 5 |
"projects": { |
6 |
"openaire-aggregator": {
|
|
6 |
"aggregator": { |
|
7 | 7 |
"root": "", |
8 | 8 |
"sourceRoot": "src", |
9 | 9 |
"projectType": "application", |
10 |
"prefix": "app", |
|
11 |
"schematics": { |
|
12 |
"@schematics/angular:class": { |
|
13 |
"skipTests": true |
|
14 |
}, |
|
15 |
"@schematics/angular:component": { |
|
16 |
"skipTests": true |
|
17 |
}, |
|
18 |
"@schematics/angular:directive": { |
|
19 |
"skipTests": true |
|
20 |
}, |
|
21 |
"@schematics/angular:guard": { |
|
22 |
"skipTests": true |
|
23 |
}, |
|
24 |
"@schematics/angular:module": { |
|
25 |
"skipTests": true |
|
26 |
}, |
|
27 |
"@schematics/angular:pipe": { |
|
28 |
"skipTests": true |
|
29 |
}, |
|
30 |
"@schematics/angular:service": { |
|
31 |
"skipTests": true |
|
32 |
} |
|
33 |
}, |
|
10 | 34 |
"architect": { |
11 | 35 |
"build": { |
12 | 36 |
"builder": "@angular-devkit/build-angular:browser", |
13 | 37 |
"options": { |
14 |
"outputPath": "dist/browser", |
|
38 |
"aot": true, |
|
39 |
"outputPath": "dist/aggregator/browser", |
|
15 | 40 |
"index": "src/index.html", |
16 | 41 |
"main": "src/main.ts", |
42 |
"polyfills": "src/polyfills.ts", |
|
17 | 43 |
"tsConfig": "src/tsconfig.app.json", |
18 |
"polyfills": "src/polyfills.ts", |
|
19 | 44 |
"assets": [ |
20 | 45 |
"src/assets", |
21 |
"src/robots.txt", |
|
22 |
"src/sitemap.xml", |
|
23 |
{ |
|
24 |
"glob": "**/*", |
|
25 |
"input": "src/sitemaps", |
|
26 |
"output": "/" |
|
27 |
} |
|
46 |
"src/robots.txt" |
|
28 | 47 |
], |
29 | 48 |
"styles": [ |
30 | 49 |
"src/styles.css", |
31 |
"src/material.scss", |
|
32 |
"node_modules/datatables.net-dt/css/jquery.dataTables.css" |
|
50 |
"src/material.scss" |
|
33 | 51 |
], |
34 | 52 |
"scripts": [ |
35 | 53 |
"src/assets/common-assets/common/jquery.js", |
36 | 54 |
"src/assets/common-assets/common/uikit.min.js", |
37 | 55 |
"src/assets/common-assets/common/uikit-icons.min.js", |
38 |
"node_modules/jquery/dist/jquery.js", |
|
39 |
"node_modules/datatables.net/js/jquery.dataTables.js" |
|
56 |
"node_modules/jquery/dist/jquery.js" |
|
40 | 57 |
] |
41 | 58 |
}, |
42 | 59 |
"configurations": { |
43 |
"production": {
|
|
60 |
"development": {
|
|
44 | 61 |
"optimization": true, |
45 | 62 |
"outputHashing": "all", |
46 | 63 |
"sourceMap": false, |
47 |
"extractCss": true, |
|
48 | 64 |
"namedChunks": false, |
49 | 65 |
"aot": true, |
50 | 66 |
"extractLicenses": true, |
51 | 67 |
"vendorChunk": false, |
52 | 68 |
"buildOptimizer": true, |
53 |
"fileReplacements": [
|
|
69 |
"budgets": [
|
|
54 | 70 |
{ |
55 |
"replace": "src/environments/environment.ts", |
|
56 |
"with": "src/environments/environment.prod.ts" |
|
71 |
"type": "initial", |
|
72 |
"maximumWarning": "2mb", |
|
73 |
"maximumError": "5mb" |
|
57 | 74 |
}, |
58 | 75 |
{ |
59 |
"replace": "src/index.html", |
|
60 |
"with": "src/index.prod.html" |
|
61 |
}, |
|
62 |
{ |
|
63 |
"replace": "src/robots.txt", |
|
64 |
"with": "src/robots.prod.txt" |
|
76 |
"type": "anyComponentStyle", |
|
77 |
"maximumWarning": "6kb" |
|
65 | 78 |
} |
66 | 79 |
] |
67 | 80 |
}, |
68 | 81 |
"beta": { |
82 |
"assets": [ |
|
83 |
"src/assets", |
|
84 |
{ |
|
85 |
"input": "src/beta/", |
|
86 |
"output": "/", |
|
87 |
"glob": "*.txt" |
|
88 |
} |
|
89 |
], |
|
90 |
"index": { |
|
91 |
"input": "src/beta/index.html", |
|
92 |
"output": "index.html" |
|
93 |
}, |
|
94 |
"fileReplacements": [ |
|
95 |
{ |
|
96 |
"replace": "src/environments/environment.ts", |
|
97 |
"with": "src/environments/environment.beta.ts" |
|
98 |
} |
|
99 |
], |
|
69 | 100 |
"optimization": true, |
70 | 101 |
"outputHashing": "all", |
71 | 102 |
"sourceMap": false, |
72 |
"extractCss": true, |
|
73 | 103 |
"namedChunks": false, |
74 | 104 |
"aot": true, |
75 | 105 |
"extractLicenses": true, |
76 | 106 |
"vendorChunk": false, |
77 | 107 |
"buildOptimizer": true, |
108 |
"budgets": [ |
|
109 |
{ |
|
110 |
"type": "initial", |
|
111 |
"maximumWarning": "2mb", |
|
112 |
"maximumError": "5mb" |
|
113 |
}, |
|
114 |
{ |
|
115 |
"type": "anyComponentStyle", |
|
116 |
"maximumWarning": "6kb" |
|
117 |
} |
|
118 |
] |
|
119 |
}, |
|
120 |
"production": { |
|
121 |
"assets": [ |
|
122 |
"src/assets", |
|
123 |
{ |
|
124 |
"input": "src/prod/", |
|
125 |
"output": "/", |
|
126 |
"glob": "*.txt" |
|
127 |
} |
|
128 |
], |
|
129 |
"index": { |
|
130 |
"input": "src/prod/index.html", |
|
131 |
"output": "index.html" |
|
132 |
}, |
|
78 | 133 |
"fileReplacements": [ |
79 | 134 |
{ |
80 | 135 |
"replace": "src/environments/environment.ts", |
81 |
"with": "src/environments/environment.beta.ts"
|
|
136 |
"with": "src/environments/environment.prod.ts"
|
|
82 | 137 |
} |
138 |
], |
|
139 |
"optimization": true, |
|
140 |
"outputHashing": "all", |
|
141 |
"sourceMap": false, |
|
142 |
"namedChunks": false, |
|
143 |
"aot": true, |
|
144 |
"extractLicenses": true, |
|
145 |
"vendorChunk": false, |
|
146 |
"buildOptimizer": true, |
|
147 |
"budgets": [ |
|
148 |
{ |
|
149 |
"type": "initial", |
|
150 |
"maximumWarning": "2mb", |
|
151 |
"maximumError": "5mb" |
|
152 |
}, |
|
153 |
{ |
|
154 |
"type": "anyComponentStyle", |
|
155 |
"maximumWarning": "6kb" |
|
156 |
} |
|
83 | 157 |
] |
84 | 158 |
} |
85 | 159 |
} |
... | ... | |
87 | 161 |
"serve": { |
88 | 162 |
"builder": "@angular-devkit/build-angular:dev-server", |
89 | 163 |
"options": { |
90 |
"browserTarget": "openaire-aggregator:build"
|
|
164 |
"browserTarget": "aggregator:build" |
|
91 | 165 |
}, |
92 | 166 |
"configurations": { |
93 | 167 |
"production": { |
94 |
"browserTarget": "openaire-aggregator:build:production"
|
|
168 |
"browserTarget": "aggregator:build:production" |
|
95 | 169 |
} |
96 | 170 |
} |
97 | 171 |
}, |
98 | 172 |
"extract-i18n": { |
99 | 173 |
"builder": "@angular-devkit/build-angular:extract-i18n", |
100 | 174 |
"options": { |
101 |
"browserTarget": "openaire-aggregator:build"
|
|
175 |
"browserTarget": "aggregator:build" |
|
102 | 176 |
} |
103 | 177 |
}, |
104 | 178 |
"test": { |
105 | 179 |
"builder": "@angular-devkit/build-angular:karma", |
106 | 180 |
"options": { |
107 | 181 |
"main": "src/test.ts", |
108 |
"karmaConfig": "./karma.conf.js", |
|
109 | 182 |
"polyfills": "src/polyfills.ts", |
110 | 183 |
"tsConfig": "src/tsconfig.spec.json", |
111 |
"scripts": [ |
|
112 |
"src/assets/common-assets/common/jquery.js", |
|
113 |
"src/assets/common-assets/common/uikit.min.js", |
|
114 |
"src/assets/common-assets/common/uikit-icons.min.js", |
|
115 |
"node_modules/jquery/dist/jquery.js", |
|
116 |
"node_modules/datatables.net/js/jquery.dataTables.js" |
|
117 |
], |
|
184 |
"karmaConfig": "src/karma.conf.js", |
|
118 | 185 |
"styles": [ |
119 |
"src/styles.css", |
|
120 |
"node_modules/datatables.net-dt/css/jquery.dataTables.css" |
|
186 |
"src/styles.css" |
|
121 | 187 |
], |
188 |
"scripts": [], |
|
122 | 189 |
"assets": [ |
123 |
"src/assets", |
|
124 |
"src/robots.txt", |
|
125 |
"src/sitemap.xml", |
|
126 |
{ |
|
127 |
"glob": "**/*", |
|
128 |
"input": "src/sitemaps", |
|
129 |
"output": "/" |
|
130 |
} |
|
190 |
"src/assets" |
|
131 | 191 |
] |
132 | 192 |
} |
133 | 193 |
}, |
... | ... | |
146 | 206 |
"server": { |
147 | 207 |
"builder": "@angular-devkit/build-angular:server", |
148 | 208 |
"options": { |
149 |
"outputPath": "dist/server", |
|
150 |
"main": "src/main.server.ts",
|
|
209 |
"outputPath": "dist/aggregator/server",
|
|
210 |
"main": "server.ts", |
|
151 | 211 |
"tsConfig": "src/tsconfig.server.json" |
152 | 212 |
}, |
153 | 213 |
"configurations": { |
154 |
"production": { |
|
214 |
"development": { |
|
215 |
"outputHashing": "media", |
|
216 |
"sourceMap": false, |
|
217 |
"optimization": true |
|
218 |
}, |
|
219 |
"beta": { |
|
220 |
"outputHashing": "media", |
|
155 | 221 |
"fileReplacements": [ |
156 | 222 |
{ |
157 | 223 |
"replace": "src/environments/environment.ts", |
158 |
"with": "src/environments/environment.prod.ts" |
|
159 |
}, |
|
160 |
{ |
|
161 |
"replace": "src/index.html", |
|
162 |
"with": "src/index.prod.html" |
|
163 |
}, |
|
164 |
{ |
|
165 |
"replace": "src/robots.txt", |
|
166 |
"with": "src/robots.prod.txt" |
|
224 |
"with": "src/environments/environment.beta.ts" |
|
167 | 225 |
} |
168 |
] |
|
226 |
], |
|
227 |
"sourceMap": false, |
|
228 |
"optimization": true |
|
169 | 229 |
}, |
170 |
"beta": { |
|
230 |
"production": { |
|
231 |
"outputHashing": "media", |
|
171 | 232 |
"fileReplacements": [ |
172 | 233 |
{ |
173 | 234 |
"replace": "src/environments/environment.ts", |
174 |
"with": "src/environments/environment.beta.ts"
|
|
235 |
"with": "src/environments/environment.prod.ts"
|
|
175 | 236 |
} |
176 |
] |
|
237 |
], |
|
238 |
"sourceMap": false, |
|
239 |
"optimization": true |
|
177 | 240 |
} |
178 | 241 |
} |
242 |
}, |
|
243 |
"serve-ssr": { |
|
244 |
"builder": "@nguniversal/builders:ssr-dev-server", |
|
245 |
"options": { |
|
246 |
"browserTarget": "aggregator:build", |
|
247 |
"serverTarget": "aggregator:server" |
|
248 |
}, |
|
249 |
"configurations": { |
|
250 |
"production": { |
|
251 |
"browserTarget": "aggregator:build:production", |
|
252 |
"serverTarget": "aggregator:server:production" |
|
253 |
} |
|
254 |
} |
|
255 |
}, |
|
256 |
"prerender": { |
|
257 |
"builder": "@nguniversal/builders:prerender", |
|
258 |
"options": { |
|
259 |
"browserTarget": "aggregator:build:production", |
|
260 |
"serverTarget": "aggregator:server:production", |
|
261 |
"routes": [ |
|
262 |
"/" |
|
263 |
] |
|
264 |
}, |
|
265 |
"configurations": { |
|
266 |
"production": {} |
|
267 |
} |
|
179 | 268 |
} |
180 | 269 |
} |
181 | 270 |
}, |
182 |
"openaire-aggregator-e2e": { |
|
183 |
"root": "e2e", |
|
184 |
"sourceRoot": "e2e", |
|
271 |
"aggregator-e2e": { |
|
272 |
"root": "e2e/", |
|
185 | 273 |
"projectType": "application", |
274 |
"prefix": "", |
|
186 | 275 |
"architect": { |
187 | 276 |
"e2e": { |
188 | 277 |
"builder": "@angular-devkit/build-angular:protractor", |
189 | 278 |
"options": { |
190 |
"protractorConfig": "./protractor.conf.js", |
|
191 |
"devServerTarget": "openaire-aggregator:serve" |
|
279 |
"protractorConfig": "e2e/protractor.conf.js", |
|
280 |
"devServerTarget": "aggregator:serve" |
|
281 |
}, |
|
282 |
"configurations": { |
|
283 |
"production": { |
|
284 |
"devServerTarget": "aggregator:serve:production" |
|
285 |
} |
|
192 | 286 |
} |
193 | 287 |
}, |
194 | 288 |
"lint": { |
195 | 289 |
"builder": "@angular-devkit/build-angular:tslint", |
196 | 290 |
"options": { |
197 |
"tsConfig": [ |
|
198 |
"e2e/tsconfig.e2e.json" |
|
199 |
], |
|
291 |
"tsConfig": "e2e/tsconfig.e2e.json", |
|
200 | 292 |
"exclude": [ |
201 | 293 |
"**/node_modules/**" |
202 | 294 |
] |
... | ... | |
205 | 297 |
} |
206 | 298 |
} |
207 | 299 |
}, |
208 |
"defaultProject": "openaire-aggregator", |
|
209 |
"schematics": { |
|
210 |
"@schematics/angular:class": { |
|
211 |
"spec": false |
|
212 |
}, |
|
213 |
"@schematics/angular:component": { |
|
214 |
"spec": false, |
|
215 |
"inlineStyle": true, |
|
216 |
"inlineTemplate": true, |
|
217 |
"prefix": "app", |
|
218 |
"styleext": "css" |
|
219 |
}, |
|
220 |
"@schematics/angular:directive": { |
|
221 |
"spec": false, |
|
222 |
"prefix": "app" |
|
223 |
}, |
|
224 |
"@schematics/angular:guard": { |
|
225 |
"spec": false |
|
226 |
}, |
|
227 |
"@schematics/angular:module": { |
|
228 |
"spec": false |
|
229 |
}, |
|
230 |
"@schematics/angular:pipe": { |
|
231 |
"spec": false |
|
232 |
}, |
|
233 |
"@schematics/angular:service": { |
|
234 |
"spec": false |
|
235 |
} |
|
236 |
} |
|
300 |
"defaultProject": "aggregator" |
|
237 | 301 |
} |
modules/uoa-aggregator-portal/trunk/package.json | ||
---|---|---|
1 | 1 |
{ |
2 |
"name": "openaire-aggregator",
|
|
2 |
"name": "aggregator", |
|
3 | 3 |
"version": "1.0.0", |
4 |
"license": "Openaire", |
|
5 |
"contributors": [ |
|
6 |
"Argiro Kokogiannaki <argirok@di.uoa.gr>", |
|
7 |
"Konstantina Galouni <kgalouni@di.uoa.gr>" |
|
8 |
], |
|
9 | 4 |
"scripts": { |
10 | 5 |
"ng": "ng", |
11 | 6 |
"start": "ng serve --disable-host-check --host 0.0.0.0 --port 4400", |
12 |
"start:ssr": "npm run build:ssr && npm run serve:ssr", |
|
13 |
"start:prerender": "npm run build:prerender && npm run serve:prerender", |
|
14 |
"start:ssr-beta": "npm run build:ssr-beta && npm run serve:ssr", |
|
15 |
"start:prerender-beta": "npm run build:prerender-beta && npm run serve:prerender", |
|
16 | 7 |
"build": "ng build", |
17 |
"build:client-and-server-bundles": "ng build --prod --sourceMap --stats-json=true && ng run openaire-aggregator:server:production", |
|
18 |
"build:client-and-server-bundles-beta": "ng build --configuration=beta --sourceMap --stats-json=true && ng run openaire-aggregator:server:beta", |
|
19 |
"build:prerender": "npm run build:client-and-server-bundles && npm run webpack:server && npm run generate:prerender", |
|
20 |
"build:ssr": "npm run build:client-and-server-bundles && npm run webpack:server", |
|
21 |
"build:prerender-beta": "npm run build:client-and-server-bundles-beta && npm run webpack:server && npm run generate:prerender", |
|
22 |
"build:ssr-beta": "npm run build:client-and-server-bundles-beta && npm run webpack:server", |
|
23 |
"generate:prerender": "cd dist && node prerender", |
|
24 |
"webpack:server": "webpack --config webpack.server.config.js --progress --colors", |
|
25 |
"serve:prerender": "cd dist/browser && http-server", |
|
26 |
"serve:ssr": "node dist/server", |
|
27 |
"after-build-clean": "rm -rf src node_modules .idea/ installOpenaireLib.sh deploy dist/browser/assets/common-assets/.svn/ dist/browser/stats.json ; " |
|
8 |
"build-dev": "ng build --configuration=development", |
|
9 |
"build-beta": "ng build --configuration=beta", |
|
10 |
"build-prod": "ng build --prod", |
|
11 |
"webpack-bundle-analyzer": "ng build --stats-json && webpack-bundle-analyzer dist/aggregator/browser/stats-es2015.json --host 0.0.0.0", |
|
12 |
"test": "ng test", |
|
13 |
"e2e": "ng e2e", |
|
14 |
"dev:ssr": "ng run aggregator:serve-ssr", |
|
15 |
"serve:ssr": "node dist/aggregator/server/main.js", |
|
16 |
"build:ssr-dev": "npm run build-dev && ng run aggregator:server:development", |
|
17 |
"build:ssr-beta": "npm run build-beta && ng run aggregator:server:beta", |
|
18 |
"build:ssr-prod": "npm run build-prod && ng run aggregator:server:production", |
|
19 |
"prerender": "ng run aggregator:prerender", |
|
20 |
"postinstall": "chmod +x clean-library.sh && ./clean-library.sh", |
|
21 |
"after-build-clean": "rm -rf dist/aggregator/browser/assets/common-assets/.svn/ src/app/openaireLibrary/.svn node_modules" |
|
28 | 22 |
}, |
29 | 23 |
"private": true, |
30 | 24 |
"dependencies": { |
31 |
"@angular/animations": "^7.2.14", |
|
32 |
"@angular/cdk": "^7.3.7", |
|
33 |
"@angular/common": "7.2.14", |
|
34 |
"@angular/compiler": "7.2.14", |
|
35 |
"@angular/core": "7.2.14", |
|
36 |
"@angular/forms": "7.2.14", |
|
37 |
"@angular/http": "7.2.14", |
|
38 |
"@angular/material": "^7.3.7", |
|
39 |
"@angular/platform-browser": "7.2.14", |
|
40 |
"@angular/platform-browser-dynamic": "7.2.14", |
|
41 |
"@angular/platform-server": "7.2.14", |
|
42 |
"@angular/router": "7.2.14", |
|
43 |
"@nguniversal/express-engine": "^6.0.0", |
|
44 |
"@nguniversal/module-map-ngfactory-loader": "^6.0.0", |
|
45 |
"@types/express": "^4.16.1", |
|
46 |
"angular-datatables": "^4.4.1", |
|
25 |
"@angular/animations": "~11.2.14", |
|
26 |
"@angular/cdk": "^11.2.13", |
|
27 |
"@angular/common": "~11.2.14", |
|
28 |
"@angular/compiler": "~11.2.14", |
|
29 |
"@angular/core": "~11.2.14", |
|
30 |
"@angular/forms": "~11.2.14", |
|
31 |
"@angular/localize": "^11.2.14", |
|
32 |
"@angular/material": "^11.2.13", |
|
33 |
"@angular/platform-browser": "~11.2.14", |
|
34 |
"@angular/platform-browser-dynamic": "~11.2.14", |
|
35 |
"@angular/platform-server": "~11.2.14", |
|
36 |
"@angular/router": "~11.2.14", |
|
37 |
"@nguniversal/express-engine": "^11.2.1", |
|
47 | 38 |
"clipboard": "^1.5.16", |
48 |
"core-js": "^2.4.1", |
|
49 |
"datatables.net": "^1.10.19", |
|
50 |
"datatables.net-dt": "^1.10.19", |
|
39 |
"core-js": "^2.5.4", |
|
40 |
"express": "^4.15.2", |
|
51 | 41 |
"jquery": "^3.4.1", |
52 |
"ng-recaptcha": "^3.0.5", |
|
53 |
"ng2-ckeditor": "1.1.9", |
|
54 |
"ngx-json-ld": "0.1.6", |
|
55 |
"nouislider": "^14.6.0", |
|
42 |
"ng-recaptcha": "^7.0.1", |
|
56 | 43 |
"prom-client": "^11.3.0", |
44 |
"rxjs": "^6.5.1", |
|
57 | 45 |
"ts-md5": "^1.2.0", |
58 |
"tslib": "^1.9.0",
|
|
59 |
"zone.js": "^0.8.26"
|
|
46 |
"tslib": "^2.0.0",
|
|
47 |
"zone.js": "~0.10.2"
|
|
60 | 48 |
}, |
61 | 49 |
"devDependencies": { |
62 |
"@angular-devkit/build-angular": "~0.13.0", |
|
63 |
"@angular/cli": "^7.3.9", |
|
64 |
"@angular/compiler-cli": "7.2.14", |
|
65 |
"@angular/language-service": "7.2.14", |
|
66 |
"@types/datatables.net": "^1.10.17", |
|
67 |
"@types/jquery": "^3.3.29", |
|
68 |
"@types/node": "^8.0.30", |
|
69 |
"cpy-cli": "^1.0.1", |
|
70 |
"http-server": "^0.10.0", |
|
71 |
"reflect-metadata": "^0.1.10", |
|
72 |
"rxjs": "6.5.1", |
|
73 |
"rxjs-compat": "^6.5.1", |
|
74 |
"ts-loader": "^4.2.0", |
|
75 |
"typescript": "3.2.4", |
|
76 |
"webpack-cli": "^3.3.2" |
|
50 |
"@angular-devkit/build-angular": "~0.1102.14", |
|
51 |
"@angular/cli": "~11.2.14", |
|
52 |
"@angular/compiler-cli": "~11.2.14", |
|
53 |
"@angular/language-service": "~11.2.14", |
|
54 |
"@nguniversal/builders": "^11.2.1", |
|
55 |
"@types/express": "^4.17.0", |
|
56 |
"@types/compression": "^1.7.0", |
|
57 |
"@types/node": "^12.11.1", |
|
58 |
"@types/jasmine": "~3.6.0", |
|
59 |
"@types/jasminewd2": "~2.0.3", |
|
60 |
"codelyzer": "^6.0.0", |
|
61 |
"jasmine-core": "~3.8.0", |
|
62 |
"jasmine-spec-reporter": "~5.0.0", |
|
63 |
"karma": "~6.3.3", |
|
64 |
"karma-chrome-launcher": "~3.1.0", |
|
65 |
"karma-coverage-istanbul-reporter": "~3.0.2", |
|
66 |
"karma-jasmine": "~4.0.0", |
|
67 |
"karma-jasmine-html-reporter": "^1.6.0", |
|
68 |
"protractor": "~7.0.0", |
|
69 |
"ts-node": "~7.0.0", |
|
70 |
"typescript": "~4.0.7" |
|
77 | 71 |
} |
78 | 72 |
} |
modules/uoa-aggregator-portal/trunk/tsconfig.json | ||
---|---|---|
1 | 1 |
{ |
2 | 2 |
"compileOnSave": false, |
3 | 3 |
"compilerOptions": { |
4 |
"importHelpers": true, |
|
4 |
"baseUrl": "./", |
|
5 |
"downlevelIteration": true, |
|
5 | 6 |
"outDir": "./dist/out-tsc", |
6 | 7 |
"sourceMap": true, |
7 | 8 |
"declaration": false, |
9 |
"module": "es2020", |
|
8 | 10 |
"moduleResolution": "node", |
9 | 11 |
"emitDecoratorMetadata": true, |
10 | 12 |
"experimentalDecorators": true, |
11 |
"target": "es5", |
|
13 |
"importHelpers": true, |
|
14 |
"target": "es2015", |
|
12 | 15 |
"typeRoots": [ |
13 | 16 |
"node_modules/@types" |
14 | 17 |
], |
15 | 18 |
"lib": [ |
16 |
"es2017",
|
|
19 |
"es2018",
|
|
17 | 20 |
"dom" |
18 |
], |
|
19 |
"module": "es2015", |
|
20 |
"baseUrl": "./" |
|
21 |
] |
|
21 | 22 |
} |
22 |
} |
|
23 |
} |
modules/uoa-aggregator-portal/trunk/.browserslistrc | ||
---|---|---|
1 |
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers |
|
2 |
# For additional information regarding the format and rule options, please see: |
|
3 |
# https://github.com/browserslist/browserslist#queries |
|
4 |
# |
|
5 |
# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed |
|
6 |
|
|
7 |
> 0.5% |
|
8 |
last 2 versions |
|
9 |
Firefox ESR |
|
10 |
not dead |
|
11 |
not IE 9-11 |
modules/uoa-aggregator-portal/trunk/src/index.beta.html | ||
---|---|---|
1 |
<!DOCTYPE html> |
|
2 |
<html lang="en" dir="ltr" vocab="http://schema.org/"> |
|
3 |
<head> |
|
4 |
<meta charset="utf-8"> |
|
5 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
7 |
<base href="/" /> |
|
8 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
9 |
<meta name="description" |
|
10 |
content="openAIRE aggregator portal, open access, publications, research results, European commission, search"/> |
|
11 |
|
|
12 |
<meta property="og:description" content="openAIRE explore, open access, publications, research results, European commission, search"/> |
|
13 |
<meta property="og:title" content="OpenAIRE"/> |
|
14 |
<meta property="og:type" content="website"/> |
|
15 |
<meta property="og:url" content="https://beta.explore.openaire.eu"/> |
|
16 |
<meta property="og:site_name" content="OpenAIRE"/> |
|
17 |
|
|
18 |
<meta property="og:image" content="assets/common-assets/common/Symbol.png"/> |
|
19 |
<meta property="og:image:secure_url" content="assets/common-assets/common/Symbol.png" /> |
|
20 |
<meta property="og:image:type" content="image/png" /> |
|
21 |
<meta property="og:image:width" content="360" /> |
|
22 |
<meta property="og:image:height" content="359" /> |
|
23 |
<meta name="robots" content="noindex"> |
|
24 |
<link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png"> |
|
25 |
<link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png"> |
|
26 |
<link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png"> |
|
27 |
<link rel="apple-touch-icon" sizes="76x76" href="assets/common-assets/logo/apple-icon-76x76.png"> |
|
28 |
<link rel="apple-touch-icon" sizes="114x114" href="assets/common-assets/logo/apple-icon-114x114.png"> |
|
29 |
<link rel="apple-touch-icon" sizes="120x120" href="assets/common-assets/logo/apple-icon-120x120.png"> |
|
30 |
<link rel="apple-touch-icon" sizes="144x144" href="assets/common-assets/logo/apple-icon-144x144.png"> |
|
31 |
<link rel="apple-touch-icon" sizes="152x152" href="assets/common-assets/logo/apple-icon-152x152.png"> |
|
32 |
<link rel="apple-touch-icon" sizes="180x180" href="assets/common-assets/logo/apple-icon-180x180.png"> |
|
33 |
<link rel="icon" type="image/png" sizes="192x192" href="assets/common-assets/logo/android-icon-192x192.png"> |
|
34 |
<link rel="icon" type="image/png" sizes="32x32" href="assets/common-assets/logo/favicon-32x32.png"> |
|
35 |
<link rel="icon" type="image/png" sizes="96x96" href="assets/common-assets/logo/favicon-96x96.png"> |
|
36 |
<link rel="icon" type="image/png" sizes="16x16" href="assets/common-assets/logo/favicon-16x16.png"> |
|
37 |
<link href="assets/common-assets/logo/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" /> |
|
38 |
<link rel="manifest" href="assets/common-assets/logo/manifest.json"> |
|
39 |
<meta name="msapplication-TileColor" content="#ffffff"> |
|
40 |
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> |
|
41 |
<meta name="theme-color" content="#ffffff"> |
|
42 |
<link id="customCss" rel="stylesheet" href=""> |
|
43 |
<title>Search OpenAIRE</title> |
|
44 |
</head> |
|
45 |
<body> |
|
46 |
<div class="uk-offcanvas-content uk-height-viewport"> |
|
47 |
<app-root></app-root> |
|
48 |
</div> |
|
49 |
</body> |
|
50 |
<script type="text/javascript" > |
|
51 |
function loadAltmetrics(e,t,n){ |
|
52 |
var d="createElement",c="getElementsByTagName",m="setAttribute",n=document.getElementById(e); |
|
53 |
return n&&n.parentNode&&n.parentNode.removeChild(n),n=document[d+"NS"]&&document.documentElement.namespaceURI,n=n?document[d+"NS"](n,"script"):document[d]("script"),n[m]("id",e),n[m]("src",t),(document[c]("head")[0]||document[c]("body")[0]).appendChild(n),n=new Image,void n[m]("src","https://d1uo4w7k31k5mn.cloudfront.net/donut/0.png") |
|
54 |
} |
|
55 |
</script> |
|
56 |
<script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script> |
|
57 |
</html> |
modules/uoa-aggregator-portal/trunk/src/robots.prod.txt | ||
---|---|---|
1 |
User-Agent: * |
|
2 |
Disallow: / |
modules/uoa-aggregator-portal/trunk/src/robots.beta.txt | ||
---|---|---|
1 |
User-Agent: * |
|
2 |
Disallow: / |
modules/uoa-aggregator-portal/trunk/src/index.prod.html | ||
---|---|---|
1 |
<!DOCTYPE html> |
|
2 |
<html lang="en" dir="ltr" vocab="http://schema.org/"> |
|
3 |
<head> |
|
4 |
<meta charset="utf-8"> |
|
5 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
7 |
<base href="/" /> |
|
8 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
9 |
<meta name="description" |
|
10 |
content="openAIRE aggregator portal, open access, publications, research results, European commission, search"/> |
|
11 |
|
|
12 |
<meta property="og:description" content="openAIRE explore, open access, publications, research results, European commission, search"/> |
|
13 |
<meta property="og:title" content="OpenAIRE"/> |
|
14 |
<meta property="og:type" content="website"/> |
|
15 |
<meta property="og:url" content="https://beta.explore.openaire.eu"/> |
|
16 |
<meta property="og:site_name" content="OpenAIRE"/> |
|
17 |
|
|
18 |
<meta property="og:image" content="assets/common-assets/common/Symbol.png"/> |
|
19 |
<meta property="og:image:secure_url" content="assets/common-assets/common/Symbol.png" /> |
|
20 |
<meta property="og:image:type" content="image/png" /> |
|
21 |
<meta property="og:image:width" content="360" /> |
|
22 |
<meta property="og:image:height" content="359" /> |
|
23 |
<meta name="robots" content="noindex"> |
|
24 |
<link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png"> |
|
25 |
<link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png"> |
|
26 |
<link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png"> |
|
27 |
<link rel="apple-touch-icon" sizes="76x76" href="assets/common-assets/logo/apple-icon-76x76.png"> |
|
28 |
<link rel="apple-touch-icon" sizes="114x114" href="assets/common-assets/logo/apple-icon-114x114.png"> |
|
29 |
<link rel="apple-touch-icon" sizes="120x120" href="assets/common-assets/logo/apple-icon-120x120.png"> |
|
30 |
<link rel="apple-touch-icon" sizes="144x144" href="assets/common-assets/logo/apple-icon-144x144.png"> |
|
31 |
<link rel="apple-touch-icon" sizes="152x152" href="assets/common-assets/logo/apple-icon-152x152.png"> |
|
32 |
<link rel="apple-touch-icon" sizes="180x180" href="assets/common-assets/logo/apple-icon-180x180.png"> |
|
33 |
<link rel="icon" type="image/png" sizes="192x192" href="assets/common-assets/logo/android-icon-192x192.png"> |
|
34 |
<link rel="icon" type="image/png" sizes="32x32" href="assets/common-assets/logo/favicon-32x32.png"> |
|
35 |
<link rel="icon" type="image/png" sizes="96x96" href="assets/common-assets/logo/favicon-96x96.png"> |
|
36 |
<link rel="icon" type="image/png" sizes="16x16" href="assets/common-assets/logo/favicon-16x16.png"> |
|
37 |
<link href="assets/common-assets/logo/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" /> |
|
38 |
<link rel="manifest" href="assets/common-assets/logo/manifest.json"> |
|
39 |
<meta name="msapplication-TileColor" content="#ffffff"> |
|
40 |
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> |
|
41 |
<meta name="theme-color" content="#ffffff"> |
|
42 |
<link id="customCss" rel="stylesheet" href=""> |
|
43 |
<title>Search OpenAIRE</title> |
|
44 |
</head> |
|
45 |
<body> |
|
46 |
<div class="uk-offcanvas-content uk-height-viewport"> |
|
47 |
<app-root></app-root> |
|
48 |
</div> |
|
49 |
</body> |
|
50 |
<script type="text/javascript"> |
|
51 |
function loadAltmetrics(e,t,n){ |
|
52 |
var d="createElement",c="getElementsByTagName",m="setAttribute",n=document.getElementById(e); |
|
53 |
return n&&n.parentNode&&n.parentNode.removeChild(n),n=document[d+"NS"]&&document.documentElement.namespaceURI,n=n?document[d+"NS"](n,"script"):document[d]("script"),n[m]("id",e),n[m]("src",t),(document[c]("head")[0]||document[c]("body")[0]).appendChild(n),n=new Image,void n[m]("src","https://d1uo4w7k31k5mn.cloudfront.net/donut/0.png") |
|
54 |
} |
|
55 |
</script> |
|
56 |
<script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script> |
|
57 |
</html> |
modules/uoa-aggregator-portal/trunk/src/app/home/home.component.ts | ||
---|---|---|
2 | 2 |
import {Subscription} from 'rxjs'; |
3 | 3 |
import {ActivatedRoute, Router} from '@angular/router'; |
4 | 4 |
import {Location} from '@angular/common'; |
5 |
import "rxjs/add/observable/zip"; |
|
6 | 5 |
import {Meta, Title} from '@angular/platform-browser'; |
7 | 6 |
import {ConfigurationService} from '../openaireLibrary/utils/configuration/configuration.service'; |
8 | 7 |
import {SearchDataprovidersService} from '../openaireLibrary/services/searchDataproviders.service'; |
... | ... | |
63 | 62 |
customFilter:SearchCustomFilter= null; |
64 | 63 |
aggregatorId; |
65 | 64 |
aggregator:AggregatorInfo; |
66 |
@ViewChild('numbersComponent') numbersComponent: NumbersComponent; |
|
65 |
@ViewChild('numbersComponent', { static: true }) numbersComponent: NumbersComponent;
|
|
67 | 66 |
|
68 | 67 |
constructor ( |
69 | 68 |
private route: ActivatedRoute, |
modules/uoa-aggregator-portal/trunk/src/app/app.module.ts | ||
---|---|---|
28 | 28 |
CookieLawModule, |
29 | 29 |
BrowserAnimationsModule, |
30 | 30 |
BrowserTransferStateModule, |
31 |
BrowserModule.withServerTransition({appId: 'my-app'}),
|
|
31 |
BrowserModule.withServerTransition({appId: 'aggregator'}),
|
|
32 | 32 |
AppRoutingModule |
33 | 33 |
], |
34 | 34 |
declarations: [AppComponent, OpenaireErrorPageComponent], |
modules/uoa-aggregator-portal/trunk/src/app/app.server.module.ts | ||
---|---|---|
1 |
import {NgModule} from '@angular/core'; |
|
2 |
import {ServerModule} from '@angular/platform-server'; |
|
3 |
import {ModuleMapLoaderModule} from '@nguniversal/module-map-ngfactory-loader'; |
|
1 |
import { NgModule } from '@angular/core'; |
|
2 |
import {ServerModule, ServerTransferStateModule} from '@angular/platform-server'; |
|
4 | 3 |
|
5 |
import {AppModule} from './app.module'; |
|
6 |
import {AppComponent} from './app.component'; |
|
7 |
//import {REQUEST} from "@nguniversal/express-engine/tokens"; |
|
4 |
import { AppModule } from './app.module'; |
|
5 |
import { AppComponent } from './app.component'; |
|
8 | 6 |
|
9 | 7 |
@NgModule({ |
10 | 8 |
imports: [ |
11 |
// The AppServerModule should import your AppModule followed |
|
12 |
// by the ServerModule from @angular/platform-server. |
|
13 | 9 |
AppModule, |
14 | 10 |
ServerModule, |
15 |
ModuleMapLoaderModule,
|
|
11 |
ServerTransferStateModule
|
|
16 | 12 |
], |
17 |
// Since the bootstrapped component is not inherited from your |
|
18 |
// imported AppModule, it needs to be repeated here. |
|
19 | 13 |
bootstrap: [AppComponent], |
20 | 14 |
}) |
21 |
export class AppServerModule { |
|
22 |
/*constructor(@Inject(REQUEST) private request: Request) {}*/ |
|
23 |
} |
|
15 |
export class AppServerModule {} |
modules/uoa-aggregator-portal/trunk/src/app/shared/shared.module.ts | ||
---|---|---|
37 | 37 |
] |
38 | 38 |
}) |
39 | 39 |
export class SharedModule { |
40 |
static forRoot(): ModuleWithProviders { |
|
40 |
static forRoot(): ModuleWithProviders<SharedModule> {
|
|
41 | 41 |
return { |
42 | 42 |
ngModule: SharedModule, |
43 | 43 |
}; |
modules/uoa-aggregator-portal/trunk/src/app/app-routing.module.ts | ||
---|---|---|
3 | 3 |
import {OpenaireErrorPageComponent} from './error/errorPage.component'; |
4 | 4 |
|
5 | 5 |
const routes: Routes = [ |
6 |
{path: '', loadChildren: './home/home.module#HomeModule'},
|
|
6 |
{path: '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule)},
|
|
7 | 7 |
{ |
8 | 8 |
path: 'search/result', |
9 |
loadChildren: './landingPages/result/libResult.module#LibResultModule'
|
|
9 |
loadChildren: () => import('./landingPages/result/libResult.module').then(m => m.LibResultModule)
|
|
10 | 10 |
}, |
11 | 11 |
{ |
12 | 12 |
path: 'search/publication', |
13 |
loadChildren: './landingPages/publication/libPublication.module#LibPublicationModule'
|
|
13 |
loadChildren: () => import('./landingPages/publication/libPublication.module').then(m => m.LibPublicationModule)
|
|
14 | 14 |
}, |
15 | 15 |
{ |
16 | 16 |
path: 'search/dataset', |
17 |
loadChildren: './landingPages/dataset/libDataset.module#LibDatasetModule'
|
|
17 |
loadChildren: () => import('./landingPages/dataset/libDataset.module').then(m => m.LibDatasetModule)
|
|
18 | 18 |
}, |
19 | 19 |
{ |
20 | 20 |
path: 'search/software', |
21 |
loadChildren: './landingPages/software/libSoftware.module#LibSoftwareModule'
|
|
21 |
loadChildren: () => import('./landingPages/software/libSoftware.module').then(m => m.LibSoftwareModule)
|
|
22 | 22 |
}, |
23 | 23 |
{ |
24 | 24 |
path: 'search/other', |
25 |
loadChildren: './landingPages/orp/libOrp.module#LibOrpModule'
|
|
25 |
loadChildren: () => import('./landingPages/orp/libOrp.module').then(m => m.LibOrpModule)
|
|
26 | 26 |
}, |
27 | 27 |
{ |
28 | 28 |
path: 'search/project', |
29 |
loadChildren: './landingPages/project/libProject.module#LibProjectModule'
|
|
29 |
loadChildren: () => import('./landingPages/project/libProject.module').then(m => m.LibProjectModule)
|
|
30 | 30 |
}, |
31 | 31 |
{ |
32 | 32 |
path: 'search/dataprovider', |
33 |
loadChildren: './landingPages/dataProvider/libDataProvider.module#LibDataProviderModule'
|
|
33 |
loadChildren: () => import('./landingPages/dataProvider/libDataProvider.module').then(m => m.LibDataProviderModule)
|
|
34 | 34 |
}, |
35 | 35 |
{ |
36 | 36 |
path: 'search/organization', |
37 |
loadChildren: './landingPages/organization/libOrganization.module#LibOrganizationModule'
|
|
37 |
loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule)
|
|
38 | 38 |
}, |
39 | 39 |
{ |
40 | 40 |
path: 'search/find', |
41 |
loadChildren: './searchPages/find/libSearch.module#LibMainSearchModule'
|
|
41 |
loadChildren: () => import('./searchPages/find/libSearch.module').then(m => m.LibMainSearchModule)
|
|
42 | 42 |
}, |
43 | 43 |
{ |
44 | 44 |
path: 'search/find/research-outcomes', |
45 |
loadChildren: './searchPages/simple/searchResearchResults.module#OpenaireSearchResearchResultsModule'
|
|
45 |
loadChildren: () => import('./searchPages/simple/searchResearchResults.module').then(m => m.OpenaireSearchResearchResultsModule)
|
|
46 | 46 |
}, |
47 | 47 |
{ |
48 | 48 |
path: 'search/find/projects', |
49 |
loadChildren: './searchPages/simple/searchProjects.module#LibSearchProjectsModule'
|
|
49 |
loadChildren: () => import('./searchPages/simple/searchProjects.module').then(m => m.LibSearchProjectsModule)
|
|
50 | 50 |
}, |
51 | 51 |
{ |
52 | 52 |
path: 'search/find/dataproviders', |
53 |
loadChildren: './searchPages/simple/searchDataProviders.module#LibSearchDataProvidersModule'
|
|
53 |
loadChildren: () => import('./searchPages/simple/searchDataProviders.module').then(m => m.LibSearchDataProvidersModule)
|
|
54 | 54 |
}, |
55 | 55 |
{ |
56 | 56 |
path: 'search/find/organizations', |
57 |
loadChildren: './searchPages/simple/searchOrganizations.module#LibSearchOrganizationsModule'
|
|
57 |
loadChildren: () => import('./searchPages/simple/searchOrganizations.module').then(m => m.LibSearchOrganizationsModule)
|
|
58 | 58 |
}, |
59 | 59 |
{ |
60 | 60 |
path: 'search/advanced/research-outcomes', |
61 |
loadChildren: './searchPages/advanced/searchResearchResults.module#OpenaireAdvancedSearchResearchResultsModule'
|
|
61 |
loadChildren: () => import('./searchPages/advanced/searchResearchResults.module').then(m => m.OpenaireAdvancedSearchResearchResultsModule)
|
|
62 | 62 |
}, |
63 | 63 |
{ |
64 | 64 |
path: 'search/advanced/organizations', |
65 |
loadChildren: './searchPages/advanced/advancedSearchOrganizations.module#LibAdvancedSearchOrganizationsModule'
|
|
65 |
loadChildren: () => import('./searchPages/advanced/advancedSearchOrganizations.module').then(m => m.LibAdvancedSearchOrganizationsModule)
|
|
66 | 66 |
}, |
67 | 67 |
{ |
68 | 68 |
path: 'search/advanced/dataproviders', |
69 |
loadChildren: './searchPages/advanced/advancedSearchDataProviders.module#LibAdvancedSearchDataProvidersModule'
|
|
69 |
loadChildren: () => import('./searchPages/advanced/advancedSearchDataProviders.module').then(m => m.LibAdvancedSearchDataProvidersModule)
|
|
70 | 70 |
}, |
71 | 71 |
{ |
72 | 72 |
path: 'search/advanced/projects', |
Also available in: Unified diff
[Aggregator | Trunk]: Upgrade to angular 11