Skip to content

Commit

Permalink
Merge pull request #18 from MozillaReality/update-readme
Browse files Browse the repository at this point in the history
Update references
  • Loading branch information
keianhzo authored May 28, 2024
2 parents 1e751a1 + fce7b1f commit ddf7003
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 32 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,4 @@ You can get the executable version of the tool from the [releases](https://githu
### Running from the source
- Clone this repository
- Install the dependencies: `npm install`
- Run it: `npm run start`

### How to use this tool
- Tool Overview: https://hubs.mozilla.com/labs/downloading-your-data
- Written Docs: https://hubs.mozilla.com/docs/download-data.html
- Youtube Video: TBD
- Run it: `npm run start`
14 changes: 0 additions & 14 deletions src/renderer/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,10 @@ export default function App({ children }: Props): JSX.Element {
setOpen(false);
}, [setOpen]);

const openHelp = useCallback(() => {
window.electronAPI.openInBrowser("https://hubs.mozilla.com/labs/downloading-your-data/");
}, []);

const openVideo = useCallback(() => {
window.electronAPI.openInBrowser("https://youtu.be/vnkgGLkcxuk");
}, []);

const openDocs = useCallback(() => {
window.electronAPI.openInBrowser("https://hubs.mozilla.com/docs/download-data.html");
}, []);

return (
<>
<Grid container padding={4}>
Expand All @@ -75,15 +67,9 @@ export default function App({ children }: Props): JSX.Element {
</Grid>
</Grid>
<Grid item xs={1} textAlign={"end"}>
<IconButton onClick={openHelp}>
<HelpIcon fontSize="large" />
</IconButton>
<IconButton onClick={openVideo}>
<VideoIcon fontSize="large" />
</IconButton>
<IconButton onClick={openDocs}>
<DocumentationIcon fontSize="large" />
</IconButton>
</Grid>

</Grid>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/hooks/useStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function useStorage(): {
localStorage.getItem("lastLogin")
? JSON.parse(localStorage.getItem("lastLogin"))
: {
host: "hubs.mozilla.com",
host: "your.host.com",
port: "",
email: "",
}
Expand Down
14 changes: 3 additions & 11 deletions src/renderer/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ export default function Login(): JSX.Element {
}
};

const handleMail = useCallback(() => {
window.electronAPI.openInBrowser("mailto:[email protected]");
}, []);

const showErrorLog = useCallback(() => {
return running || (result !== null);
}, [running, result]);
Expand All @@ -76,7 +72,7 @@ export default function Login(): JSX.Element {
<Grid item xs={8}>
<TextField
variant="outlined"
placeholder="hubs.mozilla.com"
placeholder="your.host.com"
required={true}
label="Host"
fullWidth
Expand All @@ -88,7 +84,7 @@ export default function Login(): JSX.Element {
/>
</Grid>
<Grid item xs={1} alignSelf={"center"}>
<Tooltip title="The host name of the Hubs instance with your data (ex. hubs.mozilla.com or 12345.us1.myhubs.net). Do not include https or url paths.">
<Tooltip title="The host name of the Hubs instance with your data (ex. https://your.host.com). Do not include https or url paths.">
<HelpIcon sx={{ verticalAlign: "middle", color: "grey" }} />
</Tooltip>
</Grid>
Expand Down Expand Up @@ -173,11 +169,7 @@ export default function Login(): JSX.Element {
>
{running && <>
{`Email sent to ${email}.`}<br /><br />
{`To continue, click on the link in the email using your phone, tablet, or PC. If you are having trouble finding this email, please check your spam or junk folders.`}<br /><br />
{`If you still cannot locate the log-in email, please contact us:`}
{<IconButton onClick={handleMail} size="small">
<MailIcon fontSize="small" sx={{ color: "white" }} />
</IconButton>}
{`To continue, click on the link in the email using your phone, tablet, or PC. If you are having trouble finding this email, please check your spam or junk folders.`}
</>}
{(!running && result === false) && <>
{`An error happened when connecting to the server. Please check your connection settings and try again.`}
Expand Down

0 comments on commit ddf7003

Please sign in to comment.