Project

General

Profile

« Previous | Next » 

Revision 61399

[Usage Counts | Trunk]: Update to angular 11

View differences:

modules/uoa-usage-statistics/trunk/tslint.json
1
{
2
  "rulesDirectory": [
3
    "node_modules/codelyzer"
4
  ],
5
  "rules": {
6
    "arrow-return-shorthand": true,
7
    "callable-types": true,
8
    "class-name": true,
9
    "comment-format": [
10
      true,
11
      "check-space"
12
    ],
13
    "curly": true,
14
    "eofline": true,
15
    "forin": true,
16
    "import-blacklist": [
17
      true
18
    ],
19
    "import-spacing": true,
20
    "indent": [
21
      true,
22
      "spaces"
23
    ],
24
    "interface-over-type-literal": true,
25
    "label-position": true,
26
    "max-line-length": [
27
      true,
28
      140
29
    ],
30
    "member-access": false,
31
    "member-ordering": [
32
      true,
33
      {
34
        "order": [
35
          "static-field",
36
          "instance-field",
37
          "static-method",
38
          "instance-method"
39
        ]
40
      }
41
    ],
42
    "no-arg": true,
43
    "no-bitwise": true,
44
    "no-console": [
45
      true,
46
      "debug",
47
      "info",
48
      "time",
49
      "timeEnd",
50
      "trace"
51
    ],
52
    "no-construct": true,
53
    "no-debugger": true,
54
    "no-duplicate-super": true,
55
    "no-empty": false,
56
    "no-empty-interface": true,
57
    "no-eval": true,
58
    "no-inferrable-types": [
59
      true,
60
      "ignore-params"
61
    ],
62
    "no-misused-new": true,
63
    "no-non-null-assertion": true,
64
    "no-shadowed-variable": true,
65
    "no-string-literal": false,
66
    "no-string-throw": true,
67
    "no-switch-case-fall-through": true,
68
    "no-trailing-whitespace": true,
69
    "no-unnecessary-initializer": true,
70
    "no-unused-expression": true,
71
    "no-use-before-declare": true,
72
    "no-var-keyword": true,
73
    "object-literal-sort-keys": false,
74
    "one-line": [
75
      true,
76
      "check-open-brace",
77
      "check-catch",
78
      "check-else",
79
      "check-whitespace"
80
    ],
81
    "prefer-const": true,
82
    "quotemark": [
83
      true,
84
      "single"
85
    ],
86
    "radix": true,
87
    "semicolon": [
88
      true,
89
      "always"
90
    ],
91
    "triple-equals": [
92
      true,
93
      "allow-null-check"
94
    ],
95
    "typedef-whitespace": [
96
      true,
97
      {
98
        "call-signature": "nospace",
99
        "index-signature": "nospace",
100
        "parameter": "nospace",
101
        "property-declaration": "nospace",
102
        "variable-declaration": "nospace"
103
      }
104
    ],
105
    "typeof-compare": true,
106
    "unified-signatures": true,
107
    "variable-name": false,
108
    "whitespace": [
109
      true,
110
      "check-branch",
111
      "check-decl",
112
      "check-operator",
113
      "check-separator",
114
      "check-type"
115
    ],
116
    "directive-selector": [
117
      true,
118
      "attribute",
119
      "app",
120
      "camelCase"
121
    ],
122
    "component-selector": [
123
      true,
124
      "element",
125
      "app",
126
      "kebab-case"
127
    ],
128
    "use-input-property-decorator": true,
129
    "use-output-property-decorator": true,
130
    "use-host-property-decorator": true,
131
    "no-input-rename": true,
132
    "no-output-rename": true,
133
    "use-life-cycle-interface": true,
134
    "use-pipe-transform-interface": true,
135
    "component-class-suffix": true,
136
    "directive-class-suffix": true,
137
    "no-access-missing-member": true,
138
    "templates-use-public": true,
139
    "invoke-injectable": true
140
  }
141
}
modules/uoa-usage-statistics/trunk/karma.conf.js
1
// Karma configuration file, see link for more information
2
// https://karma-runner.github.io/1.0/config/configuration-file.html
3

  
4
module.exports = function (config) {
5
  config.set({
6
    basePath: '',
7
    frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
    plugins: [
9
      require('karma-jasmine'),
10
      require('karma-chrome-launcher'),
11
      require('karma-jasmine-html-reporter'),
12
      require('karma-coverage-istanbul-reporter'),
13
      require('@angular-devkit/build-angular/plugins/karma')
14
    ],
15
    client:{
16
      clearContext: false // leave Jasmine Spec Runner output visible in browser
17
    },
18
    coverageIstanbulReporter: {
19
      dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
20
      fixWebpackSourcePaths: true
21
    },
22
    
23
    reporters: ['progress', 'kjhtml'],
24
    port: 9876,
25
    colors: true,
26
    logLevel: config.LOG_INFO,
27
    autoWatch: true,
28
    browsers: ['Chrome'],
29
    singleRun: false
30
  });
31
};
modules/uoa-usage-statistics/trunk/README.txt
1
*******Useful project infrmation***********
2
Project has 2 external folders. Check them using  
3
	svn propget svn:externals ./
4

  
5
Above command should show the following:
6
	./src/app/openaireLibrary https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app
7
	./src/assets/common-assets https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/assets
8

  
9
After initial checkout, you may have to exlude ./src/app/openaireLibrary/app.* files in order the project to run properly.
10
Exclude the files from your local copy, but keep them in the repository.
11

  
12
Use the following command, to exclude the files:
13
	cd ./src/app/openaireLibrary
14
	svn update --set-depth exclude ./app.*
15
	svn update --set-depth exclude ./dashboard
modules/uoa-usage-statistics/trunk/protractor.conf.js
1
// Protractor configuration file, see link for more information
2
// https://github.com/angular/protractor/blob/master/lib/config.ts
3

  
4
const { SpecReporter } = require('jasmine-spec-reporter');
5

  
6
exports.config = {
7
  allScriptsTimeout: 11000,
8
  specs: [
9
    './e2e/**/*.e2e-spec.ts'
10
  ],
11
  capabilities: {
12
    'browserName': 'chrome'
13
  },
14
  directConnect: true,
15
  baseUrl: 'http://localhost:4200/',
16
  framework: 'jasmine',
17
  jasmineNodeOpts: {
18
    showColors: true,
19
    defaultTimeoutInterval: 30000,
20
    print: function() {}
21
  },
22
  onPrepare() {
23
    require('ts-node').register({
24
      project: 'e2e/tsconfig.e2e.json'
25
    });
26
    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
27
  }
28
};
modules/uoa-usage-statistics/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
    "usage-statistics": {
6
    "usage-counts": {
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",
38
            "aot": true,
39
            "outputPath": "dist/usage-counts",
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
              "src/robots.txt",
......
33 58
            ]
34 59
          },
35 60
          "configurations": {
36
            "production": {
61
            "development": {
37 62
              "optimization": true,
38 63
              "outputHashing": "all",
39 64
              "sourceMap": false,
40
              "extractCss": true,
41 65
              "namedChunks": false,
42 66
              "aot": true,
43 67
              "extractLicenses": true,
44 68
              "vendorChunk": false,
45 69
              "buildOptimizer": true,
46
              "fileReplacements": [
70
              "budgets": [
47 71
                {
48
                  "replace": "src/environments/environment.ts",
49
                  "with": "src/environments/environment.prod.ts"
72
                  "type": "initial",
73
                  "maximumWarning": "2mb",
74
                  "maximumError": "5mb"
50 75
                },
51 76
                {
52
                  "replace": "src/index.html",
53
                  "with": "src/index.prod.html"
54
                },
55
                {
56
                  "replace": "src/robots.txt",
57
                  "with": "src/robots.prod.txt"
77
                  "type": "anyComponentStyle",
78
                  "maximumWarning": "6kb"
58 79
                }
59 80
              ]
60 81
            },
61 82
            "beta": {
83
              "fileReplacements": [
84
                {
85
                  "replace": "src/environments/environment.ts",
86
                  "with": "src/environments/environment.beta.ts"
87
                }
88
              ],
62 89
              "optimization": true,
63 90
              "outputHashing": "all",
64 91
              "sourceMap": false,
65
              "extractCss": true,
66 92
              "namedChunks": false,
67 93
              "aot": true,
68 94
              "extractLicenses": true,
69 95
              "vendorChunk": false,
70 96
              "buildOptimizer": true,
97
              "budgets": [
98
                {
99
                  "type": "initial",
100
                  "maximumWarning": "2mb",
101
                  "maximumError": "5mb"
102
                },
103
                {
104
                  "type": "anyComponentStyle",
105
                  "maximumWarning": "6kb"
106
                }
107
              ]
108
            },
109
            "production": {
110
              "assets": [
111
                "src/assets",
112
                "src/sitemap.xml",
113
                {
114
                  "input": "src/prod/",
115
                  "output": "/",
116
                  "glob": "*.txt"
117
                }
118
              ],
119
              "index": {
120
                "input": "src/prod/index.html",
121
                "output": "index.html"
122
              },
71 123
              "fileReplacements": [
72 124
                {
73 125
                  "replace": "src/environments/environment.ts",
74
                  "with": "src/environments/environment.beta.ts"
126
                  "with": "src/environments/environment.prod.ts"
75 127
                }
128
              ],
129
              "optimization": true,
130
              "outputHashing": "all",
131
              "sourceMap": false,
132
              "namedChunks": false,
133
              "aot": true,
134
              "extractLicenses": true,
135
              "vendorChunk": false,
136
              "buildOptimizer": true,
137
              "budgets": [
138
                {
139
                  "type": "initial",
140
                  "maximumWarning": "2mb",
141
                  "maximumError": "5mb"
142
                },
143
                {
144
                  "type": "anyComponentStyle",
145
                  "maximumWarning": "6kb"
146
                }
76 147
              ]
77 148
            }
78 149
          }
......
80 151
        "serve": {
81 152
          "builder": "@angular-devkit/build-angular:dev-server",
82 153
          "options": {
83
            "browserTarget": "usage-statistics:build"
154
            "browserTarget": "usage-counts:build"
84 155
          },
85 156
          "configurations": {
86 157
            "production": {
87
              "browserTarget": "usage-statistics:build:production"
88
            },
89
            "beta": {
90
              "browserTarget": "usage-statistics:build:beta"
158
              "browserTarget": "usage-counts:build:production"
91 159
            }
92 160
          }
93 161
        },
94 162
        "extract-i18n": {
95 163
          "builder": "@angular-devkit/build-angular:extract-i18n",
96 164
          "options": {
97
            "browserTarget": "usage-statistics:build"
165
            "browserTarget": "usage-counts:build"
98 166
          }
99 167
        },
100 168
        "test": {
101 169
          "builder": "@angular-devkit/build-angular:karma",
102 170
          "options": {
103 171
            "main": "src/test.ts",
104
            "karmaConfig": "./karma.conf.js",
105 172
            "polyfills": "src/polyfills.ts",
106 173
            "tsConfig": "src/tsconfig.spec.json",
107
            "scripts": [
108
              "node_modules/jquery/dist/jquery.js",
109
              "node_modules/datatables.net/js/jquery.dataTables.js",
110
              "node_modules/interactiveminingv3/assets/js/ResizeSensor.js",
111
              "node_modules/interactiveminingv3/assets/js/jquery.sticky-sidebar.js"
112
            ],
174
            "karmaConfig": "src/karma.conf.js",
113 175
            "styles": [
114
              "src/styles.css",
115
              "node_modules/datatables.net-dt/css/jquery.dataTables.css",
116
              "node_modules/interactiveminingv3/assets/css/interactive-mining.css",
117
              "node_modules/interactiveminingv3/assets/css/animations.css"
176
              "src/styles.css"
118 177
            ],
178
            "scripts": [],
119 179
            "assets": [
120
              "src/assets",
121
              "src/robots.txt",
122
              "src/sitemap.xml"
180
              "src/assets"
123 181
            ]
124 182
          }
125 183
        },
......
137 195
        }
138 196
      }
139 197
    },
140
    "usage-statistics-e2e": {
141
      "root": "e2e",
142
      "sourceRoot": "e2e",
198
    "usage-counts-e2e": {
199
      "root": "e2e/",
143 200
      "projectType": "application",
201
      "prefix": "",
144 202
      "architect": {
145 203
        "e2e": {
146 204
          "builder": "@angular-devkit/build-angular:protractor",
147 205
          "options": {
148
            "protractorConfig": "./protractor.conf.js",
149
            "devServerTarget": "usage-statistics:serve"
206
            "protractorConfig": "e2e/protractor.conf.js",
207
            "devServerTarget": "usage-counts:serve"
208
          },
209
          "configurations": {
210
            "production": {
211
              "devServerTarget": "usage-counts:serve:production"
212
            }
150 213
          }
151 214
        },
152 215
        "lint": {
153 216
          "builder": "@angular-devkit/build-angular:tslint",
154 217
          "options": {
155
            "tsConfig": [
156
              "e2e/tsconfig.e2e.json"
157
            ],
218
            "tsConfig": "e2e/tsconfig.e2e.json",
158 219
            "exclude": [
159 220
              "**/node_modules/**"
160 221
            ]
......
163 224
      }
164 225
    }
165 226
  },
166
  "defaultProject": "usage-statistics",
167
  "schematics": {
168
    "@schematics/angular:component": {
169
      "prefix": "app",
170
      "styleext": "css"
171
    },
172
    "@schematics/angular:directive": {
173
      "prefix": "app"
174
    }
175
  }
227
  "defaultProject": "usage-counts"
176 228
}
modules/uoa-usage-statistics/trunk/package.json
1 1
{
2
  "name": "usage-statistics",
3
  "version": "0.0.1",
4
  "license": "MIT",
2
  "name": "usage-counts",
3
  "version": "0.0.0",
5 4
  "scripts": {
6 5
    "ng": "ng",
7 6
    "start": "ng serve  --host 0.0.0.0 --disable-host-check --port=4800",
8
    "build": "ng build --prod",
7
    "build": "ng build",
8
    "build-dev": "ng build --configuration=development",
9 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/graph/browser/stats.json --host 0.0.0.0",
10 12
    "test": "ng test",
11 13
    "lint": "ng lint",
12 14
    "e2e": "ng e2e",
13
    "after-build-clean": "rm -rf dist/assets/common-assets/.svn/"
15
    "postinstall": "chmod +x clean-library.sh && ./clean-library.sh",
16
    "after-build-clean": "rm -rf dist/usage-counts/assets/common-assets/.svn/"
14 17
  },
15 18
  "private": true,
16 19
  "dependencies": {
17
    "@angular/animations": "7.2.14",
18
    "@angular/cdk": "^7.3.7",
19
    "@angular/common": "7.2.14",
20
    "@angular/compiler": "7.2.14",
21
    "@angular/core": "7.2.14",
22
    "@angular/forms": "7.2.14",
23
    "@angular/http": "7.2.14",
24
    "@angular/material": "^7.3.7",
25
    "@angular/platform-browser": "7.2.14",
26
    "@angular/platform-browser-dynamic": "7.2.14",
27
    "@angular/router": "7.2.14",
28
    "@nguniversal/express-engine": "^6.0.0",
29
    "@types/express": "^4.16.1",
20
    "@angular/animations": "~11.2.14",
21
    "@angular/cdk": "^11.2.13",
22
    "@angular/common": "~11.2.14",
23
    "@angular/compiler": "~11.2.14",
24
    "@angular/core": "~11.2.14",
25
    "@angular/forms": "~11.2.14",
26
    "@angular/localize": "^11.2.14",
27
    "@angular/material": "^11.2.13",
28
    "@angular/platform-browser": "~11.2.14",
29
    "@angular/platform-browser-dynamic": "~11.2.14",
30
    "@angular/router": "~11.2.14",
30 31
    "clipboard": "^1.5.16",
31
    "core-js": "2.6.8",
32
    "core-js": "^2.5.4",
33
    "express": "^4.15.2",
32 34
    "jquery": "^3.4.1",
33
    "ngx-bootstrap": "^1.6.6",
34
    "ng-recaptcha": "^3.0.5",
35
    "ng-recaptcha": "^7.0.1",
36
    "rxjs": "^6.5.1",
35 37
    "ts-md5": "^1.2.0",
36
    "tslib": "^1.9.0",
37
    "zone.js": "0.8.29"
38
    "tslib": "^2.0.0",
39
    "zone.js": "~0.10.2"
38 40
  },
39 41
  "devDependencies": {
40
    "@angular-devkit/build-angular": "~0.13.0",
41
    "@angular/cli": "7.3.9",
42
    "@angular/compiler-cli": "7.2.14",
43
    "@angular/language-service": "7.2.14",
44
    "@types/datatables.net": "^1.10.17",
45
    "@types/jasmine": "~2.8.8",
42
    "@angular-devkit/build-angular": "~0.1102.14",
43
    "@angular/cli": "~11.2.14",
44
    "@angular/compiler-cli": "~11.2.14",
45
    "@angular/language-service": "~11.2.14",
46
    "@types/express": "^4.17.0",
47
    "@types/node": "^12.11.1",
48
    "@types/jasmine": "~3.6.0",
46 49
    "@types/jasminewd2": "~2.0.3",
47
    "@types/jquery": "^3.3.29",
48
    "@types/node": "^14.0.13",
49
    "codelyzer": "~4.5.0",
50
    "jasmine-core": "~2.99.1",
51
    "jasmine-spec-reporter": "~4.2.1",
52
    "karma": "~3.0.0",
53
    "karma-chrome-launcher": "~2.1.1",
54
    "karma-cli": "~1.0.1",
55
    "karma-coverage-istanbul-reporter": "~2.0.1",
56
    "karma-jasmine": "~1.1.2",
57
    "karma-jasmine-html-reporter": "^0.2.2",
58
    "protractor": "~5.4.0",
59
    "rxjs": "6.5.1",
60
    "rxjs-compat": "^6.5.1",
61
    "rxjs-tslint": "^0.1.7",
50
    "codelyzer": "^6.0.0",
51
    "jasmine-core": "~3.8.0",
52
    "jasmine-spec-reporter": "~5.0.0",
53
    "karma": "~6.3.3",
54
    "karma-chrome-launcher": "~3.1.0",
55
    "karma-coverage-istanbul-reporter": "~3.0.2",
56
    "karma-jasmine": "~4.0.0",
57
    "karma-jasmine-html-reporter": "^1.6.0",
58
    "protractor": "~7.0.0",
62 59
    "ts-node": "~7.0.0",
63
    "tslint": "^5.7.0",
64
    "typescript": "3.2.4"
60
    "typescript": "~4.0.7"
65 61
  }
66 62
}
modules/uoa-usage-statistics/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-usage-statistics/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-usage-statistics/trunk/src/robots.prod.txt
1
User-Agent: *
2
Crawl-delay: 30
3

  
4
sitemap: https://usagecounts.openaire.eu/sitemap.xml
modules/uoa-usage-statistics/trunk/src/typings.d.ts
1
/* SystemJS module definition */
2
declare var module: NodeModule;
3
interface NodeModule {
4
  id: string;
5
}
modules/uoa-usage-statistics/trunk/src/index.prod.html
1
<!doctype html>
2
<html lang="en">
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
    <title>OpenAIRE - Research Graph</title>
9
    <meta charset="UTF-8">
10
    <meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" />
11
    <link href="assets/common-assets/logo-small-usage-counts.png">
12
    <link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png">
13
    <link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png">
14
    <link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png">
15
    <link rel="apple-touch-icon" sizes="76x76" href="assets/common-assets/logo/apple-icon-76x76.png">
16
    <link rel="apple-touch-icon" sizes="114x114" href="assets/common-assets/logo/apple-icon-114x114.png">
17
    <link rel="apple-touch-icon" sizes="120x120" href="assets/common-assets/logo/apple-icon-120x120.png">
18
    <link rel="apple-touch-icon" sizes="144x144" href="assets/common-assets/logo/apple-icon-144x144.png">
19
    <link rel="apple-touch-icon" sizes="152x152" href="assets/common-assets/logo/apple-icon-152x152.png">
20
    <link rel="apple-touch-icon" sizes="180x180" href="assets/common-assets/logo/apple-icon-180x180.png">
21
    <link rel="icon" type="image/png" sizes="192x192" href="assets/common-assets/logo/android-icon-192x192.png">
22
    <link rel="icon" type="image/png" sizes="32x32" href="assets/common-assets/logo/favicon-32x32.png">
23
    <link rel="icon" type="image/png" sizes="96x96" href="assets/common-assets/logo/favicon-96x96.png">
24
    <link rel="icon" type="image/png" sizes="16x16" href="assets/common-assets/logo/favicon-16x16.png">
25
    <link href="assets/common-assets/logo/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"/>
26
  </head>
27
  <body>
28
    <app-root></app-root>
29
  </body>
30
  <script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script>
31
</html>
modules/uoa-usage-statistics/trunk/src/app/polyfills.ts
1
/**
2
 * Created by stefanos on 25/4/2017.
3
 */
4
// Polyfills
5

  
6
// import 'ie-shim'; // Internet Explorer 9 support
7
import 'reflect-metadata';
8
// import 'core-js/es6';
9
// Added parts of es6 which are necessary for your project or your browser support requirements.
10
import 'core-js/es6/symbol';
11
import 'core-js/es6/object';
12
import 'core-js/es6/function';
13
import 'core-js/es6/parse-int';
14
import 'core-js/es6/parse-float';
15
import 'core-js/es6/number';
16
import 'core-js/es6/math';
17
import 'core-js/es6/string';
18
import 'core-js/es6/date';
19
import 'core-js/es6/array';
20
import 'core-js/es6/regexp';
21
import 'core-js/es6/map';
22
import 'core-js/es6/set';
23
import 'core-js/es6/weak-map';
24
import 'core-js/es6/weak-set';
25
import 'core-js/es6/typed';
26
import 'core-js/es6/reflect';
27
// see issue https://github.com/AngularClass/angular2-webpack-starter/issues/709
28
// import 'core-js/es6/promise';
29

  
30
import 'intl';
31
import 'intl/locale-data/jsonp/en';
32

  
33
import 'core-js/es7/reflect';
34
import 'zone.js/dist/zone';
35

  
36
// import 'ng2-ckeditor/lib';
37

  
38
// if ('production' === ENV) {
39
//     // Production
40
//
41
// } else {
42
//
43
//     // Development
44
//     Error.stackTraceLimit = Infinity;
45
//
46
//     /* tslint:disable no-var-requires */
47
//     require('zone.js/dist/long-stack-trace-zone');
48
//
49
// }
modules/uoa-usage-statistics/trunk/src/app/main.ts
1
import './polyfills.ts';
2
//import './vendors.ts';
3

  
4
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
5
import {AppModule} from './app.module';
6
import {enableProdMode} from "@angular/core";
7
import {properties} from "../environments/environment";
8

  
9
const platform = platformBrowserDynamic();
10
if (properties.environment !== "development") {
11
  enableProdMode();
12
}
13
platform.bootstrapModule(AppModule);
modules/uoa-usage-statistics/trunk/src/app/analytics/analytics.component.css
10 10

  
11 11
@media only screen and (min-width: 960px) {
12 12
  .countries {
13
    background-image: url("/assets/usage-statistics-assets/analytics/1.svg");
13
    background-image: url("~src/assets/usage-statistics-assets/analytics/1.svg");
14 14
    background-size: contain;
15 15
    background-repeat: no-repeat;
16 16
    background-position: top center;
......
59 59
}
60 60

  
61 61
.second {
62
  background-image: url("/assets/usage-statistics-assets/analytics/2.2.svg"), url("/assets/usage-statistics-assets/analytics/2.1.svg");
62
  background-image: url("~src/assets/usage-statistics-assets/analytics/2.2.svg"), url("/assets/usage-statistics-assets/analytics/2.1.svg");
63 63
  background-size: auto;
64 64
  background-repeat: no-repeat;
65 65
  background-position: bottom left, top right;
66 66
}
67 67

  
68 68
.third {
69
  background-image: url("/assets/usage-statistics-assets/analytics/3.2.svg"), url("/assets/usage-statistics-assets/analytics/3.1.svg");
69
  background-image: url("~src/assets/usage-statistics-assets/analytics/3.2.svg"), url("/assets/usage-statistics-assets/analytics/3.1.svg");
70 70
  background-size: auto;
71 71
  background-repeat: no-repeat;
72 72
  background-position: bottom left, bottom right;
modules/uoa-usage-statistics/trunk/src/app/home/home.component.css
1 1
@media only screen and (min-width: 1200px) {
2 2
  .first {
3 3
    position: relative;
4
    background-image: url("/assets/usage-statistics-assets/home/1.svg");
4
    background-image: url("~src/assets/usage-statistics-assets/home/1.svg");
5 5
    background-size: cover;
6 6
    background-repeat: no-repeat;
7 7
    background-position: 0 -130px;
......
10 10

  
11 11
.third .first-column {
12 12
  position: relative;
13
  background-image: url("/assets/usage-statistics-assets/home/3.1.svg"), url("/assets/usage-statistics-assets/home/3.2.svg");
13
  background-image: url("~src/assets/usage-statistics-assets/home/3.1.svg"), url("~src/assets/usage-statistics-assets/home/3.2.svg");
14 14
  background-repeat: no-repeat;
15 15
  background-size: contain, auto;
16 16
  background-position: top left, bottom center;
......
23 23
}
24 24

  
25 25
.third .second-column {
26
  background-image: url("/assets/usage-statistics-assets/home/3.4.svg"), url("/assets/usage-statistics-assets/home/3.5.svg");
26
  background-image: url("~src/assets/usage-statistics-assets/home/3.4.svg"), url("~src/assets/usage-statistics-assets/home/3.5.svg");
27 27
  background-repeat: no-repeat;
28 28
  background-size: auto, contain;
29 29
  background-position: top center, bottom right;
......
37 37
  }
38 38

  
39 39
  .third .second-column {
40
    background-image: url("/assets/usage-statistics-assets/home/3.5.svg");
40
    background-image: url("~src/assets/usage-statistics-assets/home/3.5.svg");
41 41
    background-repeat: no-repeat;
42 42
    background-size: contain;
43 43
    background-position: bottom right;
......
46 46

  
47 47
@media only screen and (min-width: 960px) {
48 48
  .second {
49
    background-image: url("/assets/usage-statistics-assets/home/2.svg");
49
    background-image: url("~src/assets/usage-statistics-assets/home/2.svg");
50 50
    background-size: auto;
51 51
    background-repeat: no-repeat;
52 52
    background-position: -2% 0;
......
54 54
  }
55 55

  
56 56
  .third {
57
    background-image: url("/assets/usage-statistics-assets/home/3.3.svg");
57
    background-image: url("~src/assets/usage-statistics-assets/home/3.3.svg");
58 58
    background-repeat: no-repeat;
59 59
    background-size: auto;
60 60
    background-position: 30% 0;
......
65 65
  }
66 66

  
67 67
  .third .third-column {
68
    background-image: url("/assets/usage-statistics-assets/home/3.6.svg");
68
    background-image: url("~src/assets/usage-statistics-assets/home/3.6.svg");
69 69
    background-size: auto;
70 70
    background-repeat: no-repeat;
71 71
    background-position: top left;
......
91 91

  
92 92

  
93 93
.features {
94
  background-image: url("/assets/usage-statistics-assets/home/4.svg");
94
  background-image: url("~src/assets/usage-statistics-assets/home/4.svg");
95 95
  background-size: contain;
96 96
  background-repeat: no-repeat;
97 97
  background-position: 0 0;
modules/uoa-usage-statistics/trunk/src/app/home/home.component.ts
17 17
  
18 18
  public initSlide: number = 1;
19 19
  public fragments: string[] = ['', 'why', 'who', 'features'];
20
  @ViewChild('slider')
21
  public slider: FullPageSliderComponent;
20
  @ViewChild('slider', { static: true }) slider: FullPageSliderComponent;
22 21
  properties: EnvProperties = properties;
23 22
  
24 23
  subs: Subscription[] = [];
modules/uoa-usage-statistics/trunk/src/app/about/about.component.css
15 15

  
16 16
@media only screen and (min-width: 1200px) {
17 17
    .about-background {
18
        background-image:  url("/assets/usage-statistics-assets/about/1.svg");
18
        background-image:  url("~src/assets/usage-statistics-assets/about/1.svg");
19 19
        background-repeat: no-repeat;
20 20
        background-position: 0 -30px;
21 21
        background-size: contain;
......
47 47
}
48 48

  
49 49
.architecture {
50
    background-image:  url("/assets/usage-statistics-assets/about/2.1.png");
50
    background-image:  url("~src/assets/usage-statistics-assets/about/2.1.png");
51 51
    background-repeat: no-repeat;
52 52
    background-position: 0 0;
53 53
    background-size: contain;
......
63 63
    }
64 64

  
65 65
    .architecture > div {
66
        background-image:  url("/assets/usage-statistics-assets/about/2.2.svg");
66
        background-image:  url("~src/assets/usage-statistics-assets/about/2.2.svg");
67 67
        background-repeat: no-repeat;
68 68
        background-position: 0 0;
69 69
        background-size: auto;
......
78 78

  
79 79
@media only screen and (min-width: 1200px) {
80 80
    .workflows {
81
        background-image:  url("/assets/usage-statistics-assets/about/3.2.svg");
81
        background-image:  url("~src/assets/usage-statistics-assets/about/3.2.svg");
82 82
        background-repeat: no-repeat;
83 83
        background-position: top left;
84 84
        background-size: auto;
......
88 88

  
89 89
@media only screen and (min-width: 960px) {
90 90
    .push-pull {
91
        background-image:  url("/assets/usage-statistics-assets/about/4.svg");
91
        background-image:  url("~src/assets/usage-statistics-assets/about/4.svg");
92 92
        background-repeat: no-repeat;
93 93
        background-position: top right;
94 94
        background-size: auto;
......
96 96
}
97 97

  
98 98
.faqs {
99
    background-image:  url("/assets/usage-statistics-assets/about/5.svg");
99
    background-image:  url("~src/assets/usage-statistics-assets/about/5.svg");
100 100
    background-repeat: no-repeat;
101 101
    background-position: top right;
102 102
    background-size: auto;
modules/uoa-usage-statistics/trunk/src/app/app.routing.ts
1 1
import {NgModule} from '@angular/core';
2
import {Routes, RouterModule, PreloadAllModules} from '@angular/router';
2
import {RouterModule, Routes} from '@angular/router';
3 3
import {PreviousRouteRecorder} from './openaireLibrary/utils/piwik/previousRouteRecorder.guard';
4 4
import {ErrorPageComponent} from './openaireLibrary/error/errorPage.component';
5 5

  
6 6
const appRoutes: Routes = [
7 7
  {
8 8
    path: '',
9
    loadChildren: './home/home.module#HomeModule',
9
    loadChildren: () => import('./home/home.module').then(m => m.HomeModule),
10 10
    data: {
11 11
      isHome: true
12 12
    },
......
14 14
  },
15 15
  {
16 16
    path: 'resources',
17
    loadChildren: './resources/resources.module#ResourcesModule',
17
    loadChildren: () => import('./resources/resources.module').then(m => m.ResourcesModule),
18 18
    canDeactivate: [PreviousRouteRecorder]
19 19
  },
20 20
  {
21 21
    path: 'analytics',
22
    loadChildren: './analytics/analytics.module#AnalyticsModule',
22
    loadChildren: () => import('./analytics/analytics.module').then(m => m.AnalyticsModule),
23 23
    canDeactivate: [PreviousRouteRecorder]
24 24
  },
25 25
  {
26 26
    path: 'contact',
27
    loadChildren: './contact/contact.module#ContactModule',
27
    loadChildren: () => import('./contact/contact.module').then(m => m.ContactModule),
28 28
    canDeactivate: [PreviousRouteRecorder]
29 29
  },
30 30
  {
31 31
    path: 'about',
32
    loadChildren: './about/about.module#AboutModule',
32
    loadChildren: () => import('./about/about.module').then(m => m.AboutModule),
33 33
    canDeactivate: [PreviousRouteRecorder]
34 34
  },
35 35
  {
36 36
    path: 'sushilite/:id',
37
    loadChildren: './sushilite/sushilite.module#SushiliteModule',
37
    loadChildren: () => import('./sushilite/sushilite.module').then(m => m.SushiliteModule),
38 38
    canDeactivate: [PreviousRouteRecorder]
39 39
  },
40 40
  { path: '**',pathMatch: 'full',component: ErrorPageComponent}
......
42 42

  
43 43
@NgModule({
44 44
  imports: [RouterModule.forRoot(appRoutes, {
45
    preloadingStrategy: PreloadAllModules,
46
    onSameUrlNavigation: "reload",
47
    relativeLinkResolution: 'corrected'
45
    onSameUrlNavigation: "reload"
48 46
  })],
49 47
  exports: [RouterModule]
50 48
})
modules/uoa-usage-statistics/trunk/src/app/contact/contact.component.ts
26 26
  
27 27
  public contactForm: FormGroup;
28 28
  @ViewChild('AlertModal') modal;
29
  @ViewChild('recaptcha') recaptcha;
30 29
  description = 'Any questions? Contact us ';
31 30
  title = 'OpenAIRE - UsageCounts |  Contact Us';
32 31
  subs: Subscription[] = [];
modules/uoa-usage-statistics/trunk/src/app/contact/contact.component.css
1 1
.contact {
2
  background-image: url("/assets/usage-statistics-assets/contact/1.svg");
2
  background-image: url("~src/assets/usage-statistics-assets/contact/1.svg");
3 3
  background-size: auto;
4 4
  background-repeat: no-repeat;
5 5
  background-position: 0 0;
modules/uoa-usage-statistics/trunk/src/app/contact/contact.module.ts
4 4

  
5 5
import {ContactComponent} from './contact.component';
6 6
import {EmailService} from '../openaireLibrary/utils/email/email.service';
7
import {RecaptchaModule} from 'ng-recaptcha';
8 7
import {AlertModalModule} from '../openaireLibrary/utils/modal/alertModal.module';
9 8
import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.service';
10 9
import {HelperModule} from '../openaireLibrary/utils/helper/helper.module';
......
20 19
    RouterModule.forChild([{
21 20
      path: '', component: ContactComponent
22 21
    }]), CommonModule, RouterModule,
23
    AlertModalModule, RecaptchaModule.forRoot(), HelperModule,
22
    AlertModalModule, HelperModule,
24 23
    Schema2jsonldModule, SEOServiceModule, ContactUsModule, BreadcrumbsModule
25 24
  ],
26 25
  declarations: [
modules/uoa-usage-statistics/trunk/src/polyfills.ts
1
/***************************************************************************************************
2
 * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
3
 */
4
import '@angular/localize/init';
1 5
/**
2 6
 * This file includes polyfills needed by Angular and is loaded before the app.
3 7
 * You can add your own extra polyfills to this file.
......
11 15
 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12 16
 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
13 17
 *
14
 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
18
 * Learn more in https://angular.io/guide/browser-support
15 19
 */
16 20

  
17 21
/***************************************************************************************************
18 22
 * BROWSER POLYFILLS
19 23
 */
20 24

  
21
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
22
import 'core-js/es6/symbol';
23
import 'core-js/es6/object';
24
import 'core-js/es6/function';
25
import 'core-js/es6/parse-int';
26
import 'core-js/es6/parse-float';
27
import 'core-js/es6/number';
28
import 'core-js/es6/math';
29
import 'core-js/es6/string';
30
import 'core-js/es6/date';
31
import 'core-js/es6/array';
32
import 'core-js/es6/regexp';
33
import 'core-js/es6/map';
34
import 'core-js/es6/weak-map';
35
import 'core-js/es6/set';
36

  
37 25
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
38 26
// import 'classlist.js';  // Run `npm install --save classlist.js`.
39 27

  
40
/** Evergreen browsers require these. **/
41
import 'core-js/es6/reflect';
42

  
43

  
44 28
/**
45
 * Required to support Web Animations `@angular/animation`.
46
 * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
47
 **/
29
 * Web Animations `@angular/platform-browser/animations`
30
 * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
31
 * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
32
 */
48 33
// import 'web-animations-js';  // Run `npm install --save web-animations-js`.
49 34

  
35
/**
36
 * By default, zone.js will patch all possible macroTask and DomEvents
37
 * user can disable parts of macroTask/DomEvents patch by setting following flags
38
 * because those flags need to be set before `zone.js` being loaded, and webpack
39
 * will put import in the top of bundle, so user need to create a separate file
40
 * in this directory (for example: zone-flags.ts), and put the following flags
41
 * into that file, and then add the following code before importing zone.js.
42
 * import './zone-flags.ts';
43
 *
44
 * The flags allowed in zone-flags.ts are listed here.
45
 *
46
 * The following flags will work for all browsers.
47
 *
48
 * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
49
 * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
50
 * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
51
 *
52
 *  in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
53
 *  with the following flag, it will bypass `zone.js` patch for IE/Edge
54
 *
55
 *  (window as any).__Zone_enable_cross_context_check = true;
56
 *
57
 */
50 58

  
51

  
52 59
/***************************************************************************************************
53
 * Zone JS is required by Angular itself.
60
 * Zone JS is required by default for Angular itself.
54 61
 */
55 62
import 'zone.js/dist/zone';  // Included with Angular CLI.
56 63

  
57 64

  
58

  
59 65
/***************************************************************************************************
60 66
 * APPLICATION IMPORTS
61 67
 */
62

  
63
/**
64
 * Date, currency, decimal and percent pipes.
65
 * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
66
 */
67
// import 'intl';  // Run `npm install --save intl`.
68
/**
69
 * Need to import at least one locale-data with intl.
70
 */
71
// import 'intl/locale-data/jsonp/en';
modules/uoa-usage-statistics/trunk/src/tsconfig.app.json
1 1
{
2 2
  "extends": "../tsconfig.json",
3 3
  "compilerOptions": {
4
    "paths": {
5
      "*": [
6
        "types/*"
7
      ]
8
    },
9
    "paths": {
10
      "*": [
11
        "types/*"
12
      ]
13
    },
14 4
    "outDir": "../out-tsc/app",
15
    "baseUrl": "./",
16
    "module": "es2015",
17
    "types": ["node"]
5
    "types": []
18 6
  },
19
  "exclude": [
20
    "test.ts",
21
    "**/*.spec.ts"
7
  "files": [
8
    "main.ts",
9
    "polyfills.ts"
10
  ],
11
  "include": [
12
    "src/**/*.d.ts"
22 13
  ]
23 14
}
modules/uoa-usage-statistics/trunk/src/prod/robots.txt
1
User-Agent: *
2
Crawl-delay: 30
3

  
4
sitemap: https://usagecounts.openaire.eu/sitemap.xml
modules/uoa-usage-statistics/trunk/src/prod/index.html
1
<!doctype html>
2
<html lang="en">
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
    <title>OpenAIRE - Research Graph</title>
9
    <meta charset="UTF-8">
10
    <meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" />
11
    <link href="assets/common-assets/logo-small-usage-counts.png">
12
    <link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png">
13
    <link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png">
14
    <link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png">
15
    <link rel="apple-touch-icon" sizes="76x76" href="assets/common-assets/logo/apple-icon-76x76.png">
16
    <link rel="apple-touch-icon" sizes="114x114" href="assets/common-assets/logo/apple-icon-114x114.png">
17
    <link rel="apple-touch-icon" sizes="120x120" href="assets/common-assets/logo/apple-icon-120x120.png">
18
    <link rel="apple-touch-icon" sizes="144x144" href="assets/common-assets/logo/apple-icon-144x144.png">
19
    <link rel="apple-touch-icon" sizes="152x152" href="assets/common-assets/logo/apple-icon-152x152.png">
20
    <link rel="apple-touch-icon" sizes="180x180" href="assets/common-assets/logo/apple-icon-180x180.png">
21
    <link rel="icon" type="image/png" sizes="192x192" href="assets/common-assets/logo/android-icon-192x192.png">
22
    <link rel="icon" type="image/png" sizes="32x32" href="assets/common-assets/logo/favicon-32x32.png">
23
    <link rel="icon" type="image/png" sizes="96x96" href="assets/common-assets/logo/favicon-96x96.png">
24
    <link rel="icon" type="image/png" sizes="16x16" href="assets/common-assets/logo/favicon-16x16.png">
25
    <link href="assets/common-assets/logo/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"/>
26
  </head>
27
  <body>
28
    <app></app>
29
  </body>
30
  <script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script>
31
</html>
modules/uoa-usage-statistics/trunk/src/test.ts
1 1
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
2 2

  
3
import 'zone.js/dist/long-stack-trace-zone';
4
import 'zone.js/dist/proxy.js';
5
import 'zone.js/dist/sync-test';
6
import 'zone.js/dist/jasmine-patch';
7
import 'zone.js/dist/async-test';
8
import 'zone.js/dist/fake-async-test';
3
import 'zone.js/dist/zone-testing';
9 4
import { getTestBed } from '@angular/core/testing';
10 5
import {
11 6
  BrowserDynamicTestingModule,
12 7
  platformBrowserDynamicTesting
13 8
} from '@angular/platform-browser-dynamic/testing';
14 9

  
15
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
16
declare const __karma__: any;
17 10
declare const require: any;
18 11

  
19
// Prevent Karma from running prematurely.
20
__karma__.loaded = function () {};
21

  
22 12
// First, initialize the Angular testing environment.
23 13
getTestBed().initTestEnvironment(
24 14
  BrowserDynamicTestingModule,
......
28 18
const context = require.context('./', true, /\.spec\.ts$/);
29 19
// And load the modules.
30 20
context.keys().map(context);
31
// Finally, start Karma to run the tests.
32
__karma__.start();
modules/uoa-usage-statistics/trunk/src/environments/environments/environment.beta.ts
1
import {EnvProperties} from '../app/openaireLibrary/utils/properties/env-properties';
2

  
3
export let properties: EnvProperties = {
4
  environment: 'beta',
5
  useCache: true,
6
  useLongCache: true,
7
  domain : "https://usagecounts.openaire.eu",
8
  baseLink: "",
9
  enablePiwikTrack: true,
10
  piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=",
11
  piwikSiteId: "",
12
  metricsAPIURL: 'https://beta.services.openaire.eu/usagestats/',
13
  loginUrl: "https://beta.services.openaire.eu/admin-user-management/openid_connect_login",
14
  userInfoUrl: "https://beta.services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
15
  logoutUrl: "https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
16
  cookieDomain: ".openaire.eu",
17
  cacheUrl: "https://demo.openaire.eu/cache/get?url=",
18
  adminToolsAPIURL: "https://beta.services.openaire.eu/uoa-admin-tools/",
19
  reCaptchaSiteKey: "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P",
20
  admins: ["feedback@openaire.eu"],
21
  sushiliteURL: 'https://services.openaire.eu/usagestats/sushilite/',
22
  footerGrantText: "OpenAIRE has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541 and 101017452"
23
};
modules/uoa-usage-statistics/trunk/src/environments/environments/environment.ts
1
// The file contents for the current environment will overwrite these during build.
2
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
3
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
4
// The list of which env maps to which file can be found in `.angular-cli.json`.
5

  
6
import {EnvProperties} from '../app/openaireLibrary/utils/properties/env-properties';
7

  
8
export let properties: EnvProperties = {
9
  environment: 'development',
10
  useCache: false,
11
  useLongCache: true,
12
  domain : "https://usagecounts.openaire.eu",
13
  baseLink: "",
14
  enablePiwikTrack: false,
15
  piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=",
16
  piwikSiteId: "",
17
  metricsAPIURL: 'https://services.openaire.eu/usagestats/',
18
  loginUrl: 'http://dl170.madgik.di.uoa.gr:8180/dnet-login/openid_connect_login',
19
  userInfoUrl: 'http://dl170.madgik.di.uoa.gr:8180/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=',
20
  logoutUrl: 'https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=',
21
  cookieDomain: '.di.uoa.gr',
22
  cacheUrl: "https://demo.openaire.eu/cache/get?url=",
23
  adminToolsAPIURL: 'http://duffy.di.uoa.gr:8080/uoa-admin-tools/',
24
  reCaptchaSiteKey: '6LcVtFIUAAAAAB2ac6xYivHxYXKoUvYRPi-6_rLu',
25
  admins: ['kostis30fylloy@gmail.com'],
26
  sushiliteURL: 'http://scoobydoo.di.uoa.gr/static/sushilite/',
27
  footerGrantText: "OpenAIRE has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541 and 101017452"
28
};
modules/uoa-usage-statistics/trunk/src/environments/environments/environment.prod.ts
1
import {EnvProperties} from '../app/openaireLibrary/utils/properties/env-properties';
2

  
3
export let properties: EnvProperties = {
4
  environment:"production",
5
  useCache: true,
6
  useLongCache: true,
7
  domain : "https://usagecounts.openaire.eu",
8
  baseLink: "",
9
  enablePiwikTrack: true,
10
  piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=",
11
  piwikSiteId: "374",
12
  metricsAPIURL: "https://services.openaire.eu/usagestats/",
13
  loginUrl:"https://services.openaire.eu/admin-user-management/openid_connect_login",
14
  userInfoUrl: " https://services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
15
  logoutUrl:"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
16
  cookieDomain:".openaire.eu",
17
  cacheUrl:"https://explore.openaire.eu/cache/get?url=",
18
  adminToolsAPIURL:"https://services.openaire.eu/uoa-admin-tools/",
19
  reCaptchaSiteKey: "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P",
20
  admins: ["feedback@openaire.eu"],
21
  sushiliteURL: 'https://services.openaire.eu/usagestats/sushilite/',
22
  footerGrantText: "OpenAIRE has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541 and 101017452"
23
};
modules/uoa-usage-statistics/trunk/src/material.scss
1
@import '~@angular/material/theming';
1
@import '../node_modules/@angular/material/theming';
2 2
@include mat-core();
3 3
$my-app-primary: mat-palette($mat-blue-grey);
4 4
$my-app-accent:  mat-palette($mat-green);
modules/uoa-usage-statistics/trunk/src/main.ts
8 8
  enableProdMode();
9 9
}
10 10

  
11
platformBrowserDynamic().bootstrapModule(AppModule);
11

  
12
platformBrowserDynamic().bootstrapModule(AppModule)
13
  .catch(err => console.error(err));
modules/uoa-usage-statistics/trunk/src/karma.conf.js
1
// Karma configuration file, see link for more information
2
// https://karma-runner.github.io/1.0/config/configuration-file.html
3

  
4
module.exports = function (config) {
5
  config.set({
6
    basePath: '',
7
    frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
    plugins: [
9
      require('karma-jasmine'),
10
      require('karma-chrome-launcher'),
11
      require('karma-jasmine-html-reporter'),
12
      require('karma-coverage-istanbul-reporter'),
13
      require('@angular-devkit/build-angular/plugins/karma')
14
    ],
15
    client: {
16
      clearContext: false // leave Jasmine Spec Runner output visible in browser
17
    },
18
    coverageIstanbulReporter: {
19
      dir: require('path').join(__dirname, '../coverage/usage-counts'),
20
      reports: ['html', 'lcovonly', 'text-summary'],
21
      fixWebpackSourcePaths: true
22
    },
23
    reporters: ['progress', 'kjhtml'],
24
    port: 9876,
25
    colors: true,
26
    logLevel: config.LOG_INFO,
27
    autoWatch: true,
28
    browsers: ['Chrome'],
29
    singleRun: false,
30
    restartOnFileChange: true
31
  });
32
};
modules/uoa-usage-statistics/trunk/src/styles.css
4 4
@import "assets/common-assets/library.css";
5 5

  
6 6
:root {
7
  --portal-main-color: #e95420;
8
  --portal-main-contrast: white;
9
  --provide-portal-color: #37C7E9;
10
  --portal-dark-color: #a0462c;
7
    --portal-main-color: #e95420;
8
    --portal-main-contrast: white;
9
    --provide-portal-color: #37C7E9;
10
    --portal-dark-color: #a0462c;
11 11
}
12 12

  
13 13
.top-bar-background {
14
  background-color: #F9FBFC;
14
    background-color: #F9FBFC;
15 15
}
16 16

  
17 17
main {
18
  background-color: #F9FBFC;
19
  color: #333333;
20
  min-height: calc(100vh - 100px);
21
  font-size: 16px;
22
  font-family: Roboto, sans-serif;
23
  line-height: 21px;
24
  letter-spacing: 0.48px;
18
    background-color: #F9FBFC;
19
    color: #333333;
20
    min-height: calc(100vh - 100px);
21
    font-size: 16px;
22
    font-family: Roboto, sans-serif;
23
    line-height: 21px;
24
    letter-spacing: 0.48px;
25 25
}
26 26

  
27 27
navbar > * {
28
  background-color: #F9FBFC;
28
    background-color: #F9FBFC;
29 29
}
30 30

  
31 31
main.full-height {
32
  min-height: 100vh;
32
    min-height: 100vh;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff