Skip to content

Commit

Permalink
chore: add link to new web app
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Sep 21, 2023
1 parent 1b6db2b commit 46d08b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"cSpell.words": ["fluentui", "griffel", "logcat", "scrcpy", "tcpip"]
}
9 changes: 7 additions & 2 deletions packages/demo/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
INavButtonProps,
IconButton,
Nav,
PrimaryButton,
Stack,
StackItem,
} from "@fluentui/react";
Expand All @@ -13,7 +14,7 @@ import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import { useCallback, useEffect, useState } from "react";
import { Connect, ErrorDialogProvider } from "../components";
import { Connect, ErrorDialogProvider, ExternalLink } from "../components";
import "../styles/globals.css";
import { Icons } from "../utils";
import { register as registerIcons } from "../utils/icons";
Expand Down Expand Up @@ -168,6 +169,10 @@ function App({ Component, pageProps }: AppProps) {
<div className={classes.title}>Tango</div>
</StackItem>

<ExternalLink href="https://app.tangoapp.dev">
<PrimaryButton>Try our new app</PrimaryButton>
</ExternalLink>

<IconButton
iconProps={{ iconName: "PersonFeedback" }}
title="Feedback"
Expand All @@ -193,7 +198,7 @@ function App({ Component, pageProps }: AppProps) {
<StackItem
className={mergeClasses(
classes.leftColumn,
!leftPanelVisible && classes.hidden
!leftPanelVisible && classes.hidden,
)}
>
<Connect />
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Accessing USB devices (especially your phone) directly from a web page can be **
However, I'm pretty confident about this demo, and here is a few reasons:

1. Unlike native apps, web apps can't access your devices silently. In addition to the connection verification popup that comes with ADB, browsers ask users for permission and web apps can only access the device you choose.
2. All source code of this project is open sourced on <ExternalLink href="https://github.com/yume-chan/ya-webadb/">GitHub</ExternalLink>. You can review it yourself (or find someone you trust and knows coding to review it).
3. This site is built and deployed by <ExternalLink href="https://github.com/yume-chan/ya-webadb/blob/main/.github/workflows/deploy.yml" spaceAfter>GitHub Actions</ExternalLink> to ensure that what you see is exactly the same as the source code.
2. All source code of this project is open sourced on <ExternalLink href="https://github.com/yume-chan/tango-server">GitHub</ExternalLink>. You can review it yourself (or find someone you trust and knows coding to review it).
3. This site is built and deployed by <ExternalLink href="https://github.com/tango-adb/old-demo/blob/main/.github/workflows/deploy.yml" spaceAfter>GitHub Actions</ExternalLink> to ensure that what you see is exactly the same as the source code.

## Compatibility

Expand Down

0 comments on commit 46d08b6

Please sign in to comment.