-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added header for CMS with user name (#87)
Added a header that utilizes CMS logo and user name. Upgraded CMS design package. closes #62
- Loading branch information
Showing
14 changed files
with
506 additions
and
2,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ services: | |
env_file: | ||
- compose.env | ||
ports: | ||
- 5432:5432 | ||
- 54321:5432 | ||
api: | ||
depends_on: | ||
- postgre | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
ui/src/assets/icons/centers-for-medicare-and-medicaid-services-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Auth state loader for react-router data routes. | ||
* @module router/authLoader | ||
* @see {@link dashboard/Routes} | ||
*/ | ||
|
||
interface RequestOptions { | ||
method: string | ||
headers: Headers | ||
redirect: 'follow' | 'error' | 'manual' | ||
} | ||
|
||
const authLoader = async (): Promise<unknown> => { | ||
const myHeaders = new Headers() | ||
myHeaders.append('Authorization', process.env.AUTH_TOKEN!) | ||
const requestOptions: RequestOptions = { | ||
method: 'GET', | ||
headers: myHeaders, | ||
redirect: 'follow', | ||
} | ||
return fetch('/whoami', requestOptions) | ||
.then((response) => response.text()) | ||
.then((result) => { | ||
return result | ||
}) | ||
.catch((error) => { | ||
return error | ||
}) | ||
} | ||
|
||
export default authLoader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ body { | |
min-height: 100vh; | ||
min-height: --webkit-fill-available; | ||
min-width: 100vw; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.