-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace preact package with react, remove StateUpdater and change imports * migrate Dialog events, update tsconfig * remove TargetedEvent * remove SetStateAction * add missing React import * migrate components from Preact to React * migrate components, tests from preact to react * resolve preact conflicts * update README after migration * remove unused version.cjs * remove unused code * update Validation component * simplify code structure * apply lint changes
- Loading branch information
1 parent
9fb80d9
commit 934c19e
Showing
172 changed files
with
2,307 additions
and
3,494 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ node_modules/ | |
coverage/ | ||
dist/ | ||
build/ | ||
preact/ | ||
internals/ | ||
docs/ | ||
gql/ | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,20 @@ | ||
import type { Config } from 'jest'; | ||
|
||
const config: Config = { | ||
roots: ['<rootDir>/src'], | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
clearMocks: true, | ||
testMatch: ['**/?(*.)+(test).ts'], | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
setupFilesAfterEnv: ['<rootDir>/config/setupTests.ts'], | ||
moduleNameMapper: { | ||
'\\.(jpg|jpeg|png|gif|webp|svg)$': '<rootDir>/config/fileMock.ts', | ||
'^@/(.*)$': '<rootDir>/src/$1', | ||
}, | ||
transform: { | ||
'^.+\\.(ts|tsx)$': 'ts-jest', | ||
}, | ||
}; | ||
|
||
export default config; |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"packageManager": "[email protected]", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "node version.cjs && tsc && vite build && echo '/* /index.html 200' | cat > dist/_redirects", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview", | ||
"lint": "eslint . --ext .ts,.tsx", | ||
"lint:fix": "eslint . --ext .ts,.tsx --fix", | ||
|
@@ -47,6 +47,9 @@ | |
"@tanstack/react-query": "~4.32.6", | ||
"@tanstack/react-query-devtools": "~4.32.6", | ||
"@tanstack/react-table": "^8.11.2", | ||
"@testing-library/react": "^16.0.1", | ||
"@types/react-dom": "^18.3.1", | ||
"@vitejs/plugin-react": "^4.3.3", | ||
"@walletconnect/modal": "^2.6.2", | ||
"@walletconnect/universal-provider": "^2.11.1", | ||
"big.js": "^6.2.1", | ||
|
@@ -57,34 +60,29 @@ | |
"lodash": "^4.17.21", | ||
"luxon": "^3.5.0", | ||
"match-sorter": "^6.3.1", | ||
"preact": "^10.21.0", | ||
"qrcode.react": "^3.1.0", | ||
"react": "^18.3.1", | ||
"react-daisyui": "^5.0.5", | ||
"react-device-detect": "^2.2.3", | ||
"react-dom": "^18.3.1", | ||
"react-hook-form": "^7.53.0", | ||
"react-lottie": "^1.2.4", | ||
"react-router-dom": "^6.8.1", | ||
"react-router-dom": "^6.27.0", | ||
"react-toastify": "^9.1.3", | ||
"ts-jest": "^29.2.5", | ||
"ts-node": "^10.9.2", | ||
"yup": "^1.4.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.7", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/preset-env": "^7.23.7", | ||
"@babel/preset-typescript": "^7.24.1", | ||
"@graphql-codegen/cli": "^5.0.2", | ||
"@graphql-codegen/client-preset": "^4.2.6", | ||
"@pendulum-chain/types": "^1.1.1", | ||
"@polkadot/types-augment": "^13.2.1", | ||
"@polkadot/types-codec": "^13.2.1", | ||
"@polkadot/types-create": "^13.2.1", | ||
"@polkadot/types-known": "^13.2.1", | ||
"@preact/preset-vite": "^2.5.0", | ||
"@testing-library/dom": "^10.4.0", | ||
"@testing-library/jest-dom": "^6.1.6", | ||
"@testing-library/preact": "^3.2.3", | ||
"@testing-library/preact-hooks": "^1.1.0", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/big.js": "^6.2.2", | ||
"@types/jest": "^29.5.11", | ||
|
@@ -97,7 +95,6 @@ | |
"@typescript-eslint/eslint-plugin": "^7.8.0", | ||
"@typescript-eslint/parser": "^7.8.0", | ||
"autoprefixer": "^10.4.20", | ||
"babel-jest": "^29.4.3", | ||
"daisyui": "^4.12.13", | ||
"eslint": "^8.56.0", | ||
"eslint-plugin-jest": "^27.6.1", | ||
|
@@ -121,7 +118,8 @@ | |
"yarn": ">=4.0.0" | ||
}, | ||
"resolutions": { | ||
"@polkadot/api": "^13.2.1" | ||
"@polkadot/api": "^13.2.1", | ||
"@polkadot/util": "^13.2.1" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,tsx}": "eslint --cache --fix", | ||
|
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 |
---|---|---|
|
@@ -5,5 +5,4 @@ export default { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
|
||
}; |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { FC } from 'preact/compat'; | ||
import { FC } from 'react'; | ||
|
||
interface Props { | ||
className?: string; | ||
|
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,4 +1,4 @@ | ||
import { FC } from 'preact/compat'; | ||
import { FC } from 'react'; | ||
|
||
interface Props { | ||
className?: string; | ||
|
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
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
Oops, something went wrong.