[Usage Statistics | Trunk]: Initial commit
This commit is contained in:
parent
acf6e41a74
commit
d776621f4b
|
@ -0,0 +1,28 @@
|
||||||
|
# Usage Statistics
|
||||||
|
|
||||||
|
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.3.0.
|
||||||
|
|
||||||
|
## Development server
|
||||||
|
|
||||||
|
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
||||||
|
|
||||||
|
## Code scaffolding
|
||||||
|
|
||||||
|
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
|
||||||
|
|
||||||
|
## Running unit tests
|
||||||
|
|
||||||
|
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||||
|
|
||||||
|
## Running end-to-end tests
|
||||||
|
|
||||||
|
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|
||||||
|
Before running the tests make sure you are serving the app via `ng serve`.
|
||||||
|
|
||||||
|
## Further help
|
||||||
|
|
||||||
|
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
|
@ -0,0 +1,15 @@
|
||||||
|
*******Useful project infrmation***********
|
||||||
|
Project has 2 external folders. Check them using
|
||||||
|
svn propget svn:externals ./
|
||||||
|
|
||||||
|
Above command should show the following:
|
||||||
|
./src/app/openaireLibrary https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app
|
||||||
|
./src/assets/common-assets https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/assets
|
||||||
|
|
||||||
|
After initial checkout, you may have to exlude ./src/app/openaireLibrary/app.* files in order the project to run properly.
|
||||||
|
Exclude the files from your local copy, but keep them in the repository.
|
||||||
|
|
||||||
|
Use the following command, to exclude the files:
|
||||||
|
cd ./src/app/openaireLibrary
|
||||||
|
svn update --set-depth exclude ./app.*
|
||||||
|
svn update --set-depth exclude ./dashboard
|
|
@ -0,0 +1,165 @@
|
||||||
|
{
|
||||||
|
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
|
||||||
|
"version": 1,
|
||||||
|
"newProjectRoot": "projects",
|
||||||
|
"projects": {
|
||||||
|
"usage-statistics": {
|
||||||
|
"root": "",
|
||||||
|
"sourceRoot": "src",
|
||||||
|
"projectType": "application",
|
||||||
|
"architect": {
|
||||||
|
"build": {
|
||||||
|
"builder": "@angular-devkit/build-angular:browser",
|
||||||
|
"options": {
|
||||||
|
"outputPath": "dist",
|
||||||
|
"index": "src/index.html",
|
||||||
|
"main": "src/main.ts",
|
||||||
|
"tsConfig": "src/tsconfig.app.json",
|
||||||
|
"polyfills": "src/polyfills.ts",
|
||||||
|
"assets": [
|
||||||
|
"src/assets"
|
||||||
|
],
|
||||||
|
"styles": [
|
||||||
|
"src/styles.css",
|
||||||
|
"src/material.scss"
|
||||||
|
],
|
||||||
|
"scripts": [
|
||||||
|
"src/assets/common-assets/common/jquery.js",
|
||||||
|
"src/assets/common-assets/common/uikit.min.js",
|
||||||
|
"src/assets/common-assets/common/uikit-icons.min.js",
|
||||||
|
"node_modules/jquery/dist/jquery.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"optimization": true,
|
||||||
|
"outputHashing": "all",
|
||||||
|
"sourceMap": false,
|
||||||
|
"extractCss": true,
|
||||||
|
"namedChunks": false,
|
||||||
|
"aot": true,
|
||||||
|
"extractLicenses": true,
|
||||||
|
"vendorChunk": false,
|
||||||
|
"buildOptimizer": true,
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.prod.ts"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"beta": {
|
||||||
|
"optimization": true,
|
||||||
|
"outputHashing": "all",
|
||||||
|
"sourceMap": false,
|
||||||
|
"extractCss": true,
|
||||||
|
"namedChunks": false,
|
||||||
|
"aot": true,
|
||||||
|
"extractLicenses": true,
|
||||||
|
"vendorChunk": false,
|
||||||
|
"buildOptimizer": true,
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.beta.ts"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"serve": {
|
||||||
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
|
"options": {
|
||||||
|
"browserTarget": "usage-statistics:build"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"browserTarget": "usage-statistics:build:production"
|
||||||
|
},
|
||||||
|
"beta": {
|
||||||
|
"browserTarget": "usage-statistics:build:beta"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extract-i18n": {
|
||||||
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||||
|
"options": {
|
||||||
|
"browserTarget": "usage-statistics:build"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"builder": "@angular-devkit/build-angular:karma",
|
||||||
|
"options": {
|
||||||
|
"main": "src/test.ts",
|
||||||
|
"karmaConfig": "./karma.conf.js",
|
||||||
|
"polyfills": "src/polyfills.ts",
|
||||||
|
"tsConfig": "src/tsconfig.spec.json",
|
||||||
|
"scripts": [
|
||||||
|
"node_modules/jquery/dist/jquery.js",
|
||||||
|
"node_modules/datatables.net/js/jquery.dataTables.js",
|
||||||
|
"node_modules/interactiveminingv3/assets/js/ResizeSensor.js",
|
||||||
|
"node_modules/interactiveminingv3/assets/js/jquery.sticky-sidebar.js"
|
||||||
|
],
|
||||||
|
"styles": [
|
||||||
|
"src/styles.css",
|
||||||
|
"node_modules/datatables.net-dt/css/jquery.dataTables.css",
|
||||||
|
"node_modules/interactiveminingv3/assets/css/interactive-mining.css",
|
||||||
|
"node_modules/interactiveminingv3/assets/css/animations.css"
|
||||||
|
],
|
||||||
|
"assets": [
|
||||||
|
"src/assets",
|
||||||
|
"src/robots.txt"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lint": {
|
||||||
|
"builder": "@angular-devkit/build-angular:tslint",
|
||||||
|
"options": {
|
||||||
|
"tsConfig": [
|
||||||
|
"src/tsconfig.app.json",
|
||||||
|
"src/tsconfig.spec.json"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"**/node_modules/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"usage-statistics-e2e": {
|
||||||
|
"root": "e2e",
|
||||||
|
"sourceRoot": "e2e",
|
||||||
|
"projectType": "application",
|
||||||
|
"architect": {
|
||||||
|
"e2e": {
|
||||||
|
"builder": "@angular-devkit/build-angular:protractor",
|
||||||
|
"options": {
|
||||||
|
"protractorConfig": "./protractor.conf.js",
|
||||||
|
"devServerTarget": "usage-statistics:serve"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lint": {
|
||||||
|
"builder": "@angular-devkit/build-angular:tslint",
|
||||||
|
"options": {
|
||||||
|
"tsConfig": [
|
||||||
|
"e2e/tsconfig.e2e.json"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"**/node_modules/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultProject": "usage-statistics",
|
||||||
|
"schematics": {
|
||||||
|
"@schematics/angular:component": {
|
||||||
|
"prefix": "app",
|
||||||
|
"styleext": "css"
|
||||||
|
},
|
||||||
|
"@schematics/angular:directive": {
|
||||||
|
"prefix": "app"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { AppPage } from './app.po';
|
||||||
|
|
||||||
|
describe('admin-portal App', () => {
|
||||||
|
let page: AppPage;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
page = new AppPage();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should display welcome message', () => {
|
||||||
|
page.navigateTo();
|
||||||
|
expect(page.getParagraphText()).toEqual('Welcome to app!');
|
||||||
|
});
|
||||||
|
});
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { browser, by, element } from 'protractor';
|
||||||
|
|
||||||
|
export class AppPage {
|
||||||
|
navigateTo() {
|
||||||
|
return browser.get('/');
|
||||||
|
}
|
||||||
|
|
||||||
|
getParagraphText() {
|
||||||
|
return element(by.css('app-root h1')).getText();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"extends": "../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "../out-tsc/e2e",
|
||||||
|
"baseUrl": "./",
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es5",
|
||||||
|
"types": [
|
||||||
|
"jasmine",
|
||||||
|
"jasminewd2",
|
||||||
|
"node"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
// Karma configuration file, see link for more information
|
||||||
|
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
||||||
|
|
||||||
|
module.exports = function (config) {
|
||||||
|
config.set({
|
||||||
|
basePath: '',
|
||||||
|
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
||||||
|
plugins: [
|
||||||
|
require('karma-jasmine'),
|
||||||
|
require('karma-chrome-launcher'),
|
||||||
|
require('karma-jasmine-html-reporter'),
|
||||||
|
require('karma-coverage-istanbul-reporter'),
|
||||||
|
require('@angular-devkit/build-angular/plugins/karma')
|
||||||
|
],
|
||||||
|
client:{
|
||||||
|
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
||||||
|
},
|
||||||
|
coverageIstanbulReporter: {
|
||||||
|
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
|
||||||
|
fixWebpackSourcePaths: true
|
||||||
|
},
|
||||||
|
|
||||||
|
reporters: ['progress', 'kjhtml'],
|
||||||
|
port: 9876,
|
||||||
|
colors: true,
|
||||||
|
logLevel: config.LOG_INFO,
|
||||||
|
autoWatch: true,
|
||||||
|
browsers: ['Chrome'],
|
||||||
|
singleRun: false
|
||||||
|
});
|
||||||
|
};
|
|
@ -0,0 +1,72 @@
|
||||||
|
{
|
||||||
|
"name": "usage-statistics",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"ng": "ng",
|
||||||
|
"start": "ng serve --host 0.0.0.0 --disable-host-check --port=4800",
|
||||||
|
"build": "ng build --prod",
|
||||||
|
"build-beta": "ng build --configuration=beta",
|
||||||
|
"test": "ng test",
|
||||||
|
"lint": "ng lint",
|
||||||
|
"e2e": "ng e2e"
|
||||||
|
},
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@angular/animations": "7.2.14",
|
||||||
|
"@angular/cdk": "^7.3.7",
|
||||||
|
"@angular/common": "7.2.14",
|
||||||
|
"@angular/compiler": "7.2.14",
|
||||||
|
"@angular/core": "7.2.14",
|
||||||
|
"@angular/forms": "7.2.14",
|
||||||
|
"@angular/http": "7.2.14",
|
||||||
|
"@angular/material": "^7.3.7",
|
||||||
|
"@angular/platform-browser": "7.2.14",
|
||||||
|
"@angular/platform-browser-dynamic": "7.2.14",
|
||||||
|
"@angular/router": "7.2.14",
|
||||||
|
"@nguniversal/express-engine": "^6.0.0",
|
||||||
|
"@types/express": "^4.16.1",
|
||||||
|
"angular-datatables": "^4.4.1",
|
||||||
|
"citation-js": "^0.3.4",
|
||||||
|
"clipboard": "^1.5.16",
|
||||||
|
"core-js": "2.6.8",
|
||||||
|
"datatables.net": "^1.10.19",
|
||||||
|
"datatables.net-dt": "^1.10.19",
|
||||||
|
"jquery": "^3.4.1",
|
||||||
|
"ng2-ckeditor": "1.1.9",
|
||||||
|
"ngx-bootstrap": "^1.6.6",
|
||||||
|
"ngx-color-picker": "^8.1.0",
|
||||||
|
"ngx-json-ld": "0.1.6",
|
||||||
|
"ng-recaptcha": "^3.0.5",
|
||||||
|
"ts-md5": "^1.2.0",
|
||||||
|
"tslib": "^1.9.0",
|
||||||
|
"zone.js": "0.8.29"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@angular-devkit/build-angular": "~0.13.0",
|
||||||
|
"@angular/cli": "7.3.9",
|
||||||
|
"@angular/compiler-cli": "7.2.14",
|
||||||
|
"@angular/language-service": "7.2.14",
|
||||||
|
"@types/datatables.net": "^1.10.17",
|
||||||
|
"@types/jasmine": "~2.8.8",
|
||||||
|
"@types/jasminewd2": "~2.0.3",
|
||||||
|
"@types/jquery": "^3.3.29",
|
||||||
|
"@types/node": "^14.0.13",
|
||||||
|
"codelyzer": "~4.5.0",
|
||||||
|
"jasmine-core": "~2.99.1",
|
||||||
|
"jasmine-spec-reporter": "~4.2.1",
|
||||||
|
"karma": "~3.0.0",
|
||||||
|
"karma-chrome-launcher": "~2.1.1",
|
||||||
|
"karma-cli": "~1.0.1",
|
||||||
|
"karma-coverage-istanbul-reporter": "~2.0.1",
|
||||||
|
"karma-jasmine": "~1.1.2",
|
||||||
|
"karma-jasmine-html-reporter": "^0.2.2",
|
||||||
|
"protractor": "~5.4.0",
|
||||||
|
"rxjs": "6.5.1",
|
||||||
|
"rxjs-compat": "^6.5.1",
|
||||||
|
"rxjs-tslint": "^0.1.7",
|
||||||
|
"ts-node": "~7.0.0",
|
||||||
|
"tslint": "^5.7.0",
|
||||||
|
"typescript": "3.2.4"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
// Protractor configuration file, see link for more information
|
||||||
|
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
||||||
|
|
||||||
|
const { SpecReporter } = require('jasmine-spec-reporter');
|
||||||
|
|
||||||
|
exports.config = {
|
||||||
|
allScriptsTimeout: 11000,
|
||||||
|
specs: [
|
||||||
|
'./e2e/**/*.e2e-spec.ts'
|
||||||
|
],
|
||||||
|
capabilities: {
|
||||||
|
'browserName': 'chrome'
|
||||||
|
},
|
||||||
|
directConnect: true,
|
||||||
|
baseUrl: 'http://localhost:4200/',
|
||||||
|
framework: 'jasmine',
|
||||||
|
jasmineNodeOpts: {
|
||||||
|
showColors: true,
|
||||||
|
defaultTimeoutInterval: 30000,
|
||||||
|
print: function() {}
|
||||||
|
},
|
||||||
|
onPrepare() {
|
||||||
|
require('ts-node').register({
|
||||||
|
project: 'e2e/tsconfig.e2e.json'
|
||||||
|
});
|
||||||
|
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,15 @@
|
||||||
|
<navbar *ngIf= "showMenu" portal="usage-statistics" [onlyTop]=false [userMenu]=true
|
||||||
|
[user]="user" [userMenuItems]=userMenuItems [menuItems]=menuItems [properties]=properties></navbar>
|
||||||
|
<div class="custom-main-content">
|
||||||
|
<main>
|
||||||
|
<router-outlet></router-outlet>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
<cookie-law position="bottom">
|
||||||
|
OpenAIRE uses cookies in order to function properly.<br>
|
||||||
|
Cookies are small pieces of data that websites store in your browser to allow us to give you the best browsing experience possible.
|
||||||
|
By using the OpenAIRE portal you accept our use of cookies. <a href="//ec.europa.eu/ipg/basics/legal/cookies/index_en.htm" target="_blank"> Read more <span class="uk-icon">
|
||||||
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="chevron-right" ratio="1"><polyline fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg>
|
||||||
|
</span></a>
|
||||||
|
</cookie-law>
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
import { TestBed, async } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { AppComponent } from './app.component';
|
||||||
|
|
||||||
|
describe('AppComponent', () => {
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [
|
||||||
|
AppComponent
|
||||||
|
],
|
||||||
|
}).compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create the app', async(() => {
|
||||||
|
const fixture = TestBed.createComponent(AppComponent);
|
||||||
|
const app = fixture.debugElement.componentInstance;
|
||||||
|
expect(app).toBeTruthy();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it(`should have as title 'app'`, async(() => {
|
||||||
|
const fixture = TestBed.createComponent(AppComponent);
|
||||||
|
const app = fixture.debugElement.componentInstance;
|
||||||
|
expect(app.title).toEqual('app');
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should render title in a h1 tag', async(() => {
|
||||||
|
const fixture = TestBed.createComponent(AppComponent);
|
||||||
|
fixture.detectChanges();
|
||||||
|
const compiled = fixture.debugElement.nativeElement;
|
||||||
|
expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');
|
||||||
|
}));
|
||||||
|
});
|
|
@ -0,0 +1,40 @@
|
||||||
|
import {Component, OnInit} from '@angular/core';
|
||||||
|
import {MenuItem, RootMenuItem, SideMenuItem} from './openaireLibrary/sharedComponents/menu';
|
||||||
|
import {ActivatedRoute, Router} from '@angular/router';
|
||||||
|
import {EnvProperties} from './openaireLibrary/utils/properties/env-properties';
|
||||||
|
import {User} from './openaireLibrary/login/utils/helper.class';
|
||||||
|
import {UserManagementService} from './openaireLibrary/services/user-management.service';
|
||||||
|
import {properties} from "../environments/environment";
|
||||||
|
|
||||||
|
declare var UIkit: any;
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app',
|
||||||
|
templateUrl: './app.component.html',
|
||||||
|
})
|
||||||
|
|
||||||
|
export class AppComponent implements OnInit {
|
||||||
|
title = 'Metadata Registry Service';
|
||||||
|
userMenuItems: MenuItem[] = [];
|
||||||
|
menuItems: RootMenuItem [] = [];
|
||||||
|
logInUrl = null;
|
||||||
|
logOutUrl = null;
|
||||||
|
properties: EnvProperties = properties;
|
||||||
|
showMenu: boolean = false;
|
||||||
|
user: User;
|
||||||
|
|
||||||
|
constructor(private route: ActivatedRoute,
|
||||||
|
private userManagementService: UserManagementService) {
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
this.logInUrl = this.properties.loginUrl;
|
||||||
|
this.logOutUrl = this.properties.logoutUrl;
|
||||||
|
this.showMenu = true;
|
||||||
|
this.userManagementService.getUserInfo().subscribe(user => {
|
||||||
|
this.user = user;
|
||||||
|
this.menuItems = [];
|
||||||
|
this.userMenuItems = [];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
import {AppRoutingModule} from "./app.routing";
|
||||||
|
import {BrowserModule} from "@angular/platform-browser";
|
||||||
|
import {HttpClientModule} from "@angular/common/http";
|
||||||
|
import {CookieLawModule} from "./openaireLibrary/sharedComponents/cookie-law/cookie-law.module";
|
||||||
|
import {NavigationBarModule} from "./openaireLibrary/sharedComponents/navigationBar.module";
|
||||||
|
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
|
||||||
|
import {SafeHtmlPipeModule} from "./openaireLibrary/utils/pipes/safeHTMLPipe.module";
|
||||||
|
import {AppComponent} from "./app.component";
|
||||||
|
import {NgModule} from "@angular/core";
|
||||||
|
import {EnvironmentSpecificService} from "./openaireLibrary/utils/properties/environment-specific.service";
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
AppRoutingModule,
|
||||||
|
BrowserModule,
|
||||||
|
HttpClientModule,
|
||||||
|
NavigationBarModule,
|
||||||
|
CookieLawModule,
|
||||||
|
SafeHtmlPipeModule,
|
||||||
|
BrowserAnimationsModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
AppComponent,
|
||||||
|
],
|
||||||
|
providers: [EnvironmentSpecificService],
|
||||||
|
bootstrap: [ AppComponent ]
|
||||||
|
})
|
||||||
|
|
||||||
|
export class AppModule { }
|
|
@ -0,0 +1,15 @@
|
||||||
|
import { NgModule} from '@angular/core';
|
||||||
|
import { Routes, RouterModule} from '@angular/router';
|
||||||
|
|
||||||
|
const appRoutes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
loadChildren: './home/home.module#HomeModule'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [ RouterModule.forRoot(appRoutes) ],
|
||||||
|
exports: [ RouterModule ]
|
||||||
|
})
|
||||||
|
export class AppRoutingModule {}
|
|
@ -0,0 +1,3 @@
|
||||||
|
<div>
|
||||||
|
test
|
||||||
|
</div>
|
|
@ -0,0 +1,9 @@
|
||||||
|
import {Component} from "@angular/core";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'home',
|
||||||
|
templateUrl: 'home.component.html'
|
||||||
|
})
|
||||||
|
export class HomeComponent {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
import {NgModule} from "@angular/core";
|
||||||
|
import {HomeComponent} from "./home.component";
|
||||||
|
import {CommonModule} from "@angular/common";
|
||||||
|
import {RouterModule} from "@angular/router";
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
RouterModule.forChild([{
|
||||||
|
path: '', component: HomeComponent
|
||||||
|
}])
|
||||||
|
],
|
||||||
|
declarations: [HomeComponent],
|
||||||
|
exports: [HomeComponent]
|
||||||
|
})
|
||||||
|
export class HomeModule {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
import './polyfills.ts';
|
||||||
|
//import './vendors.ts';
|
||||||
|
|
||||||
|
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||||
|
import {AppModule} from './app.module';
|
||||||
|
import {enableProdMode} from "@angular/core";
|
||||||
|
import {properties} from "../environments/environment";
|
||||||
|
|
||||||
|
const platform = platformBrowserDynamic();
|
||||||
|
if (properties.environment !== "development") {
|
||||||
|
enableProdMode();
|
||||||
|
}
|
||||||
|
platform.bootstrapModule(AppModule);
|
|
@ -0,0 +1,49 @@
|
||||||
|
/**
|
||||||
|
* Created by stefanos on 25/4/2017.
|
||||||
|
*/
|
||||||
|
// Polyfills
|
||||||
|
|
||||||
|
// import 'ie-shim'; // Internet Explorer 9 support
|
||||||
|
import 'reflect-metadata';
|
||||||
|
// import 'core-js/es6';
|
||||||
|
// Added parts of es6 which are necessary for your project or your browser support requirements.
|
||||||
|
import 'core-js/es6/symbol';
|
||||||
|
import 'core-js/es6/object';
|
||||||
|
import 'core-js/es6/function';
|
||||||
|
import 'core-js/es6/parse-int';
|
||||||
|
import 'core-js/es6/parse-float';
|
||||||
|
import 'core-js/es6/number';
|
||||||
|
import 'core-js/es6/math';
|
||||||
|
import 'core-js/es6/string';
|
||||||
|
import 'core-js/es6/date';
|
||||||
|
import 'core-js/es6/array';
|
||||||
|
import 'core-js/es6/regexp';
|
||||||
|
import 'core-js/es6/map';
|
||||||
|
import 'core-js/es6/set';
|
||||||
|
import 'core-js/es6/weak-map';
|
||||||
|
import 'core-js/es6/weak-set';
|
||||||
|
import 'core-js/es6/typed';
|
||||||
|
import 'core-js/es6/reflect';
|
||||||
|
// see issue https://github.com/AngularClass/angular2-webpack-starter/issues/709
|
||||||
|
// import 'core-js/es6/promise';
|
||||||
|
|
||||||
|
import 'intl';
|
||||||
|
import 'intl/locale-data/jsonp/en';
|
||||||
|
|
||||||
|
import 'core-js/es7/reflect';
|
||||||
|
import 'zone.js/dist/zone';
|
||||||
|
|
||||||
|
// import 'ng2-ckeditor/lib';
|
||||||
|
|
||||||
|
// if ('production' === ENV) {
|
||||||
|
// // Production
|
||||||
|
//
|
||||||
|
// } else {
|
||||||
|
//
|
||||||
|
// // Development
|
||||||
|
// Error.stackTraceLimit = Infinity;
|
||||||
|
//
|
||||||
|
// /* tslint:disable no-var-requires */
|
||||||
|
// require('zone.js/dist/long-stack-trace-zone');
|
||||||
|
//
|
||||||
|
// }
|
|
@ -0,0 +1,102 @@
|
||||||
|
{
|
||||||
|
"environment":"development",
|
||||||
|
"enablePiwikTrack" : false,
|
||||||
|
"useCache" : false,
|
||||||
|
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/",
|
||||||
|
"framesAPIURL" : "https://beta.openaire.eu/stats3/",
|
||||||
|
"claimsAPIURL" : "http://dl170.madgik.di.uoa.gr:8180/dnet-claims-service-2.0.0-SNAPSHOT/rest/claimsService/",
|
||||||
|
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/",
|
||||||
|
"statisticsFrameAPIURL":"https://beta.openaire.eu/stats/",
|
||||||
|
"statisticsFrameNewAPIURL": "http://marilyn.athenarc.gr:8080/stats-api/",
|
||||||
|
"useNewStatistisTool":false,
|
||||||
|
"searchAPIURLLAst" : "https://beta.services.openaire.eu/search/v2/api/",
|
||||||
|
"searchResourcesAPIURL" : "https://beta.services.openaire.eu/search/v2/api/resources",
|
||||||
|
"openCitationsAPIURL" : "https://services.openaire.eu/opencitations/getCitations?id=",
|
||||||
|
"csvAPIURL" : "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/reports",
|
||||||
|
"searchCrossrefAPIURL" : "https://api.crossref.org/works",
|
||||||
|
"searchDataciteAPIURL" : "https://api.datacite.org/works",
|
||||||
|
"searchOrcidURL" : "https://pub.orcid.org/",
|
||||||
|
"orcidURL" : "https://orcid.org/",
|
||||||
|
"doiURL" : "https://dx.doi.org/",
|
||||||
|
"cordisURL" : "http://cordis.europa.eu/projects/",
|
||||||
|
"openDoarURL": "http://v2.sherpa.ac.uk/id/repository/",
|
||||||
|
"r3DataURL": "http://service.re3data.org/repository/",
|
||||||
|
"sherpaURL": "http://www.sherpa.ac.uk/romeo/search.php?issn=",
|
||||||
|
"zenodo" : "https://zenodo.org/",
|
||||||
|
"zenodoCommunities" : "https://zenodo.org/api/communities/",
|
||||||
|
"openAccess" : "https://www.openaire.eu/support/faq#article-id-234",
|
||||||
|
"openAccessRepo" : "https://www.openaire.eu/support/faq#article-id-310",
|
||||||
|
"fp7Guidlines" : "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme",
|
||||||
|
"h2020Guidlines" : "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020",
|
||||||
|
"ercGuidlines" : "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf",
|
||||||
|
"helpdesk" : "https://www.openaire.eu/support/helpdesk",
|
||||||
|
"helpdeskEmail": "helpdesk@openaire.eu",
|
||||||
|
"utilsService" : "http://mpagasas.di.uoa.gr:8000",
|
||||||
|
|
||||||
|
"vocabulariesAPI" :"https://beta.services.openaire.eu/provision/mvc/vocabularies/",
|
||||||
|
|
||||||
|
"piwikBaseUrl" :" https://analytics.openaire.eu/piwik.php?idsite=6",
|
||||||
|
"loginUrl" :"http://dl170.madgik.di.uoa.gr:8180/dnet-login/openid_connect_login",
|
||||||
|
|
||||||
|
"userInfoUrl" : "http://dl170.madgik.di.uoa.gr:8180/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=",
|
||||||
|
"logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
|
||||||
|
|
||||||
|
"cookieDomain" :".di.uoa.gr",
|
||||||
|
|
||||||
|
"feedbackmail" :"openaire.test@gmail.com",
|
||||||
|
"feedbackmailForMissingEntities" :"feedback@openaire.eu",
|
||||||
|
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=",
|
||||||
|
|
||||||
|
"adminToolsAPIURL" :"http://duffy.di.uoa.gr:8080/uoa-admin-tools/",
|
||||||
|
|
||||||
|
"adminToolsCommunity" :"openaire",
|
||||||
|
"communityAPI": "https://dev-openaire.d4science.org/openaire/community/",
|
||||||
|
|
||||||
|
"miningBackendURL": "https://beta.services.openaire.eu/interactive-mining",
|
||||||
|
|
||||||
|
"csvLimit": 2000,
|
||||||
|
"pagingLimit": 20,
|
||||||
|
"resultsPerPage": 10,
|
||||||
|
|
||||||
|
"baseLink" : "https://demo.openaire.eu",
|
||||||
|
"baseOpenaireLink" : "https://beta.explore.openaire.eu",
|
||||||
|
|
||||||
|
"searchLinkToPublication" : "/search/publication?articleId=",
|
||||||
|
"searchLinkToProject" : "/search/project?projectId=",
|
||||||
|
"searchLinkToDataProvider" : "/search/dataprovider?datasourceId=",
|
||||||
|
"searchLinkToDataset" : "/search/dataset?datasetId=",
|
||||||
|
"searchLinkToOrganization" : "/search/organization?organizationId=",
|
||||||
|
|
||||||
|
"searchLinkToPublications" : "/search/find/publications",
|
||||||
|
"searchLinkToDataProviders" : "/search/find/dataproviders",
|
||||||
|
"searchLinkToProjects" : "/search/find/projects",
|
||||||
|
"searchLinkToDatasets" : "/search/find/datasets",
|
||||||
|
"searchLinkToSoftware" : "/search/find/software",
|
||||||
|
"searchLinkToOrganizations" : "/search/find/organizations",
|
||||||
|
"searchLinkToCompatibleDataProviders" : "/search/content-providers",
|
||||||
|
"searchLinkToEntityRegistriesDataProviders" : "/search/entity-registries",
|
||||||
|
"searchLinkToEntityRegistriesDataProvidersTable" : "/search/entity-registries-table",
|
||||||
|
"searchLinkToJournals" : "/search/journals",
|
||||||
|
"searchLinkToJournalsTable" : "/search/journals-table",
|
||||||
|
|
||||||
|
"searchLinkToAdvancedPublications" : "/search/advanced/publications",
|
||||||
|
"searchLinkToAdvancedProjects" : "/search/advanced/projects",
|
||||||
|
"searchLinkToAdvancedDatasets" : "/search/advanced/datasets",
|
||||||
|
"searchLinkToAdvancedSoftware" : "/search/advanced/software",
|
||||||
|
"searchLinkToAdvancedDataProviders" : "/search/advanced/dataproviders",
|
||||||
|
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
|
||||||
|
|
||||||
|
"sendMailUrl": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/sendMail",
|
||||||
|
"notifyForNewManagers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewManagers/",
|
||||||
|
"notifyForNewSubscribers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewSubscribers/",
|
||||||
|
|
||||||
|
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
|
||||||
|
"showLastIndexInformationLink" : false,
|
||||||
|
|
||||||
|
"widgetLink" : "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
|
||||||
|
"claimsInformationLink": "https://www.openaire.eu/linking-beta",
|
||||||
|
"lastIndexUpdate": "2019-05-16",
|
||||||
|
"indexInfoAPI": "http://beta.services.openaire.eu/openaire/info/",
|
||||||
|
"admins" : ["kostis30fylloy@gmail.com"],
|
||||||
|
"adminPortalURL": "https://beta.admin.connect.openaire.eu"
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 64 64" width="20px" height="20px" version="1.1" viewBox="0 0 64 64" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Ebene_2"/><g id="Ebene_1"><g><path d="M48,27c-0.553,0-1,0.448-1,1v27H9V17h27c0.553,0,1-0.448,1-1s-0.447-1-1-1H8c-0.552,0-1,0.448-1,1v40c0,0.553,0.448,1,1,1 h40c0.553,0,1-0.447,1-1V28C49,27.448,48.553,27,48,27z"/><path d="M56,7H44c-0.553,0-1,0.448-1,1s0.447,1,1,1h10h1v1v10c0,0.552,0.447,1,1,1s1-0.448,1-1V8C57,7.448,56.553,7,56,7z"/><path d="M54,9c-0.256,0-0.512,0.098-0.707,0.293l-22,22c-0.391,0.391-0.391,1.023,0,1.414C31.488,32.902,31.744,33,32,33 s0.512-0.098,0.707-0.293l22-22C54.902,10.512,55,10.256,55,10s-0.098-0.512-0.293-0.707S54.256,9,54,9z"/></g></g></svg>
|
After Width: | Height: | Size: 904 B |
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -0,0 +1,85 @@
|
||||||
|
import {EnvProperties} from '../app/openaireLibrary/utils/properties/env-properties';
|
||||||
|
|
||||||
|
export let properties: EnvProperties = {
|
||||||
|
environment: "beta",
|
||||||
|
enablePiwikTrack: false,
|
||||||
|
useCache: false,
|
||||||
|
metricsAPIURL: "https://beta.services.openaire.eu/usagestats/",
|
||||||
|
framesAPIURL: "https://beta.openaire.eu/stats3/",
|
||||||
|
claimsAPIURL: "https://beta.services.openaire.eu/claims/rest/claimsService/",
|
||||||
|
statisticsAPIURL: "https://beta.services.openaire.eu/stats-api/",
|
||||||
|
statisticsFrameAPIURL: "https://beta.openaire.eu/stats/",
|
||||||
|
statisticsFrameNewAPIURL: "http://marilyn.athenarc.gr:8080/stats-api/",
|
||||||
|
useNewStatistisTool: false,
|
||||||
|
searchAPIURLLAst: "https://beta.services.openaire.eu/search/v2/api/",
|
||||||
|
searchResourcesAPIURL: "https://beta.services.openaire.eu/search/v2/api/resources",
|
||||||
|
openCitationsAPIURL: "https://services.openaire.eu/opencitations/getCitations?id=",
|
||||||
|
csvAPIURL: "https://beta.services.openaire.eu/search/v2/api/reports",
|
||||||
|
searchCrossrefAPIURL: "https://api.crossref.org/works",
|
||||||
|
searchDataciteAPIURL: "https://api.datacite.org/works",
|
||||||
|
searchOrcidURL: "https://pub.orcid.org/",
|
||||||
|
orcidURL: "https://orcid.org/",
|
||||||
|
doiURL: "https://dx.doi.org/",
|
||||||
|
cordisURL: "http://cordis.europa.eu/projects/",
|
||||||
|
openDoarURL: "http://v2.sherpa.ac.uk/id/repository/",
|
||||||
|
r3DataURL: "http://service.re3data.org/repository/",
|
||||||
|
sherpaURL: "http://www.sherpa.ac.uk/romeo/search.php?issn=",
|
||||||
|
zenodo: "https://zenodo.org/",
|
||||||
|
zenodoCommunities: "https://zenodo.org/api/communities/",
|
||||||
|
openAccess: "https://www.openaire.eu/support/faq#article-id-234",
|
||||||
|
openAccessRepo: "https://www.openaire.eu/support/faq#article-id-310",
|
||||||
|
fp7Guidlines: "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme",
|
||||||
|
h2020Guidlines: "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020",
|
||||||
|
ercGuidlines: "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf",
|
||||||
|
helpdesk: "https://www.openaire.eu/support/helpdesk",
|
||||||
|
helpdeskEmail: "helpdesk@openaire.eu",
|
||||||
|
utilsService: "https://demo.openaire.eu/utils-service",
|
||||||
|
vocabulariesAPI: "https://beta.services.openaire.eu/provision/mvc/vocabularies/",
|
||||||
|
piwikBaseUrl: " https://analytics.openaire.eu/piwik.php?idsite=6",
|
||||||
|
loginUrl: "https://beta.services.openaire.eu/admin-user-management/openid_connect_login",
|
||||||
|
userInfoUrl: "https://beta.services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
|
||||||
|
logoutUrl: "https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
|
||||||
|
cookieDomain: ".openaire.eu",
|
||||||
|
feedbackmail: "openaire.test@gmail.com",
|
||||||
|
feedbackmailForMissingEntities: "feedback@openaire.eu",
|
||||||
|
cacheUrl: "https://demo.openaire.eu/cache/get?url=",
|
||||||
|
adminToolsAPIURL: "https://beta.services.openaire.eu/uoa-admin-tools/",
|
||||||
|
adminToolsCommunity: "openaire",
|
||||||
|
communityAPI: "https://beta.services.openaire.eu/openaire/community/",
|
||||||
|
miningBackendURL: "https://beta.services.openaire.eu/interactive-mining",
|
||||||
|
csvLimit: 2000,
|
||||||
|
pagingLimit: 20,
|
||||||
|
resultsPerPage: 10,
|
||||||
|
baseLink: "https://beta.admin.connect.openaire.eu/",
|
||||||
|
baseOpenaireLink: "https://beta.explore.openaire.eu",
|
||||||
|
searchLinkToPublication: "/search/publication?articleId=",
|
||||||
|
searchLinkToProject: "/search/project?projectId=",
|
||||||
|
searchLinkToDataProvider: "/search/dataprovider?datasourceId=",
|
||||||
|
searchLinkToDataset: "/search/dataset?datasetId=",
|
||||||
|
searchLinkToOrganization: "/search/organization?organizationId=",
|
||||||
|
searchLinkToPublications: "/search/find/publications",
|
||||||
|
searchLinkToDataProviders: "/search/find/dataproviders",
|
||||||
|
searchLinkToProjects: "/search/find/projects",
|
||||||
|
searchLinkToDatasets: "/search/find/datasets",
|
||||||
|
searchLinkToSoftware: "/search/find/software",
|
||||||
|
searchLinkToOrganizations: "/search/find/organizations",
|
||||||
|
searchLinkToCompatibleDataProviders: "/search/content-providers",
|
||||||
|
searchLinkToEntityRegistriesDataProviders: "/search/entity-registries",
|
||||||
|
searchLinkToEntityRegistriesDataProvidersTable: "/search/entity-registries-table",
|
||||||
|
searchLinkToJournals: "/search/journals",
|
||||||
|
searchLinkToJournalsTable: "/search/journals-table",
|
||||||
|
searchLinkToAdvancedPublications: "/search/advanced/publications",
|
||||||
|
searchLinkToAdvancedProjects: "/search/advanced/projects",
|
||||||
|
searchLinkToAdvancedDatasets: "/search/advanced/datasets",
|
||||||
|
searchLinkToAdvancedSoftware: "/search/advanced/software",
|
||||||
|
searchLinkToAdvancedDataProviders: "/search/advanced/dataproviders",
|
||||||
|
searchLinkToAdvancedOrganizations: "/search/advanced/organizations",
|
||||||
|
lastIndexInformationLink: "https://beta.openaire.eu/aggregation-and-content-provision-workflows",
|
||||||
|
showLastIndexInformationLink: false,
|
||||||
|
widgetLink: "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
|
||||||
|
claimsInformationLink: "https://beta.openaire.eu/linking",
|
||||||
|
lastIndexUpdate: "2019-11-01",
|
||||||
|
indexInfoAPI: "http://beta.services.openaire.eu/openaire/info/",
|
||||||
|
adminPortalURL: "https://beta.admin.connect.openaire.eu",
|
||||||
|
admins: ["rcd-helpdesk@openaire.eu"]
|
||||||
|
};
|
|
@ -0,0 +1,101 @@
|
||||||
|
import {EnvProperties} from '../app/openaireLibrary/utils/properties/env-properties';
|
||||||
|
|
||||||
|
export let properties: EnvProperties = {
|
||||||
|
environment:"production",
|
||||||
|
enablePiwikTrack: false,
|
||||||
|
useCache: false,
|
||||||
|
metricsAPIURL: "https://services.openaire.eu/usagestats/",
|
||||||
|
framesAPIURL: "https://www.openaire.eu/stats3/",
|
||||||
|
claimsAPIURL: "https://services.openaire.eu/claims/rest/claimsService/",
|
||||||
|
statisticsAPIURL: "https://beta.services.openaire.eu/stats-api/",
|
||||||
|
statisticsFrameAPIURL:"https://www.openaire.eu/stats/",
|
||||||
|
statisticsFrameNewAPIURL: "http://marilyn.athenarc.gr:8080/stats-api/",
|
||||||
|
useNewStatistisTool:false,
|
||||||
|
searchAPIURLLAst: "https://services.openaire.eu/search/v2/api/",
|
||||||
|
searchResourcesAPIURL: "https://services.openaire.eu/search/v2/api/resources",
|
||||||
|
openCitationsAPIURL: "https://services.openaire.eu/opencitations/getCitations?id=",
|
||||||
|
csvAPIURL: "https://services.openaire.eu/search/v2/api/reports",
|
||||||
|
searchCrossrefAPIURL: "https://api.crossref.org/works",
|
||||||
|
searchDataciteAPIURL: "https://api.datacite.org/works",
|
||||||
|
searchOrcidURL: "https://pub.orcid.org/",
|
||||||
|
orcidURL: "https://orcid.org/",
|
||||||
|
doiURL: "https://dx.doi.org/",
|
||||||
|
cordisURL: "http://cordis.europa.eu/projects/",
|
||||||
|
openDoarURL: "http://v2.sherpa.ac.uk/id/repository/",
|
||||||
|
r3DataURL: "http://service.re3data.org/repository/",
|
||||||
|
sherpaURL: "http://www.sherpa.ac.uk/romeo/search.php?issn=",
|
||||||
|
zenodo: "https://zenodo.org/",
|
||||||
|
zenodoCommunities: "https://zenodo.org/api/communities/",
|
||||||
|
openAccess: "https://www.openaire.eu/support/faq#article-id-234",
|
||||||
|
openAccessRepo: "https://www.openaire.eu/support/faq#article-id-310",
|
||||||
|
fp7Guidlines: "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme",
|
||||||
|
h2020Guidlines: "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020",
|
||||||
|
ercGuidlines: "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf",
|
||||||
|
helpdesk: "https://www.openaire.eu/support/helpdesk",
|
||||||
|
helpdeskEmail: "helpdesk@openaire.eu",
|
||||||
|
utilsService: "https://explore.openaire.eu/utils-service",
|
||||||
|
|
||||||
|
vocabulariesAPI:"https://services.openaire.eu/provision/mvc/vocabularies/",
|
||||||
|
|
||||||
|
piwikBaseUrl:" https://analytics.openaire.eu/piwik.php?idsite=6",
|
||||||
|
loginUrl:"https://services.openaire.eu/admin-user-management/openid_connect_login",
|
||||||
|
|
||||||
|
userInfoUrl: " https://services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken=",
|
||||||
|
|
||||||
|
logoutUrl:"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
|
||||||
|
|
||||||
|
cookieDomain:".openaire.eu",
|
||||||
|
|
||||||
|
feedbackmail:"openaire.test@gmail.com",
|
||||||
|
feedbackmailForMissingEntities: "feedback@openaire.eu",
|
||||||
|
|
||||||
|
cacheUrl:"https://explore.openaire.eu/cache/get?url=",
|
||||||
|
|
||||||
|
adminToolsAPIURL:"https://services.openaire.eu/uoa-admin-tools/",
|
||||||
|
|
||||||
|
adminToolsCommunity:"openaire",
|
||||||
|
communityAPI: "https://services.openaire.eu/openaire/community/",
|
||||||
|
|
||||||
|
miningBackendURL: "https://beta.services.openaire.eu/interactive-mining",
|
||||||
|
|
||||||
|
csvLimit: 2000,
|
||||||
|
pagingLimit: 20,
|
||||||
|
resultsPerPage: 10,
|
||||||
|
|
||||||
|
baseLink: "https://admin.explore.openaire.eu/",
|
||||||
|
baseOpenaireLink: "https://explore.openaire.eu",
|
||||||
|
|
||||||
|
searchLinkToPublication: "/search/publication?articleId=",
|
||||||
|
searchLinkToProject: "/search/project?projectId=",
|
||||||
|
searchLinkToDataProvider: "/search/dataprovider?datasourceId=",
|
||||||
|
searchLinkToDataset: "/search/dataset?datasetId=",
|
||||||
|
searchLinkToOrganization: "/search/organization?organizationId=",
|
||||||
|
|
||||||
|
searchLinkToPublications: "/search/find/publications",
|
||||||
|
searchLinkToDataProviders: "/search/find/dataproviders",
|
||||||
|
searchLinkToProjects: "/search/find/projects",
|
||||||
|
searchLinkToDatasets: "/search/find/datasets",
|
||||||
|
searchLinkToSoftware: "/search/find/software",
|
||||||
|
searchLinkToOrganizations: "/search/find/organizations",
|
||||||
|
searchLinkToCompatibleDataProviders: "/search/content-providers",
|
||||||
|
searchLinkToEntityRegistriesDataProviders: "/search/entity-registries",
|
||||||
|
searchLinkToEntityRegistriesDataProvidersTable: "/search/entity-registries-table",
|
||||||
|
searchLinkToJournals: "/search/journals",
|
||||||
|
searchLinkToJournalsTable: "/search/journals-table",
|
||||||
|
|
||||||
|
searchLinkToAdvancedPublications: "/search/advanced/publications",
|
||||||
|
searchLinkToAdvancedProjects: "/search/advanced/projects",
|
||||||
|
searchLinkToAdvancedDatasets: "/search/advanced/datasets",
|
||||||
|
searchLinkToAdvancedSoftware: "/search/advanced/software",
|
||||||
|
searchLinkToAdvancedDataProviders: "/search/advanced/dataproviders",
|
||||||
|
searchLinkToAdvancedOrganizations: "/search/advanced/organizations",
|
||||||
|
lastIndexInformationLink: "https://www.openaire.eu/aggregation-and-content-provision-workflows",
|
||||||
|
showLastIndexInformationLink: false,
|
||||||
|
|
||||||
|
widgetLink: "https://www.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
|
||||||
|
claimsInformationLink: "https://www.openaire.eu/linking",
|
||||||
|
lastIndexUpdate: "2019-07-24",
|
||||||
|
indexInfoAPI: "http://beta.services.openaire.eu/openaire/info/",
|
||||||
|
adminPortalURL: "https://admin.connect.openaire.eu",
|
||||||
|
admins: ["rcd-helpdesk@openaire.eu"]
|
||||||
|
};
|
|
@ -0,0 +1,104 @@
|
||||||
|
// The file contents for the current environment will overwrite these during build.
|
||||||
|
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
|
||||||
|
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
|
||||||
|
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
||||||
|
|
||||||
|
import {EnvProperties} from '../app/openaireLibrary/utils/properties/env-properties';
|
||||||
|
|
||||||
|
export let properties: EnvProperties = {
|
||||||
|
environment: 'development',
|
||||||
|
enablePiwikTrack: false,
|
||||||
|
useCache: false,
|
||||||
|
metricsAPIURL: 'https://beta.services.openaire.eu/usagestats/',
|
||||||
|
framesAPIURL: 'https://beta.openaire.eu/stats3/',
|
||||||
|
claimsAPIURL: 'http://dl170.madgik.di.uoa.gr:8180/dnet-claims-service-2.0.0-SNAPSHOT/rest/claimsService/',
|
||||||
|
statisticsAPIURL: 'https://beta.services.openaire.eu/stats-api/',
|
||||||
|
statisticsFrameAPIURL: 'https://beta.openaire.eu/stats/',
|
||||||
|
statisticsFrameNewAPIURL: 'http://marilyn.athenarc.gr:8080/stats-api/',
|
||||||
|
useNewStatistisTool: false,
|
||||||
|
searchAPIURLLAst: 'https://beta.services.openaire.eu/search/v2/api/',
|
||||||
|
searchResourcesAPIURL: 'https://beta.services.openaire.eu/search/v2/api/resources',
|
||||||
|
openCitationsAPIURL: 'https://services.openaire.eu/opencitations/getCitations?id=',
|
||||||
|
csvAPIURL: 'http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/reports',
|
||||||
|
searchCrossrefAPIURL: 'https://api.crossref.org/works',
|
||||||
|
searchDataciteAPIURL: 'https://api.datacite.org/works',
|
||||||
|
searchOrcidURL: 'https://pub.orcid.org/',
|
||||||
|
orcidURL: 'https://orcid.org/',
|
||||||
|
doiURL: 'https://dx.doi.org/',
|
||||||
|
cordisURL: 'http://cordis.europa.eu/projects/',
|
||||||
|
openDoarURL: 'http://v2.sherpa.ac.uk/id/repository/',
|
||||||
|
r3DataURL: 'http://service.re3data.org/repository/',
|
||||||
|
sherpaURL: 'http://www.sherpa.ac.uk/romeo/search.php?issn=',
|
||||||
|
zenodo: 'https://zenodo.org/',
|
||||||
|
zenodoCommunities: 'https://zenodo.org/api/communities/',
|
||||||
|
openAccess: 'https://www.openaire.eu/support/faq#article-id-234',
|
||||||
|
openAccessRepo: 'https://www.openaire.eu/support/faq#article-id-310',
|
||||||
|
fp7Guidlines: 'https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme',
|
||||||
|
h2020Guidlines: 'https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020',
|
||||||
|
ercGuidlines: 'http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf',
|
||||||
|
helpdesk: 'https://www.openaire.eu/support/helpdesk',
|
||||||
|
helpdeskEmail: 'helpdesk@openaire.eu',
|
||||||
|
utilsService: 'http://mpagasas.di.uoa.gr:8000',
|
||||||
|
|
||||||
|
vocabulariesAPI: 'https://beta.services.openaire.eu/provision/mvc/vocabularies/',
|
||||||
|
|
||||||
|
piwikBaseUrl: ' https://analytics.openaire.eu/piwik.php?idsite=6',
|
||||||
|
loginUrl: 'http://dl170.madgik.di.uoa.gr:8180/dnet-login/openid_connect_login',
|
||||||
|
|
||||||
|
userInfoUrl: 'http://dl170.madgik.di.uoa.gr:8180/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=',
|
||||||
|
logoutUrl: 'https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=',
|
||||||
|
|
||||||
|
cookieDomain: '.di.uoa.gr',
|
||||||
|
|
||||||
|
feedbackmail: 'openaire.test@gmail.com',
|
||||||
|
feedbackmailForMissingEntities: 'feedback@openaire.eu',
|
||||||
|
cacheUrl: 'http://scoobydoo.di.uoa.gr:3000/get?url=',
|
||||||
|
|
||||||
|
adminToolsAPIURL: 'http://duffy.di.uoa.gr:8080/uoa-admin-tools/',
|
||||||
|
|
||||||
|
adminToolsCommunity: 'openaire',
|
||||||
|
communityAPI: 'https://dev-openaire.d4science.org/openaire/community/',
|
||||||
|
|
||||||
|
miningBackendURL: 'https://beta.services.openaire.eu/interactive-mining',
|
||||||
|
|
||||||
|
csvLimit: 2000,
|
||||||
|
pagingLimit: 20,
|
||||||
|
resultsPerPage: 10,
|
||||||
|
|
||||||
|
baseLink: 'https://demo.openaire.eu',
|
||||||
|
baseOpenaireLink: 'https://beta.explore.openaire.eu',
|
||||||
|
|
||||||
|
searchLinkToPublication: '/search/publication?articleId=',
|
||||||
|
searchLinkToProject: '/search/project?projectId=',
|
||||||
|
searchLinkToDataProvider: '/search/dataprovider?datasourceId=',
|
||||||
|
searchLinkToDataset: '/search/dataset?datasetId=',
|
||||||
|
searchLinkToOrganization: '/search/organization?organizationId=',
|
||||||
|
|
||||||
|
searchLinkToPublications: '/search/find/publications',
|
||||||
|
searchLinkToDataProviders: '/search/find/dataproviders',
|
||||||
|
searchLinkToProjects: '/search/find/projects',
|
||||||
|
searchLinkToDatasets: '/search/find/datasets',
|
||||||
|
searchLinkToSoftware: '/search/find/software',
|
||||||
|
searchLinkToOrganizations: '/search/find/organizations',
|
||||||
|
searchLinkToCompatibleDataProviders: '/search/content-providers',
|
||||||
|
searchLinkToEntityRegistriesDataProviders: '/search/entity-registries',
|
||||||
|
searchLinkToEntityRegistriesDataProvidersTable: '/search/entity-registries-table',
|
||||||
|
searchLinkToJournals: '/search/journals',
|
||||||
|
searchLinkToJournalsTable: '/search/journals-table',
|
||||||
|
|
||||||
|
searchLinkToAdvancedPublications: '/search/advanced/publications',
|
||||||
|
searchLinkToAdvancedProjects: '/search/advanced/projects',
|
||||||
|
searchLinkToAdvancedDatasets: '/search/advanced/datasets',
|
||||||
|
searchLinkToAdvancedSoftware: '/search/advanced/software',
|
||||||
|
searchLinkToAdvancedDataProviders: '/search/advanced/dataproviders',
|
||||||
|
searchLinkToAdvancedOrganizations: '/search/advanced/organizations',
|
||||||
|
lastIndexInformationLink: 'https://www.openaire.eu/aggregation-and-content-provision-workflows',
|
||||||
|
showLastIndexInformationLink: false,
|
||||||
|
|
||||||
|
widgetLink: 'https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=',
|
||||||
|
claimsInformationLink: 'https://www.openaire.eu/linking-beta',
|
||||||
|
lastIndexUpdate: '2019-05-16',
|
||||||
|
indexInfoAPI: 'http://beta.services.openaire.eu/openaire/info/',
|
||||||
|
admins: ['kostis30fylloy@gmail.com'],
|
||||||
|
adminPortalURL: 'https://beta.admin.connect.openaire.eu'
|
||||||
|
};
|
|
@ -0,0 +1,31 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<base href="/">
|
||||||
|
<title>OpenAIRE | Usage Statistics</title>
|
||||||
|
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="assets/common-assets/logo/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="assets/common-assets/logo/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="assets/common-assets/logo/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="assets/common-assets/logo/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="assets/common-assets/logo/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="assets/common-assets/logo/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="assets/common-assets/logo/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="assets/common-assets/logo/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/common-assets/logo/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="assets/common-assets/logo/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="assets/common-assets/logo/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="assets/common-assets/logo/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="assets/common-assets/logo/favicon-16x16.png">
|
||||||
|
<link href="assets/common-assets/logo/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script src="https://cdn.ckeditor.com/4.5.11/full-all/ckeditor.js"></script>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<app></app>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { enableProdMode } from '@angular/core';
|
||||||
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
|
||||||
|
import { AppModule } from './app/app.module';
|
||||||
|
import { properties } from './environments/environment';
|
||||||
|
|
||||||
|
if (properties.environment !== "development") {
|
||||||
|
enableProdMode();
|
||||||
|
}
|
||||||
|
|
||||||
|
platformBrowserDynamic().bootstrapModule(AppModule);
|
|
@ -0,0 +1,9 @@
|
||||||
|
@import '~@angular/material/theming';
|
||||||
|
@include mat-core();
|
||||||
|
$my-app-primary: mat-palette($mat-blue-grey);
|
||||||
|
$my-app-accent: mat-palette($mat-green);
|
||||||
|
$my-app-warn: mat-palette($mat-deep-orange);
|
||||||
|
|
||||||
|
$my-app-theme: mat-light-theme($my-app-primary, $my-app-accent, $my-app-warn);
|
||||||
|
|
||||||
|
@include angular-material-theme($my-app-theme);
|
|
@ -0,0 +1,71 @@
|
||||||
|
/**
|
||||||
|
* This file includes polyfills needed by Angular and is loaded before the app.
|
||||||
|
* You can add your own extra polyfills to this file.
|
||||||
|
*
|
||||||
|
* This file is divided into 2 sections:
|
||||||
|
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
||||||
|
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
||||||
|
* file.
|
||||||
|
*
|
||||||
|
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
||||||
|
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
||||||
|
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
||||||
|
*
|
||||||
|
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
/***************************************************************************************************
|
||||||
|
* BROWSER POLYFILLS
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
||||||
|
import 'core-js/es6/symbol';
|
||||||
|
import 'core-js/es6/object';
|
||||||
|
import 'core-js/es6/function';
|
||||||
|
import 'core-js/es6/parse-int';
|
||||||
|
import 'core-js/es6/parse-float';
|
||||||
|
import 'core-js/es6/number';
|
||||||
|
import 'core-js/es6/math';
|
||||||
|
import 'core-js/es6/string';
|
||||||
|
import 'core-js/es6/date';
|
||||||
|
import 'core-js/es6/array';
|
||||||
|
import 'core-js/es6/regexp';
|
||||||
|
import 'core-js/es6/map';
|
||||||
|
import 'core-js/es6/weak-map';
|
||||||
|
import 'core-js/es6/set';
|
||||||
|
|
||||||
|
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||||
|
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||||
|
|
||||||
|
/** Evergreen browsers require these. **/
|
||||||
|
import 'core-js/es6/reflect';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Required to support Web Animations `@angular/animation`.
|
||||||
|
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
|
||||||
|
**/
|
||||||
|
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************************************
|
||||||
|
* Zone JS is required by Angular itself.
|
||||||
|
*/
|
||||||
|
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************************************
|
||||||
|
* APPLICATION IMPORTS
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Date, currency, decimal and percent pipes.
|
||||||
|
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
|
||||||
|
*/
|
||||||
|
// import 'intl'; // Run `npm install --save intl`.
|
||||||
|
/**
|
||||||
|
* Need to import at least one locale-data with intl.
|
||||||
|
*/
|
||||||
|
// import 'intl/locale-data/jsonp/en';
|
|
@ -0,0 +1,11 @@
|
||||||
|
/* You can add global styles to this file, and also import other style files */
|
||||||
|
@import "assets/common-assets/common/theme.css";
|
||||||
|
@import "assets/common-assets/common/custom.css";
|
||||||
|
@import "assets/common-assets/library.css";
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--portal-main-color: #e95420;
|
||||||
|
--portal-main-contrast: white;
|
||||||
|
--portal-dark-color: #a0462c;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||||
|
|
||||||
|
import 'zone.js/dist/long-stack-trace-zone';
|
||||||
|
import 'zone.js/dist/proxy.js';
|
||||||
|
import 'zone.js/dist/sync-test';
|
||||||
|
import 'zone.js/dist/jasmine-patch';
|
||||||
|
import 'zone.js/dist/async-test';
|
||||||
|
import 'zone.js/dist/fake-async-test';
|
||||||
|
import { getTestBed } from '@angular/core/testing';
|
||||||
|
import {
|
||||||
|
BrowserDynamicTestingModule,
|
||||||
|
platformBrowserDynamicTesting
|
||||||
|
} from '@angular/platform-browser-dynamic/testing';
|
||||||
|
|
||||||
|
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
|
||||||
|
declare const __karma__: any;
|
||||||
|
declare const require: any;
|
||||||
|
|
||||||
|
// Prevent Karma from running prematurely.
|
||||||
|
__karma__.loaded = function () {};
|
||||||
|
|
||||||
|
// First, initialize the Angular testing environment.
|
||||||
|
getTestBed().initTestEnvironment(
|
||||||
|
BrowserDynamicTestingModule,
|
||||||
|
platformBrowserDynamicTesting()
|
||||||
|
);
|
||||||
|
// Then we find all the tests.
|
||||||
|
const context = require.context('./', true, /\.spec\.ts$/);
|
||||||
|
// And load the modules.
|
||||||
|
context.keys().map(context);
|
||||||
|
// Finally, start Karma to run the tests.
|
||||||
|
__karma__.start();
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"extends": "../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"paths": {
|
||||||
|
"*": [
|
||||||
|
"types/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"paths": {
|
||||||
|
"*": [
|
||||||
|
"types/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"outDir": "../out-tsc/app",
|
||||||
|
"baseUrl": "./",
|
||||||
|
"module": "es2015",
|
||||||
|
"types": ["node"]
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"test.ts",
|
||||||
|
"**/*.spec.ts"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"extends": "../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "../out-tsc/spec",
|
||||||
|
"baseUrl": "./",
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es5",
|
||||||
|
"types": [
|
||||||
|
"jasmine",
|
||||||
|
"node"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"test.ts",
|
||||||
|
"polyfills.ts"
|
||||||
|
],
|
||||||
|
"include": [
|
||||||
|
"**/*.spec.ts",
|
||||||
|
"**/*.d.ts"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
/* SystemJS module definition */
|
||||||
|
declare var module: NodeModule;
|
||||||
|
interface NodeModule {
|
||||||
|
id: string;
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"compileOnSave": false,
|
||||||
|
"compilerOptions": {
|
||||||
|
"importHelpers": true,
|
||||||
|
"outDir": "./dist/out-tsc",
|
||||||
|
"sourceMap": true,
|
||||||
|
"declaration": false,
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"target": "es5",
|
||||||
|
"typeRoots": [
|
||||||
|
"node_modules/@types"
|
||||||
|
],
|
||||||
|
"lib": [
|
||||||
|
"es2017",
|
||||||
|
"dom"
|
||||||
|
],
|
||||||
|
"module": "es2015",
|
||||||
|
"baseUrl": "./"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,141 @@
|
||||||
|
{
|
||||||
|
"rulesDirectory": [
|
||||||
|
"node_modules/codelyzer"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"arrow-return-shorthand": true,
|
||||||
|
"callable-types": true,
|
||||||
|
"class-name": true,
|
||||||
|
"comment-format": [
|
||||||
|
true,
|
||||||
|
"check-space"
|
||||||
|
],
|
||||||
|
"curly": true,
|
||||||
|
"eofline": true,
|
||||||
|
"forin": true,
|
||||||
|
"import-blacklist": [
|
||||||
|
true
|
||||||
|
],
|
||||||
|
"import-spacing": true,
|
||||||
|
"indent": [
|
||||||
|
true,
|
||||||
|
"spaces"
|
||||||
|
],
|
||||||
|
"interface-over-type-literal": true,
|
||||||
|
"label-position": true,
|
||||||
|
"max-line-length": [
|
||||||
|
true,
|
||||||
|
140
|
||||||
|
],
|
||||||
|
"member-access": false,
|
||||||
|
"member-ordering": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
"order": [
|
||||||
|
"static-field",
|
||||||
|
"instance-field",
|
||||||
|
"static-method",
|
||||||
|
"instance-method"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"no-arg": true,
|
||||||
|
"no-bitwise": true,
|
||||||
|
"no-console": [
|
||||||
|
true,
|
||||||
|
"debug",
|
||||||
|
"info",
|
||||||
|
"time",
|
||||||
|
"timeEnd",
|
||||||
|
"trace"
|
||||||
|
],
|
||||||
|
"no-construct": true,
|
||||||
|
"no-debugger": true,
|
||||||
|
"no-duplicate-super": true,
|
||||||
|
"no-empty": false,
|
||||||
|
"no-empty-interface": true,
|
||||||
|
"no-eval": true,
|
||||||
|
"no-inferrable-types": [
|
||||||
|
true,
|
||||||
|
"ignore-params"
|
||||||
|
],
|
||||||
|
"no-misused-new": true,
|
||||||
|
"no-non-null-assertion": true,
|
||||||
|
"no-shadowed-variable": true,
|
||||||
|
"no-string-literal": false,
|
||||||
|
"no-string-throw": true,
|
||||||
|
"no-switch-case-fall-through": true,
|
||||||
|
"no-trailing-whitespace": true,
|
||||||
|
"no-unnecessary-initializer": true,
|
||||||
|
"no-unused-expression": true,
|
||||||
|
"no-use-before-declare": true,
|
||||||
|
"no-var-keyword": true,
|
||||||
|
"object-literal-sort-keys": false,
|
||||||
|
"one-line": [
|
||||||
|
true,
|
||||||
|
"check-open-brace",
|
||||||
|
"check-catch",
|
||||||
|
"check-else",
|
||||||
|
"check-whitespace"
|
||||||
|
],
|
||||||
|
"prefer-const": true,
|
||||||
|
"quotemark": [
|
||||||
|
true,
|
||||||
|
"single"
|
||||||
|
],
|
||||||
|
"radix": true,
|
||||||
|
"semicolon": [
|
||||||
|
true,
|
||||||
|
"always"
|
||||||
|
],
|
||||||
|
"triple-equals": [
|
||||||
|
true,
|
||||||
|
"allow-null-check"
|
||||||
|
],
|
||||||
|
"typedef-whitespace": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
"call-signature": "nospace",
|
||||||
|
"index-signature": "nospace",
|
||||||
|
"parameter": "nospace",
|
||||||
|
"property-declaration": "nospace",
|
||||||
|
"variable-declaration": "nospace"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"typeof-compare": true,
|
||||||
|
"unified-signatures": true,
|
||||||
|
"variable-name": false,
|
||||||
|
"whitespace": [
|
||||||
|
true,
|
||||||
|
"check-branch",
|
||||||
|
"check-decl",
|
||||||
|
"check-operator",
|
||||||
|
"check-separator",
|
||||||
|
"check-type"
|
||||||
|
],
|
||||||
|
"directive-selector": [
|
||||||
|
true,
|
||||||
|
"attribute",
|
||||||
|
"app",
|
||||||
|
"camelCase"
|
||||||
|
],
|
||||||
|
"component-selector": [
|
||||||
|
true,
|
||||||
|
"element",
|
||||||
|
"app",
|
||||||
|
"kebab-case"
|
||||||
|
],
|
||||||
|
"use-input-property-decorator": true,
|
||||||
|
"use-output-property-decorator": true,
|
||||||
|
"use-host-property-decorator": true,
|
||||||
|
"no-input-rename": true,
|
||||||
|
"no-output-rename": true,
|
||||||
|
"use-life-cycle-interface": true,
|
||||||
|
"use-pipe-transform-interface": true,
|
||||||
|
"component-class-suffix": true,
|
||||||
|
"directive-class-suffix": true,
|
||||||
|
"no-access-missing-member": true,
|
||||||
|
"templates-use-public": true,
|
||||||
|
"invoke-injectable": true
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue