From 5645deec97d1bd3cb35cec792ac8dc963c0f4d8a Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 13 Jul 2023 18:39:26 +0300 Subject: [PATCH] Change portal client-management to developers --- utils/properties/env-properties.ts | 4 ++-- utils/string-utils.class.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/properties/env-properties.ts b/utils/properties/env-properties.ts index 74d01ddf..af367504 100644 --- a/utils/properties/env-properties.ts +++ b/utils/properties/env-properties.ts @@ -1,5 +1,5 @@ export type Environment = "development" | "test" | "beta" | "production"; -export type Dashboard = "explore" | "connect" | "monitor" | "aggregator" | "eosc" | "client-management-portal"; +export type Dashboard = "explore" | "connect" | "monitor" | "aggregator" | "eosc" | "developers"; export type PortalType = "explore" | "connect" | "community" | "monitor" | "funder" | "ri" | "project" | "organization" | "aggregator" | "eosc"; export interface EnvProperties { @@ -65,7 +65,7 @@ export interface EnvProperties { registryUrl?: string; logoutUrl?: string; userInfoUrl?: string; - clientManagementUrl?: string, + developersApiUrl?: string, cookieDomain?: string; feedbackmail?: string; feedbackmailForMissingEntities?: string; diff --git a/utils/string-utils.class.ts b/utils/string-utils.class.ts index 143b15bb..c21fa9f1 100644 --- a/utils/string-utils.class.ts +++ b/utils/string-utils.class.ts @@ -332,7 +332,6 @@ export class StringUtils { return (control: AbstractControl): ValidationErrors | null => { if(control.value) { let test = control.getRawValue().replace(/\\["\\\/bfnrtu]/g, '@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').replace(/(?:^|:|,)(?:\s*\[)+/g, ''); - console.log('test') if(!new RegExp(this.jsonRegex).test(test)) { return {error: 'Please provide a valid JSON.' + error} }