chore: rename "Application" to "Client"
MODIFY
src/app/components/dialogs/unregister-client/unregister-client.component.ts
src/app/components/dialogs/unregister-client/unregister-client.component.ts
@@ -68,7 +68,7 @@ export class UnregisterClientComponent {
catchError((err) => {
console.error('Deleting client failed: ', err);
this.snackbarService.showErrorSnackBar(
- this.translator.instant('APPS.REMOVE_APPLICATION_FAILED') as string
+ this.translator.instant('CLIENTS.REMOVE_CLIENT_FAILED') as string
);
return EMPTY;
})

MODIFY
src/app/components/marketplace-client-app/marketplace-client-app.component.html
src/app/components/marketplace-client-app/marketplace-client-app.component.html
<!--
- ~ Copyright 2021 Scheer PAS Schweiz AG
+ ~ Copyright 2022 Scheer PAS Schweiz AG
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
</button>
</div>
-<p class="primary">{{ 'APPLICATION_CREATE.SELECT' | translate }}</p>
+<p class="primary">{{ 'CLIENTS.SELECT' | translate }}</p>
<table mat-table [dataSource]="dataSource" class="mat-elevation-z2 mt-20 mb-20">
<!-- Org Name Column - only displayed if user has more than 1 -->
<ng-container matColumnDef="org-name">
<!-- Name Column -->
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef>
- {{ 'COMMON.APPLICATION' | translate }}
+ {{ 'COMMON.CLIENT' | translate }}
</th>
<td mat-cell *matCellDef="let element">
<span [class.primary]="clickedRows.has(element)">{{ element.name }}</span>

MODIFY
src/app/components/marketplace-signup-stepper/marketplace-signup-stepper.component.ts
src/app/components/marketplace-signup-stepper/marketplace-signup-stepper.component.ts
@@ -92,7 +92,7 @@ export class MarketplaceSignupStepperComponent implements OnInit {
nextAfterClientSelect(stepper: MatStepper): void {
if (this.selectedClients.size == 0) {
- this.printUserError('WIZARD.APPLICATION_ERROR');
+ this.printUserError('WIZARD.CLIENT_ERROR');
} else {
this.checkIfContractAlreadyExists(stepper);
}

MODIFY
src/app/components/my-apps-manage-api/my-apps-manage-api.component.html
src/app/components/my-apps-manage-api/my-apps-manage-api.component.html
<!--
- ~ Copyright 2021 Scheer PAS Schweiz AG
+ ~ Copyright 2022 Scheer PAS Schweiz AG
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
<div class="grid">
<div>
- <h4>{{ 'APPS.DISABLE_API' | translate }}</h4>
+ <h4>{{ 'CLIENTS.DISABLE_API' | translate }}</h4>
<p class="card-text">{{ 'DESCRIPTIONS.DISABLE_API' | translate }}</p>
</div>
<div class="card">
<div class="card-content mat-elevation-z2">
<div class="card-header bg-color-coral">
- <p class="card-title">{{ 'APPS.DISABLE_THIS_API' | translate }}</p>
+ <p class="card-title">{{ 'CLIENTS.DISABLE_THIS_API' | translate }}</p>
</div>
<button mat-raised-button class="disable-btn bg-color-coral">
- {{ 'APPS.DISABLE_API' | translate }}
+ {{ 'CLIENTS.DISABLE_API' | translate }}
</button>
</div>
</div>
<div class="grid mt-15">
<div>
- <h4>{{ 'APPS.UNSUB_FROM_API' | translate }}</h4>
+ <h4>{{ 'CLIENTS.UNSUB_FROM_API' | translate }}</h4>
<p class="card-text">{{ 'DESCRIPTIONS.UNREGISTER_API' | translate }}</p>
</div>
<div class="card">
<div class="card-content mat-elevation-z2">
<div class="card-header bg-color-darkred">
- <p class="card-title">{{ 'APPS.UNSUB_FROM_THIS_API' | translate }}</p>
+ <p class="card-title">
+ {{ 'CLIENTS.UNSUB_FROM_THIS_API' | translate }}
+ </p>
</div>
<button mat-raised-button class="disable-btn bg-color-darkred">
- {{ 'APPS.UNSUB' | translate }}
+ {{ 'CLIENTS.UNSUB' | translate }}
</button>
</div>
</div>

MODIFY
src/app/components/my-apps-policies/my-apps-policies.component.html
src/app/components/my-apps-policies/my-apps-policies.component.html
<!--
- ~ Copyright 2021 Scheer PAS Schweiz AG
+ ~ Copyright 2022 Scheer PAS Schweiz AG
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
<ng-template #noProbe>
<div class="dp-center">
<app-no-data
- [text]="'APPS.NO_PROBES' | translate"
+ [text]="'CLIENTS.NO_PROBES' | translate"
[textClass]="'text-big2'"></app-no-data>
</div>
</ng-template>

MODIFY
src/app/components/my-apps-summary/my-apps-summary.component.html
src/app/components/my-apps-summary/my-apps-summary.component.html
<!--
- ~ Copyright 2021 Scheer PAS Schweiz AG
+ ~ Copyright 2022 Scheer PAS Schweiz AG
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
<app-no-data
class="dp-center"
[textClass]="'text-big2'"
- [text]="'APPS.NO_POLICIES_FOR_API' | translate"></app-no-data>
+ [text]="'CLIENTS.NO_POLICIES_FOR_API' | translate"></app-no-data>
</ng-template>
</div>
<ng-template #apiRetired>
class="dp-center"
style="display: grid"
[textClass]="'text-big3'"
- [text]="'APPS.RETIRED_API' | translate">
+ [text]="'CLIENTS.RETIRED_API' | translate">
</app-no-data>
</ng-template>

MODIFY
src/app/components/my-apps-use-api/my-apps-use-api.component.html
src/app/components/my-apps-use-api/my-apps-use-api.component.html
<!--
- ~ Copyright 2021 Scheer PAS Schweiz AG
+ ~ Copyright 2022 Scheer PAS Schweiz AG
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
<!-- Key -->
<div class="grid">
<div>
- <h4>{{ 'APPS.API_KEY' | translate }}</h4>
+ <h4>{{ 'CLIENTS.API_KEY' | translate }}</h4>
<p [innerHTML]="'DESCRIPTIONS.API_KEY' | translate"></p>
</div>
<div>
<!-- API Endpoint -->
<div class="grid">
<div>
- <h4>{{ 'APPS.ENDPOINT' | translate }}</h4>
+ <h4>{{ 'CLIENTS.ENDPOINT' | translate }}</h4>
<p [innerHTML]="'DESCRIPTIONS.API_ENDPOINT' | translate"></p>
</div>
<div>
<!-- Authentication -->
<div class="grid" *ngIf="hasOAuth">
<div>
- <h4>{{ 'APPS.AUTHENTICATION' | translate }}</h4>
+ <h4>{{ 'CLIENTS.AUTHENTICATION' | translate }}</h4>
<p [innerHTML]="'DESCRIPTIONS.O_AUTH' | translate"></p>
</div>
<div>

MODIFY
src/app/components/my-apps/my-apps.component.html
src/app/components/my-apps/my-apps.component.html
<input
matInput
type="search"
- [placeholder]="'APPS.SEARCH' | translate"
+ [placeholder]="'CLIENTS.SEARCH' | translate"
class="search-input"
[(ngModel)]="searchTerm"
(ngModelChange)="searchTermNotifier.next($event)" />
(click)="unregister(cliCon.value[0], cliCon.key)"
mat-icon-button
color="primary"
- matTooltip="{{ 'APPS.REMOVE_APPLICATION_TOOLTIP' | translate }}">
+ matTooltip="{{ 'CLIENTS.REMOVE_CLIENT_TOOLTIP' | translate }}">
<mat-icon>delete</mat-icon>
</button>
<span
<span
(click)="setSection(contract, 'summary')"
[ngClass]="{ primary: contract.section === 'summary' }">
- {{ 'APPS.SUMMARY' | translate }}
+ {{ 'CLIENTS.SUMMARY' | translate }}
</span>
</div>
<div *ngIf="contract!.api.status !== 'Retired'">
<span
(click)="setSection(contract, 'use-api')"
[ngClass]="{ primary: contract.section === 'use-api' }">
- {{ 'APPS.USE_API' | translate }}
+ {{ 'CLIENTS.USE_API' | translate }}
</span>
</div>
<div *ngIf="contract.policies.length > 0">
<span
(click)="setSection(contract, 'policies')"
[ngClass]="{ primary: contract.section === 'policies' }">
- {{ 'APPS.POLICIES' | translate }}
+ {{ 'CLIENTS.POLICIES' | translate }}
</span>
</div>
</div>
<!-- <span-->
<!-- (click)="setSection(contract, 'manage-api')"-->
<!-- [ngClass]="{ primary: contract.section === 'manage-api' }">-->
- <!-- {{ "APPS.MANAGE_API" | translate }}-->
+ <!-- {{ "CLIENTS.MANAGE_API" | translate }}-->
<!-- </span>-->
</div>
</div>
class="dp-center">
<app-no-data
[text]="
- (error ? 'APPS.FAILED_WHILE_FETCHING_APPLICATIONS' : 'APPS.NO_APPS_FOUND')
- | translate
+ (error
+ ? 'CLIENTS.FAILED_WHILE_FETCHING_CLIENTS'
+ : 'CLIENTS.NO_CLIENTS_FOUND'
+ ) | translate
"
[textClass]="'text-big2'"></app-no-data>
</div>

MODIFY
src/app/components/my-apps/my-apps.component.ts
src/app/components/my-apps/my-apps.component.ts
@@ -331,8 +331,8 @@ export class MyAppsComponent implements OnInit {
private setUpHero() {
this.heroService.setUpHero({
- title: this.translator.instant('APPS.TITLE') as string,
- subtitle: this.translator.instant('APPS.SUBTITLE') as string
+ title: this.translator.instant('CLIENTS.TITLE') as string,
+ subtitle: this.translator.instant('CLIENTS.SUBTITLE') as string
});
}
@@ -398,7 +398,7 @@ export class MyAppsComponent implements OnInit {
dialogRef.componentInstance.unregisterEmitter.subscribe(() => {
this.snackbarService.showPrimarySnackBar(
- this.translator.instant('APPS.APPLICATION_REMOVED') as string
+ this.translator.instant('CLIENTS.CLIENT_REMOVED') as string
);
this.fetchContracts();

MODIFY
src/app/components/notifications/notifications.component.ts
src/app/components/notifications/notifications.component.ts
+/*
+ * Copyright 2022 Scheer PAS Schweiz AG
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * imitations under the License.
+ */
+
import { Component, OnInit } from '@angular/core';
import {
INotificationsDto,
@@ -82,7 +98,7 @@ export class NotificationsComponent implements OnInit {
],
[
'apiman.client.status_change.registered',
- 'NOTIFICATION.MESSAGE.APP.REGISTERED'
+ 'NOTIFICATION.MESSAGE.CLIENT.REGISTERED'
]
]);

MODIFY
src/app/components/toc/toc.component.html
src/app/components/toc/toc.component.html
<!--
- ~ Copyright 2021 Scheer PAS Schweiz AG
+ ~ Copyright 2022 Scheer PAS Schweiz AG
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
<ul>
<li>
<span
- ><b>{{ 'APPS.APPS_AND_APIS' | translate }}</b></span
+ ><b>{{ 'CLIENTS.CLIENTS_AND_APIS' | translate }}</b></span
>
</li>
<div class="content-wrapper" data-simplebar>

MODIFY
src/app/services/navigation/navigation.service.ts
src/app/services/navigation/navigation.service.ts
/*
- * Copyright 2021 Scheer PAS Schweiz AG
+ * Copyright 2022 Scheer PAS Schweiz AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ export class NavigationService {
useRouter: true
},
{
- name: this.translator.instant('APPS.TITLE') as string,
+ name: this.translator.instant('CLIENTS.TITLE') as string,
link: 'applications',
openInNewTab: false,
useRouter: true

MODIFY
src/app/services/policy/policy.service.ts
src/app/services/policy/policy.service.ts
@@ -306,7 +306,9 @@ export class PolicyService {
(currentVal * 100) /
policy.probe.config.limit
).toFixed(2);
- const translation: string = this.translator.instant('APPS.USED') as string;
+ const translation: string = this.translator.instant(
+ 'CLIENTS.USED'
+ ) as string;
return `${percentage} % ${translation}`;
}
@@ -318,7 +320,9 @@ export class PolicyService {
(currentValFormatted * 100) /
limitFormatted
).toFixed(2);
- const translation: string = this.translator.instant('APPS.USED') as string;
+ const translation: string = this.translator.instant(
+ 'CLIENTS.USED'
+ ) as string;
return `${percentage} % ${translation}`;
}
@@ -348,7 +352,7 @@ export class PolicyService {
suffix: 'ms',
limit: 1000,
bottomText: this.translator.instant(
- 'APPS.RESETS_EVERY_SECOND'
+ 'CLIENTS.RESETS_EVERY_SECOND'
) as string
};
case 'Minute':
@@ -433,7 +437,9 @@ export class PolicyService {
.slice(0, 19);
return (
- (this.translator.instant('APPS.RESETS_AT') as string) + ' ' + dateString
+ (this.translator.instant('CLIENTS.RESETS_AT') as string) +
+ ' ' +
+ dateString
);
}

MODIFY
src/assets/config.json5
src/assets/config.json5
"title": "HOME.TITLE",
"subtitle": "HOME.SUBTITLE",
// enforces a min height visible header image
- "large": false,
+ "large": true,
},
// config options for navigation below header
"navigation": {

MODIFY
src/assets/i18n/en.json
src/assets/i18n/en.json
"NEXT": "Next",
"FINISH": "Finish",
"ORGANIZATION": "Organization",
- "APPLICATION": "Application",
+ "CLIENT": "Client",
"NO_DATA_FOUND": "No data found",
"CONFIRM": "Confirm",
"SIGNUP": "Signup",
},
"HOME": {
"TITLE": "API Developer Portal",
- "SUBTITLE": "Featured APIs",
+ "SUBTITLE": "",
"SHOW_ALL": "Show all",
"NO_APIS_FOUND": "No APIs were found"
},
"TITLE": "Account",
"SUBTITLE": "Administrate User Settings"
},
- "APPS": {
+ "CLIENTS": {
"SEARCH": "Apps and APIs",
- "TITLE": "My Applications",
+ "TITLE": "My Clients",
"SUBTITLE": "Groups of APIs",
"SUMMARY": "Summary",
"USE_API": "Use API",
"UNSUB_FROM_API": "Unsubscribe from API",
"UNSUB_FROM_THIS_API": "Unsubscribe from this API",
"UNSUB": "Unsubscribe",
- "APPLICATION_REMOVED": "The application and its related contracts have been removed",
- "REMOVE_APPLICATION_TOOLTIP": "Remove application",
+ "CLIENT_REMOVED": "The client and its related contracts have been removed",
+ "REMOVE_CLIENT_TOOLTIP": "Remove client",
"USED": "used",
"RESETS_AT": "Resets at",
"RESETS_EVERY_SECOND": "Resets every second",
"NO_POLICIES_FOR_API": "No policies found for this API",
"APPS_AND_APIS": "Apps and APIs",
- "NO_APPS_FOUND": "No applications were found",
- "FAILED_WHILE_FETCHING_APPLICATIONS": "Failed while fetching applications",
- "REMOVE_APPLICATION_FAILED": "Failed while removing the application",
+ "NO_APPS_FOUND": "No clients were found",
+ "FAILED_WHILE_FETCHING_CLIENTS": "Failed while fetching clients",
+ "REMOVE_CLIENT_FAILED": "Failed while removing the client",
"NO_PROBES": "Failed while fetching the current policy data",
- "RETIRED_API": "This API is retired and can no longer be used."
- },
- "APPLICATION_CREATE": {
- "SELECT": "Select from available Applications"
+ "RETIRED_API": "This API is retired and can no longer be used.",
+ "SELECT": "Select from available Clients"
},
"WIZARD": {
- "FIRST_STEP_LABEL": "Select/create Application",
+ "FIRST_STEP_LABEL": "Select/create Client",
"SECOND_STEP_LABEL": "Agreement",
"THIRD_STEP_LABEL": "Summary",
"FORTH_STEP_LABEL": "Confirmation",
- "FIRST_STEP_TITLE": "Select or create an new application",
+ "FIRST_STEP_TITLE": "Select or create an new client",
"SECOND_STEP_TITLE": "Terms and Conditions",
"THIRD_STEP_TITLE": "Summary",
"FORTH_STEP_TITLE": "Confirmation",
- "APPLICATION_ERROR": "You have to select one application first",
+ "CLIENT_ERROR": "You have to select one client first",
"TERMS_ERROR": "Please accept the service terms",
"REDIRECT": "You will be redirected because of an invalid URL",
"SUCCESS": "A contract has been successfully created",
"API_ENDPOINT_PREVIEW": "You will be provided an endpoint after sign-up",
"LICENSE_TYPE": "Licence Type",
"POLICIES": "Policies",
- "CONTRACT_EXISTS": "There is already an contract for this API with the selected application"
+ "CONTRACT_EXISTS": "There is already an contract for this API with the selected client"
},
"POLICIES": {
"RateLimitingPolicy": {
},
"DESCRIPTIONS": {
"TRY_IT_OUT": "Displays the Open API definition (Swagger) and allows for making test calls if the API is available.",
- "API_KEY": "When an API contract is created, the system generates a unique API Key. <br>This API Key is unique per application and the same for all contracts of this application.<br> All requests made to the API must include this API Key.",
+ "API_KEY": "When an API contract is created, the system generates a unique API Key. <br>This API Key is unique per client and the same for all contracts of this client.<br> All requests made to the API must include this API Key.",
"API_ENDPOINT": "One important aspect of all APIs that are managed by the API Gateway is the security that the API Gateway provides. <br>The API can be accessed with this URL."
},
"APPROVAL": {
"HERO_TITLE": "Approval Required",
"TITLE": "Thank you",
"SUBTITLE": "Your subscription is awaiting approval",
- "MORE_INFO": "You will receive an email notification when there is progress in your application"
+ "MORE_INFO": "You will receive an email notification when there is progress in your client"
},
"ACCOUNT": {
"HERO_TITLE": "Approval Required",
}
},
"DIALOGS": {
- "REMOVE_TITLE": "Remove Application",
- "REMOVE_SURE": "Are you sure you want to <span class='warn'>remove</span> the application <b>{{value}}</b> and all of its contracts?",
+ "REMOVE_TITLE": "Remove Client",
+ "REMOVE_SURE": "Are you sure you want to <span class='warn'>remove</span> the client <b>{{value}}</b> and all of its contracts?",
"REMOVE_BTN": "Remove"
},
"API_DETAILS": {
},
"MESSAGE": {
"API": {
- "SIGN_UP_APPROVED": "Your API Sign-Up for {{ payload.apiId }} in your application {{ payload.clientId }} has been approved.",
- "SIGN_UP_REJECTED": "Your API Sign-Up for {{ payload.apiId }} in your application {{ payload.clientId }} has been rejected."
+ "SIGN_UP_APPROVED": "Your API Sign-Up for {{ payload.apiId }} in your client {{ payload.clientId }} has been approved.",
+ "SIGN_UP_REJECTED": "Your API Sign-Up for {{ payload.apiId }} in your client {{ payload.clientId }} has been rejected."
},
- "APP": {
- "REGISTERED": "Your Application {{payload.clientId}} has been registered."
+ "CLIENT": {
+ "REGISTERED": "Your Client {{payload.clientId}} has been registered."
}
},
"STATUS": {

chore: rename "Application" to "Client"

Co-authored-by: Annegret Bernhardt <annegret.bernhardt@scheer-group.com>