-
Notifications
You must be signed in to change notification settings - Fork 0
[ERP-2110 & ERP-2111] Replaced all remaining Alert and Text Components #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { Alert, AlertIcon, Box, Code, Link, Text } from "@chakra-ui/react"; | ||
import { Box, Code, Flex } from "@chakra-ui/react"; | ||
|
||
import TextWithLink from "../../../navigation/TextWithLink"; | ||
import CopyBox from "../../../output/CopyBox"; | ||
import AlertHelper from "../Config/AlertHelper"; | ||
import InstructionHeading from "./components/InstructionHeading"; | ||
import InstructionText from "./components/InstructionText"; | ||
import { OperatingSystemTabs } from "./components/OperatingSystemTabs"; | ||
|
@@ -9,48 +11,66 @@ function LyraInstructions({ username }) { | |
return ( | ||
<> | ||
<InstructionHeading>Connect to Lyra</InstructionHeading> | ||
<Alert status="info"> | ||
<AlertIcon /> | ||
If you are off-campus, you will first need to connect to the QUT network | ||
using the VPN. | ||
</Alert> | ||
<AlertHelper | ||
alertType="info" | ||
alertMsg="If you are off-campus, you will first need to connect to the QUT network using the VPN." | ||
alertDismissible={false} | ||
/> | ||
<InstructionText> | ||
See the instructions{" "} | ||
<Link | ||
href="https://qutvirtual4.qut.edu.au/group/research-students/conducting-research/specialty-research-facilities/advanced-research-computing-storage/supercomputing/getting-started-with-hpc" | ||
isExternal | ||
color="blue.500" | ||
> | ||
here | ||
</Link>{" "} | ||
for more information about how to use Lyra. | ||
<TextWithLink | ||
textBeforeLink={"See the instructions "} | ||
link={{ | ||
href: "https://qutvirtual4.qut.edu.au/group/research-students/conducting-research/specialty-research-facilities/advanced-research-computing-storage/supercomputing/getting-started-with-hpc", | ||
text: "here", | ||
color: "blue.500", | ||
isExternal: true, | ||
}} | ||
textAfterLink={" for more information about how to use Lyra."} | ||
/> | ||
</InstructionText> | ||
<OperatingSystemTabs> | ||
<Box> | ||
<Alert status="info"> | ||
<AlertIcon /> | ||
<Text mb="0"> | ||
You may need to enable the{" "} | ||
<Link | ||
href="https://learn.microsoft.com/en-us/windows/terminal/tutorials/ssh" | ||
isExternal | ||
color="blue.500" | ||
> | ||
ssh feature | ||
</Link>{" "} | ||
in Windows. | ||
</Text> | ||
</Alert> | ||
<AlertHelper | ||
alertType={"info"} | ||
// alertMsg={enableSSHText} | ||
alertDismissible={false} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||
> | ||
<TextWithLink | ||
textBeforeLink={"You may need to enable the "} | ||
link={{ | ||
href: "https://learn.microsoft.com/en-us/windows/terminal/tutorials/ssh", | ||
text: "ssh feature", | ||
color: "blue.500", | ||
isExternal: true, | ||
}} | ||
hasExternalIcon={false} | ||
textAfterLink={" in Windows."} | ||
/> | ||
</AlertHelper> | ||
<InstructionText> | ||
In{" "} | ||
<Link href="https://aka.ms/terminal" isExternal color="blue.500"> | ||
Windows Terminal | ||
</Link> | ||
, Powershell,{" "} | ||
<Link href="https://www.putty.org/" isExternal color="blue.500"> | ||
PuTTY | ||
</Link> | ||
, or cmd.exe, run the following command to connect to Lyra: | ||
<Flex alignItems={"center"}> | ||
<TextWithLink | ||
textBeforeLink={"In "} | ||
link={{ | ||
href: "https://aka.ms/terminal", | ||
text: "Windows Terminal", | ||
color: "blue.500", | ||
isExternal: true, | ||
}} | ||
/> | ||
<TextWithLink | ||
textBeforeLink={", Powershell, "} | ||
link={{ | ||
href: "https://www.putty.org/", | ||
text: "PuTTY", | ||
color: "blue.500", | ||
isExternal: true, | ||
}} | ||
textAfterLink={ | ||
", or cmd.exe, run the following command to connect to Lyra:" | ||
} | ||
/> | ||
</Flex> | ||
</InstructionText> | ||
</Box> | ||
<Box> | ||
|
@@ -83,15 +103,16 @@ function JupyterHubInstructions() { | |
<> | ||
<InstructionHeading>Connect to JupyterHub</InstructionHeading> | ||
<InstructionText> | ||
Visit{" "} | ||
<Link | ||
href="https://jupyterhub.eres.qut.edu.au" | ||
isExternal | ||
color="blue.500" | ||
> | ||
https://jupyterhub.eres.qut.edu.au | ||
</Link>{" "} | ||
and log in with your QUT username and password. | ||
<TextWithLink | ||
textBeforeLink={"Visit "} | ||
link={{ | ||
href: "https://jupyterhub.eres.qut.edu.au", | ||
text: "https://jupyterhub.eres.qut.edu.au", | ||
color: "blue.500", | ||
isExternal: true, | ||
}} | ||
textAfterLink={" and log in with your QUT username and password."} | ||
/> | ||
</InstructionText> | ||
</> | ||
); | ||
|
@@ -102,30 +123,42 @@ function RvdiInstructions() { | |
<> | ||
<InstructionHeading>Connect to rVDI</InstructionHeading> | ||
<InstructionText> | ||
See the instructions{" "} | ||
<Link | ||
href="https://qutvirtual4.qut.edu.au/group/research-students/conducting-research/specialty-research-facilities/advanced-research-computing-storage/virtual-workstations" | ||
isExternal | ||
color="blue.500" | ||
> | ||
here | ||
</Link>{" "} | ||
for more information. | ||
<TextWithLink | ||
textBeforeLink={"See the instructions "} | ||
link={{ | ||
href: "https://qutvirtual4.qut.edu.au/group/research-students/conducting-research/specialty-research-facilities/advanced-research-computing-storage/virtual-workstations", | ||
text: "here", | ||
color: "blue.500", | ||
isExternal: true, | ||
}} | ||
textAfterLink={" for more information."} | ||
/> | ||
</InstructionText> | ||
<InstructionText> | ||
If you have not already, download and install the VMware Horizon client | ||
from{" "} | ||
<Link href="https://rvdi.qut.edu.au" isExternal color="blue.500"> | ||
https://rvdi.qut.edu.au | ||
</Link> | ||
. | ||
<TextWithLink | ||
textBeforeLink={ | ||
"If you have not already, download and install the VMware Horizon client from " | ||
} | ||
link={{ | ||
href: "https://rvdi.qut.edu.au", | ||
text: "https://rvdi.qut.edu.au", | ||
color: "blue.500", | ||
isExternal: true, | ||
}} | ||
textAfterLink={"."} | ||
/> | ||
</InstructionText> | ||
<InstructionText> | ||
In the VMware Horizon client, connect to{" "} | ||
<Link href="https://rvdi.qut.edu.au" isExternal color="blue.500"> | ||
rvdi.qut.edu.au | ||
</Link>{" "} | ||
and log in with your QUT username and password. | ||
<TextWithLink | ||
textBeforeLink={"In the VMware Horizon client, connect to "} | ||
link={{ | ||
href: "https://rvdi.qut.edu.au", | ||
text: "https://rvdi.qut.edu.au", | ||
color: "blue.500", | ||
isExternal: true, | ||
}} | ||
textAfterLink={" and log in with your QUT username and password."} | ||
/> | ||
</InstructionText> | ||
</> | ||
); | ||
|
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really a fan of having two different props to set the same thing, as you have to know internal details of the component in order to know which prop has precedent. Is there a reason to not use one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually we can just make one props to support multiple types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed