Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
v1.1.3 (#58)
Browse files Browse the repository at this point in the history
* chore(deps): bump @polkawatch/ddp-client from 2.0.9 to 2.0.10 (polkadot-cloud#1642)

* chore(deps): bump framer-motion from 10.16.4 to 10.16.5 (polkadot-cloud#1643)

* chore(deps): bump react-i18next from 13.4.1 to 13.5.0 (polkadot-cloud#1644)

* chore(main): release 1.2.0 (polkadot-cloud#1592)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore(deps): bump @polkadot-cloud/core from 1.0.46 to 1.0.48 (polkadot-cloud#1645)

* chore(deps-dev): bump @vitejs/plugin-react-swc from 3.4.1 to 3.5.0 (polkadot-cloud#1646)

* chore(deps): bump react-router-dom from 6.18.0 to 6.19.0 (polkadot-cloud#1648)

* chore(deps): bump @polkadot-cloud/react from 0.1.129 to 0.1.130 (polkadot-cloud#1647)

* chore: update cloud URL

* chore(deps-dev): bump vite-plugin-svgr from 4.1.0 to 4.2.0 (polkadot-cloud#1649)

* chore: fix text

* chore(deps-dev): bump gh-pages from 6.0.0 to 6.1.0 (polkadot-cloud#1653)

* chore(deps-dev): bump @typescript-eslint/parser from 6.11.0 to 6.12.0 (polkadot-cloud#1652)

* chore(deps-dev): bump typescript from 5.2.2 to 5.3.2 (polkadot-cloud#1656)

* chore(deps): bump @polkadot/rpc-provider from 10.10.1 to 10.11.1 (polkadot-cloud#1657)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.11.0 to 6.12.0 (polkadot-cloud#1659)

* chore(deps): bump @polkadot/api from 10.10.1 to 10.11.1 (polkadot-cloud#1658)

* chore(deps-dev): bump eslint from 8.53.0 to 8.54.0 (polkadot-cloud#1655)

* chore(deps): bump @polkadot-cloud/react from 0.1.130 to 0.1.134 (polkadot-cloud#1654)

* chore(deps-dev): bump @types/react from 18.2.37 to 18.2.38 (polkadot-cloud#1661)

* chore(deps-dev): bump @types/react-dom from 18.2.15 to 18.2.16 (polkadot-cloud#1664)

* chore(deps-dev): bump @types/react-dom from 18.2.16 to 18.2.17 (polkadot-cloud#1667)

* chore(deps): bump react-router-dom from 6.19.0 to 6.20.0 (polkadot-cloud#1668)

* chore(deps-dev): bump @ledgerhq/logs from 6.11.0 to 6.12.0 (polkadot-cloud#1669)

* chore(deps): bump @ledgerhq/hw-transport-webhid from 6.27.20 to 6.28.0 (polkadot-cloud#1670)

* chore(deps-dev): bump @typescript-eslint/parser from 6.12.0 to 6.13.0 (polkadot-cloud#1675)

* chore(deps-dev): bump @types/react from 18.2.38 to 18.2.39 (polkadot-cloud#1677)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.12.0 to 6.13.0 (polkadot-cloud#1676)

* chore(deps): bump @polkadot/util-crypto from 12.5.1 to 12.6.1 (polkadot-cloud#1663)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @fortawesome/fontawesome-svg-core from 6.4.2 to 6.5.0 (polkadot-cloud#1679)

* chore(deps): bump i18next from 23.7.6 to 23.7.7 (polkadot-cloud#1681)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.13.0 to 6.13.1 (polkadot-cloud#1683)

* chore(deps): bump @fortawesome/free-solid-svg-icons from 6.4.2 to 6.5.0 (polkadot-cloud#1680)

* chore(deps-dev): bump @typescript-eslint/parser from 6.13.0 to 6.13.1 (polkadot-cloud#1684)

* chore(deps): bump @fortawesome/free-regular-svg-icons from 6.4.2 to 6.5.0 (polkadot-cloud#1682)

* chore(deps): bump @fortawesome/free-brands-svg-icons from 6.4.2 to 6.5.0 (polkadot-cloud#1685)

* chore(deps): bump framer-motion from 10.16.5 to 10.16.7 (polkadot-cloud#1688)

* chore(deps): bump @substrate/connect from 0.7.35 to 0.8.0 (polkadot-cloud#1691)

* Add paged rewards support (polkadot-cloud#1678)

* chore(deps): bump rc-slider from 10.4.0 to 10.5.0 (polkadot-cloud#1693)

* chore(deps): bump framer-motion from 10.16.7 to 10.16.9 (polkadot-cloud#1694)

* chore(deps): bump @fortawesome/fontawesome-svg-core from 6.5.0 to 6.5.1 (polkadot-cloud#1697)

* chore(deps): bump framer-motion from 10.16.9 to 10.16.12 (polkadot-cloud#1699)

* chore(deps): bump react-router-dom from 6.20.0 to 6.20.1 (polkadot-cloud#1700)

* chore(deps): bump @fortawesome/free-regular-svg-icons from 6.5.0 to 6.5.1 (polkadot-cloud#1698)

* chore(deps): bump @fortawesome/free-brands-svg-icons from 6.5.0 to 6.5.1 (polkadot-cloud#1701)

* chore(deps): bump @fortawesome/free-solid-svg-icons from 6.5.0 to 6.5.1 (polkadot-cloud#1696)

* chore: fix polkadot cloud url

* chore(deps-dev): bump eslint from 8.54.0 to 8.55.0 (polkadot-cloud#1705)

* chore(deps): bump @polkadot-cloud/core from 1.0.48 to 1.0.49 (polkadot-cloud#1711)

* chore(deps-dev): bump @typescript-eslint/parser from 6.13.1 to 6.13.2 (polkadot-cloud#1710)

* chore(deps-dev): bump @types/react from 18.2.39 to 18.2.42 (polkadot-cloud#1713)

* chore(deps-dev): bump eslint-config-prettier from 9.0.0 to 9.1.0 (polkadot-cloud#1708)

* chore(deps): bump framer-motion from 10.16.12 to 10.16.14 (polkadot-cloud#1714)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.13.1 to 6.13.2 (polkadot-cloud#1715)

* chore(deps-dev): bump @types/react-helmet from 6.1.9 to 6.1.11 (polkadot-cloud#1717)

* chore(deps-dev): bump typescript from 5.3.2 to 5.3.3 (polkadot-cloud#1719)

* chore(deps): bump @substrate/connect from 0.8.0 to 0.8.2 (polkadot-cloud#1720)

* chore(deps): bump i18next from 23.7.7 to 23.7.8 (polkadot-cloud#1721)

* chore(deps-dev): bump vite-tsconfig-paths from 4.2.1 to 4.2.2 (polkadot-cloud#1723)

* chore(deps): bump framer-motion from 10.16.14 to 10.16.15 (polkadot-cloud#1724)

* chore(deps): bump @substrate/connect from 0.8.2 to 0.8.3 (polkadot-cloud#1725)

* chore(deps): bump framer-motion from 10.16.15 to 10.16.16 (polkadot-cloud#1728)

* chore(deps): bump @polkadot-cloud/core from 1.0.49 to 1.0.50 (polkadot-cloud#1729)

* chore: release please v4

* chore: chart.js 4.4.1 fixes

* chore: dep bumps

* chore(deps): bump actions/stale from 8 to 9 (polkadot-cloud#1726)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ross Bulat <[email protected]>

* chore: fix file name

* bump polkadot daps

* chore: trigger publish

* fix: incorrect use of ?? operand

* chore: ?? to ||

* fix(worker): add worker format

* chore: bump react

* chore: bump react

* chore: bump react

* chore: bump cloud

* chore(deps-dev): bump @typescript-eslint/parser from 6.13.2 to 6.14.0 (polkadot-cloud#1735)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.13.2 to 6.14.0 (polkadot-cloud#1736)

* chore(deps): bump @ledgerhq/hw-transport-webhid from 6.28.0 to 6.28.1 (polkadot-cloud#1737)

* chore(deps-dev): bump vite from 5.0.7 to 5.0.8 (polkadot-cloud#1738)

* chore(deps): bump i18next from 23.7.8 to 23.7.9 (polkadot-cloud#1739)

* chore(deps): bump react-router-dom from 6.20.1 to 6.21.0 (polkadot-cloud#1740)

* chore(deps-dev): bump @types/react from 18.2.43 to 18.2.45 (polkadot-cloud#1741)

* chore(deps): bump i18next from 23.7.9 to 23.7.10 (polkadot-cloud#1742)

* chore(deps-dev): bump vite from 5.0.8 to 5.0.9 (polkadot-cloud#1744)

* chore(deps-dev): bump eslint-plugin-import from 2.29.0 to 2.29.1 (polkadot-cloud#1745)

* chore(deps): bump react-error-boundary from 4.0.11 to 4.0.12 (polkadot-cloud#1748)

* chore(deps-dev): bump vite from 5.0.9 to 5.0.10 (polkadot-cloud#1749)

* chore: bump

* chore: bump vite-bundle-visualizer

* feat: add docs folder (polkadot-cloud#1753)

* feat: upgrade from yarn classic to yarn modern (berry) (polkadot-cloud#1752)

* feat: Pool commission provider, compartmentalise forms of commission properties (polkadot-cloud#1755)

* chore: use cloud withTimeout

* chore(deps): bump @polkadot-cloud/core from 1.0.51 to 1.1.0 (polkadot-cloud#1756)

* chore(deps): bump @polkadot/rpc-provider from 10.11.1 to 10.11.2 (polkadot-cloud#1758)

* chore(deps-dev): bump @typescript-eslint/parser from 6.14.0 to 6.15.0 (polkadot-cloud#1761)

* chore(deps): bump @polkadot-cloud/react from 0.1.146 to 0.2.0 (polkadot-cloud#1757)

* chore(deps): bump @polkadot/keyring from 12.6.1 to 12.6.2 (polkadot-cloud#1762)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.14.0 to 6.15.0 (polkadot-cloud#1764)

* chore(deps): bump @polkadot-cloud/utils from 0.0.34 to 0.1.0 (polkadot-cloud#1766)

* chore(deps): bump @polkadot/util from 12.6.1 to 12.6.2 (polkadot-cloud#1763)

* chore(deps): bump @polkadot-cloud/assets from 0.1.38 to 0.2.0 (polkadot-cloud#1765)

* chore(deps): bump @polkadot/api from 10.11.1 to 10.11.2 (polkadot-cloud#1767)

* chore: bumps

* feat(refactor): useless fragments, linting tidy up (polkadot-cloud#1768)

* refactor: minimise props and memo (polkadot-cloud#1770)

* chore: re-order plugins

* chore(deps-dev): bump eslint-plugin-prettier from 5.0.1 to 5.1.0 (polkadot-cloud#1771)

* chore(deps-dev): bump vitest from 1.0.4 to 1.1.0 (polkadot-cloud#1772)

* feat(refactor): Remove explicit `any` types project-wide (polkadot-cloud#1773)

* feat(refactor): Split pool types, replace explicit any types (polkadot-cloud#1774)

* feat(refactor): Notifications as `CustomEvent` emission (polkadot-cloud#1775)

* chore(deps): bump @polkadot-cloud/react from 0.2.0 to 0.2.1 (polkadot-cloud#1778)

* chore(deps): bump @polkadot-cloud/utils from 0.1.0 to 0.1.1 (polkadot-cloud#1779)

* feat(refactor): Use Cloud `LedgerAccounts` context (polkadot-cloud#1782)

* chore: replace any types

* chore: type fixes

* chore: fixes

* chore: disable rule

* chore: fix

* chore(deps): bump styled-components from 6.1.1 to 6.1.2 (polkadot-cloud#1781)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: patch core

* chore: fix styled components

* chore(deps-dev): bump eslint-plugin-prettier from 5.1.0 to 5.1.1 (polkadot-cloud#1785)

* chore(deps): bump @dotlottie/player-component from 2.7.2 to 2.7.3 (polkadot-cloud#1786)

* chore(deps): bump react-router-dom from 6.21.0 to 6.21.1 (polkadot-cloud#1787)

* bump cloud deps

* chore: remove explit any 3 (polkadot-cloud#1788)

* chore: amend typescript support

* chore: amend releases

* chore: fix styling

* chore(deps): bump styled-components from 6.1.2 to 6.1.3 (polkadot-cloud#1791)

* feat(refactor): Remove remaining explicit `any` types, turn on `no-explicit-any` (polkadot-cloud#1792)

* feat(refactor): add stylistic eslint rules (polkadot-cloud#1793)

* feat(refactor): enforce curly, braces as needed (polkadot-cloud#1795)

* chore(deps): bump react-i18next from 13.5.0 to 14.0.0 (polkadot-cloud#1784)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump date-fns from 2.30.0 to 3.0.6 (polkadot-cloud#1790)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(refactor): Pool members list to canvas (polkadot-cloud#1796)

Co-authored-by: TingALin <[email protected]>

* chore: fix remaining

* chore(deps-dev): bump eslint-plugin-prettier from 5.1.1 to 5.1.2 (polkadot-cloud#1797)

* chore(deps-dev): bump gh-pages from 6.1.0 to 6.1.1 (polkadot-cloud#1798)

* chore(deps-dev): bump @typescript-eslint/parser from 6.15.0 to 6.16.0 (polkadot-cloud#1799)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.15.0 to 6.16.0 (polkadot-cloud#1800)

* chore(deps): bump @dotlottie/player-component from 2.7.3 to 2.7.4 (polkadot-cloud#1801)

* feat(refactor): use `html5-qrcode`, remove `react-qr-reader` (polkadot-cloud#1802)

* chore: clean up

* chore: cheanup

* chore: rm comment

* chore: reset callback

* chore: context defaults

* chore(deps): bump styled-components from 6.1.3 to 6.1.6 (polkadot-cloud#1803)

* chore: usehooks-ts `useEventListener`

* fix: replace MAX_EXPOSURE_PAGE_SIZE

* chore(deps): bump i18next from 23.7.11 to 23.7.12 (polkadot-cloud#1804)

* chore(deps-dev): bump @types/react from 18.2.45 to 18.2.46 (polkadot-cloud#1805)

* chore(deps): bump @dotlottie/player-component from 2.7.4 to 2.7.5 (polkadot-cloud#1806)

* chore(deps-dev): bump vite-tsconfig-paths from 4.2.2 to 4.2.3 (polkadot-cloud#1807)

* chore(deps-dev): bump sass from 1.69.5 to 1.69.6 (polkadot-cloud#1808)

* chore(deps): bump i18next from 23.7.12 to 23.7.13 (polkadot-cloud#1809)

* chore(deps-dev): bump @typescript-eslint/parser from 6.16.0 to 6.17.0 (polkadot-cloud#1810)

* chore(deps-dev): bump vitest from 1.1.0 to 1.1.1 (polkadot-cloud#1812)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.16.0 to 6.17.0 (polkadot-cloud#1811)

* chore(deps): bump i18next from 23.7.13 to 23.7.14 (polkadot-cloud#1813)

* chore(deps): bump framer-motion from 10.16.16 to 10.17.0 (polkadot-cloud#1814)

* chore(deps): bump @substrate/connect from 0.8.3 to 0.8.4 (polkadot-cloud#1815)

* fix: Bond fixes (polkadot-cloud#1816)

* chore(deps): bump framer-motion from 10.17.0 to 10.17.4 (polkadot-cloud#1818)

* chore(deps-dev): bump sass from 1.69.6 to 1.69.7 (polkadot-cloud#1820)

* chore(deps): bump i18next from 23.7.14 to 23.7.15 (polkadot-cloud#1819)

* chore(deps): bump framer-motion from 10.17.4 to 10.17.6 (polkadot-cloud#1822)

* chore(deps-dev): bump vitest from 1.1.1 to 1.1.2 (polkadot-cloud#1824)

* chore(deps): bump i18next from 23.7.15 to 23.7.16 (polkadot-cloud#1823)

* feat(refactor): remove ref from `OtherAccounts` (polkadot-cloud#1825)

* feat(refactor): API to static class (polkadot-cloud#1826)

* fix: ready after consts

* chore: context & hook to top

* chore: destructure React imports

* feat: use `navigator.onLine` to handle api connection (polkadot-cloud#1827)

* chore(deps-dev): bump vite from 5.0.10 to 5.0.11 (polkadot-cloud#1829)

* chore(deps): bump framer-motion from 10.17.6 to 10.17.9 (polkadot-cloud#1830)

* chore(deps): bump date-fns from 3.0.6 to 3.1.0 (polkadot-cloud#1831)

* chore(deps-dev): bump vitest from 1.1.2 to 1.1.3 (polkadot-cloud#1832)

* fix: read only account import, local account import (polkadot-cloud#1833)

* fix: make odometer values copy-able (polkadot-cloud#1834)

* feat(ux): block number in network bar (polkadot-cloud#1835)

* chore: fixes

* feat: offline recovery (polkadot-cloud#1836)

* chore: refactor, minimise functions

* chore: don't use ref

* feat: add block verification interval (polkadot-cloud#1837)

* chore: comment

* feat: timeout multiplier (polkadot-cloud#1838)

* chore(deps-dev): bump @typescript-eslint/parser from 6.17.0 to 6.18.0 (polkadot-cloud#1839)

* chore(deps): bump usehooks-ts from 2.9.1 to 2.9.2 (polkadot-cloud#1841)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.17.0 to 6.18.0 (polkadot-cloud#1840)

* chore(deps-dev): bump @types/react from 18.2.46 to 18.2.47 (polkadot-cloud#1843)

* chore(deps): bump styled-components from 6.1.6 to 6.1.8 (polkadot-cloud#1842)

* feat(refactor): types to all `useState` hooks (polkadot-cloud#1844)

* some boilerplate, basic impl

* chore: don't notify on block disconnect

* chore: use api.registry.signedExtensions

* chore(deps): bump date-fns from 3.1.0 to 3.2.0 (polkadot-cloud#1845)

* chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.18.0 to 6.18.1 (polkadot-cloud#1847)

* chore(deps): bump framer-motion from 10.17.9 to 10.17.12 (polkadot-cloud#1846)

* chore(deps-dev): bump @typescript-eslint/parser from 6.18.0 to 6.18.1 (polkadot-cloud#1848)

* chore: rm arr

* feat: Introduce Average Reward Rate  (polkadot-cloud#1849)

Co-authored-by: Ting A Lin <[email protected]>

* chore: rm onFinality

* chore: rm adjusted reward rate def

* feat(refactor): simplify average reward rate label (polkadot-cloud#1850)

* chore(deps): bump framer-motion from 10.17.12 to 10.18.0 (polkadot-cloud#1851)

* chore(deps-dev): bump eslint-plugin-prettier from 5.1.2 to 5.1.3 (polkadot-cloud#1852)

* chore(deps): bump react-router-dom from 6.21.1 to 6.21.2 (polkadot-cloud#1854)

* fix: max bond fixes

* patch assets

* Revert "patch assets"

This reverts commit 55f17ef.

* feat: add P2P.org to community

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: TingALin <[email protected]>
  • Loading branch information
4 people authored Jan 16, 2024
1 parent 42919af commit 6fc8f7d
Show file tree
Hide file tree
Showing 419 changed files with 17,332 additions and 11,130 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ dist
build
vite.config.ts
public/lottie/player.js
CHANGELOG.md
CHANGELOG.md
.yarn
85 changes: 40 additions & 45 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
// "airbnb-typescript",
"plugin:@typescript-eslint/stylistic",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
Expand All @@ -26,54 +25,27 @@
"react",
"@typescript-eslint",
"prefer-arrow-functions",
"unused-imports"
"unused-imports",
"react-hooks"
],
"rules": {
// NOTE: These rules are being reviewed and comments justifying their deactivation will be
// added.
"react/require-default-props": "off",
"jsx-a11y/control-has-associated-label": "off",
"react/no-access-state-in-setstate": "off",
"react/destructuring-assignment": "off",
"react/function-component-definition": "off",
"react/jsx-no-constructed-context-values": "off",
"react/no-array-index-key": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-no-useless-fragment": "off",
"react/static-property-placement": "off",
"no-unused-vars": "off",
"no-param-reassign": "off",
"no-restricted-syntax": "off",
"@typescript-eslint/no-empty-function": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-promise-executor-return": "off",
"prefer-destructuring": "off",
"no-nested-ternary": "off",
// `continue` statements cut down on conditional nesting and improve readability where it is
// used in this project. Conditionals would further bloat the code.
"no-continue": "off",
// Unary operators are not impacting code as semi-colons are currently enforced.
"no-plusplus": "off",
// Default imports cause naming inconsistencies to imports when component names are changed.
"import/prefer-default-export": "off",

"unused-imports/no-unused-imports": "error",
"@typescript-eslint/consistent-type-imports": [
// Stylistic
// ---------
"curly": "error",
"arrow-body-style": ["error", "as-needed"],
"comma-dangle": [
"error",
{
"prefer": "type-imports",
"fixStyle": "separate-type-imports"
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"object-shorthand": "error",
"unused-imports/no-unused-imports": "error",
"semi": [2, "always"],
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".tsx"]
}
],
"import/extensions": [
"error",
"ignorePackages",
Expand All @@ -82,7 +54,6 @@
"tsx": "never"
}
],
"@typescript-eslint/no-shadow": ["error"],
"prefer-arrow-functions/prefer-arrow-functions": [
"warn",
{
Expand All @@ -92,9 +63,33 @@
"singleReturnOnly": false
}
],
"react/prop-types": "off"
// React
// -----
// "@typescript-eslint/no-unnecessary-condition": "error", // in progress
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react/jsx-no-useless-fragment": "error",
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".tsx"]
}
],
// Typescript
// ----------
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"fixStyle": "separate-type-imports"
}
],
"@typescript-eslint/no-shadow": ["error"]
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {}
}
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Yarn Modern
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.6.1
v20.10.0
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
dist
src/img/**/*
public/lottie/player.js
CHANGELOG.md
CHANGELOG.md
.yarn
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.2.cjs
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

The Polkadot Staking Dashboard is a community-driven project, and we welcome contributions to bolster the dashboard's functionality and features.

- **Web Extensions**: Submit PR to the [Polkadot Cloud repository](https://github.com/paritytech/polkadot-cloud/tree/main/packages/assets#adding-web-extension-wallets) to add a web extension. The extension will then be available in the `@polkadot-cloud/assets` NPM package. Full instructions can be found [here](https://github.com/paritytech/polkadot-cloud/tree/main/packages/assets#adding-web-extension-wallets).
- **Web Extensions**: Submit PR to the [Polkadot Cloud repository](https://github.com/polkadot-cloud/library/tree/main/packages/assets#adding-web-extension-wallets) to add a web extension. The extension will then be available in the `@polkadot-cloud/assets` NPM package. Full instructions can be found [here](https://github.com/polkadot-cloud/library/tree/main/packages/assets#adding-web-extension-wallets).

- **Validator Operators**: Submit PR to the [Polkadot Cloud repository](https://github.com/paritytech/polkadot-cloud/tree/main/packages/assets#adding-validator-operators) to add a validator operator. The operator will then be available in the `@polkadot-cloud/assets` NPM package. Full instructions can be found [here](https://github.com/paritytech/polkadot-cloud/tree/main/packages/assets#adding-validator-operators).
- **Validator Operators**: Submit PR to the [Polkadot Cloud repository](https://github.com/polkadot-cloud/library/tree/main/packages/assets#adding-validator-operators) to add a validator operator. The operator will then be available in the `@polkadot-cloud/assets` NPM package. Full instructions can be found [here](https://github.com/polkadot-cloud/library/tree/main/packages/assets#adding-validator-operators).

## URL Variable Support

Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md → docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## [1.2.0](https://github.com/paritytech/polkadot-staking-dashboard/compare/v1.1.1...v1.2.0) (2023-11-15)


### Features

* add MethodNotSupported error to ledger ([#1627](https://github.com/paritytech/polkadot-staking-dashboard/issues/1627)) ([c756f5d](https://github.com/paritytech/polkadot-staking-dashboard/commit/c756f5da167279fc1fb3adbf9907bc7034a0904b))
* more info for inconsistent ledger versions ([#1640](https://github.com/paritytech/polkadot-staking-dashboard/issues/1640)) ([cb17371](https://github.com/paritytech/polkadot-staking-dashboard/commit/cb17371b5713b52fd1c34ec0bb647f2171ae21b4))
* Nova first if in wallet ([f74f276](https://github.com/paritytech/polkadot-staking-dashboard/commit/f74f27626ea890796bbba1714ec92c7b08964948))
* Nova icon ([814977c](https://github.com/paritytech/polkadot-staking-dashboard/commit/814977ce01da31716ed3a95140e9b42b71f2a233))
* nova standlone if in wallet ([1192b8a](https://github.com/paritytech/polkadot-staking-dashboard/commit/1192b8aa73af505c7e308a6f66833cc3f4de6453))
* pool context optimisations ([#1628](https://github.com/paritytech/polkadot-staking-dashboard/issues/1628)) ([ad4db96](https://github.com/paritytech/polkadot-staking-dashboard/commit/ad4db969875daf7994d57df1b4c572b92ae76b26))
* **refactor:** don't persist `system` external accounts, remove proxy `delegates` state ([#1639](https://github.com/paritytech/polkadot-staking-dashboard/issues/1639)) ([56314ae](https://github.com/paritytech/polkadot-staking-dashboard/commit/56314ae8584f42a40067c7c91abba94d7570afaf))


### Bug Fixes

* add balanceTxFees ([05056fa](https://github.com/paritytech/polkadot-staking-dashboard/commit/05056fafe870c5a0bb7e4426f002c392563ddce7))
* missing payout day ([#1618](https://github.com/paritytech/polkadot-staking-dashboard/issues/1618)) ([ffdac9c](https://github.com/paritytech/polkadot-staking-dashboard/commit/ffdac9c517672acdbdf911635d41b135b43ef85e))
* modal scroll fixes ([#1607](https://github.com/paritytech/polkadot-staking-dashboard/issues/1607)) ([4d03b33](https://github.com/paritytech/polkadot-staking-dashboard/commit/4d03b33bcd1ce0edc962b61cb3415efdcebf7a29))
* system read only accounts fix ([29b8052](https://github.com/paritytech/polkadot-staking-dashboard/commit/29b8052ee2e7605b967e2f684fbb316f824eabd5))
* use ledger square logo ([#1593](https://github.com/paritytech/polkadot-staking-dashboard/issues/1593)) ([badcac5](https://github.com/paritytech/polkadot-staking-dashboard/commit/badcac5c639855519d99f72f63d2efa1465e05eb))
* **ux:** NaN on whole value with format ([021f90b](https://github.com/paritytech/polkadot-staking-dashboard/commit/021f90b138cf109bfa69a8bcef9ac8bcf173f496))

## [1.1.0](https://github.com/paritytech/polkadot-staking-dashboard/compare/v1.0.9...v1.1.0) (2023-10-30)


Expand Down
11 changes: 4 additions & 7 deletions CONTRIBUTING.md → docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ Some example PR titles:

- `feat: implement help overlay`
- `feat(auth): implement login API`
- `fix(button): resolve issue with button alignment`
- `docs(readme): add installation section`
- `chore(tests): refactor user tests`
- `fix: resolve issue with button alignment`
- `fix(docs): fix installation section to README`

The `(scope)` could be anything specifying the place of the commit change. For example, api, app, cli, etc.
The `chore` type will not be added to release change logs, and should be used for silent updates.

If you would like to know more about the Conventional Commits specification, please visit the [Conventional Commits website](https://www.conventionalcommits.org/).

Expand Down Expand Up @@ -85,6 +84,4 @@ Documenting some of the development patterns used:

## TypeScript Support

The majority of components have types. Type additions are welcome for data that makes sense to type (e.g. data that is unlikely to change as we continue development).

Strict mode is used in development, so types are always required for objects.
Strict mode is used in development and full type coverage is required.
51 changes: 51 additions & 0 deletions docs/YARN_MODERN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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.

_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._

## Troubleshooting

This section documents some common issues that may arise when using Yarn Modern for the first time, or if Yarn Classic is installed globally.

### Yarn install is failing

Ensure that you have the latest version of `npm` installed on your machine. Instead of installing it via `yarn`, use the [direct download](https://www.npmjs.com/package/npm#direct-download):

```
curl -qL https://www.npmjs.com/install.sh | sh
```

Verify the version with `npm --version`. You may need to restart your IDE or CLI to pick up the updated version.

### 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:

#### Check for other yarn config files

Check if there are any `.yarnrc.yml` or `.yarnrc` files in your root directory, or any parent directories from your project directory. If so, delete them.

#### Check your active system yarn binary

Run `which yarn` to determine where your system yarn binary is located and verify which binary is currently being used. For macOS, you may receive the following: `/Users/<username>/.yarn/bin/yarn`

#### 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.

#### Set a new yarn version

Set a new yarn version by running `yarn set version <version_name>`. To be sure the system version is being set, it is safest to do this in the system yarn directory:

```
cd /Users/<username>/.yarn/bin/yarn && yarn set version berry
```

Yarn Berry is the latest version of Yarn Modern. To switch back to Yarn Classic, run `yarn set version classic` instead.

## Other Resources

- Step by step migration guide from Yarn Classic: https://yarnpkg.com/migration/guide
- Yarn Questions & Answers: https://yarnpkg.com/getting-started/qa
- `yarn set version` reference: https://yarnpkg.com/cli/set/version
Loading

0 comments on commit 6fc8f7d

Please sign in to comment.