Skip to content

Commit 43b429f

Browse files
Merge branch 'master' into dependabot/npm_and_yarn/webpack-5.107.2
2 parents 3822f88 + 08752ab commit 43b429f

15 files changed

Lines changed: 28 additions & 33 deletions

File tree

.docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ services:
55
ports:
66
- 127.0.0.1:8080:3000
77
restart: always
8-
image: anhvlttfs/tnw-web:latest
8+
image: theflightsims/tnw-web:latest

.github/workflows/docker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
username: ${{ secrets.DOCKERHUB_USERNAME }}
3939
password: ${{ secrets.DOCKERHUB_TOKEN }}
40+
if: github.ref == 'refs/heads/master'
4041

4142
- name: Build and push multi-arch image (On-push to Docker)
4243
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
@@ -46,5 +47,5 @@ jobs:
4647
platforms: linux/amd64
4748
push: true
4849
tags: |
49-
anhvlttfs/tnw-web:latest
50+
theflightsims/tnw-web:latest
5051
if: github.ref == 'refs/heads/master'

src/app/components/Header/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function Header(props) {
1414
<>
1515
<CarbonHeader aria-label="Website Header">
1616
<SkipToContent />
17-
<HeaderName href="#" prefix={brandName}>| {productUsage}</HeaderName>
17+
<HeaderName href="/" prefix={brandName}>| {productUsage}</HeaderName>
1818
<HeaderGlobalBar>
1919
{headerCTAcontents}
2020
</HeaderGlobalBar>

src/app/components/LoginDetail/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Modal, TextInput, Button } from "@carbon/react";
55
import { useState } from "react";
66
import { useMsal } from '@azure/msal-react';
77

8-
import { loginRequest } from '@/authConfig';
8+
import { loginRequest, externalDomain } from '@/config/authConfig';
99

1010
export function LoginDetail(props) {
1111
// Properties declaration
@@ -26,6 +26,7 @@ export function LoginDetail(props) {
2626
}
2727

2828
const { instance, accounts } = useMsal();
29+
2930
const activeAccount = instance.getActiveAccount() || ((accounts.length > 0 && accounts[0] != null) ? accounts[0] : null);
3031

3132
const NotLoggedIn = () => {
@@ -72,8 +73,8 @@ export function LoginDetail(props) {
7273
onRequestClose={closeModal}
7374
onRequestSubmit={handleLogoutRedirect}>
7475
<TextInput labelText="Name" defaultValue={activeAccount?.name} readOnly={true} />
75-
<TextInput labelText="User Principal Name" defaultValue={activeAccount?.username} readOnly={true} />
76-
<TextInput labelText="Tenant ID" defaultValue={activeAccount?.tenantId} readOnly={true} />
76+
<TextInput labelText="User Principal Name" defaultValue={activeAccount?.localAccountId + "@" + externalDomain} readOnly={true} />
77+
<TextInput labelText="Tenant Domain" defaultValue={activeAccount?.environment} readOnly={true} />
7778
<TextInput labelText="IdP" defaultValue={idpFriendlyName} readOnly={true} />
7879
</Modal>
7980
</>

src/app/MsalProviderWrapper.js renamed to src/app/components/MsalProviderWrapper/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React from 'react';
44
import { MsalProvider } from '@azure/msal-react';
55
import { PublicClientApplication, EventType } from '@azure/msal-browser';
6-
import { msalConfig } from '@/authConfig';
6+
import { msalConfig } from '@/config/authConfig';
77

88
// MSAL should be instantiated once to avoid re-instantiation on re-renders
99
const msalInstance = new PublicClientApplication(msalConfig);
@@ -16,7 +16,7 @@ msalInstance.addEventCallback((event) => {
1616
}
1717
});
1818

19-
export default function MsalProviderWrapper({ children }) {
19+
export function MsalProviderWrapper({ children }) {
2020
return (
2121
<MsalProvider instance={msalInstance}>
2222
{children}

src/app/components/SingleCardWithBg/index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.singlenewcomer-style {
2-
2+
backdrop-filter: blur(100px);
3+
-webkit-backdrop-filter: blur(100px);
34
background-position: center;
45
background-size: cover;
56
background-repeat: no-repeat;

src/app/components/SingleCardWithImage/index.js renamed to src/app/components/SingleCardWithLargeImage/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { FlexGrid, Row, Column } from '@carbon/react';
22

33
import "./index.scss";
44

5-
export function SingleCardWithImage(props) {
5+
export function SingleCardWithLargeImage(props) {
66
// Properties declaration
77
let rootClassName = props.rootClassName || "";
88
let singleCardContent = props.children || (<></>);
File renamed without changes.

src/app/components/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export * from "./CardGroup";
33
export * from "./Footer";
44
export * from "./Header";
55
export * from "./LoginDetail";
6+
export * from "./MsalProviderWrapper";
67
export * from "./SingleCardNoImage";
78
export * from "./SingleCardWithBg";
8-
export * from "./SingleCardWithImage";
9+
export * from "./SingleCardWithLargeImage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
export const externalDomain = "tnwb2c.onmicrosoft.com"
3+
14
/**
25
* Configuration object to be passed to MSAL instance on creation.
36
* For a full list of MSAL.js configuration parameters, visit:

0 commit comments

Comments
 (0)