X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fenvironments%2Fenvironment.ts;h=bd45964fe1d2988c7cee254463819abcbb13629d;hb=0a34dfa32165036b380ec6ac493469b34007df0a;hp=e3acd4fa577416e43fed3b18f4be773d5e295b54;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7;p=osm%2FNG-UI.git diff --git a/src/environments/environment.ts b/src/environments/environment.ts index e3acd4f..bd45964 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -22,7 +22,7 @@ * The list of file replacements can be found in `angular.json`. */ -import { version } from 'PACKAGEJSON'; +import PACKAGEJSON from 'PACKAGEJSON'; /** OSM Admin URL @constant */ const OSM_ADMIN_ENDPOINT: string = 'osm/admin/v1/'; @@ -43,16 +43,15 @@ const ASSETS_PATH: string = 'assets/'; /** OSM Version @constant */ const OSM_VERSION: string = 'osm/version'; /** Grafana End-Point @constant */ -// tslint:disable-next-line: no-http-string +// eslint-disable-next-line @microsoft/sdl/no-insecure-url const GRAFANA_ENDPOINT: string = 'http://' + window.location.hostname + ':3000'; /** Exporting a const @exports environment */ -// tslint:disable-next-line: typedef export const environment = { production: false, packageSize: 50, paginationNumber: 10, //Possible values are 10, 25, 50, 100 - packageVersion: version, + packageVersion: PACKAGEJSON.version, GENERATETOKEN_URL: OSM_ADMIN_ENDPOINT + 'tokens', PROJECTS_URL: OSM_ADMIN_ENDPOINT + 'projects', USERS_URL: OSM_ADMIN_ENDPOINT + 'users',