Skip to content

Commit 79abfb8

Browse files
Merge branch 'release-5.10'
2 parents 46e150b + 7c2ad18 commit 79abfb8

File tree

173 files changed

+2942
-1723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+2942
-1723
lines changed

.env

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
QWAC_CERTIFICATE_MOCK=-----BEGIN CERTIFICATE-----MIIFNjCCAx6gAwIBAgIERd3y8TANBgkqhkiG9w0BAQsFADB4MQswCQYDVQQGEwJERTEQMA4GA1UECAwHQkFWQVJJQTESMBAGA1UEBwwJTnVyZW1iZXJnMSIwIAYDVQQKDBlUcnVzdCBTZXJ2aWNlIFByb3ZpZGVyIEFHMR8wHQYDVQQLDBZJbmZvcm1hdGlvbiBUZWNobm9sb2d5MB4XDTIwMDMwNTEzMzk1MFoXDTMwMDMwMzAwMDAwMFowgcExITAfBgNVBAoMGEZpY3Rpb25hbCBDb3Jwb3JhdGlvbiBBRzElMCMGCgmSJomT8ixkARkWFXB1YmxpYy5jb3Jwb3JhdGlvbi5kZTEfMB0GA1UECwwWSW5mb3JtYXRpb24gVGVjaG5vbG9neTEQMA4GA1UEBhMHR2VybWFueTEPMA0GA1UECAwGQmF5ZXJuMRIwEAYDVQQHDAlOdXJlbWJlcmcxHTAbBgNVBGEMFFBTRERFLUZBS0VOQ0EtODdCMkFDMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsHAdLWn7pEAlD5daEjKv7hE4FW+vMJRrA/Bw2M/Zsu8VFfW1ARmbTgTy7rGLFBK/Y2SToEj60+5GEkCgCvi+vI/Bdykk8XqjpVsJjTW67np1b2Av8F61zvCnn2UOxBtXBHCzR1j2yz2om1IMYieGu/cDTWLNkbuoGSnj0dq4CbHp2f8ch++goffqLRXr642j8cVlqZYsapB8y+Z8IydbtNBd/XAmRTAprmdRv9B4PC7P+lIYX8QbXw77f+9/2Kty7oVH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-
XS2A_CONSENT_MANAGEMENT_VERSION=11.1
2+
SANDBOX_VERSION=5.10
3+
LEDGERS_VERSION=4.11
4+
XS2A_CONNECTOR_VERSION=11.2
5+
XS2A_ASPSP_PROFILE_VERSION=11.2
6+
XS2A_CONSENT_MANAGEMENT_VERSION=11.2

developer-portal-ui/angular.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@
2020
"build": {
2121
"builder": "@angular-devkit/build-angular:browser",
2222
"options": {
23+
"allowedCommonJsDependencies": ["uuid"],
2324
"aot": true,
2425
"outputPath": "dist/developer-portal",
2526
"index": "src/index.html",
2627
"main": "src/main.ts",
2728
"polyfills": "src/polyfills.ts",
2829
"tsConfig": "src/tsconfig.app.json",
29-
"assets": [
30-
"src/favicon.ico",
31-
"src/assets"
32-
],
30+
"assets": ["src/favicon.ico", "src/assets"],
3331
"styles": [
32+
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
3433
"src/styles.scss",
3534
"node_modules/ngx-toastr/toastr.css"
3635
],
@@ -89,7 +88,7 @@
8988
"polyfills": "src/polyfills.ts",
9089
"tsConfig": "src/tsconfig.spec.json",
9190
"karmaConfig": "src/karma.conf.js",
92-
"styles": ["src/styles.scss"],
91+
"styles": ["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "src/styles.scss"],
9392
"scripts": ["node_modules/marked/lib/marked.js"],
9493
"assets": ["src/favicon.ico", "src/assets"]
9594
}

developer-portal-ui/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "developer-portal",
3-
"version": "5.9",
3+
"version": "5.10",
44
"build_number": "null"
55
}

developer-portal-ui/package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

developer-portal-ui/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,20 @@
2222
"private": true,
2323
"dependencies": {
2424
"@angular/animations": "^11.1.1",
25+
"@angular/cdk": "^11.2.9",
2526
"@angular/common": "^11.1.1",
2627
"@angular/compiler": "^11.1.1",
2728
"@angular/core": "^11.1.1",
2829
"@angular/forms": "^11.1.1",
30+
"@angular/material": "^11.2.9",
2931
"@angular/platform-browser": "^11.1.1",
3032
"@angular/platform-browser-dynamic": "^11.1.1",
3133
"@angular/router": "^11.1.1",
3234
"@ng-bootstrap/ng-bootstrap": "^5.3.0",
3335
"@ngx-translate/core": "^13.0.0",
3436
"@ngx-translate/http-loader": "^6.0.0",
3537
"bootstrap-scss": "^4.4.1",
38+
"browser-detect": "^0.2.28",
3639
"classlist.js": "^1.1.20150312",
3740
"core-js": "^2.6.11",
3841
"css-vars-ponyfill": "^2.2.0",

developer-portal-ui/src/app/app.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { NavComponent } from './components/common/nav/nav.component';
1313
import { FooterComponent } from './components/common/footer/footer.component';
1414
import { of } from 'rxjs';
1515
import { MarkdownModule, MarkdownService } from 'ngx-markdown';
16+
import { SanitizeHtmlPipe } from './pipes/sanitize-html.pipe';
1617

1718
describe('AppComponent', () => {
1819
let comp: AppComponent;
@@ -110,7 +111,7 @@ describe('AppComponent', () => {
110111
beforeEach(
111112
waitForAsync(() => {
112113
TestBed.configureTestingModule({
113-
declarations: [AppComponent, TranslatePipe, NavComponent, FooterComponent],
114+
declarations: [AppComponent, TranslatePipe, NavComponent, FooterComponent, SanitizeHtmlPipe],
114115
imports: [
115116
MarkdownModule.forRoot(),
116117
RouterTestingModule,
@@ -139,7 +140,6 @@ describe('AppComponent', () => {
139140
waitForAsync(() => {
140141
fixture = TestBed.createComponent(AppComponent);
141142
comp = fixture.componentInstance;
142-
fixture.detectChanges();
143143
})
144144
);
145145

developer-portal-ui/src/app/app.module.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ import { CustomPageComponent } from './components/custom-page/custom-page.compon
3030
import { GoogleAnalyticsService } from './services/google-analytics.service';
3131
import { CustomizeService } from './services/customize.service';
3232
import { SettingsHttpService } from './services/settings-http.service';
33+
import { UrlLoadService } from './services/url-load.service';
34+
import { UrlService } from './services/url.service';
35+
import { SanitizeHtmlPipe } from './pipes/sanitize-html.pipe';
3336

3437
export function app_Init(settingsHttpService: SettingsHttpService) {
3538
return () => settingsHttpService.initializeApp();
3639
}
40+
export function url_Init(urlLoadService: UrlLoadService) {
41+
return () => urlLoadService.initializeUrls();
42+
}
3743

3844
@NgModule({
3945
declarations: [
@@ -50,6 +56,7 @@ export function app_Init(settingsHttpService: SettingsHttpService) {
5056
NavComponent,
5157
FooterComponent,
5258
CustomPageComponent,
59+
SanitizeHtmlPipe,
5360
],
5461
imports: [
5562
BrowserModule,
@@ -81,13 +88,20 @@ export function app_Init(settingsHttpService: SettingsHttpService) {
8188
DataService,
8289
LanguageService,
8390
CustomizeService,
91+
UrlService,
8492
GoogleAnalyticsService,
8593
{
8694
provide: APP_INITIALIZER,
8795
useFactory: app_Init,
8896
deps: [SettingsHttpService],
8997
multi: true,
9098
},
99+
{
100+
provide: APP_INITIALIZER,
101+
useFactory: url_Init,
102+
deps: [UrlLoadService],
103+
multi: true,
104+
},
91105
],
92106
bootstrap: [AppComponent],
93107
})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<div id="markdown"><markdown [src]="pathToFile"></markdown></div>
1+
<div id="markdown" [innerHTML]="compiledMarkDown | sanitizeHtml"></div>

developer-portal-ui/src/app/components/common/footer/footer.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { MarkdownModule } from 'ngx-markdown';
88
import { TranslateLoader, TranslateModule, TranslateService } from '@ngx-translate/core';
99
import { HttpLoaderFactory } from '../../../services/language.service';
1010
import { HttpClient } from '@angular/common/http';
11+
import { SanitizeHtmlPipe } from 'src/app/pipes/sanitize-html.pipe';
1112

1213
describe('FooterComponent', () => {
1314
let component: FooterComponent;
@@ -93,7 +94,7 @@ describe('FooterComponent', () => {
9394
beforeEach(
9495
waitForAsync(() => {
9596
TestBed.configureTestingModule({
96-
declarations: [FooterComponent, TranslatePipe],
97+
declarations: [FooterComponent, TranslatePipe, SanitizeHtmlPipe],
9798
imports: [
9899
HttpClientTestingModule,
99100
MarkdownModule.forRoot(),
@@ -113,7 +114,6 @@ describe('FooterComponent', () => {
113114
beforeEach(() => {
114115
fixture = TestBed.createComponent(FooterComponent);
115116
component = fixture.componentInstance;
116-
fixture.detectChanges();
117117
});
118118

119119
it('should create', () => {
Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,48 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component, OnInit, AfterViewChecked } from '@angular/core';
22
import { CustomizeService } from '../../../services/customize.service';
33
import { MarkdownStylingService } from '../../../services/markdown-styling.service';
44
import { LanguageService } from '../../../services/language.service';
5+
import { UrlService } from 'src/app/services/url.service';
6+
import { EnvLink } from 'src/app/models/envLink.model';
7+
import { MarkdownService } from 'ngx-markdown';
58

69
@Component({
710
selector: 'app-footer',
811
templateUrl: './footer.component.html',
912
styleUrls: ['./footer.component.scss'],
1013
})
11-
export class FooterComponent implements OnInit {
14+
export class FooterComponent implements OnInit, AfterViewChecked {
1215
pathToFile = `./assets/content/i18n/en/footer.md`;
16+
compiledMarkDown = '';
1317

1418
constructor(
1519
private customizeService: CustomizeService,
1620
private markdownStylingService: MarkdownStylingService,
17-
private languageService: LanguageService
21+
private languageService: LanguageService,
22+
private urlService: UrlService,
23+
private markdownService: MarkdownService
1824
) {}
1925

2026
ngOnInit() {
2127
this.languageService.currentLanguage.subscribe((data) => {
2228
this.pathToFile = `${this.customizeService.currentLanguageFolder}/${data}/footer.md`;
2329
this.markdownStylingService.createTableOfContent(true);
30+
this.markdownService.getSource(this.pathToFile).subscribe((result) => {
31+
this.compiledMarkDown = this.markdownService.compile(result);
32+
});
2433
});
2534
}
35+
36+
ngAfterViewChecked() {
37+
this.urlService.getUrl().subscribe((data: EnvLink) => {
38+
Object.keys(data.servicesAvailable).forEach((key) => this.setLink(key, data.servicesAvailable[key].environmentLink));
39+
});
40+
}
41+
42+
setLink(id: string, link: string) {
43+
const anchorNode = document.getElementById(id);
44+
if (anchorNode) {
45+
anchorNode.setAttribute('href', link);
46+
}
47+
}
2648
}

0 commit comments

Comments
 (0)