Project

General

Profile

« Previous | Next » 

Revision 61397

[Connect]: Update trunk to angular 11. Delete branch angular-11

View differences:

modules/uoa-connect-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
}
modules/uoa-connect-portal/trunk/static.paths.ts
1
export const ROUTES = [
2
  '/',
3
  '/lazy',
4
  '/home',
5
  '/search/publication','/search/other','/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/other','/search/find/projects','/search/find/datasets','/search/find/dataproviders','/search/find/organizations',
9
  '/search/advanced/people','/search/advanced/publications','/search/advanced/other','/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-connect-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-connect-portal/trunk/deploy/prepareDeploy.sh
1
#ATTENTION
2
#DON'T run it in svn folder - it REMOVES files
3
#Copy project in another location eg "deploy-folder"
4
#go to "deploy-folder/deploy"
5
#uncomment the proper commands
6
#run the script
7

  
8
# cp theproperties file according to the deploy environment!!!
9
## uncommect one of the following -->
10
# cp beta-properties.json ../src/assets/env-properties.json;
11
# cp production-properties.json ../src/assets/env-properties.json;
12

  
13
## uncommect from here-->
14
# printf  '\nCheck that you have the correct properties file';
15
# echo -n "Press key:";
16
# read -n1 ans
17
# pico ../src/assets/env-properties.json;
18
# printf  '\nCheck the properties file version';
19
# echo -n "Press key:";
20
# read -n1 ans
21
# pico ../src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
22
# echo 'For Production keep meta for bots';
23
# printf  '\n\nCheck index.html: For test and beta keep meta for noindex, for production remove noindex and keep meta for Search engines verification';
24
# printf  '\nUpdate css/ js files version!';
25
# echo -n "Press key:";
26
# read -n1 ans
27
# echo -n "Pressed";
28
# pico ../src/index.html;
29
# pico ../src/app/utils/customization/customization.component.ts;
30
# echo -n 'Check Robots.txt: For test and beta add "Diasallow /", for production remove it!';
31
# echo -n "Press key:";
32
# read -n1 ans
33
# pico ../src/robots.txt;
34
# echo -n "Pressed";
35
# rm -rf ../src/assets/common-assets/.svn/;
36
# rm -rf ../src/app/openaireLibrary/.svn/;
37
# cd ..; npm run build:ssr; cd deploy;
38
# rm -rf ../src ../node_modules  ../.idea/ ../installOpenaireLib.sh; cd ../; rm -rf deploy;
39
# echo 'Now copy to the server!'
40

  
41
##<-- to here
42

  
43
#Deploy instructions!
44
#copy "deploy-folder" in beta.connect.openaire.eu or connect.openaire.eu
45
#copies of previous deployments exist in  "/home/argiro.kokogiannaki/connect-portal/connectYYYY-MM-DD"
46
#run "npm i"
47
#become nodejs user to be able to copy the files: "sudo su nodejs -s /bin/bash"
48
#check what is running "pm2 list"
49
#portal files exist in "/srv/www/portal/connect"
50
#copy deployment files to the portal folder "cp -r /home/argiro.kokogiannaki/connect-portal/connectYYYY-MM-DD/* /srv/www/portal/connect"
51
#restart portal to get the changes "pm2 restart connect"
52 0

  
modules/uoa-connect-portal/trunk/deploy/production-properties.json
1
{
2
  "environment" : "production",
3
  "dashboard" : "connect",
4
  "enablePiwikTrack" : false,
5
  "useCache" : true,
6
  "showContent" : true,
7
  "showAddThis" : false,
8
  "metricsAPIURL" : "https://services.openaire.eu/usagestats/",
9
  "framesAPIURL" : "https://www.openaire.eu/stats3/",
10
  "statisticsAPIURL" : "https://services.openaire.eu/stats-api/",
11
  "statisticsFrameAPIURL":"https://www.openaire.eu/stats/",
12
  "statisticsFrameNewAPIURL": "https://services.openaire.eu/stats/",
13
  "useNewStatistisTool":false,
14
  "impactFactorsAPIURL" :"https://bip-api.imsi.athenarc.gr/paper/scores/batch/",
15
  "claimsAPIURL" : "https://services.openaire.eu/claims/rest/claimsService/",
16
  "searchAPIURLLAst"     : "https://services.openaire.eu/search/v2/api/",
17
  "searchResourcesAPIURL"     : "https://services.openaire.eu/search/v2/api/resources",
18
  "openCitationsAPIURL" : "https://services.openaire.eu/opencitations/getCitations?id=",
19
  "csvAPIURL" : "https://services.openaire.eu/search/v2/api/reports",
20
  "searchCrossrefAPIURL" : "https://api.crossref.org/works",
21
  "searchDataciteAPIURL" : "https://api.datacite.org/works",
22
  "searchOrcidURL"    : "https://pub.orcid.org/v2.1/",
23
  "orcidURL"   : "https://orcid.org/",
24
  "doiURL"     : "https://dx.doi.org/",
25
  "pmcURL": "http://europepmc.org/articles/",
26
  "pmidURL": "https://www.ncbi.nlm.nih.gov/pubmed/",
27
  "handleURL": "http://hdl.handle.net/",
28
  "cordisURL"  : "http://cordis.europa.eu/projects/",
29
  "openDoarURL": "http://v2.sherpa.ac.uk/id/repository/",
30
  "r3DataURL": "http://service.re3data.org/repository/",
31
  "sherpaURL": "http://sherpa.ac.uk/romeo/issn/",
32
  "sherpaURLSuffix": "/",
33
  "zenodo"   : "https://zenodo.org/",
34
  "zenodoCommunities" : "https://zenodo.org/api/communities/",
35
  "openAccess" : "https://www.openaire.eu/support/faq#article-id-234",
36
  "openAccessRepo" : "https://www.openaire.eu/support/faq#article-id-310",
37
  "fp7Guidlines" : "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme",
38
  "h2020Guidlines" : "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020",
39
  "ercGuidlines" : "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf",
40
  "helpdesk" : "https://www.openaire.eu/support/helpdesk",
41
  "helpdeskEmail": "helpdesk@openaire.eu",
42
  "utilsService" : "https://explore.openaire.eu/utils-service",
43

  
44
  "vocabulariesAPI" :"https://services.openaire.eu/provision/mvc/vocabularies/",
45

  
46
  "piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=",
47
  "piwikSiteId" : "112",
48
  "loginUrl" :"https://services.openaire.eu/_UPDATE_/openid_connect_login",
49

  
50
  "userInfoUrl" : " https://services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
51

  
52
  "logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
53

  
54
  "cookieDomain" :".openaire.eu",
55

  
56
  "feedbackmail" :"feedback@openaire.eu",
57

  
58
  "cacheUrl" :"https://explore.openaire.eu/cache/get?url=",
59

  
60
  "datasourcesAPI": "https://services.openaire.eu/openaire/ds/search/",
61

  
62
  "adminToolsAPIURL" :"https://services.openaire.eu/uoa-admin-tools/",
63

  
64
  "adminToolsCommunity" :"connect",
65
  "contextsAPI":"https://services.openaire.eu/openaire/context",
66

  
67
  "communityAPI": "https://services.openaire.eu/openaire/community/",
68
  "communitiesAPI": "https://services.openaire.eu/openaire/community/communities",
69

  
70
  "csvLimit":  2000,
71
  "pagingLimit":  20,
72
  "resultsPerPage":  10,
73

  
74
  "baseLink" :"",
75
  "domain": "https://connect.openaire.eu",
76

  
77
  "afterLoginRedirectLink": "/myCommunities",
78

  
79
  "searchLinkToPublication" : "/search/publication?articleId=",
80
  "searchLinkToProject" : "/search/project?projectId=",
81
  "searchLinkToDataProvider" : "/search/dataprovider?datasourceId=",
82
  "searchLinkToDataset" : "/search/dataset?datasetId=",
83
  "searchLinkToSoftwareLanding" : "/search/software?softwareId=",
84
  "searchLinkToOrp" : "/search/other?orpId=",
85
  "searchLinkToOrganization" : "/search/organization?organizationId=",
86

  
87
  "searchLinkToCommunities" : "/search/find/communities",
88
  "searchLinkToPublications" : "/search/find/publications",
89
  "searchLinkToDataProviders" : "/search/find/dataproviders",
90
  "searchLinkToProjects" : "/search/find/projects",
91
  "searchLinkToDatasets" : "/search/find/datasets",
92
  "searchLinkToSoftware" : "/search/find/software",
93
  "searchLinkToOrps" : "/search/find/other",
94
  "searchLinkToOrganizations" : "/search/find/organizations",
95
  "searchLinkToCompatibleDataProviders" : "/search/content-providers",
96
  "searchLinkToEntityRegistriesDataProviders" : "/search/entity-registries",
97
  "searchLinkToEntityRegistriesDataProvidersTable" : "/search/entity-registries-table",
98
  "searchLinkToJournals" : "/search/journals",
99
  "searchLinkToJournalsTable" : "/search/journals-table",
100
  "searchLinkToResults" : "/search/find/research-outcomes",
101

  
102
  "searchLinkToAdvancedPublications" : "/search/advanced/publications",
103
  "searchLinkToAdvancedProjects" : "/search/advanced/projects",
104
  "searchLinkToAdvancedDatasets" : "/search/advanced/datasets",
105
  "searchLinkToAdvancedSoftware" : "/search/advanced/software",
106
  "searchLinkToAdvancedOrps" : "/search/advanced/other",
107
  "searchLinkToAdvancedDataProviders" : "/search/advanced/dataproviders",
108
  "searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
109
  "searchLinkToAdvancedResults" : "/search/advanced/research-outcomes",
110

  
111
  "lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
112
  "showLastIndexInformationLink" : true,
113
  "widgetLink" : "https://www.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
114
  "claimsInformationLink": "https://www.openaire.eu/linking",
115

  
116
  "depositLearnHowPage": "/participate/deposit/learn-how",
117
  "depositSearchPage": "/participate/deposit/search",
118
  "shareInZenodoPage": "/participate/deposit/zenodo",
119
  "reCaptchaSiteKey": "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P",
120

  
121
  "admins" : ["rcd-helpdesk@openaire.eu"],
122
  "lastIndexUpdate": "2019-07-24",
123
  "indexInfoAPI": "https://services.openaire.eu/openaire/info/",
124
  "altMetricsAPIURL": "https://api.altmetric.com/v1/doi/",
125
  "b2noteAPIURL": "http://b2note-dev.bsc.es/api/",
126
  "adminPortalURL": "https://admin.connect.openaire.eu"
127
}
modules/uoa-connect-portal/trunk/deploy/beta-properties.json
1
{
2
  "environment" : "beta",
3
  "dashboard" : "connect",
4
  "enablePiwikTrack" : true,
5
  "useCache" : true,
6
  "showContent" : true,
7
  "showAddThis" : false,
8
  "metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/",
9
  "framesAPIURL" : "https://beta.openaire.eu/stats3/",
10
  "statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/",
11
  "statisticsFrameAPIURL":"https://beta.openaire.eu/stats/",
12
  "statisticsFrameNewAPIURL": "https://stats.madgik.di.uoa.gr/stats-api/",
13
  "useNewStatistisTool":true,
14
  "impactFactorsAPIURL" :"https://bip-api.imsi.athenarc.gr/paper/scores/batch/",
15
  "claimsAPIURL" : "https://beta.services.openaire.eu/claims/rest/claimsService/",
16
  "searchAPIURLLAst"     : "https://beta.services.openaire.eu/search/v2/api/",
17
  "searchResourcesAPIURL"     : "https://beta.services.openaire.eu/search/v2/api/resources",
18
  "openCitationsAPIURL" : "https://services.openaire.eu/opencitations/getCitations?id=",
19
  "csvAPIURL" : "https://beta.services.openaire.eu/search/v2/api/reports",
20
  "searchCrossrefAPIURL" : "https://api.crossref.org/works",
21
  "searchDataciteAPIURL" : "https://api.datacite.org/works",
22
  "searchOrcidURL"    : "https://pub.orcid.org/v2.1/",
23
  "orcidURL"   : "https://orcid.org/",
24
  "doiURL"     : "https://dx.doi.org/",
25
  "pmcURL": "http://europepmc.org/articles/",
26
  "pmidURL": "https://www.ncbi.nlm.nih.gov/pubmed/",
27
  "handleURL": "http://hdl.handle.net/",
28
  "cordisURL"  : "http://cordis.europa.eu/projects/",
29
  "openDoarURL": "http://v2.sherpa.ac.uk/id/repository/",
30
  "r3DataURL": "http://service.re3data.org/repository/",
31
  "sherpaURL": "http://sherpa.ac.uk/romeo/issn/",
32
  "sherpaURLSuffix": "/",
33
  "zenodo"   : "https://zenodo.org/",
34
  "zenodoCommunities" : "https://zenodo.org/api/communities/",
35
  "openAccess" : "https://www.openaire.eu/support/faq#article-id-234",
36
  "openAccessRepo" : "https://www.openaire.eu/support/faq#article-id-310",
37
  "fp7Guidlines" : "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme",
38
  "h2020Guidlines" : "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020",
39
  "ercGuidlines" : "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf",
40
  "helpdesk" : "https://www.openaire.eu/support/helpdesk",
41
  "helpdeskEmail": "helpdesk@openaire.eu",
42
  "utilsService" : "https://demo.openaire.eu/utils-service",
43

  
44
  "vocabulariesAPI" :"https://beta.services.openaire.eu/provision/mvc/vocabularies/",
45

  
46
  "piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=",
47
  "piwikSiteId" : "80",
48
  "loginUrl" :"https://beta.services.openaire.eu/connect-user-management/openid_connect_login",
49

  
50
  "userInfoUrl" : "https://beta.services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
51

  
52
  "logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
53

  
54
  "cookieDomain" :".openaire.eu",
55

  
56
  "feedbackmail" :"feedback@openaire.eu",
57

  
58
  "cacheUrl" :"https://demo.openaire.eu/cache/get?url=",
59

  
60
  "adminToolsAPIURL" :"https://beta.services.openaire.eu/uoa-admin-tools",
61

  
62
  "adminToolsCommunity" :"connect",
63
  "datasourcesAPI": "https://beta.services.openaire.eu/openaire/ds/search/",
64
  "contextsAPI":"https://beta.services.openaire.eu/openaire/context",
65
  "communityAPI":   "https://beta.services.openaire.eu/openaire/community/",
66
  "communitiesAPI": "https://beta.services.openaire.eu/openaire/community/communities",
67

  
68
  "csvLimit":  2000,
69
  "pagingLimit":  20,
70
  "resultsPerPage":  10,
71

  
72
  "baseLink" :"",
73
  "domain":"https://beta.connect.openaire.eu",
74

  
75
  "afterLoginRedirectLink": "/myCommunities",
76

  
77
  "searchLinkToPublication" : "/search/publication?articleId=",
78
  "searchLinkToProject" : "/search/project?projectId=",
79
  "searchLinkToDataProvider" : "/search/dataprovider?datasourceId=",
80
  "searchLinkToDataset" : "/search/dataset?datasetId=",
81
  "searchLinkToSoftwareLanding" : "/search/software?softwareId=",
82
  "searchLinkToOrganization" : "/search/organization?organizationId=",
83
  "searchLinkToOrp" : "/search/other?orpId=",
84

  
85
  "searchLinkToCommunities" : "/search/find/communities",
86
  "searchLinkToPublications" : "/search/find/publications",
87
  "searchLinkToDataProviders" : "/search/find/dataproviders",
88
  "searchLinkToProjects" : "/search/find/projects",
89
  "searchLinkToDatasets" : "/search/find/datasets",
90
  "searchLinkToSoftware" : "/search/find/software",
91
  "searchLinkToOrps" : "/search/find/other",
92
  "searchLinkToOrganizations" : "/search/find/organizations",
93
  "searchLinkToCompatibleDataProviders" : "/search/content-providers",
94
  "searchLinkToEntityRegistriesDataProviders" : "/search/entity-registries",
95
  "searchLinkToEntityRegistriesDataProvidersTable" : "/search/entity-registries-table",
96
  "searchLinkToJournals" : "/search/journals",
97
  "searchLinkToJournalsTable" : "/search/journals-table",
98
  "searchLinkToResults" : "/search/find/research-outcomes",
99

  
100
  "searchLinkToAdvancedPublications" : "/search/advanced/publications",
101
  "searchLinkToAdvancedProjects" : "/search/advanced/projects",
102
  "searchLinkToAdvancedDatasets" : "/search/advanced/datasets",
103
  "searchLinkToAdvancedSoftware" : "/search/advanced/software",
104
  "searchLinkToAdvancedOrps" : "/search/advanced/other",
105
  "searchLinkToAdvancedDataProviders" : "/search/advanced/dataproviders",
106
  "searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
107
  "searchLinkToAdvancedResults" : "/search/advanced/research-outcomes",
108

  
109
  "lastIndexInformationLink" : "https://beta.openaire.eu/aggregation-and-content-provision-workflows",
110
  "showLastIndexInformationLink" : true,
111
  "widgetLink" : "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
112
  "claimsInformationLink": "https://beta.openaire.eu/linking",
113

  
114
  "depositLearnHowPage": "/participate/deposit/learn-how",
115
  "depositSearchPage": "/participate/deposit/search",
116
  "shareInZenodoPage": "/participate/deposit/zenodo",
117

  
118
  "reCaptchaSiteKey": "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P",
119

  
120
  "admins" : ["rcd-helpdesk@openaire.eu"],
121
  "lastIndexUpdate": "2020-05-06",
122
  "indexInfoAPI": "https://beta.services.openaire.eu/openaire/info/",
123
  "altMetricsAPIURL": "https://api.altmetric.com/v1/doi/",
124
  "b2noteAPIURL": "http://b2note-dev.bsc.es/api/",
125
  "adminPortalURL": "https://beta.admin.connect.openaire.eu"
126
}
modules/uoa-connect-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
    "ng-universal-demo": {
6
    "connect": {
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/connect/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 46
            ],
......
24 49
              "src/material.scss"
25 50
            ],
26 51
            "scripts": [
27
              "node_modules/jquery/dist/jquery.js",
52
              "node_modules/jquery/dist/jquery.js"
28 53
            ]
29 54
          },
