|
| 1 | +import * as React from "react"; |
| 2 | + |
| 3 | +export enum OS { |
| 4 | + WINDOWS = "Windows", |
| 5 | + MAC = "Mac", |
| 6 | + LINUX = "Linux", |
| 7 | +} |
| 8 | + |
| 9 | +interface Props { |
| 10 | + os: OS | undefined; |
| 11 | +} |
| 12 | + |
| 13 | +/** |
| 14 | + * Componenet for rendering OS specific installation instructions for this app |
| 15 | + */ |
| 16 | +export default function Instructions(props: Props) { |
| 17 | + if (props.os === OS.WINDOWS) { |
| 18 | + return ( |
| 19 | + <ul> |
| 20 | + <li>Click the "Download" button to the left</li> |
| 21 | + <li> |
| 22 | + Move the downloaded executable from your Downloads folder to a more durable |
| 23 | + location. Note that ITO prevents executables from being stored <i>directly</i>{" "} |
| 24 | + on either your Desktop or in your Documents folder. The executable can, however, |
| 25 | + be placed within a folder in either location (e.g.{" "} |
| 26 | + <code>Desktop\\FMS Explorer\\explorer.exe</code>) |
| 27 | + </li> |
| 28 | + <li> |
| 29 | + <strong>Recommendation:</strong> store the executable in someplace like{" "} |
| 30 | + <code>C:\\Users\\someuser\\FMS Explorer\\</code>. Once there, you can |
| 31 | + right-click on the .exe and select "Send to" > "Desktop |
| 32 | + (create shortcut)" to make it more convenient to find |
| 33 | + </li> |
| 34 | + <li> |
| 35 | + <strong>If on Windows 10:</strong> the <i>first</i> time you run the |
| 36 | + application, you'll see a blue pop-up warning that "Windows protected |
| 37 | + your PC." To continue, click "More Info," then press the |
| 38 | + "Run anyway" button |
| 39 | + </li> |
| 40 | + </ul> |
| 41 | + ); |
| 42 | + } |
| 43 | + |
| 44 | + if (props.os === OS.MAC) { |
| 45 | + return ( |
| 46 | + <ul> |
| 47 | + <li>Click the "Download" button to the left</li> |
| 48 | + <li> |
| 49 | + <figure className="figure installation-instr"> |
| 50 | + <img |
| 51 | + className="screenshot" |
| 52 | + src="resources/macos-open-with-diskimagemounter.png" |
| 53 | + /> |
| 54 | + <figcaption className="figure-caption"> |
| 55 | + When prompted by your web browser, select 'Open with |
| 56 | + DiskImageMounter (default) |
| 57 | + </figcaption> |
| 58 | + </figure> |
| 59 | + </li> |
| 60 | + <li> |
| 61 | + <figure className="figure installation-instr"> |
| 62 | + <img |
| 63 | + className="screenshot" |
| 64 | + src="resources/macos-drag-into-applications.png" |
| 65 | + /> |
| 66 | + <figcaption className="figure-caption"> |
| 67 | + Drag and drop the BioFile Finder icon onto the Applications folder icon. |
| 68 | + If prompted to "Keep Both," "Stop," or |
| 69 | + "Replace," choose "Replace." |
| 70 | + </figcaption> |
| 71 | + </figure> |
| 72 | + </li> |
| 73 | + <li>Open Finder, and locate the BioFile Finder in Applications.</li> |
| 74 | + <li> |
| 75 | + Right-click on the BioFile Finder, select &qout;Open."{" "} |
| 76 | + <em>You may need to do this twice in order to get to the next step</em>. |
| 77 | + </li> |
| 78 | + <li> |
| 79 | + <figure className="figure installation-instr"> |
| 80 | + <img className="screenshot" src="resources/macos-open-anyway.png" /> |
| 81 | + <figcaption className="figure-caption"> |
| 82 | + You should be prompted with an alert that reads, "macOS cannot |
| 83 | + verify the developer of 'BioFile Finder'. Are you sure you |
| 84 | + want to open it?" Select "Open." |
| 85 | + </figcaption> |
| 86 | + </figure> |
| 87 | + </li> |
| 88 | + <li> |
| 89 | + <figure className="figure installation-instr"> |
| 90 | + <img |
| 91 | + className="screenshot" |
| 92 | + src="resources/macos-connect-to-fms-storage.png" |
| 93 | + /> |
| 94 | + <figcaption className="figure-caption"> |
| 95 | + (Optional) If you'd like to access any of the files found in the |
| 96 | + BioFile Finder in a third-party application (e.g., opening an image in |
| 97 | + an image viewer), you'll need to mount FMS storage on your |
| 98 | + computer. To do this: <code>Go</code> → <code>Connect to server</code> → |
| 99 | + enter <code>smb://allen/programs</code> → <code>Connect</code>. |
| 100 | + <strong> |
| 101 | + Note! This is only possible when connected to the Allen Institute |
| 102 | + network; you will be unable to do this over VPN. |
| 103 | + </strong> |
| 104 | + </figcaption> |
| 105 | + </figure> |
| 106 | + </li> |
| 107 | + </ul> |
| 108 | + ); |
| 109 | + } |
| 110 | + |
| 111 | + if (props.os === OS.LINUX) { |
| 112 | + return ( |
| 113 | + <ul> |
| 114 | + <li>Click the "Download" button to the left</li> |
| 115 | + <li>Locate the download in file browser</li> |
| 116 | + <li>Right-click the download</li> |
| 117 | + <li>Select the "Properties" dropdown option</li> |
| 118 | + <li>Click the "Permissions" tab</li> |
| 119 | + <li>Ensure "Allow executing file as program" is checked</li> |
| 120 | + <li>Click to open as you would any other application</li> |
| 121 | + </ul> |
| 122 | + ); |
| 123 | + } |
| 124 | + |
| 125 | + return ( |
| 126 | + <p> |
| 127 | + Sorry, we couldn't determine your operating system. Please contact software for |
| 128 | + assistance. |
| 129 | + </p> |
| 130 | + ); |
| 131 | +} |
0 commit comments