Skip to content

Commit

Permalink
Balances listings (#595)
Browse files Browse the repository at this point in the history
* Chains config multicall3 contract

* Hide WRING on Darwinia

* Hook useBalances

* Improve useBalances

* Remove enabled and export updateBalances

* Restructure directory structure

* Jest typescript setup

* Fix jest test error

* Balances listing

* Improve tabs label font style

* Transfer token select from balances-list

* Update distDir
  • Loading branch information
JayJay1024 authored Dec 12, 2023
1 parent e322e6b commit 0c54b86
Show file tree
Hide file tree
Showing 256 changed files with 800 additions and 931 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/apps/jest.setup.js → jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const config = {
// An enum that specifies notification mode. Requires { notify: true }
// notifyMode: "failure-change",
// A preset that is used as a base for Jest's configuration
// preset: undefined,
preset: "ts-jest",
// Run tests from one or more projects
// projects: undefined,
// Use this configuration option to add custom reporters to Jest
Expand Down Expand Up @@ -106,7 +106,7 @@ const config = {
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
// snapshotSerializers: [],
// The test environment that will be used for testing
// testEnvironment: "jsdom",
testEnvironment: "node",
// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
// Adds a location field to test results
Expand Down
1 change: 1 addition & 0 deletions packages/apps/next.config.js → next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
distDir: "/packages/apps/.next",
webpack: (config) => {
config.externals.push("lokijs", "encoding", "pino-pretty");
return config;
Expand Down
133 changes: 121 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 44 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,70 @@
"description": "Helix UI",
"private": true,
"scripts": {
"dev:apps": "npm run dev -w apps",
"build:apps": "npm run build -w apps",
"start:apps": "npm run start -w apps",
"dev:apps:test": "npm run dev:test -w apps",
"build:apps:test": "npm run build:test -w apps",
"start:apps:test": "npm run start:test -w apps",
"dev:apps": "next dev -p 3030",
"build:apps": "next build",
"start:apps": "next start",
"dev:apps:test": "NODE_ENV=test next dev -p 3030",
"build:apps:test": "NODE_ENV=test next build",
"start:apps:test": "NODE_ENV=test next start",
"prettier": "prettier '**/*.{js,jsx,ts,tsx,json}' --write",
"lint": "npm run lint -w apps",
"test": "npm run test -w apps",
"lint": "next lint",
"test": "jest",
"bootstrap": "npm install",
"prepare": "husky install"
},
"workspaces": [
"packages/*"
],
"repository": {
"type": "git",
"url": "git+https://github.com/helix-bridge/helix-ui.git"
},
"keywords": [
"helix",
"helix-ui",
"helix.js"
"helixbridge"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/helix-bridge/helix-ui/issues"
},
"homepage": "https://github.com/helix-bridge/helix-ui#readme",
"dependencies": {
"@apollo/client": "^3.8.2",
"@floating-ui/react": "^0.25.2",
"@polkadot/api": "^10.11.1",
"@rainbow-me/rainbowkit": "^1.3.0",
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0",
"graphql": "^16.8.0",
"next": "14.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-jazzicon": "^1.0.4",
"react-transition-group": "^4.4.5",
"sharp": "^0.32.6",
"viem": "^1.19.9",
"wagmi": "^1.4.7"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/node": "^20.5.0",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@types/react-transition-group": "^4.4.6",
"autoprefixer": "^10.4.15",
"eslint": "^8.47.0",
"eslint-config-next": "^13.4.16",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.0",
"jest": "^29.7.0",
"lint-staged": "^14.0.0",
"postcss": "^8.4.27",
"prettier": "3.0.1",
"prettier-plugin-tailwindcss": "^0.5.2"
"prettier-plugin-tailwindcss": "^0.5.2",
"tailwindcss": "^3.3.3",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=16.8.0"
}
}
35 changes: 0 additions & 35 deletions packages/apps/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion packages/apps/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Helix Apps
## For distDir
Loading

0 comments on commit 0c54b86

Please sign in to comment.