Production release November 2023 v2 #2
|
@ -10,6 +10,7 @@ import {FullScreenModalComponent} from "../openaireLibrary/utils/modal/full-scre
|
|||
import {EmailService} from "../openaireLibrary/utils/email/email.service";
|
||||
import {Email} from "../openaireLibrary/utils/email/email";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {error} from "@angular/compiler-cli/src/transformers/util";
|
||||
|
||||
@Component({
|
||||
selector: 'admin',
|
||||
|
@ -356,6 +357,7 @@ export class AdminComponent implements OnInit, OnDestroy{
|
|||
}
|
||||
|
||||
sendEmail() {
|
||||
this.loading = true;
|
||||
let email = new Email();
|
||||
email.body = this.emailForm.get('body').value;
|
||||
email.subject = this.emailForm.get('subject').value;
|
||||
|
@ -366,6 +368,10 @@ export class AdminComponent implements OnInit, OnDestroy{
|
|||
} else {
|
||||
NotificationHandler.rise('An error has occurred. Please try again later!', 'danger');
|
||||
}
|
||||
this.loading = false;
|
||||
}, error => {
|
||||
NotificationHandler.rise('An error has occurred. Please try again later!', 'danger');
|
||||
this.loading = false;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,8 +27,7 @@ declare var copy;
|
|||
<div class="uk-alert-primary uk-alert uk-margin-top-remove uk-flex uk-flex-middle">
|
||||
<icon name="info" [flex]="true"></icon>
|
||||
<span class="uk-margin-small-left">You can register up to 5 services.
|
||||
For more information please read the <a
|
||||
href="https://graph.openaire.eu/develop/authentication.html" target="_blank">OpenAIRE API Authentication documentation</a>.</span>
|
||||
For more information please read the <a href="https://graph.openaire.eu/docs/apis/authentication" target="_blank">OpenAIRE API Authentication documentation</a>.</span>
|
||||
</div>
|
||||
<div *ngIf="apis.length === 0"
|
||||
class="uk-margin-large-top uk-card uk-card-default uk-height-small uk-position-relative">
|
||||
|
@ -100,8 +99,8 @@ declare var copy;
|
|||
<div class="uk-width-1-1">
|
||||
<label class="uk-text-bold">Security Level</label>
|
||||
<div id="security-hint" class="uk-margin">Register your service to get a client id and a client
|
||||
secret. Use the client id and secret to make your requests. <a
|
||||
href="https://graph.openaire.eu/develop/basic.html" target="_blank">Read more...</a>
|
||||
secret. Use the client id and secret to make your requests.
|
||||
<a href="https://graph.openaire.eu/docs/apis/authentication/#basic-service-authentication-and-registration" target="_blank">Read more...</a>
|
||||
</div>
|
||||
<div class="uk-flex uk-flex-middle">
|
||||
<div class="uk-margin-small-right">
|
||||
|
|
|
@ -8,7 +8,7 @@ import {Component, OnInit} from "@angular/core";
|
|||
<div class="uk-margin-large-top">The OpenAIRE APIs can be accessed over HTTPS both by authenticated and unauthenticated requests. To achieve <span class="uk-text-bold">better rate limits</span> you need to make <span class="uk-text-bold">authenticated requests.</span></div>
|
||||
<div class="uk-alert uk-alert-primary uk-flex uk-flex-middle uk-margin-medium-top">
|
||||
<icon name="info" [type]="'outlined'" [flex]="true"></icon>
|
||||
<span class="uk-margin-small-left">For more information please read the <a href="https://graph.openaire.eu/develop/authentication.html" target="_blank">OpenAIRE API Authentication documentation</a>.</span>
|
||||
<span class="uk-margin-small-left">For more information please read the <a href="https://graph.openaire.eu/docs/apis/authentication" target="_blank">OpenAIRE API Authentication documentation</a>.</span>
|
||||
</div>
|
||||
<div class="uk-grid uk-grid-large uk-child-width-1-2@m uk-child-width-1-1 uk-margin-large-top" uk-grid>
|
||||
<div>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit c7c1aec26ea7ff3decda4675a7bdb0e6ea83a4ae
|
||||
Subproject commit 267944103f6f06ced39bb37e4c70d1834b742601
|
|
@ -14,7 +14,7 @@ declare var copy;
|
|||
<icon name="info" [type]="'outlined'" [flex]="true"></icon>
|
||||
<span class="uk-margin-small-left">
|
||||
For further information on how to use the tokens please visit the
|
||||
<a href="https://graph.openaire.eu/develop/personalToken.html" target="_blank">OpenAIRE API Authentication documentation</a>.
|
||||
<a href="https://graph.openaire.eu/docs/apis/authentication/#personal-access-token" target="_blank">OpenAIRE API Authentication documentation</a>.
|
||||
</span>
|
||||
</div>
|
||||
<div class="uk-margin-large-bottom">
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b68f375714b679743e586bb2fb4721e633e43fc1
|
||||
Subproject commit 4d41ba373dfb2dfd09ada4061bb1450dadb96993
|
|
@ -1 +1 @@
|
|||
Subproject commit 7aa9e577193e3a77415434fd5e6e856a21d5efeb
|
||||
Subproject commit 860bd52a5f4becb94f5c3bf2bee9ae5944513b7a
|
|
@ -10,10 +10,8 @@ export let properties: EnvProperties = {
|
|||
dashboard: 'developers',
|
||||
useCache: false,
|
||||
adminToolsAPIURL: "http://duffy.di.uoa.gr:19280/uoa-admin-tools/",
|
||||
loginUrl: "http://mpagasas.di.uoa.gr:19580/developers-api/openid_connect_login",
|
||||
userInfoUrl: "http://mpagasas.di.uoa.gr:19580/developers-api/userInfo",
|
||||
loginServiceURL: "http://mpagasas.di.uoa.gr:19580/developers-api/",
|
||||
developersApiUrl: "http://mpagasas.di.uoa.gr:19580/developers-api",
|
||||
logoutUrl: "http://mpagasas.di.uoa.gr:19580/developers-api/openid_logout",
|
||||
domain: 'http://mpagasas.di.uoa.gr:5001',
|
||||
errorLink: '/error',
|
||||
baseLink: '',
|
||||
|
|
|
@ -19,5 +19,8 @@
|
|||
"dom"
|
||||
],
|
||||
"useDefineForClassFields": false
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"allowSyntheticDefaultImports": true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue