-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2340 from webb-tools/develop
- Loading branch information
Showing
361 changed files
with
12,809 additions
and
11,440 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -40,7 +40,7 @@ jobs: | |
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -58,7 +58,7 @@ jobs: | |
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
- name: Link Checker | ||
uses: lycheeverse/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ jobs: | |
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout repository | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].6 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].6 | ||
with: | ||
persist-credentials: false | ||
- name: Install and Build 🔧 | ||
|
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
#Check out | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
with: | ||
fetch-depth: 100 | ||
|
||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
# Job steps | ||
steps: | ||
- uses: actions/[email protected].4 | ||
- uses: actions/[email protected].6 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install dependencies | ||
|
Empty file.
Empty file.
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 |
---|---|---|
|
@@ -14,6 +14,36 @@ | |
<br /> | ||
</p> | ||
|
||
## Run the Hubble Stats | ||
## Run Hubble Stats | ||
|
||
TBD | ||
Once the development environment is set up, you may proceed to install the required dependencies and run the dapp locally. | ||
|
||
1. Clone this repo | ||
|
||
```bash | ||
git clone [email protected]:webb-tools/webb-dapp.git | ||
``` | ||
|
||
2. Install dependencies by `yarn` | ||
|
||
```bash | ||
yarn install | ||
``` | ||
|
||
3. Start the dApp by the following command: | ||
|
||
```bash | ||
yarn nx serve hubble-stats | ||
``` | ||
|
||
Visit `http://localhost:4200/` to see the Hubble Stats app! | ||
|
||
Happy hacking! | ||
|
||
<h2 id="help"> Need help? </h2> | ||
|
||
If you need help or you want to additional information please: | ||
|
||
- Refer to the [Webb Official Documentation](https://docs.webb.tools/). | ||
- If you have feedback on how to improve the Webb Dapp interface or you have a specific question? Check out the [Webb Dapp Feedback Discussion](https://github.com/webb-tools/feedback/discussions/categories/webb-dapp-feedback). | ||
- If you found a bug please [open an issue](https://github.com/webb-tools/webb-dapp/issues/new/choose) or [join our Discord](https://discord.gg/jUDeFpggrR) server to report it. |
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 |
---|---|---|
@@ -1,19 +1,49 @@ | ||
<div align="center"> | ||
<a href="https://www.webb.tools/"> | ||
|
||
![Webb Logo](../../.github/assets/webb_banner_light.png#gh-light-mode-only) | ||
![Webb Logo](../../.github/assets/webb_banner_dark.png#gh-dark-mode-only) | ||
![Webb Logo](../../.github/assets/tangle-banner.png) | ||
</a> | ||
|
||
</div> | ||
|
||
# Tangle dApp - EVM Staking UI | ||
# Tangle dApp | ||
|
||
<p align="left"> | ||
<strong>EVM Staking UI</strong> | ||
<strong>An interface for nominating validators on the Tangle network, managing account, bridging TNT, and more.</strong> | ||
<br /> | ||
</p> | ||
|
||
## Run the Tangle dApp | ||
## Run Tangle dApp | ||
|
||
TBD | ||
Once the development environment is set up, you may proceed to install the required dependencies and run the dapp locally. | ||
|
||
1. Clone this repo | ||
|
||
```bash | ||
git clone [email protected]:webb-tools/webb-dapp.git | ||
``` | ||
|
||
2. Install dependencies by `yarn` | ||
|
||
```bash | ||
yarn install | ||
``` | ||
⚠️ **REQUIRED:** Node.js version >= v18.19.0 | ||
|
||
3. Start the dApp by the following command: | ||
|
||
```bash | ||
yarn nx serve tangle-dapp | ||
``` | ||
|
||
Visit `http://localhost:4200/` to see the Tangle dApp! | ||
|
||
Happy hacking! | ||
|
||
<h2 id="help"> Need help? </h2> | ||
|
||
If you need help or you want to additional information please: | ||
|
||
- Refer to the [Tangle Network Official Documentation](https://docs.tangle.tools/). | ||
- If you have feedback on how to improve the Webb Dapp interface or you have a specific question? Check out the [Webb Dapp Feedback Discussion](https://github.com/webb-tools/feedback/discussions/categories/webb-dapp-feedback). | ||
- If you found a bug please [open an issue](https://github.com/webb-tools/webb-dapp/issues/new/choose) or [join our Discord](https://discord.gg/jUDeFpggrR) server to report it. |
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,74 @@ | ||
'use client'; | ||
|
||
import { DropdownMenuTrigger as DropdownTrigger } from '@radix-ui/react-dropdown-menu'; | ||
import { TokenIcon } from '@webb-tools/icons/TokenIcon'; | ||
import ChainOrTokenButton from '@webb-tools/webb-ui-components/components/buttons/ChainOrTokenButton'; | ||
import { | ||
Dropdown, | ||
DropdownBody, | ||
} from '@webb-tools/webb-ui-components/components/Dropdown'; | ||
import { MenuItem } from '@webb-tools/webb-ui-components/components/MenuItem'; | ||
import { ScrollArea } from '@webb-tools/webb-ui-components/components/ScrollArea'; | ||
import { FC } from 'react'; | ||
|
||
import AmountInput from '../../components/AmountInput/AmountInput'; | ||
import { BRIDGE_SUPPORTED_TOKENS } from '../../constants/bridge'; | ||
import { useBridge } from '../../context/BridgeContext'; | ||
|
||
const AmountAndTokenInput: FC = () => { | ||
const { | ||
amount, | ||
setAmount, | ||
selectedTokenId, | ||
setSelectedTokenId, | ||
tokenIdOptions, | ||
} = useBridge(); | ||
|
||
return ( | ||
<div className="flex items-center gap-2 bg-mono-20 dark:bg-mono-160 rounded-lg pr-4"> | ||
<AmountInput | ||
id="bridge-amount-input" | ||
title="Amount" | ||
amount={amount} | ||
setAmount={setAmount} | ||
baseInputOverrides={{ | ||
isFullWidth: true, | ||
}} | ||
placeholder="" | ||
wrapperClassName="!pr-0" | ||
/> | ||
<Dropdown> | ||
<DropdownTrigger asChild> | ||
<ChainOrTokenButton | ||
value={BRIDGE_SUPPORTED_TOKENS[selectedTokenId].symbol} | ||
status="success" | ||
className="w-[130px] bg-mono-0 dark:bg-mono-140 border-0 px-3" | ||
iconType="token" | ||
/> | ||
</DropdownTrigger> | ||
<DropdownBody className="border-0 w-[119px] min-w-fit mr-[11px]"> | ||
<ScrollArea className="max-h-[300px] w-[130px]"> | ||
<ul> | ||
{tokenIdOptions.map((tokenId) => { | ||
const token = BRIDGE_SUPPORTED_TOKENS[tokenId]; | ||
return ( | ||
<li key={tokenId}> | ||
<MenuItem | ||
startIcon={<TokenIcon size="lg" name={token.symbol} />} | ||
onSelect={() => setSelectedTokenId(tokenId)} | ||
className="px-3 normal-case" | ||
> | ||
{token.symbol} | ||
</MenuItem> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
</ScrollArea> | ||
</DropdownBody> | ||
</Dropdown> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AmountAndTokenInput; |
Oops, something went wrong.