Skip to content

Commit

Permalink
Merge branch 'main' into feat/browser-currency-detection
Browse files Browse the repository at this point in the history
  • Loading branch information
joeljkrb committed Feb 24, 2025
2 parents d57027c + 73255da commit 0c88594
Show file tree
Hide file tree
Showing 283 changed files with 6,066 additions and 1,968 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@

<!-- markdown-link-check-enable -->

# Polkadot Staking Dashboard
# Polkadot Cloud Staking

<img width="1479" alt="Screenshot 2024-10-06 at 13 56 44" src="https://github.com/user-attachments/assets/d8edbbae-3cf0-4330-bac3-280e74f5d3cc">

## Contributing Community Assets

### Validator Operators

To showcase a validator operator on staking dashboard, submit a PR to [**`@w3ux/w3ux-library`**](https://github.com/w3ux/w3ux-library/tree/main). The operator will then be available in the **`@w3ux/validator-assets`** NPM package. [Full instructions](https://github.com/w3ux/w3ux-library/tree/main/library/validator-assets).
To showcase your validator operator, submit a PR to [**`@w3ux/w3ux-library`**](https://github.com/w3ux/w3ux-library/tree/main). The operator will then be available in the **`@w3ux/validator-assets`** NPM package. [Full instructions](https://github.com/w3ux/w3ux-library/tree/main/library/validator-assets).

## URL Variable Support

Polkadot Staking Dashboard supports URL variables that can be used to direct users to specific configurations of the app, such as landing on a specific language or on a specific network. Variables are added at the end of the hash portion of URL.
Polkadot Cloud Staking supports URL variables that can be used to direct users to specific configurations of the app, such as landing on a specific language or on a specific network. Variables are added at the end of the hash portion of URL.

The currently supported URL variables are as follows:

- **n**: Controls the default network to connect to upon visiting the dashboard. Supported values are `polkadot`, `kusama` and `westend`.
- **l**: Controls the default to use upon visiting the dashboard. Supported values are `en` and `cn`.
- **a**: Controls the account to connect to upon visiting the dashboard. Ignored if the account is not present in the initial imported accounts.
- **n**: Controls the default network to connect to upon visiting the app. Supported values are `polkadot`, `kusama` and `westend`.
- **l**: Controls the default to use upon visiting the app.
- **a**: Controls the account to connect to upon visiting the app. Ignored if the account is not present in the initial imported accounts.

URL variables take precedence over saved values in local storage, and will overwrite current configurations. URL variables will update (if present) as a user switches configurations in-app, such as changing the network or language.

Expand Down
6 changes: 3 additions & 3 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Contribution Guide

This section aims to familiarise developers to the Polkadot Staking Dashboard [[Deployment](https://staking.polkadot.cloud)].
This section aims to familiarise developers to the Polkadot Cloud Staking [[Deployment](https://staking.polkadot.cloud)].

Reach out to [email protected] for clarification of any content within this document.
Reach out to [email protected] for clarification of any content within this document.

## Submitting Pull Requests

Expand All @@ -25,7 +25,7 @@ If you would like to know more about the Conventional Commits specification, ple

## Releases

[Release Please](https://github.com/googleapis/release-please) is used for automating staking dashboard's changelog and release generation.
[Release Please](https://github.com/googleapis/release-please) is used for automating staking each package's changelog and release generation.

Release Please is a GitHub action maintained by Google that automates CHANGELOG generation, the creation of GitHub releases, and version bumps. [[Gtihub docs](https://github.com/googleapis/release-please), [Action](https://github.com/marketplace/actions/release-please-action)]

Expand Down
6 changes: 3 additions & 3 deletions docs/YARN_MODERN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Using Yarn Modern

Staking dashboard uses Yarn Modern as its package manager. It contains a local binary of the yarn version used, so you don't need to install anything globally.
Yarn Modern is used in this workspace as the chosen package manager. It contains a local binary of the yarn version used, so you don't need to install anything globally.

_If you fetch this repository for the first time, or if the yarn version is updated in the repository, restart or reload your IDE or CLI to make sure it picks up the updated version._

Expand All @@ -20,7 +20,7 @@ Verify the version with `npm --version`. You may need to restart your IDE or CLI

### I cannot switch between Yarn Classic and Yarn Modern on my machine

It should not matter that you have Yarn Classic installed globally, as staking dashboard has a local yarn binary that it uses. If however you _do_ require Yarn Modern on your machine, try the following troubleshooting steps:
It should not matter that you have Yarn Classic installed globally, as a local yarn binary is used within the workspace. If however you _do_ require Yarn Modern on your machine, try the following troubleshooting steps:

#### Check for other yarn config files

Expand All @@ -32,7 +32,7 @@ Run `which yarn` to determine where your system yarn binary is located and verif

#### Verify your system's yarn version

Verify the active yarn version on your machine with `yarn --version`. This should be run outside of the staking dashboard repository as to not pick up the local yarn binary in the project. To be sure the correct version is being displayed, it is safest to do this in the active yarn directory, e.g. the directory from the previous step.
Verify the active yarn version on your machine with `yarn --version`. This should be run outside of this repository as to not pick up the local yarn binary in the project. To be sure the correct version is being displayed, it is safest to do this in the active yarn directory, e.g. the directory from the previous step.

#### Set a new yarn version

Expand Down
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,44 @@
"test": "npm run test --workspaces --if-present"
},
"devDependencies": {
"@eslint/js": "^9.19.0",
"@eslint/js": "^9.20.0",
"@ledgerhq/logs": "^6.12.0",
"@types/chroma-js": "^3.1.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.2.25",
"@types/react-helmet": "^6.1.11",
"@typescript-eslint/parser": "^8.23.0",
"@typescript-eslint/parser": "^8.24.1",
"@vitejs/plugin-react-swc": "^3.7.0",
"@w3ux/types": "^1.0.0",
"eslint": "^9.19.0",
"eslint": "^9.20.1",
"eslint-config-prettier": "^10.0.1",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-import-resolver-typescript": "^3.8.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prefer-arrow-functions": "^3.6.2",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-unused-imports": "^4.1.4",
"globals": "^15.13.0",
"prettier": "^3.4.2",
"globals": "^16.0.0",
"prettier": "^3.5.1",
"prettier-plugin-organize-imports": "^4.1.0",
"sass": "1.77.6",
"typescript": "^5.7.2",
"typescript-eslint": "^8.23.0",
"vite": "^6.0.11"
"typescript-eslint": "^8.24.1",
"vite": "^6.1.0"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@polkadot-api/merkleize-metadata": "^1.1.13",
"@radix-ui/react-tooltip": "^1.1.8",
"@tanstack/react-query": "^5.66.0",
"@tanstack/react-query": "^5.66.9",
"@w3ux/hooks": "^1.4.0",
"@w3ux/react-polkicon": "^2.0.1-alpha.0",
"@w3ux/utils": "^1.2.0",
"bignumber.js": "^9.1.2",
"classnames": "^2.5.1",
"date-fns": "^4.1.0",
"framer-motion": "^12.0.11",
"framer-motion": "^12.4.7",
"i18next": "^24.2.2",
"radix-ui": "^1.1.3",
"react": "^18.3.1",
Expand Down
14 changes: 7 additions & 7 deletions packages/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@
<link rel="manifest" href="/site.webmanifest" />
<meta
name="title"
content="Polkadot Staking Dashboard | Polkadot Staking (DOT)"
content="Polkadot Cloud Staking | Polkadot Staking (DOT)"
/>
<meta
name="description"
content="Polkadot Staking Dashboard is the easiest way to stake DOT, check validator stats, manage your nominations and join nomination pools. Stake on Polkadot (DOT)."
content="Polkadot Cloud Staking is the easiest way to stake DOT, check validator stats, manage your nominations and join nomination pools. Stake on Polkadot (DOT)."
/>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://staking.polkadot.cloud" />
<meta
property="og:title"
content="Polkadot Staking Dashboard | Polkadot Staking (DOT)"
content="Polkadot Cloud Staking | Polkadot Staking (DOT)"
/>
<meta
property="og:description"
content="Polkadot Staking Dashboard is the easiest way to stake DOT, check validator stats, manage your nominations and join nomination pools. Stake on Polkadot (DOT)."
content="Polkadot Cloud Staking is the easiest way to stake DOT, check validator stats, manage your nominations and join nomination pools. Stake on Polkadot (DOT)."
/>
<meta
property="og:image"
Expand All @@ -46,11 +46,11 @@
<meta property="twitter:url" content="https://staking.polkadot.cloud" />
<meta
property="twitter:title"
content="Polkadot Staking Dashboard | Polkadot Staking (DOT)"
content="Polkadot Cloud Staking | Polkadot Staking (DOT)"
/>
<meta
property="twitter:description"
content="Polkadot Staking Dashboard is the easiest way to stake DOT, check validator stats, manage your nominations and join nomination pools. Stake on Polkadot (DOT)."
content="Polkadot Cloud Staking is the easiest way to stake DOT, check validator stats, manage your nominations and join nomination pools. Stake on Polkadot (DOT)."
/>
<meta
property="twitter:image"
Expand All @@ -60,7 +60,7 @@
import { Buffer } from 'buffer'
window.Buffer = Buffer
</script>
<title>Polkadot Staking Dashboard | Polkadot Staking (DOT)</title>
<title>Polkadot Cloud Staking | Polkadot Staking (DOT)</title>
</head>
<body>
<div id="root"></div>
Expand Down
16 changes: 8 additions & 8 deletions packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "1.8.0",
"version": "1.8.1",
"type": "module",
"license": "GPL-3.0-only",
"scripts": {
Expand All @@ -18,17 +18,17 @@
"@fortawesome/free-regular-svg-icons": "^6.7.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@ledgerhq/hw-transport-webhid": "^6.30.0",
"@lottiefiles/dotlottie-react": "^0.12.3",
"@lottiefiles/dotlottie-react": "^0.13.0",
"@polkadot-api/merkleize-metadata": "^1.1.12",
"@polkadot-api/signers-common": "^0.1.5",
"@polkadot-api/substrate-bindings": "^0.11.0",
"@polkadot/util": "^13.3.1",
"@polkadot/util": "^13.4.3",
"@polkawatch/ddp-client": "^2.0.20",
"@w3ux/extension-assets": "^1.0.0",
"@w3ux/factories": "^1.0.0",
"@w3ux/react-connect-kit": "^2.1.1",
"@w3ux/react-odometer": "^1.1.0",
"@w3ux/validator-assets": "^0.3.1",
"@w3ux/validator-assets": "^0.3.2",
"@zondax/ledger-substrate": "^1.0.1",
"assets": "workspace:*",
"buffer": "^6.0.3",
Expand All @@ -37,10 +37,10 @@
"compare-versions": "^6.1.1",
"consts": "workspace:*",
"html5-qrcode": "^2.3.8",
"i18next-browser-languagedetector": "^8.0.2",
"i18next-browser-languagedetector": "^8.0.3",
"locales": "workspace:*",
"plugin-staking-api": "workspace:*",
"polkadot-api": "^1.8.4",
"polkadot-api": "^1.9.1",
"qrcode-generator": "1.4.4",
"rc-slider": "^11.1.6",
"react-chartjs-2": "^5.2.0",
Expand All @@ -57,8 +57,8 @@
"ui-overlay": "workspace:*",
"usehooks-ts": "^3.0.2",
"utils": "workspace:*",
"viem": "^2.22.19",
"wagmi": "^2.14.8",
"viem": "^2.23.2",
"wagmi": "^2.14.11",
"xxhash-wasm": "^1.0.2"
},
"devDependencies": {
Expand Down
Binary file modified packages/app/public/favicons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/app/public/favicons/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/app/public/favicons/favicon.ico
Binary file not shown.
Loading

0 comments on commit 0c88594

Please sign in to comment.