-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add prettier plugin (#43) Co-authored-by: Ciaran Schutte <[email protected]> * Feat/8 Logout (#39) * move global into src, instead of app folder * add some components * configure uikit, emotion and typings * uikit happy * Basic Env Vars * Populating Basic Configs * cleanup * add theme provider * emotion imports * emotion uikit style tpying * First Working Test * Working Redirect w/ URL Join * remove DataCallout uikit re-export wrapper * Basic Reusable Component * Remove .env * Update .gitignore * Remove Duplicate * Stage for UI Kit * Loading Test w/ UI Kit * NavBar Setup * Fix Landing Page * Remove Next logo * Skeleton Cookies * Basic Logout * AuthContext Setup * AuthContext Simplest State * Generic Vars * Major Update w/ Logout + UI Kit * Testing Context + State * Add Copyrights * Update TypeScript, Imports, File Structure * Login Button Component * Use AuthContextValue * Use GoogleLogin * Use URL Join * Local .env updates * Remove Boilerplate * Shuffle Files Around * Refactor w/o Context * Remove Logging * Fix env settings * Add React Query + Mock Login State * Add Copyright * Current Working State * Fix User Badge * Temporary Login Solution * Clean Up State Changes * Remove Redirect * Cleaned Up User Badge * Basic Pathname Solution * Cleaned Up Login Flow * Improved Layout + Header Handling * Remove vscode from gitignore * Fix /public import * Update page names * Refactor Auth / Layout * General Clean Up * Stub Middleware * Tidying * Middleware + Auth Route Setup - Infinite Loop * Current State - Testing * Children prop cleanup * Header UI Updates * Current Working State * Clean Up Use of Stored Token * Remove extra storedToken * First Lint Changes * Hook + Middleware Cleanup * Better fallback, LoggingIn dependency * Move Middleware to Feature Branch * Unnecesary changes * Remove Server side token management * First Setup * Log Out Update * Updated Var name + Conditional * Improve Loading Var Names + Reusable Logout * Use Context logOut * Remove Dummy Logout Button * 1st Header PR Feedback * Remove Unused Imports * Fix Build Issues * ProfileMenu Component * Reusable Login --------- Co-authored-by: Ciaran Schutte <[email protected]> * Feat/#14 programs list page (#47) * add submission layout * add some components * add All Programs layout * skeleton * cleanup + add linking for programs * remove sidemenu logic for PR * remove program list and search func for PR * fix type error * mmove types around * fix build * clean import --------- Co-authored-by: Ciaran Schutte <[email protected]> * RC 0.4.0 --------- Co-authored-by: Ciarán Schütte <[email protected]> Co-authored-by: Ciaran Schutte <[email protected]>
- Loading branch information
1 parent
ae201a4
commit aea345c
Showing
20 changed files
with
629 additions
and
61 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,62 @@ | ||
/* | ||
* Copyright (c) 2023 The Ontario Institute for Cancer Research. All rights reserved | ||
* | ||
* This program and the accompanying materials are made available under the terms of | ||
* the GNU Affero General Public License v3.0. You should have received a copy of the | ||
* GNU Affero General Public License along with this program. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT | ||
* SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | ||
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
'use client'; | ||
|
||
import { css } from '@/lib/emotion'; | ||
import { DropdownMenu, FocusWrapper, NavBarElement, NavElement, UserBadge } from '@icgc-argo/uikit'; | ||
import { Theme } from '@icgc-argo/uikit/ThemeProvider'; | ||
|
||
const ProfileMenu = ({ | ||
isDropdownOpen, | ||
onProfilePage, | ||
onClick, | ||
profileNavDetails, | ||
theme, | ||
}: { | ||
isDropdownOpen: boolean; | ||
onProfilePage: boolean; | ||
onClick: () => void; | ||
profileNavDetails: NavElement[]; | ||
theme: Theme; | ||
}) => ( | ||
<FocusWrapper onClick={onClick}> | ||
{isDropdownOpen && ( | ||
<DropdownMenu> | ||
{profileNavDetails.map((element, idx) => ( | ||
<NavBarElement key={`profileNavDetail_${idx}`} {...element} isDropdown={true} /> | ||
))} | ||
</DropdownMenu> | ||
)} | ||
<UserBadge | ||
showGreeting={true} | ||
firstName={'Test'} | ||
lastName={'User'} | ||
title={'DCC Member'} | ||
className={onProfilePage ? 'active' : ''} | ||
css={css` | ||
color: ${onProfilePage ? theme.colors.accent1 : theme.colors.white}; | ||
&:hover { | ||
color: ${theme.colors.accent1}; | ||
} | ||
`} | ||
/> | ||
</FocusWrapper> | ||
); | ||
|
||
export default ProfileMenu; |
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
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,24 @@ | ||
/* | ||
* Copyright (c) 2023 The Ontario Institute for Cancer Research. All rights reserved | ||
* | ||
* This program and the accompanying materials are made available under the terms of | ||
* the GNU Affero General Public License v3.0. You should have received a copy of the | ||
* GNU Affero General Public License along with this program. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT | ||
* SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | ||
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
'use client'; | ||
|
||
export default function Program() { | ||
return <div>Program</div>; | ||
} |
Oops, something went wrong.