30 55
          "configurations": {
31
            "production": {
56
            "development": {
32 57
              "optimization": true,
33 58
              "outputHashing": "all",
34 59
              "sourceMap": false,
35
              "extractCss": true,
36 60
              "namedChunks": false,
37 61
              "aot": true,
38 62
              "extractLicenses": true,
39 63
              "vendorChunk": false,
40 64
              "buildOptimizer": true,
41
              "fileReplacements": [
65
              "budgets": [
42 66
                {
43
                  "replace": "src/environments/environment.ts",
44
                  "with": "src/environments/environment.prod.ts"
67
                  "type": "initial",
68
                  "maximumWarning": "2mb",
69
                  "maximumError": "5mb"
45 70
                },
46 71
                {
47
                  "replace": "src/index.html",
48
                  "with": "src/index.prod.html"
72
                  "type": "anyComponentStyle",
73
                  "maximumWarning": "6kb"
49 74
                }
50 75
              ]
51 76
            },
52 77
            "beta": {
78
              "index": {
79
                "input": "src/beta/index.html",
80
                "output": "index.html"
81
              },
82
              "fileReplacements": [
83
                {
84
                  "replace": "src/environments/environment.ts",
85
                  "with": "src/environments/environment.beta.ts"
86
                }
87
              ],
53 88
              "optimization": true,
54 89
              "outputHashing": "all",
55 90
              "sourceMap": false,
56
              "extractCss": true,
57 91
              "namedChunks": false,
58 92
              "aot": true,
59 93
              "extractLicenses": true,
60 94
              "vendorChunk": false,
61 95
              "buildOptimizer": true,
62
              "fileReplacements": [
96
              "budgets": [
63 97
                {
64
                  "replace": "src/environments/environment.ts",
65
                  "with": "src/environments/environment.beta.ts"
98
                  "type": "initial",
99
                  "maximumWarning": "2mb",
100
                  "maximumError": "5mb"
66 101
                },
67 102
                {
68
                  "replace": "src/index.html",
69
                  "with": "src/index.beta.html"
103
                  "type": "anyComponentStyle",
104
                  "maximumWarning": "6kb"
70 105
                }
71 106
              ]
72 107
            },
73
            "development": {
108
            "production": {
109
              "index": {
110
                "input": "src/prod/index.html",
111
                "output": "index.html"
112
              },
113
              "fileReplacements": [
114
                {
115
                  "replace": "src/environments/environment.ts",
116
                  "with": "src/environments/environment.prod.ts"
117
                }
118
              ],
74 119
              "optimization": true,
75 120
              "outputHashing": "all",
76 121
              "sourceMap": false,
77
              "extractCss": true,
78 122
              "namedChunks": false,
79 123
              "aot": true,
80 124
              "extractLicenses": true,
81 125
              "vendorChunk": false,
82
              "buildOptimizer": true
126
              "buildOptimizer": true,
127
              "budgets": [
128
                {
129
                  "type": "initial",
130
                  "maximumWarning": "2mb",
131
                  "maximumError": "5mb"
132
                },
133
                {
134
                  "type": "anyComponentStyle",
135
                  "maximumWarning": "6kb"
136
                }
137
              ]
83 138
            }
84 139
          }
85 140
        },
86 141
        "serve": {
87 142
          "builder": "@angular-devkit/build-angular:dev-server",
88 143
          "options": {
89
            "browserTarget": "ng-universal-demo:build"
144
            "browserTarget": "connect:build"
90 145
          },
91 146
          "configurations": {
92 147
            "production": {
93
              "browserTarget": "ng-universal-demo:build:production"
94
            },
95
            "beta": {
96
              "browserTarget": "ng-universal-demo:build:beta"
97
            },
98
            "development": {
99
              "browserTarget": "ng-universal-demo:build:development"
148
              "browserTarget": "connect:build:production"
100 149
            }
101 150
          }
102 151
        },
103 152
        "extract-i18n": {
104 153
          "builder": "@angular-devkit/build-angular:extract-i18n",
105 154
          "options": {
106
            "browserTarget": "ng-universal-demo:build"
155
            "browserTarget": "connect:build"
107 156
          }
108 157
        },
109 158
        "test": {
110 159
          "builder": "@angular-devkit/build-angular:karma",
111 160
          "options": {
112 161
            "main": "src/test.ts",
113
            "karmaConfig": "./karma.conf.js",
114 162
            "polyfills": "src/polyfills.ts",
115 163
            "tsConfig": "src/tsconfig.spec.json",
116
            "scripts": [
117
              "node_modules/jquery/dist/jquery.js"
118
            ],
164
            "karmaConfig": "src/karma.conf.js",
119 165
            "styles": [
120
              "src/styles.css",
121
              "src/material.scss"
166
              "src/styles.css"
122 167
            ],
168
            "scripts": [],
123 169
            "assets": [
124 170
              "src/assets"
125 171
            ]
......
140 186
        "server": {
141 187
          "builder": "@angular-devkit/build-angular:server",
142 188
          "options": {
143
            "outputPath": "dist/server",
144
            "main": "src/main.server.ts",
189
            "outputPath": "dist/connect/server",
190
            "main": "server.ts",
145 191
            "tsConfig": "src/tsconfig.server.json"
146 192
          },
147 193
          "configurations": {
148
            "production": {
194
            "development": {
195
              "outputHashing": "media",
196
              "sourceMap": false,
197
              "optimization": true
198
            },
199
            "beta": {
200
              "outputHashing": "media",
149 201
              "fileReplacements": [
150 202
                {
151 203
                  "replace": "src/environments/environment.ts",
152
                  "with": "src/environments/environment.prod.ts"
153
                },
154
                {
155
                  "replace": "src/index.html",
156
                  "with": "src/index.prod.html"
204
                  "with": "src/environments/environment.beta.ts"
157 205
                }
158
              ]
206
              ],
207
              "sourceMap": false,
208
              "optimization": true
159 209
            },
160
            "beta": {
210
            "production": {
211
              "outputHashing": "media",
161 212
              "fileReplacements": [
162 213
                {
163 214
                  "replace": "src/environments/environment.ts",
164
                  "with": "src/environments/environment.beta.ts"
165
                },
166
                {
167
                  "replace": "src/index.html",
168
                  "with": "src/index.beta.html"
215
                  "with": "src/environments/environment.prod.ts"
169 216
                }
170
              ]
171
            },
172
            "development": {}
217
              ],
218
              "sourceMap": false,
219
              "optimization": true
220
            }
173 221
          }
222
        },
223
        "serve-ssr": {
224
          "builder": "@nguniversal/builders:ssr-dev-server",
225
          "options": {
226
            "browserTarget": "connect:build",
227
            "serverTarget": "connect:server"
228
          },
229
          "configurations": {
230
            "production": {
231
              "browserTarget": "connect:build:production",
232
              "serverTarget": "connect:server:production"
233
            }
234
          }
235
        },
236
        "prerender": {
237
          "builder": "@nguniversal/builders:prerender",
238
          "options": {
239
            "browserTarget": "connect:build:production",
240
            "serverTarget": "connect:server:production",
241
            "routes": [
242
              "/"
243
            ]
244
          },
245
          "configurations": {
246
            "production": {}
247
          }
174 248
        }
175 249
      }
176 250
    },
177
    "ng-universal-demo-e2e": {
178
      "root": "e2e",
179
      "sourceRoot": "e2e",
251
    "connect-e2e": {
252
      "root": "e2e/",
180 253
      "projectType": "application",
254
      "prefix": "",
181 255
      "architect": {
182 256
        "e2e": {
183 257
          "builder": "@angular-devkit/build-angular:protractor",
184 258
          "options": {
185
            "protractorConfig": "./protractor.conf.js",
186
            "devServerTarget": "ng-universal-demo:serve"
259
            "protractorConfig": "e2e/protractor.conf.js",
260
            "devServerTarget": "connect:serve"
261
          },
262
          "configurations": {
263
            "production": {
264
              "devServerTarget": "connect:serve:production"
265
            }
187 266
          }
188 267
        },
189 268
        "lint": {
190 269
          "builder": "@angular-devkit/build-angular:tslint",
191 270
          "options": {
192
            "tsConfig": [
193
              "e2e/tsconfig.e2e.json"
194
            ],
271
            "tsConfig": "e2e/tsconfig.e2e.json",
195 272
            "exclude": [
196 273
              "**/node_modules/**"
197 274
            ]
......
200 277
      }
201 278
    }
202 279
  },
203
  "defaultProject": "ng-universal-demo",
204
  "schematics": {
205
    "@schematics/angular:class": {
206
      "spec": false
207
    },
208
    "@schematics/angular:component": {
209
      "spec": false,
210
      "inlineStyle": true,
211
      "inlineTemplate": true,
212
      "prefix": "app",
213
      "styleext": "css"
214
    },
215
    "@schematics/angular:directive": {
216
      "spec": false,
217
      "prefix": "app"
218
    },
219
    "@schematics/angular:guard": {
220
      "spec": false
221
    },
222
    "@schematics/angular:module": {
223
      "spec": false
224
    },
225
    "@schematics/angular:pipe": {
226
      "spec": false
227
    },
228
    "@schematics/angular:service": {
229
      "spec": false
230
    }
231
  }
280
  "defaultProject": "connect"
232 281
}
modules/uoa-connect-portal/trunk/package.json
1 1
{
2
  "name": "openaire-connect",
2
  "name": "connect",
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
    "start": " ng serve --disable-host-check --host 0.0.0.0",
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
    "start:ssr-dev": "npm run build:ssr-dev && npm run serve:ssr",
17
    "start:prerender-dev": "npm run build:prerender-dev && npm run serve:prerender",
6
    "start": "ng serve --disable-host-check --host 0.0.0.0 --port 4200",
18 7
    "build": "ng build",
19
    "build:client-and-server-bundles": "ng build --prod --stats-json=true && ng run ng-universal-demo:server:production",
20
    "build:client-and-server-bundles-beta": "ng build --configuration=beta --stats-json=true && ng run ng-universal-demo:server:beta",
21
    "build:client-and-server-bundles-dev": "ng build --configuration=development --stats-json=true && ng run ng-universal-demo:server:development",
22
    "build:prerender": "npm run build:client-and-server-bundles && npm run webpack:server && npm run generate:prerender",
23
    "build:ssr": "npm run build:client-and-server-bundles  && npm run webpack:server",
24
    "build:prerender-beta": "npm run build:client-and-server-bundles-beta && npm run webpack:server && npm run generate:prerender",
25
    "build:ssr-beta": "npm run build:client-and-server-bundles-beta  && npm run webpack:server",
26
    "build:prerender-dev": "npm run build:client-and-server-bundles-dev && npm run webpack:server && npm run generate:prerender",
27
    "build:ssr-dev": "npm run build:client-and-server-bundles-dev  && npm run webpack:server",
28
    "generate:prerender": "cd dist && node prerender",
29
    "webpack:server": "webpack --config webpack.server.config.js --progress --colors",
30
    "serve:prerender": "cd dist/browser && http-server",
31
    "serve:ssr": "node dist/server",
32
    "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/connect/browser/stats.json --host 0.0.0.0",
12
    "test": "ng test",
13
    "e2e": "ng e2e",
14
    "dev:ssr": "ng run connect:serve-ssr",
15
    "serve:ssr": "node dist/connect/server/main.js",
16
    "build:ssr-dev": "npm run build-dev && ng run connect:server:development",
17
    "build:ssr-beta": "npm run build-beta && ng run connect:server:beta",
18
    "build:ssr-prod": "npm run build-prod && ng run connect:server:production",
19
    "prerender": "ng run connect:prerender",
20
    "postinstall": "chmod +x clean-library.sh && ./clean-library.sh",
21
    "after-build-clean": "rm -rf dist/connect/browser/assets/common-assets/.svn/ src/app/openaireLibrary/.svn node_modules src/assets/common-assets/.svn/"
33 22
  },
34 23
  "private": true,
35 24
  "dependencies": {
36
    "@angular/animations": "^7.2.14",
37
    "@angular/cdk": "^7.3.7",
38
    "@angular/common": "7.2.14",
39
    "@angular/compiler": "7.2.14",
40
    "@angular/core": "7.2.14",
41
    "@angular/forms": "7.2.14",
42
    "@angular/http": "7.2.14",
43
    "@angular/material": "^7.3.7",
44
    "@angular/platform-browser": "7.2.14",
45
    "@angular/platform-browser-dynamic": "7.2.14",
46
    "@angular/platform-server": "7.2.14",
47
    "@angular/router": "7.2.14",
48
    "@nguniversal/express-engine": "^6.0.0",
49
    "@nguniversal/module-map-ngfactory-loader": "^6.0.0",
50
    "@types/express": "^4.16.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",
51 38
    "clipboard": "^1.5.16",
52
    "core-js": "^2.4.1",
39
    "core-js": "^2.5.4",
40
    "express": "^4.15.2",
53 41
    "jquery": "^3.4.1",
54
    "ngx-json-ld": "0.1.6",
55
    "prom-client": "^11.3.0",
42
    "ng-recaptcha": "^7.0.1",
43
    "ng2-ckeditor": "1.3.1",
44
    "rxjs": "^6.5.1",
56 45
    "ts-md5": "^1.2.0",
57
    "tslib": "^1.9.0",
58
    "zone.js": "^0.8.26",
59
    "ng-recaptcha": "^3.0.5",
60
    "ng2-ckeditor": "1.1.9"
46
    "tslib": "^2.0.0",
47
    "zone.js": "~0.10.2"
61 48
  },
62 49
  "devDependencies": {
63
    "@angular-devkit/build-angular": "~0.13.0",
64
    "@angular/cli": "^7.3.9",
65
    "@angular/compiler-cli": "7.2.14",
66
    "@angular/language-service": "7.2.14",
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/node": "^12.11.1",
56
    "@types/jasmine": "~3.6.0",
57
    "@types/jasminewd2": "~2.0.3",
58
    "@types/express": "^4.17.0",
59
    "@types/compression": "^1.7.0",
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-connect-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-connect-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-connect-portal/trunk/src/index.beta.html
1
<!DOCTYPE html>
2
<html lang="en-gb" 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" content="OpenAIRE Connect, Connect,Community Dashboard, communities, open access, research, projects "/>
10

  
11
      <meta property="og:description" content="OpenAIRE Connect, Connect,Community Dashboard, communities, open access, research, projects"/>
12
      <meta property="og:title" content="OpenAIRE - Connect "/>
13

  
14
      <meta property="og:type" content="website"/>
15
      <meta property="og:url" content="https://beta.connect.openaire.eu"/>
16
      <meta property="og:site_name" content="OpenAIRE - Connect"/>
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
      <script  src="assets/common-assets/common/jquery.js"></script>
43
      <script  src="assets/common-assets/common/uikit.min.js?v=1"></script>
44
      <script src="assets/common-assets/common/uikit-icons.min.js?v=1"></script>
45
      <script src="https://cdn.ckeditor.com/4.5.11/full-all/ckeditor.js"></script>
46
      <script>
47
      $(document).ready(function(){
48
        console.log("Is ready - load uikit ***")
49
          $.getScript("assets/common-assets/common/uikit.min.js?v=1");
50
          $.getScript("assets/common-assets/common/uikit-icons.min.js?v=1");
51
      });
52

  
53
      </script>
54

  
55

  
56
      <link id="customCssfile" rel="stylesheet" href="">
57
      <style id="customCss">
58
      </style>
59
   </head>
60
   <body class="" style="">
61
      <div class="uk-offcanvas-content uk-height-viewport">
62
         <app-root></app-root>
63
      </div>
64
   </body>
65
   <script type="text/javascript"  >
66
      function loadAltmetrics(e,t,n){
67
         var d="createElement",c="getElementsByTagName",m="setAttribute",n=document.getElementById(e);
68
         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")
69
      }
70

  
71
      function appendCss(customData) {
72
         if (typeof customData != "undefined")
73
            $(document).ready(function () {
74
               /*          var link = $("<style>");
75
                         link.attr({
76
                             type: 'text/css',
77
                             rel: 'stylesheet',
78
                             id: "customCss",
79
                         });
80
                         $("head").append(link);
81
                         $("#customCss").append(customData);*/
82
               //TODO uncomment above and remove the following once customization is up to date
83
               var link = $("<link>");
84
               link.attr({
85
                  rel: 'stylesheet',
86
                  id: "customCss",
87
                  href:"/assets/customization.css"
88
               });
89
               $("head").append(link);
90
               $("#customCss").append(customData);
91
            });
92
      }
93
   </script>
94
   <script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script>
95
</html>
modules/uoa-connect-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 Connect, Connect,Community Dashboard, communities, open access, research, projects "/>
11
    <meta property="og:description"
12
          content="OpenAIRE Connect, Connect,Community Dashboard, communities, open access, research, projects"/>
13
    <meta property="og:title" content="OpenAIRE - Connect "/>
14
    <meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" />
15
    <meta name="robots" content="all">
16
    <meta property="og:type" content="website"/>
17
    <meta property="og:url" content="https://connect.openaire.eu"/>
18
    <meta property="og:site_name" content="OpenAIRE - Connect"/>
19

  
20
    <meta property="og:image" content="assets/common-assets/common/Symbol.png"/>
21
    <meta property="og:image:secure_url" content="assets/common-assets/common/Symbol.png"/>
22
    <meta property="og:image:type" content="image/png"/>
23
    <meta property="og:image:width" content="360"/>
24
    <meta property="og:image:height" content="359"/>
25

  
26
    <link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png">
27
    <link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png">
28
    <link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png">
29
    <link rel="apple-touch-icon" sizes="76x76" href="assets/common-assets/logo/apple-icon-76x76.png">
30
    <link rel="apple-touch-icon" sizes="114x114" href="assets/common-assets/logo/apple-icon-114x114.png">
31
    <link rel="apple-touch-icon" sizes="120x120" href="assets/common-assets/logo/apple-icon-120x120.png">
32
    <link rel="apple-touch-icon" sizes="144x144" href="assets/common-assets/logo/apple-icon-144x144.png">
33
    <link rel="apple-touch-icon" sizes="152x152" href="assets/common-assets/logo/apple-icon-152x152.png">
34
    <link rel="apple-touch-icon" sizes="180x180" href="assets/common-assets/logo/apple-icon-180x180.png">
35
    <link rel="icon" type="image/png" sizes="192x192" href="assets/common-assets/logo/android-icon-192x192.png">
36
    <link rel="icon" type="image/png" sizes="32x32" href="assets/common-assets/logo/favicon-32x32.png">
37
    <link rel="icon" type="image/png" sizes="96x96" href="assets/common-assets/logo/favicon-96x96.png">
38
    <link rel="icon" type="image/png" sizes="16x16" href="assets/common-assets/logo/favicon-16x16.png">
39
    <link href="assets/common-assets/logo/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"/>
40
    <link rel="manifest" href="assets/common-assets/logo/manifest.json">
41
    <meta name="msapplication-TileColor" content="#ffffff">
42
    <meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
43
    <meta name="theme-color" content="#ffffff">
44
    <script src="assets/common-assets/common/jquery.js"></script>
45
    <script src="assets/common-assets/common/uikit.min.js?v=1"></script>
46
    <script src="assets/common-assets/common/uikit-icons.min.js?v=1"></script>
47
    <script src="https://cdn.ckeditor.com/4.5.11/full-all/ckeditor.js"></script>
48
    <script>
49
        $(document).ready(function () {
50
            console.log("Is ready - load uikit ***")
51
            $.getScript("assets/common-assets/common/uikit.min.js?v=1");
52
            $.getScript("assets/common-assets/common/uikit-icons.min.js?v=1");
53
        });
54

  
55
    </script>
56

  
57
    <link id="customCssfile" rel="stylesheet" href="">
58
    <style id="customCss">
59
    </style>
60
  </head>
61
  <body class="" style="">
62
    <div class="uk-offcanvas-content uk-height-viewport">
63
      <app-root></app-root>
64
    </div>
65
  </body>
66
  <script type="text/javascript"  >
67
      function loadAltmetrics(e,t,n){
68
          var d="createElement",c="getElementsByTagName",m="setAttribute",n=document.getElementById(e);
69
          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")
70
      }
71

  
72
      function appendCss(customData) {
73
          if (typeof customData != "undefined")
74
              $(document).ready(function () {
75
                  /*          var link = $("<style>");
76
                            link.attr({
77
                                type: 'text/css',
78
                                rel: 'stylesheet',
79
                                id: "customCss",
80
                            });
81
                            $("head").append(link);
82
                            $("#customCss").append(customData);*/
83
                  //TODO uncomment above and remove the following once customization is up to date
84
                  var link = $("<link>");
85
                  link.attr({
86
                      rel: 'stylesheet',
87
                      id: "customCss",
88
                      href:"/assets/customization.css"
89
                  });
90
                  $("head").append(link);
91
                  $("#customCss").append(customData);
92
              });
93
      }
94
  </script>
95
  <script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script>
96
</html>
modules/uoa-connect-portal/trunk/src/app/community/community.component.ts
93 93
  shareInZenodoPage: string = null;
94 94
  public routerHelper: RouterHelper = new RouterHelper();
95 95
  private user: User;
96
  
97
  @ViewChild(SubscribeComponent) subscribeComponent: SubscribeComponent = null;
98
//Search Form
99 96
  selectedEntity;
100 97
  selectedEntitySimpleUrl;
101 98
  selectedEntityAdvancedUrl;
modules/uoa-connect-portal/trunk/src/app/community/community.module.ts
22 22
import {CuratorsModule} from "../curators/curators.module";
23 23
import {AffiliationsModule} from "../affiliations/affiliations.module";
24 24
import {SEOServiceModule} from "../openaireLibrary/sharedComponents/SEO/SEOService.module";
25
import {MatSelectModule} from "@angular/material";
25
import { MatSelectModule } from "@angular/material/select";
26 26
import {EntitiesSelectionModule} from "../openaireLibrary/searchPages/searchUtils/entitiesSelection.module";
27 27
import {TabsModule} from "../openaireLibrary/utils/tabs/tabs.module";
28 28
import {SearchTabModule} from "../openaireLibrary/utils/tabs/contents/search-tab.module";
modules/uoa-connect-portal/trunk/src/app/htmlPages/htmlPage.component.ts
1 1
import {Component, Input} from '@angular/core';
2 2
import {ActivatedRoute, Router} from '@angular/router';
3
import 'rxjs/Rx';
4 3
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
5 4
import {Meta, Title} from "@angular/platform-browser";
6 5
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
modules/uoa-connect-portal/trunk/src/app/searchPages/simple/searchDataproviders.component.ts
68 68
  customFilter: SearchCustomFilter = null;
69 69
  initialLoad = true;
70 70
  public allResults =[];
71
  @ViewChild(NewSearchPageComponent) searchPage: NewSearchPageComponent;
71
  @ViewChild(NewSearchPageComponent, { static: true }) searchPage: NewSearchPageComponent;
72 72
  public fieldIds:  string[] = this.searchFields.DATASOURCE_ADVANCED_FIELDS;
73 73
  public fieldIdsMap= this.searchFields.DATASOURCE_FIELDS;
74 74
  public selectedFields:AdvancedField[] =  [];
modules/uoa-connect-portal/trunk/src/app/searchPages/simple/searchProjects.component.ts
68 68
  customFilter: SearchCustomFilter = null;
69 69
  initialLoad = true;
70 70
  public allResults =[];
71
  @ViewChild(NewSearchPageComponent) searchPage: NewSearchPageComponent;
71
  @ViewChild(NewSearchPageComponent, { static: true }) searchPage: NewSearchPageComponent;
72 72
  public fieldIds:  string[] = this.searchFields.PROJECT_ADVANCED_FIELDS;
73 73
  public fieldIdsMap= this.searchFields.PROJECT_FIELDS;
74 74
  public selectedFields:AdvancedField[] =  [];
modules/uoa-connect-portal/trunk/src/app/searchPages/communities/searchCommunities.component.ts
65 65
  public showType = false;
66 66
  public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'communities'}];
67 67
  properties: EnvProperties;
68
  @ViewChild(NewSearchPageComponent) searchPage: NewSearchPageComponent;
68
  @ViewChild(NewSearchPageComponent, { static: true }) searchPage: NewSearchPageComponent;
69 69
  private user: User;
70 70
  private userFilterLoaded: boolean = false;
71 71
  
modules/uoa-connect-portal/trunk/src/app/app.module.ts
41 41
    CookieLawModule,
42 42
    CustomizationModule,
43 43
    SubscribeModule.forRoot(), InviteBasicModule,
44
    BrowserModule.withServerTransition({appId: 'my-app'}),
44
    BrowserModule.withServerTransition({ appId: 'serverApp' }),
45 45
    AppRoutingModule,
46 46
    BrowserTransferStateModule,
47 47
    BrowserAnimationsModule,
modules/uoa-connect-portal/trunk/src/app/statistics/statistics.component.ts
1 1
import {Component, Input} from '@angular/core';
2 2
import {ActivatedRoute, Router} from '@angular/router';
3 3
import {Location, TitleCasePipe} from '@angular/common';
4
import {Title, Meta} from '@angular/platform-browser';
5
import {DomSanitizer} from '@angular/platform-browser';
6
import "rxjs/add/observable/zip";
4
import {DomSanitizer, Meta, Title} from '@angular/platform-browser';
7 5
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
8 6
import {ErrorCodes} from '../openaireLibrary/utils/properties/errorCodes';
9 7
import {StatisticsService} from '../utils/services/statistics.service';
10 8
import {ConfigurationService} from '../openaireLibrary/utils/configuration/configuration.service';
11 9
import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.service';
12
import {ConnectHelper} from '../openaireLibrary/connect/connectHelper';
13 10
import {
14
  availableCharts, availableEntitiesMap, StatisticsDisplay,
11
  availableCharts,
12
  availableEntitiesMap,
13
  StatisticsDisplay,
15 14
  StatisticsSummary
16 15
} from "../openaireLibrary/connect/statistics/statisticsEntities";
17 16
import {PiwikHelper} from '../utils/piwikHelper';
18 17
import {CommunityCharts} from "../openaireLibrary/connect/statistics/communityCharts";
19
import {HelperFunctions} from "../openaireLibrary/utils/HelperFunctions.class";
20 18
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
21 19
import {Subscriber, Subscription} from "rxjs";
22 20
import {properties} from "../../environments/environment";
modules/uoa-connect-portal/trunk/src/app/contact/contact.component.ts
32 32

  
33 33
    public contactForm: FormGroup;
34 34
    @ViewChild('AlertModal') modal;
35
    @ViewChild('recaptcha') recaptcha;
36 35
    private subscriptions = [];
37 36
    ngOnDestroy() {
38 37
        this.subscriptions.forEach(subscription => {
modules/uoa-connect-portal/trunk/src/app/contact/contact.module.ts
5 5
import {ContactComponent} from './contact.component';
6 6
import {ContactRoutingModule} from "./contact-routing.module";
7 7
import {EmailService} from "../openaireLibrary/utils/email/email.service";
8
import {RecaptchaModule} from "ng-recaptcha";
9 8
import {AlertModalModule} from "../openaireLibrary/utils/modal/alertModal.module";
10 9
import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service";
11 10
import {HelperModule} from "../openaireLibrary/utils/helper/helper.module";
......
19 18
@NgModule({
20 19
  imports: [
21 20
    ContactRoutingModule, CommonModule, RouterModule,
22
    AlertModalModule, RecaptchaModule.forRoot(), HelperModule,
21
    AlertModalModule, HelperModule,
23 22
    Schema2jsonldModule, SEOServiceModule, ContactUsModule, BreadcrumbsModule
24 23
  ],
25 24
  declarations: [
modules/uoa-connect-portal/trunk/src/app/communities/browseCommunity/browse-community.component.ts
18 18
  @Input() public community: CommunityInfo = null;
19 19
  @Input() public showDescription: boolean = true;
20 20
  @Input() public smallTitle: boolean = false;
21
  @ViewChild('AlertModal') modal;
21
  @ViewChild('AlertModal', { static: true }) modal;
22 22

  
23 23
  public hiddenMessage: string = "Community is hidden to registered users. It is visible only to users that have privileges to  manage community; delay: 100";
24 24
  // cut title too
modules/uoa-connect-portal/trunk/src/app/app.server.module.ts
1
import {NgModule} from '@angular/core';
1
import { NgModule } from '@angular/core';
2 2
import {ServerModule, ServerTransferStateModule} from '@angular/platform-server';
3
import {ModuleMapLoaderModule} from '@nguniversal/module-map-ngfactory-loader';
4 3

  
5
import {AppModule} from './app.module';
6
import {AppComponent} from './app.component';
4
import { AppModule } from './app.module';
5
import { AppComponent } from './app.component';
7 6

  
8 7
@NgModule({
9 8
  imports: [
10
    // The AppServerModule should import your AppModule followed
11
    // by the ServerModule from @angular/platform-server.
12 9
    AppModule,
13 10
    ServerModule,
14
    ModuleMapLoaderModule,
15 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 15
export class AppServerModule {}
modules/uoa-connect-portal/trunk/src/app/utils/subscribe/subscribe.component.ts
75 75
  members: number = 0;
76 76
  @Output() countSubscribersEvent = new EventEmitter();
77 77
  showLoginAlert: Boolean = false;
78
  @ViewChild(AlertModal) alert;
78
  @ViewChild(AlertModal, { static: true }) alert;
79 79
  private user: User;
80 80
  
81 81
  subs: Subscription[] = [];
modules/uoa-connect-portal/trunk/src/app/utils/subscribe/subscribe.module.ts
19 19
  ]
20 20
})
21 21
export class SubscribeModule {
22
  static forRoot(): ModuleWithProviders {
22
  static forRoot(): ModuleWithProviders<SubscribeModule> {
23 23
    return {
24 24
      ngModule: SubscribeModule,
25 25
      providers: [
modules/uoa-connect-portal/trunk/src/app/utils/services/statistics.service.ts
1 1
import { Injectable } from '@angular/core';
2 2
import {HttpClient, HttpErrorResponse} from "@angular/common/http";
3
import { Observable } from 'rxjs/Rx';
4 3
import {StatisticsDisplay, StatisticsSummary} from "../../openaireLibrary/connect/statistics/statisticsEntities";
5 4
import {catchError, map} from "rxjs/operators";
6
import {throwError} from "rxjs";
5
import {Observable, throwError} from "rxjs";
7 6
import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties";
8 7

  
9 8

  
modules/uoa-connect-portal/trunk/src/app/utils/customization/customization.module.ts
17 17
  ]
18 18
})
19 19
export class CustomizationModule {
20
  static forRoot(): ModuleWithProviders {
20
  static forRoot(): ModuleWithProviders<CustomizationModule> {
21 21
    return {
22 22
      ngModule: CustomizationModule,
23 23
      providers: [
modules/uoa-connect-portal/trunk/src/app/app.component.ts
183 183
          this.layout = new CustomizationOptions(CustomizationOptions.getIdentity(communityId).mainColor, CustomizationOptions.getIdentity(communityId).secondaryColor);
184 184
        }
185 185
      );
186
    }else{
187
      this.layout = new CustomizationOptions(CustomizationOptions.getIdentity(communityId).mainColor, CustomizationOptions.getIdentity(communityId).secondaryColor);
188 186
    }
189 187
  }
190 188
  public buildMenu(communityId: string) {
......
328 326
      
329 327
    });
330 328
    this.menuItems.push({
331
      rootItem: new MenuItem("communities", "Communities", restrictedData ? url + "/about/faq" : "", restrictedData ? "" : "/search/find/communities", false, [], ['/search/find/communities'], {}),
329
      rootItem: new MenuItem("communities", "Communities", restrictedData ? url + "/search/find/communities" : "", restrictedData ? "" : "/search/find/communities", false, [], ['/search/find/communities'], {}),
332 330
      items: []
333 331
    });
334 332
    this.menuItems.push({
modules/uoa-connect-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
    };
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff