Revision 61406
Added by Konstantinos Triantafyllou almost 3 years ago
modules/uoa-monitor-portal/branches/angular-11/monitor/e2e/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 |
'./src/**/*.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: require('path').join(__dirname, './tsconfig.e2e.json') |
|
25 |
}); |
|
26 |
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); |
|
27 |
} |
|
28 |
}; |
modules/uoa-monitor-portal/branches/angular-11/monitor/e2e/tsconfig.e2e.json | ||
---|---|---|
1 |
{ |
|
2 |
"extends": "../tsconfig.json", |
|
3 |
"compilerOptions": { |
|
4 |
"outDir": "../out-tsc/app", |
|
5 |
"module": "commonjs", |
|
6 |
"target": "es5", |
|
7 |
"types": [ |
|
8 |
"jasmine", |
|
9 |
"jasminewd2", |
|
10 |
"node" |
|
11 |
] |
|
12 |
} |
|
13 |
} |
modules/uoa-monitor-portal/branches/angular-11/monitor/e2e/src/app.po.ts | ||
---|---|---|
1 |
import { browser, by, element } from 'protractor'; |
|
2 |
|
|
3 |
export class AppPage { |
|
4 |
navigateTo() { |
|
5 |
return browser.get(browser.baseUrl) as Promise<any>; |
|
6 |
} |
|
7 |
|
|
8 |
getTitleText() { |
|
9 |
return element(by.css('app-root h1')).getText() as Promise<string>; |
|
10 |
} |
|
11 |
} |
modules/uoa-monitor-portal/branches/angular-11/monitor/e2e/src/app.e2e-spec.ts | ||
---|---|---|
1 |
import { AppPage } from './app.po'; |
|
2 |
import { browser, logging } from 'protractor'; |
|
3 |
|
|
4 |
describe('workspace-project App', () => { |
|
5 |
let page: AppPage; |
|
6 |
|
|
7 |
beforeEach(() => { |
|
8 |
page = new AppPage(); |
|
9 |
}); |
|
10 |
|
|
11 |
it('should display welcome message', () => { |
|
12 |
page.navigateTo(); |
|
13 |
expect(page.getTitleText()).toEqual('Welcome to monitor!'); |
|
14 |
}); |
|
15 |
|
|
16 |
afterEach(async () => { |
|
17 |
// Assert that there are no errors emitted from the browser |
|
18 |
const logs = await browser.manage().logs().get(logging.Type.BROWSER); |
|
19 |
expect(logs).not.toContain(jasmine.objectContaining({ |
|
20 |
level: logging.Level.SEVERE, |
|
21 |
} as logging.Entry)); |
|
22 |
}); |
|
23 |
}); |
modules/uoa-monitor-portal/branches/angular-11/monitor/server.ts | ||
---|---|---|
1 |
import 'zone.js/dist/zone-node'; |
|
2 |
|
|
3 |
import { ngExpressEngine } from '@nguniversal/express-engine'; |
|
4 |
import * as express from 'express'; |
|
5 |
import * as compression from 'compression'; |
|
6 |
import { join } from 'path'; |
|
7 |
|
|
8 |
import { AppServerModule } from './src/main.server'; |
|
9 |
import { APP_BASE_HREF } from '@angular/common'; |
|
10 |
import { existsSync } from 'fs'; |
|
11 |
import {REQUEST, RESPONSE} from "./src/app/openaireLibrary/utils/tokens"; |
|
12 |
|
|
13 |
// The Express app is exported so that it can be used by serverless Functions. |
|
14 |
export function app() { |
|
15 |
const server = express(); |
|
16 |
server.use(compression()); |
|
17 |
const distFolder = join(process.cwd(), 'dist/monitor/browser'); |
|
18 |
const indexHtml = existsSync(join(distFolder, 'index.original.html')) ? 'index.original.html' : 'index'; |
|
19 |
|
|
20 |
// Our Universal express-engine (found @ https://github.com/angular/universal/tree/master/modules/express-engine) |
|
21 |
server.engine('html', ngExpressEngine({ |
|
22 |
bootstrap: AppServerModule, |
|
23 |
})); |
|
24 |
|
|
25 |
server.set('view engine', 'html'); |
|
26 |
server.set('views', distFolder); |
|
27 |
|
|
28 |
// Example Express Rest API endpoints |
|
29 |
// server.get('/api/**', (req, res) => { }); |
|
30 |
// Serve static files from /browser |
|
31 |
server.get('*.*', express.static(distFolder, { |
|
32 |
maxAge: '1y' |
|
33 |
})); |
|
34 |
|
|
35 |
// All regular routes use the Universal engine |
|
36 |
server.get('*', (req, res) => { |
|
37 |
res.render(indexHtml, { |
|
38 |
req, providers: [ |
|
39 |
{ |
|
40 |
provide: APP_BASE_HREF, |
|
41 |
useValue: req.baseUrl |
|
42 |
}, |
|
43 |
{ |
|
44 |
provide: REQUEST, useValue: (req) |
|
45 |
}, |
|
46 |
{ |
|
47 |
provide: RESPONSE, useValue: (res) |
|
48 |
} |
|
49 |
] |
|
50 |
} |
|
51 |
); |
|
52 |
}); |
|
53 |
|
|
54 |
return server; |
|
55 |
} |
|
56 |
|
|
57 |
function run() { |
|
58 |
const port = process.env.PORT || 4000; |
|
59 |
|
|
60 |
// Start up the Node server |
|
61 |
const server = app(); |
|
62 |
server.listen(port, () => { |
|
63 |
console.log(`Node Express server listening on http://localhost:${port}`); |
|
64 |
}); |
|
65 |
} |
|
66 |
|
|
67 |
// Webpack will replace 'require' with '__webpack_require__' |
|
68 |
// '__non_webpack_require__' is a proxy to Node 'require' |
|
69 |
// The below code is to ensure that the server is run only when not requiring the bundle. |
|
70 |
declare const __non_webpack_require__: NodeRequire; |
|
71 |
const mainModule = __non_webpack_require__.main; |
|
72 |
const moduleFilename = mainModule && mainModule.filename || ''; |
|
73 |
if (moduleFilename === __filename || moduleFilename.includes('iisnode')) { |
|
74 |
run(); |
|
75 |
} |
|
76 |
|
|
77 |
export * from './src/main.server'; |
modules/uoa-monitor-portal/branches/angular-11/monitor/README.md | ||
---|---|---|
1 |
# Monitor |
|
2 |
|
|
3 |
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.10 and has been updated to 11.2.14. |
|
4 |
|
|
5 |
## Install packages |
|
6 |
|
|
7 |
Run npm install (maybe needs sudo), a script that will delete unused files from library will be run. |
|
8 |
|
|
9 |
## Development server |
|
10 |
|
|
11 |
Run `npm start` for a dev server. Navigate to `http://localhost:4500/`. The app will automatically reload if you change any of the source files. |
|
12 |
|
|
13 |
## Build - CSR |
|
14 |
|
|
15 |
Use the `npm run build-dev` for a development build.<br> |
|
16 |
Use the `npm run build-beta` for a beta build.<br> |
|
17 |
Use the `npm run build-prod` for a production build. |
|
18 |
|
|
19 |
## Build - SSR |
|
20 |
|
|
21 |
Use the `npm run build:ssr-dev` for a development build.<br> |
|
22 |
Use the `npm run build:ssr-beta` for a beta build.<br> |
|
23 |
Use the `npm run build:ssr-prod` for a production build. |
|
24 |
|
|
25 |
## Run SSR |
|
26 |
|
|
27 |
`npm run serve:ssr` will run the last server build. |
|
28 |
|
|
29 |
## Webpack Analyzer |
|
30 |
|
|
31 |
In order to analyze bundle size you can run `npm run webpack-bundle-analyzer` |
|
32 |
|
|
33 |
## Running unit tests |
|
34 |
|
|
35 |
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). |
|
36 |
|
|
37 |
## Running end-to-end tests |
|
38 |
|
|
39 |
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). |
modules/uoa-monitor-portal/branches/angular-11/monitor/clean-library.sh | ||
---|---|---|
1 |
cd src/app/openaireLibrary |
|
2 |
# Exclude Dashboard files |
|
3 |
echo "Exclude Dashboard files" |
|
4 |
svn update --set-depth exclude ./dashboard |
|
5 |
# Exclude ck-editor usages |
|
6 |
echo "Exclude ck-editor usages" |
|
7 |
svn update --set-depth exclude ./sharedComponents/subscriber-invite |
|
8 |
cd ../../../ |
|
9 |
echo "Done" |
modules/uoa-monitor-portal/branches/angular-11/monitor/angular.json | ||
---|---|---|
1 |
{ |
|
2 |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
|
3 |
"version": 1, |
|
4 |
"newProjectRoot": "projects", |
|
5 |
"projects": { |
|
6 |
"monitor": { |
|
7 |
"root": "", |
|
8 |
"sourceRoot": "src", |
|
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 |
}, |
|
34 |
"architect": { |
|
35 |
"build": { |
|
36 |
"builder": "@angular-devkit/build-angular:browser", |
|
37 |
"options": { |
|
38 |
"aot": true, |
|
39 |
"outputPath": "dist/monitor/browser", |
|
40 |
"index": "src/index.html", |
|
41 |
"main": "src/main.ts", |
|
42 |
"polyfills": "src/polyfills.ts", |
|
43 |
"tsConfig": "src/tsconfig.app.json", |
|
44 |
"assets": [ |
|
45 |
"src/assets", |
|
46 |
"src/robots.txt", |
|
47 |
"src/sitemap.xml" |
|
48 |
], |
|
49 |
"styles": [ |
|
50 |
"src/styles.css", |
|
51 |
"src/material.scss" |
|
52 |
], |
|
53 |
"scripts": [ |
|
54 |
"src/assets/common-assets/common/jquery.js", |
|
55 |
"src/assets/common-assets/common/uikit.min.js", |
|
56 |
"src/assets/common-assets/common/uikit-icons.min.js", |
|
57 |
"node_modules/jquery/dist/jquery.js" |
|
58 |
] |
|
59 |
}, |
|
60 |
"configurations": { |
|
61 |
"development": { |
|
62 |
"optimization": true, |
|
63 |
"outputHashing": "all", |
|
64 |
"sourceMap": false, |
|
65 |
"namedChunks": false, |
|
66 |
"aot": true, |
|
67 |
"extractLicenses": true, |
|
68 |
"vendorChunk": false, |
|
69 |
"buildOptimizer": true, |
|
70 |
"budgets": [ |
|
71 |
{ |
|
72 |
"type": "initial", |
|
73 |
"maximumWarning": "2mb", |
|
74 |
"maximumError": "5mb" |
|
75 |
}, |
|
76 |
{ |
|
77 |
"type": "anyComponentStyle", |
|
78 |
"maximumWarning": "6kb" |
|
79 |
} |
|
80 |
] |
|
81 |
}, |
|
82 |
"beta": { |
|
83 |
"fileReplacements": [ |
|
84 |
{ |
|
85 |
"replace": "src/environments/environment.ts", |
|
86 |
"with": "src/environments/environment.beta.ts" |
|
87 |
} |
|
88 |
], |
|
89 |
"optimization": true, |
|
90 |
"outputHashing": "all", |
|
91 |
"sourceMap": false, |
|
92 |
"namedChunks": false, |
|
93 |
"aot": true, |
|
94 |
"extractLicenses": true, |
|
95 |
"vendorChunk": false, |
|
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 |
{ |
|
113 |
"input": "src/prod/", |
|
114 |
"output": "/", |
|
115 |
"glob": "*.txt" |
|
116 |
}, |
|
117 |
"src/sitemap.xml" |
|
118 |
], |
|
119 |
"index": { |
|
120 |
"input": "src/prod/index.html", |
|
121 |
"output": "index.html" |
|
122 |
}, |
|
123 |
"fileReplacements": [ |
|
124 |
{ |
|
125 |
"replace": "src/environments/environment.ts", |
|
126 |
"with": "src/environments/environment.prod.ts" |
|
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 |
} |
|
147 |
] |
|
148 |
} |
|
149 |
} |
|
150 |
}, |
|
151 |
"serve": { |
|
152 |
"builder": "@angular-devkit/build-angular:dev-server", |
|
153 |
"options": { |
|
154 |
"browserTarget": "monitor:build" |
|
155 |
}, |
|
156 |
"configurations": { |
|
157 |
"production": { |
|
158 |
"browserTarget": "monitor:build:production" |
|
159 |
} |
|
160 |
} |
|
161 |
}, |
|
162 |
"extract-i18n": { |
|
163 |
"builder": "@angular-devkit/build-angular:extract-i18n", |
|
164 |
"options": { |
|
165 |
"browserTarget": "monitor:build" |
|
166 |
} |
|
167 |
}, |
|
168 |
"test": { |
|
169 |
"builder": "@angular-devkit/build-angular:karma", |
|
170 |
"options": { |
|
171 |
"main": "src/test.ts", |
|
172 |
"polyfills": "src/polyfills.ts", |
|
173 |
"tsConfig": "src/tsconfig.spec.json", |
|
174 |
"karmaConfig": "src/karma.conf.js", |
|
175 |
"styles": [ |
|
176 |
"src/styles.css" |
|
177 |
], |
|
178 |
"scripts": [], |
|
179 |
"assets": [ |
|
180 |
"src/assets" |
|
181 |
] |
|
182 |
} |
|
183 |
}, |
|
184 |
"lint": { |
|
185 |
"builder": "@angular-devkit/build-angular:tslint", |
|
186 |
"options": { |
|
187 |
"tsConfig": [ |
|
188 |
"src/tsconfig.app.json", |
|
189 |
"src/tsconfig.spec.json" |
|
190 |
], |
|
191 |
"exclude": [ |
|
192 |
"**/node_modules/**" |
|
193 |
] |
|
194 |
} |
|
195 |
}, |
|
196 |
"server": { |
|
197 |
"builder": "@angular-devkit/build-angular:server", |
|
198 |
"options": { |
|
199 |
"outputPath": "dist/monitor/server", |
|
200 |
"main": "server.ts", |
|
201 |
"tsConfig": "src/tsconfig.server.json" |
|
202 |
}, |
|
203 |
"configurations": { |
|
204 |
"development": { |
|
205 |
"outputHashing": "media", |
|
206 |
"sourceMap": false, |
|
207 |
"optimization": true |
|
208 |
}, |
|
209 |
"beta": { |
|
210 |
"outputHashing": "media", |
|
211 |
"fileReplacements": [ |
|
212 |
{ |
|
213 |
"replace": "src/environments/environment.ts", |
|
214 |
"with": "src/environments/environment.beta.ts" |
|
215 |
} |
|
216 |
], |
|
217 |
"sourceMap": false, |
|
218 |
"optimization": true |
|
219 |
}, |
|
220 |
"production": { |
|
221 |
"outputHashing": "media", |
|
222 |
"fileReplacements": [ |
|
223 |
{ |
|
224 |
"replace": "src/environments/environment.ts", |
|
225 |
"with": "src/environments/environment.prod.ts" |
|
226 |
} |
|
227 |
], |
|
228 |
"sourceMap": false, |
|
229 |
"optimization": true |
|
230 |
} |
|
231 |
} |
|
232 |
}, |
|
233 |
"serve-ssr": { |
|
234 |
"builder": "@nguniversal/builders:ssr-dev-server", |
|
235 |
"options": { |
|
236 |
"browserTarget": "monitor:build", |
|
237 |
"serverTarget": "monitor:server" |
|
238 |
}, |
|
239 |
"configurations": { |
|
240 |
"production": { |
|
241 |
"browserTarget": "monitor:build:production", |
|
242 |
"serverTarget": "monitor:server:production" |
|
243 |
} |
|
244 |
} |
|
245 |
}, |
|
246 |
"prerender": { |
|
247 |
"builder": "@nguniversal/builders:prerender", |
|
248 |
"options": { |
|
249 |
"browserTarget": "monitor:build:production", |
|
250 |
"serverTarget": "monitor:server:production", |
|
251 |
"routes": [ |
|
252 |
"/" |
|
253 |
] |
|
254 |
}, |
|
255 |
"configurations": { |
|
256 |
"production": {} |
|
257 |
} |
|
258 |
} |
|
259 |
} |
|
260 |
}, |
|
261 |
"monitor-e2e": { |
|
262 |
"root": "e2e/", |
|
263 |
"projectType": "application", |
|
264 |
"prefix": "", |
|
265 |
"architect": { |
|
266 |
"e2e": { |
|
267 |
"builder": "@angular-devkit/build-angular:protractor", |
|
268 |
"options": { |
|
269 |
"protractorConfig": "e2e/protractor.conf.js", |
|
270 |
"devServerTarget": "monitor:serve" |
|
271 |
}, |
|
272 |
"configurations": { |
|
273 |
"production": { |
|
274 |
"devServerTarget": "monitor:serve:production" |
|
275 |
} |
|
276 |
} |
|
277 |
}, |
|
278 |
"lint": { |
|
279 |
"builder": "@angular-devkit/build-angular:tslint", |
|
280 |
"options": { |
|
281 |
"tsConfig": "e2e/tsconfig.e2e.json", |
|
282 |
"exclude": [ |
|
283 |
"**/node_modules/**" |
|
284 |
] |
|
285 |
} |
|
286 |
} |
|
287 |
} |
|
288 |
} |
|
289 |
}, |
|
290 |
"defaultProject": "monitor" |
|
291 |
} |
modules/uoa-monitor-portal/branches/angular-11/monitor/package.json | ||
---|---|---|
1 |
{ |
|
2 |
"name": "monitor", |
|
3 |
"version": "0.0.0", |
|
4 |
"scripts": { |
|
5 |
"ng": "ng", |
|
6 |
"start": " ng serve --port 4500 --disable-host-check --host 0.0.0.0", |
|
7 |
"build": "ng build", |
|
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/monitor/browser/stats-es2015.json --host 0.0.0.0", |
|
12 |
"test": "ng test", |
|
13 |
"e2e": "ng e2e", |
|
14 |
"dev:ssr": "ng run monitor:serve-ssr", |
|
15 |
"serve:ssr": "node dist/monitor/server/main.js", |
|
16 |
"build:ssr-dev": "npm run build-dev && ng run monitor:server:development", |
|
17 |
"build:ssr-beta": "npm run build-beta && ng run monitor:server:beta", |
|
18 |
"build:ssr-prod": "npm run build-prod && ng run monitor:server:production", |
|
19 |
"prerender": "ng run monitor:prerender", |
|
20 |
"postinstall": "chmod +x clean-library.sh && ./clean-library.sh", |
|
21 |
"after-build-clean": "rm -rf dist/monitor/browser/assets/common-assets/.svn/ src/app/openaireLibrary/.svn node_modules src/assets/common-assets/.svn/" |
|
22 |
}, |
|
23 |
"private": true, |
|
24 |
"dependencies": { |
|
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", |
|
38 |
"clipboard": "^1.5.16", |
|
39 |
"core-js": "^2.5.4", |
|
40 |
"express": "^4.15.2", |
|
41 |
"jquery": "^3.4.1", |
|
42 |
"ng-recaptcha": "^7.0.1", |
|
43 |
"rxjs": "^6.5.1", |
|
44 |
"ts-md5": "^1.2.0", |
|
45 |
"tslib": "^2.0.0", |
|
46 |
"zone.js": "~0.10.2" |
|
47 |
}, |
|
48 |
"devDependencies": { |
|
49 |
"@angular-devkit/build-angular": "~0.1102.14", |
|
50 |
"@angular/cli": "~11.2.14", |
|
51 |
"@angular/compiler-cli": "~11.2.14", |
|
52 |
"@angular/language-service": "~11.2.14", |
|
53 |
"@nguniversal/builders": "^11.2.1", |
|
54 |
"@types/express": "^4.17.0", |
|
55 |
"@types/compression": "^1.7.0", |
|
56 |
"@types/node": "^12.11.1", |
|
57 |
"@types/jasmine": "~3.6.0", |
|
58 |
"@types/jasminewd2": "~2.0.3", |
|
59 |
"codelyzer": "^6.0.0", |
|
60 |
"jasmine-core": "~3.6.0", |
|
61 |
"jasmine-spec-reporter": "~5.0.0", |
|
62 |
"karma": "~6.3.3", |
|
63 |
"karma-chrome-launcher": "~3.1.0", |
|
64 |
"karma-coverage-istanbul-reporter": "~3.0.2", |
|
65 |
"karma-jasmine": "~4.0.0", |
|
66 |
"karma-jasmine-html-reporter": "^1.5.0", |
|
67 |
"protractor": "~7.0.0", |
|
68 |
"ts-node": "~7.0.0", |
|
69 |
"typescript": "~4.0.7" |
|
70 |
} |
|
71 |
} |
modules/uoa-monitor-portal/branches/angular-11/monitor/tsconfig.json | ||
---|---|---|
1 |
{ |
|
2 |
"compileOnSave": false, |
|
3 |
"compilerOptions": { |
|
4 |
"baseUrl": "./", |
|
5 |
"downlevelIteration": true, |
|
6 |
"outDir": "./dist/out-tsc", |
|
7 |
"sourceMap": true, |
|
8 |
"declaration": false, |
|
9 |
"module": "es2020", |
|
10 |
"moduleResolution": "node", |
|
11 |
"emitDecoratorMetadata": true, |
|
12 |
"experimentalDecorators": true, |
|
13 |
"importHelpers": true, |
|
14 |
"target": "es2015", |
|
15 |
"typeRoots": [ |
|
16 |
"node_modules/@types" |
|
17 |
], |
|
18 |
"lib": [ |
|
19 |
"es2018", |
|
20 |
"dom" |
|
21 |
] |
|
22 |
} |
|
23 |
} |
modules/uoa-monitor-portal/branches/angular-11/monitor/.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-monitor-portal/branches/angular-11/monitor/src/sitemap.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> |
|
3 |
|
|
4 |
<url> |
|
5 |
<loc>https://monitor.openaire.eu</loc> |
|
6 |
</url> |
|
7 |
<url> |
|
8 |
<loc>https://monitor.openaire.eu/about/learn-how</loc> |
|
9 |
</url> |
|
10 |
<url> |
|
11 |
<loc>https://monitor.openaire.eu/browse</loc> |
|
12 |
</url> |
|
13 |
</urlset> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/images/piggy-bank.svg | ||
---|---|---|
1 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 74.3 74.3" style="enable-background:new 0 0 74.3 74.3;" xml:space="preserve" class="el-image uk-text-emphasis uk-svg" width="74" height="74" data-svg="/images/Icons_Monitor/Funder%20Icon.svg"> |
|
2 |
<g transform="translate(-292.6 -954.2)"> |
|
3 |
<path style="fill:#FFFFFF;" d="M337.9,1009.7v-4h-16.3v4H314v-7.2l-0.5-0.4c-1.8-1.6-3.2-3.6-4-5.9l-0.4-1h-4.5v-7.6h4.5l0.4-1 |
|
4 |
c0.6-1.7,1.6-3.3,2.8-4.7l0.4-0.4V973c2.6,0.1,5,1.4,6.4,3.6l0.5,0.9l1-0.2c0.9-0.2,1.7-0.2,2.6-0.2h13.3c7.4,0,13.6,5.6,14.3,13 |
|
5 |
l0.1,1.3l0,0l-0.1,1.1c-0.3,3.7-2,7.2-4.7,9.7l-0.5,0.4v7.2L337.9,1009.7L337.9,1009.7z"></path> |
|
6 |
<path style="fill:#9ABB55;" d="M314.1,974.6c1.5,0.4,2.8,1.3,3.6,2.6l1.1,1.7l2-0.4c0.8-0.1,1.5-0.2,2.3-0.2h13.3 |
|
7 |
c6.7,0,12.3,5.1,12.9,11.7l0.1,1l-0.1,1.2c-0.2,3.3-1.8,6.4-4.3,8.6l-1,0.9v6.3h-4.6v-4h-19.3v4h-4.6v-6.4l-1-0.9 |
|
8 |
c-1.6-1.5-2.8-3.3-3.6-5.3l-0.7-2h-4V989h4l0.7-2c0.6-1.5,1.4-3,2.5-4.2l0.7-0.8V974.6 M312.5,971.4L312.5,971.4 |
|
9 |
c-0.7,0-1.4,0.5-1.4,1.3c0,0,0,0,0,0v8.1c-1.3,1.5-2.4,3.3-3.1,5.2h-3.6c-0.7,0-1.3,0.6-1.3,1.3v8c0,0.7,0.6,1.3,1.3,1.3h3.6 |
|
10 |
c0.9,2.5,2.4,4.8,4.4,6.5v6.7c0,0.7,0.6,1.3,1.3,1.3h8c0.7,0,1.3-0.6,1.3-1.3v-2.7h13.3v2.7c0,0.7,0.6,1.3,1.3,1.3h8 |
|
11 |
c0.7,0,1.3-0.6,1.3-1.3v-6.7c3.1-2.7,4.9-6.6,5.2-10.7c3.1-0.6,5.4-3.3,5.4-6.5h-2.7c0,1.7-1.1,3.2-2.7,3.8 |
|
12 |
c-0.8-8.1-7.6-14.3-15.8-14.4H323c-0.9,0-1.9,0.1-2.8,0.3C318.5,973,315.6,971.4,312.5,971.4L312.5,971.4z"></path> |
|
13 |
<path style="fill:#9ABB55;" d="M329.7,957.2c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S329.1,957.2,329.7,957.2 M329.7,954.2 |
|
14 |
c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4C333.7,956,331.9,954.2,329.7,954.2z"></path> |
|
15 |
<path style="fill:#9ABB55;" d="M319.1,985.3c-1.2,0-2.1,0.9-2.1,2.1c0,1.2,0.9,2.1,2.1,2.1c1.2,0,2.1-0.9,2.1-2.1l0,0 |
|
16 |
C321.2,986.3,320.3,985.3,319.1,985.3C319.2,985.3,319.1,985.3,319.1,985.3z"></path> |
|
17 |
<path style="fill:#9ABB55;" d="M335,980.7h-10.6v2.7H335V980.7z"></path> |
|
18 |
<path style="fill:#9ABB55;" d="M362.9,970.4c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S362.3,970.4,362.9,970.4 M362.9,967.4 |
|
19 |
c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4C366.9,969.2,365.1,967.4,362.9,967.4z"></path> |
|
20 |
<path style="fill:#9ABB55;" d="M296.6,970.4c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S296,970.4,296.6,970.4 M296.6,967.4 |
|
21 |
c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4C300.6,969.2,298.8,967.4,296.6,967.4z"></path> |
|
22 |
<path style="fill:#9ABB55;" d="M329.7,1023.5c0.6,0,1,0.4,1,1c0,0.6-0.4,1-1,1c-0.5,0-1-0.4-1-0.9c0,0,0-0.1,0-0.1 |
|
23 |
C328.7,1024,329.2,1023.5,329.7,1023.5 M329.7,1020.5c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4s4-1.8,4-4 |
|
24 |
C333.7,1022.3,331.9,1020.5,329.7,1020.5z"></path> |
|
25 |
<path style="fill:#9ABB55;" d="M296.6,1010.2c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S296,1010.2,296.6,1010.2 M296.6,1007.2 |
|
26 |
c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4C300.6,1009,298.8,1007.2,296.6,1007.2z"></path> |
|
27 |
<path style="fill:#9ABB55;" d="M362.9,1010.2c0.6,0,1,0.4,1,1s-0.4,1-1,1s-1-0.4-1-1S362.3,1010.2,362.9,1010.2 M362.9,1007.2 |
|
28 |
c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4C366.9,1009,365.1,1007.2,362.9,1007.2z"></path> |
|
29 |
|
|
30 |
<line style="fill:none;stroke:#9ABB55;stroke-width:3;stroke-linecap:round;stroke-miterlimit:10;" x1="329.7" y1="971.8" x2="329.7" y2="966.5"></line> |
|
31 |
|
|
32 |
<line style="fill:none;stroke:#9ABB55;stroke-width:3;stroke-linecap:round;stroke-miterlimit:10;" x1="306.7" y1="981" x2="302.7" y2="977"></line> |
|
33 |
|
|
34 |
<line style="fill:none;stroke:#9ABB55;stroke-width:3;stroke-linecap:round;stroke-miterlimit:10;" x1="356.7" y1="977" x2="352.7" y2="981"></line> |
|
35 |
|
|
36 |
<line style="fill:none;stroke:#9ABB55;stroke-width:3;stroke-linecap:round;stroke-miterlimit:10;" x1="307.2" y1="1001.2" x2="303.2" y2="1005.1"></line> |
|
37 |
|
|
38 |
<line style="fill:none;stroke:#9ABB55;stroke-width:3;stroke-linecap:round;stroke-miterlimit:10;" x1="329.7" y1="1015.2" x2="329.7" y2="1009.9"></line> |
|
39 |
|
|
40 |
<line style="fill:none;stroke:#9ABB55;stroke-width:3;stroke-linecap:round;stroke-miterlimit:10;" x1="356" y1="1005.1" x2="352" y2="1001.2"></line> |
|
41 |
</g> |
|
42 |
</svg> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/monitor-custom.css | ||
---|---|---|
1 |
:root { |
|
2 |
--portal-main-color: #8DCA26; |
|
3 |
--portal-main-contrast: white; |
|
4 |
--portal-dark-color: #7cb021; |
|
5 |
|
|
6 |
--openaire-main-color: #313179; |
|
7 |
|
|
8 |
--explore-portal-color: #D95F2D; |
|
9 |
--provide-portal-color: #37C7E9; |
|
10 |
--monitor-portal-color: #8DCA26; |
|
11 |
--connect-portal-color: #EBB13E; |
|
12 |
--develop-portal-color: #DA65AB; |
|
13 |
|
|
14 |
--explore-portal-lower-tone: #a0462c; |
|
15 |
--provide-portal-lower-tone: #3A8FA3; |
|
16 |
--monitor-portal-lower-tone: #7cb021; |
|
17 |
--connect-portal-lower-tone: #b48536; |
|
18 |
--develop-portal-lower-tone: #9f4e7e; |
|
19 |
} |
|
20 |
|
|
21 |
.tm-toolbar .uk-subnav-line .custom-monitor-li { |
|
22 |
background: var(--portal-main-color); |
|
23 |
} |
|
24 |
|
|
25 |
.monitorApp, .searchForm { |
|
26 |
background: #F9F9F9 !important; |
|
27 |
} |
|
28 |
|
|
29 |
.monitorApp .login text { |
|
30 |
stroke: white; |
|
31 |
fill: white; |
|
32 |
} |
|
33 |
|
|
34 |
.uk-card { |
|
35 |
color: #1a1a1a; |
|
36 |
} |
|
37 |
|
|
38 |
main { |
|
39 |
min-height: calc(100vh - 100px); |
|
40 |
line-height: 23px; |
|
41 |
font-size: 16px; |
|
42 |
color: #1a1a1a; |
|
43 |
font-family: "Open Sans", sans-serif; |
|
44 |
} |
|
45 |
|
|
46 |
.monitorApp .uk-text-small { |
|
47 |
font-size: 14px; |
|
48 |
} |
|
49 |
|
|
50 |
.monitorApp .uk-text-muted { |
|
51 |
color: #4D4D4D !important; |
|
52 |
} |
|
53 |
|
|
54 |
.monitorApp .portal-button { |
|
55 |
color: white !important; |
|
56 |
font-weight: 700; |
|
57 |
} |
|
58 |
|
|
59 |
.monitorApp .uk-grid-divider>:not(.uk-first-column)::before { |
|
60 |
border-left: 1px solid #DEDEDE; |
|
61 |
} |
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/monitor-assets/home/dashboard-background.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="891.972" height="404" viewBox="0 0 891.972 404"> |
|
2 |
<g id="Group_11723" data-name="Group 11723" transform="translate(-250 -759)"> |
|
3 |
<g id="Group_3098" data-name="Group 3098" transform="translate(-80 574.953)"> |
|
4 |
<path id="Path_16420" data-name="Path 16420" d="M338.05,210.66l-18.6,6.887-19.11,7.078-33.015,12.223-9.235,3.424-19.136,7.084" transform="translate(855.417 86.511)" fill="none" stroke="#09091e" stroke-miterlimit="10" stroke-width="3"/> |
|
5 |
<path id="Path_17201" data-name="Path 17201" d="M131.762,0,107.036,22.093,81.626,44.8l-43.9,39.214L25.446,95,0,117.726" transform="translate(1057.45 316.813) rotate(-20)" fill="none" stroke="#09091e" stroke-miterlimit="10" stroke-width="1"/> |
|
6 |
<path id="Path_17202" data-name="Path 17202" d="M110.125,0,89.459,18.465,68.221,37.444,31.53,70.218,21.267,79.4,0,98.393" transform="translate(1122.86 315.774) rotate(50)" fill="none" stroke="#09091e" stroke-miterlimit="10" stroke-width="1"/> |
|
7 |
</g> |
|
8 |
<circle id="Ellipse_360" data-name="Ellipse 360" cx="124" cy="124" r="124" transform="translate(250 759)" fill="#8bcc00" opacity="0.5"/> |
|
9 |
<g id="Ellipse_372" data-name="Ellipse 372" transform="translate(906 984)" fill="none" stroke="#4687e6" stroke-width="1"> |
|
10 |
<circle cx="89.5" cy="89.5" r="89.5" stroke="none"/> |
|
11 |
<circle cx="89.5" cy="89.5" r="89" fill="none"/> |
|
12 |
</g> |
|
13 |
</g> |
|
14 |
</svg> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/monitor-assets/home/graph-background.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="1367" height="393.812" viewBox="0 0 1367 393.812"> |
|
2 |
<g id="Group_11724" data-name="Group 11724" transform="translate(1 -2386)"> |
|
3 |
<path id="Path_2342" data-name="Path 2342" d="M1366-68.381S1070.67-131.445,608.9-142.3C354.509-148.279-.867-68.381-.867-68.381V190.035s538.452,102.97,836.881,41.69c286.66-60.522,529.986,0,529.986,0Z" transform="translate(-0.133 2528.619)" fill="#eff3f8"/> |
|
4 |
<path id="Path_2356" data-name="Path 2356" d="M-.867,176.956s295.142,63.063,756.615,73.918c254.234,5.98,609.385-73.918,609.385-73.918V-81.46s-538.111-102.97-836.35-41.69c-286.478,60.522-529.65,0-529.65,0Z" transform="translate(0.867 2528.619)" fill="#eff3f8" opacity="0.499"/> |
|
5 |
</g> |
|
6 |
</svg> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/monitor-assets/about/arrows/3.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="103.827" height="153.958" viewBox="0 0 103.827 153.958"> |
|
2 |
<g id="Group_2401" data-name="Group 2401" transform="translate(-1318.198 -779.424) rotate(-20)"> |
|
3 |
<g id="Group_1141" data-name="Group 1141" transform="matrix(-0.174, 0.985, -0.985, -0.174, 1046.902, 1211.049)"> |
|
4 |
<path id="Path_2339" data-name="Path 2339" d="M135.26,80.668C60.034-45.855,6.029,11.188,0,23.336" transform="translate(0 0)" fill="none" stroke="#212121" stroke-width="1" stroke-dasharray="7"/> |
|
5 |
</g> |
|
6 |
<g id="Group_1142" data-name="Group 1142" transform="translate(936.789 1330.947) rotate(-43)"> |
|
7 |
<line id="Line_345" data-name="Line 345" x1="1.778" y1="4.377" transform="translate(0.089 1.532)" fill="none" stroke="#212121" stroke-width="1"/> |
|
8 |
<line id="Line_346" data-name="Line 346" x2="2.189" y2="3.556" transform="translate(0 2.189) rotate(-90)" fill="none" stroke="#212121" stroke-width="1"/> |
|
9 |
</g> |
|
10 |
</g> |
|
11 |
</svg> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/monitor-assets/about/arrows/4.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="117.496" height="64.012" viewBox="0 0 117.496 64.012"> |
|
2 |
<g id="Group_1143" data-name="Group 1143" transform="translate(55.846 -4.676) rotate(-19)"> |
|
3 |
<path id="Path_2339" data-name="Path 2339" d="M33.748,7.2C7.979,32.136-55.782,25.421-38.011,8.591-20.191-7.271-28.973,53.122-80.2,26.067" transform="translate(13.972 16.105)" fill="none" stroke="#212121" stroke-width="1" stroke-dasharray="7"/> |
|
4 |
<g id="Group_1144" data-name="Group 1144" transform="translate(-69.001 39.672)"> |
|
5 |
<line id="Line_345" data-name="Line 345" x1="2.651" y1="5.302" transform="translate(0.132 1.855)" fill="none" stroke="#212121" stroke-width="1"/> |
|
6 |
<line id="Line_346" data-name="Line 346" x2="2.651" y2="5.302" transform="translate(0 2.651) rotate(-90)" fill="none" stroke="#212121" stroke-width="1"/> |
|
7 |
</g> |
|
8 |
</g> |
|
9 |
</svg> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/monitor-assets/about/arrows/5.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="107.525" height="69.445" viewBox="0 0 107.525 69.445"> |
|
2 |
<g id="Group_11721" data-name="Group 11721" transform="translate(112.848 -39.172) rotate(56)"> |
|
3 |
<g id="Group_1141" data-name="Group 1141" transform="matrix(-0.174, 0.985, -0.985, -0.174, 53.579, 43.214)"> |
|
4 |
<path id="Path_2339" data-name="Path 2339" d="M96.963,31.663C43.036-18,4.322,4.391,0,9.159" transform="translate(0 0)" fill="none" stroke="#212121" stroke-width="1" stroke-dasharray="7"/> |
|
5 |
</g> |
|
6 |
<g id="Group_1142" data-name="Group 1142" transform="translate(-0.484 133.795) rotate(-43)"> |
|
7 |
<line id="Line_345" data-name="Line 345" x1="1.663" y1="4.095" transform="translate(0.083 1.433)" fill="none" stroke="#212121" stroke-width="1"/> |
|
8 |
<line id="Line_346" data-name="Line 346" x2="2.048" y2="3.327" transform="translate(0 2.048) rotate(-90)" fill="none" stroke="#212121" stroke-width="1"/> |
|
9 |
</g> |
|
10 |
</g> |
|
11 |
</svg> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/monitor-assets/about/arrows/1.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="95.647" height="60.692" viewBox="0 0 95.647 60.692"> |
|
2 |
<g id="Group_905" data-name="Group 905" transform="translate(70.298 97.482) rotate(-161)"> |
|
3 |
<path id="Path_2339" data-name="Path 2339" d="M87.648,29.439C24.781,46.54,24.677-5.5,39.79.481,53.326,5.835,44.623,25.816,0,17.558" transform="translate(-0.02 39.459)" fill="none" stroke="#212121" stroke-width="1" stroke-dasharray="7"/> |
|
4 |
<path id="Path_2366" data-name="Path 2366" d="M0,0,2.814,1.387l-.607,3.29" transform="translate(-3.724 59.204) rotate(-150)" fill="none" stroke="#212121" stroke-width="1"/> |
|
5 |
</g> |
|
6 |
</svg> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/assets/monitor-assets/about/arrows/2.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="96.457" height="61.415" viewBox="0 0 96.457 61.415"> |
|
2 |
<g id="Group_906" data-name="Group 906" transform="translate(59.107 54.14) rotate(-152)"> |
|
3 |
<path id="Path_2339" data-name="Path 2339" d="M67.968,21.473c-54.526,13.788-31.41-33.246-25.4-10.629C47.607,28.611.938-12.841-23.762,21.873" transform="translate(1.017 0)" fill="none" stroke="#212121" stroke-width="1" stroke-dasharray="6"/> |
|
4 |
<path id="Path_55797" data-name="Path 55797" d="M0,0,3.3,1.628,2.591,5.49" transform="matrix(-0.921, 0.391, -0.391, -0.921, -22.719, 28.548)" fill="none" stroke="#212121" stroke-width="1"/> |
|
5 |
</g> |
|
6 |
</svg> |
modules/uoa-monitor-portal/branches/angular-11/monitor/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'; |
|
5 |
/** |
|
6 |
* This file includes polyfills needed by Angular and is loaded before the app. |
|
7 |
* You can add your own extra polyfills to this file. |
|
8 |
* |
|
9 |
* This file is divided into 2 sections: |
|
10 |
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. |
|
11 |
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main |
|
12 |
* file. |
|
13 |
* |
|
14 |
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that |
|
15 |
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), |
|
16 |
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. |
|
17 |
* |
|
18 |
* Learn more in https://angular.io/guide/browser-support |
|
19 |
*/ |
|
20 |
|
|
21 |
/*************************************************************************************************** |
|
22 |
* BROWSER POLYFILLS |
|
23 |
*/ |
|
24 |
|
|
25 |
/** IE10 and IE11 requires the following for NgClass support on SVG elements */ |
|
26 |
// import 'classlist.js'; // Run `npm install --save classlist.js`. |
|
27 |
|
|
28 |
/** |
|
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 |
*/ |
|
33 |
// import 'web-animations-js'; // Run `npm install --save web-animations-js`. |
|
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 |
*/ |
|
58 |
|
|
59 |
/*************************************************************************************************** |
|
60 |
* Zone JS is required by default for Angular itself. |
|
61 |
*/ |
|
62 |
import 'zone.js/dist/zone'; // Included with Angular CLI. |
|
63 |
|
|
64 |
|
|
65 |
/*************************************************************************************************** |
|
66 |
* APPLICATION IMPORTS |
|
67 |
*/ |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/tsconfig.app.json | ||
---|---|---|
1 |
{ |
|
2 |
"extends": "../tsconfig.json", |
|
3 |
"compilerOptions": { |
|
4 |
"outDir": "../out-tsc/app", |
|
5 |
"types": [] |
|
6 |
}, |
|
7 |
"files": [ |
|
8 |
"main.ts", |
|
9 |
"polyfills.ts" |
|
10 |
], |
|
11 |
"include": [ |
|
12 |
"src/**/*.d.ts" |
|
13 |
] |
|
14 |
} |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/prod/robots.txt | ||
---|---|---|
1 |
User-Agent: * |
|
2 |
Crawl-delay: 30 |
|
3 |
|
|
4 |
Sitemap: https://monitorsitemap.xml.openaire.eu/sitemap.xml |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/prod/index.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" content="OpenAIRE Monitor, funder, funding, research, "/> |
|
10 |
|
|
11 |
|
|
12 |
<meta property="og:description" content="OpenAIRE Monitor, funder, funding"/> |
|
13 |
<meta property="og:title" content="OpenAIRE - Monitor "/> |
|
14 |
|
|
15 |
<meta property="og:type" content="website"/> |
|
16 |
<meta property="og:url" content="https://monitor.openaire.eu"/> |
|
17 |
<meta property="og:site_name" content="OpenAIRE - Monitor"/> |
|
18 |
|
|
19 |
<meta property="og:image" content="assets/common-assets/common/Symbol.png"/> |
|
20 |
<meta property="og:image:secure_url" content="assets/common-assets/common/Symbol.png"/> |
|
21 |
<meta property="og:image:type" content="image/png"/> |
|
22 |
<meta property="og:image:width" content="360"/> |
|
23 |
<meta property="og:image:height" content="359"/> |
|
24 |
<meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" /> |
|
25 |
<link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png"> |
|
26 |
<link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png"> |
|
27 |
<link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png"> |
|
28 |
<link rel="apple-touch-icon" sizes="76x76" href="assets/common-assets/logo/apple-icon-76x76.png"> |
|
29 |
<link rel="apple-touch-icon" sizes="114x114" href="assets/common-assets/logo/apple-icon-114x114.png"> |
|
30 |
<link rel="apple-touch-icon" sizes="120x120" href="assets/common-assets/logo/apple-icon-120x120.png"> |
|
31 |
<link rel="apple-touch-icon" sizes="144x144" href="assets/common-assets/logo/apple-icon-144x144.png"> |
|
32 |
<link rel="apple-touch-icon" sizes="152x152" href="assets/common-assets/logo/apple-icon-152x152.png"> |
|
33 |
<link rel="apple-touch-icon" sizes="180x180" href="assets/common-assets/logo/apple-icon-180x180.png"> |
|
34 |
<link rel="icon" type="image/png" sizes="192x192" href="assets/common-assets/logo/android-icon-192x192.png"> |
|
35 |
<link rel="icon" type="image/png" sizes="32x32" href="assets/common-assets/logo/favicon-32x32.png"> |
|
36 |
<link rel="icon" type="image/png" sizes="96x96" href="assets/common-assets/logo/favicon-96x96.png"> |
|
37 |
<link rel="icon" type="image/png" sizes="16x16" href="assets/common-assets/logo/favicon-16x16.png"> |
|
38 |
<link href="assets/common-assets/logo/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"/> |
|
39 |
<link rel="manifest" href="assets/common-assets/logo/manifest.json"> |
|
40 |
<meta name="msapplication-TileColor" content="#ffffff"> |
|
41 |
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> |
|
42 |
<meta name="theme-color" content="#ffffff"> |
|
43 |
</head> |
|
44 |
<body> |
|
45 |
<div class="uk-offcanvas-content uk-height-viewport"> |
|
46 |
<app-root></app-root> |
|
47 |
</div> |
|
48 |
</body> |
|
49 |
<script type="text/javascript"> |
|
50 |
function loadAltmetrics(e, t, n) { |
|
51 |
var d = "createElement", c = "getElementsByTagName", m = "setAttribute", n = document.getElementById(e); |
|
52 |
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") |
|
53 |
} |
|
54 |
</script> |
|
55 |
<script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script> |
|
56 |
</html> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/test.ts | ||
---|---|---|
1 |
// This file is required by karma.conf.js and loads recursively all the .spec and framework files |
|
2 |
|
|
3 |
import 'zone.js/dist/zone-testing'; |
|
4 |
import { getTestBed } from '@angular/core/testing'; |
|
5 |
import { |
|
6 |
BrowserDynamicTestingModule, |
|
7 |
platformBrowserDynamicTesting |
|
8 |
} from '@angular/platform-browser-dynamic/testing'; |
|
9 |
|
|
10 |
declare const require: any; |
|
11 |
|
|
12 |
// First, initialize the Angular testing environment. |
|
13 |
getTestBed().initTestEnvironment( |
|
14 |
BrowserDynamicTestingModule, |
|
15 |
platformBrowserDynamicTesting() |
|
16 |
); |
|
17 |
// Then we find all the tests. |
|
18 |
const context = require.context('./', true, /\.spec\.ts$/); |
|
19 |
// And load the modules. |
|
20 |
context.keys().map(context); |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/material.scss | ||
---|---|---|
1 |
@import '../node_modules/@angular/material/theming'; |
|
2 |
@include mat-core(); |
|
3 |
$my-app-primary: mat-palette($mat-gray, 900); |
|
4 |
$my-app-accent: mat-palette($mat-light-green, 700); |
|
5 |
|
|
6 |
$my-app-theme: mat-light-theme($my-app-primary, $my-app-accent); |
|
7 |
|
|
8 |
@include angular-material-theme($my-app-theme); |
|
9 |
|
modules/uoa-monitor-portal/branches/angular-11/monitor/src/main.ts | ||
---|---|---|
1 |
import { enableProdMode } from '@angular/core'; |
|
2 |
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; |
|
3 |
|
|
4 |
import { AppModule } from './app/app.module'; |
|
5 |
import { properties } from './environments/environment'; |
|
6 |
|
|
7 |
if (properties.environment !== "development") { |
|
8 |
enableProdMode(); |
|
9 |
} |
|
10 |
|
|
11 |
document.addEventListener('DOMContentLoaded', () => { |
|
12 |
platformBrowserDynamic().bootstrapModule(AppModule) |
|
13 |
.catch(err => console.error(err)); |
|
14 |
}); |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/index.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 Monitor, funder, funding, research, "/> |
|
10 |
|
|
11 |
|
|
12 |
<meta property="og:description" content="OpenAIRE Monitor, funder, funding"/> |
|
13 |
<meta property="og:title" content="OpenAIRE - Monitor "/> |
|
14 |
|
|
15 |
<meta property="og:type" content="website"/> |
|
16 |
<meta property="og:url" content="https://beta.monitor.openaire.eu"/> |
|
17 |
<meta property="og:site_name" content="OpenAIRE - Monitor"/> |
|
18 |
|
|
19 |
<meta property="og:image" content="assets/common-assets/common/Symbol.png"/> |
|
20 |
<meta property="og:image:secure_url" content="assets/common-assets/common/Symbol.png"/> |
|
21 |
<meta property="og:image:type" content="image/png"/> |
|
22 |
<meta property="og:image:width" content="360"/> |
|
23 |
<meta property="og:image:height" content="359"/> |
|
24 |
<meta name="robots" content="noindex"> |
|
25 |
<link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png"> |
|
26 |
<link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png"> |
|
27 |
<link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png"> |
|
28 |
<link rel="apple-touch-icon" sizes="76x76" href="assets/common-assets/logo/apple-icon-76x76.png"> |
|
29 |
<link rel="apple-touch-icon" sizes="114x114" href="assets/common-assets/logo/apple-icon-114x114.png"> |
|
30 |
<link rel="apple-touch-icon" sizes="120x120" href="assets/common-assets/logo/apple-icon-120x120.png"> |
|
31 |
<link rel="apple-touch-icon" sizes="144x144" href="assets/common-assets/logo/apple-icon-144x144.png"> |
|
32 |
<link rel="apple-touch-icon" sizes="152x152" href="assets/common-assets/logo/apple-icon-152x152.png"> |
|
33 |
<link rel="apple-touch-icon" sizes="180x180" href="assets/common-assets/logo/apple-icon-180x180.png"> |
|
34 |
<link rel="icon" type="image/png" sizes="192x192" href="assets/common-assets/logo/android-icon-192x192.png"> |
|
35 |
<link rel="icon" type="image/png" sizes="32x32" href="assets/common-assets/logo/favicon-32x32.png"> |
|
36 |
<link rel="icon" type="image/png" sizes="96x96" href="assets/common-assets/logo/favicon-96x96.png"> |
|
37 |
<link rel="icon" type="image/png" sizes="16x16" href="assets/common-assets/logo/favicon-16x16.png"> |
|
38 |
<link href="assets/common-assets/logo/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"/> |
|
39 |
<link rel="manifest" href="assets/common-assets/logo/manifest.json"> |
|
40 |
<meta name="msapplication-TileColor" content="#ffffff"> |
|
41 |
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> |
|
42 |
<meta name="theme-color" content="#ffffff"> |
|
43 |
</head> |
|
44 |
<body> |
|
45 |
<div class="uk-offcanvas-content uk-height-viewport"> |
|
46 |
<app-root></app-root> |
|
47 |
</div> |
|
48 |
</body> |
|
49 |
<script type="text/javascript"> |
|
50 |
function loadAltmetrics(e, t, n) { |
|
51 |
var d = "createElement", c = "getElementsByTagName", m = "setAttribute", n = document.getElementById(e); |
|
52 |
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") |
|
53 |
} |
|
54 |
</script> |
|
55 |
<script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script> |
|
56 |
</html> |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/styles.css | ||
---|---|---|
1 |
/* You can add global styles to this file, and also import other style files */ |
|
2 |
@import "assets/common-assets/common/theme.css"; |
|
3 |
@import "assets/common-assets/common/custom.css"; |
|
4 |
@import "assets/common-assets/library.css"; |
|
5 |
@import "assets/monitor-custom.css"; |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/tsconfig.spec.json | ||
---|---|---|
1 |
{ |
|
2 |
"extends": "../tsconfig.json", |
|
3 |
"compilerOptions": { |
|
4 |
"outDir": "../out-tsc/spec", |
|
5 |
"types": [ |
|
6 |
"jasmine", |
|
7 |
"node" |
|
8 |
] |
|
9 |
}, |
|
10 |
"files": [ |
|
11 |
"test.ts", |
|
12 |
"polyfills.ts" |
|
13 |
], |
|
14 |
"include": [ |
|
15 |
"**/*.spec.ts", |
|
16 |
"**/*.d.ts" |
|
17 |
] |
|
18 |
} |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/main.server.ts | ||
---|---|---|
1 |
/*************************************************************************************************** |
|
2 |
* Load `$localize` onto the global scope - used if i18n tags appear in Angular templates. |
|
3 |
*/ |
|
4 |
import '@angular/localize/init'; |
|
5 |
|
|
6 |
import {enableProdMode} from '@angular/core'; |
|
7 |
|
|
8 |
import {properties} from './environments/environment'; |
|
9 |
|
|
10 |
if (properties.environment !== "development") { |
|
11 |
enableProdMode(); |
|
12 |
} |
|
13 |
|
|
14 |
export {AppServerModule} from './app/app.server.module'; |
|
15 |
export {renderModule, renderModuleFactory} from '@angular/platform-server'; |
modules/uoa-monitor-portal/branches/angular-11/monitor/src/app/app.component.ts | ||
---|---|---|
1 |
import {Component} from '@angular/core'; |
|
2 |
import {ActivatedRoute, NavigationEnd, NavigationStart, Params, Router} from '@angular/router'; |
|
3 |
|
|
4 |
import {EnvProperties} from './openaireLibrary/utils/properties/env-properties'; |
|
5 |
import {MenuItem, RootMenuItem} from './openaireLibrary/sharedComponents/menu'; |
|
6 |
import {EnvironmentSpecificService} from './openaireLibrary/utils/properties/environment-specific.service'; |
Also available in: Unified diff
[Monitor]: Delete branches