Skip to content

Commit 710bd4d

Browse files
Merge pull request #431 from communitybridge/feature/lfx-footer
Added LFX footer
2 parents 7a5fda5 + 65cf853 commit 710bd4d

File tree

5 files changed

+16
-18
lines changed

5 files changed

+16
-18
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://www.linuxfoundation.org/"
88
},
99
"engines": {
10-
"node": ">=16.0.0",
10+
"node": ">=12.0.0",
1111
"npm": ">=8.0.0"
1212
},
1313
"version": "1.0.0",
@@ -56,6 +56,7 @@
5656
"@fortawesome/fontawesome-free": "^6.4.0",
5757
"@ng-bootstrap/ng-bootstrap": "^6.1.0",
5858
"@silvermine/serverless-plugin-cloudfront-lambda-edge": "^2.1.1",
59+
"@linuxfoundation/lfx-ui-core": "^0.0.12",
5960
"aws-sdk": "2.1558.0",
6061
"@types/node": "^18.16.0",
6162
"auth0-spa-js": "^1.6.5",

src/app/app.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
<app-alert></app-alert>
77
<router-outlet></router-outlet>
88
</div>
9-
9+
<div style="position: fixed; width: 100%; bottom: 20px;">
1010
<lfx-footer></lfx-footer>
11+
</div>

src/app/app.component.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// SPDX-License-Identifier: MIT
33

44
import { Component } from '@angular/core';
5-
import { AppSettings } from './config/app-settings';
65
import { LfxHeaderService } from './shared/services/lfx-header.service';
7-
import { EnvConfig } from './config/cla-env-utils';
86
import { environment } from 'src/environments/environment';
97

108
@Component({
@@ -26,7 +24,6 @@ export class AppComponent {
2624
ngOnInit() {
2725
this.mountHeader();
2826
this.hasExpanded = true;
29-
this.mountFooter();
3027
}
3128

3229
private mountHeader(): void {
@@ -35,10 +32,4 @@ export class AppComponent {
3532
script.setAttribute('async', 'true');
3633
document.head.appendChild(script);
3734
}
38-
39-
private mountFooter(): void {
40-
const script = document.createElement('script');
41-
script.setAttribute('src', EnvConfig.default[AppSettings.LFX_FOOTER]);
42-
document.head.appendChild(script);
43-
}
4435
}

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { enableProdMode } from '@angular/core';
55
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
6-
6+
import '@linuxfoundation/lfx-ui-core';
77
import { AppModule } from './app/app.module';
88
import { environment } from './environments/environment';
99

yarn.lock

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,11 @@
14421442
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b"
14431443
integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==
14441444

1445+
"@linuxfoundation/lfx-ui-core@^0.0.12":
1446+
version "0.0.12"
1447+
resolved "https://registry.yarnpkg.com/@linuxfoundation/lfx-ui-core/-/lfx-ui-core-0.0.12.tgz#69b89fb82bc3ddc2343f140a87c5c43bae230801"
1448+
integrity sha512-yOGk9URri2/Ojp611cCloORO0PuMdjJD8Og6emhLV9+dMvArweTRzLTTOsTAJp7Y1ZtzZA81xMG24nwu/0fyag==
1449+
14451450
"@ng-bootstrap/ng-bootstrap@^6.1.0":
14461451
version "6.2.0"
14471452
resolved "https://registry.yarnpkg.com/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-6.2.0.tgz#0506d612ca6002bd8fa398d006fa2641013e11d4"
@@ -2502,10 +2507,10 @@ available-typed-arrays@^1.0.5:
25022507
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
25032508
integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==
25042509

2505-
aws-sdk@2.1363.0:
2506-
version "2.1363.0"
2507-
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1363.0.tgz#30c3b7fe999ee2ba1103a533ea27e1b0f5708e1f"
2508-
integrity sha512-M2MZZXehgi/EMQv5GlzRkn3TlhoOYHg2cYdSAAqhjv67WaEG50MjaQy5vRvfN1i8XvB24aJFJ5pCrx69TaCaIg==
2510+
aws-sdk@2.1558.0:
2511+
version "2.1558.0"
2512+
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1558.0.tgz#e62f58a1ef3886a57b9e524b65541ad6efad0a30"
2513+
integrity sha512-lxaPHlLg5EfVK5yg2dAJ1k1BJgxUoTODYk8yMPFAjMwNIN302b8D8XYNucstm7urgiykW3zEtRDeNaX9oc6RQA==
25092514
dependencies:
25102515
buffer "4.9.2"
25112516
events "1.1.1"
@@ -2516,7 +2521,7 @@ [email protected]:
25162521
url "0.10.3"
25172522
util "^0.12.4"
25182523
uuid "8.0.0"
2519-
xml2js "0.5.0"
2524+
xml2js "0.6.2"
25202525

25212526
aws-sdk@^2.1404.0:
25222527
version "2.1407.0"
@@ -11224,7 +11229,7 @@ ws@^6.2.1, ws@^7.5.3, ws@^7.5.5, ws@^7.5.9, ws@~8.11.0:
1122411229
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591"
1122511230
integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==
1122611231

11227-
[email protected], xml2js@^0.4.17, xml2js@^0.5.0:
11232+
[email protected], xml2js@0.6.2, xml2js@^0.4.17, xml2js@^0.5.0:
1122811233
version "0.5.0"
1122911234
resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.5.0.tgz#d9440631fbb2ed800203fad106f2724f62c493b7"
1123011235
integrity sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==

0 commit comments

Comments
 (0)