Skip to content

Commit

Permalink
pool details page #29
Browse files Browse the repository at this point in the history
  • Loading branch information
utgarda committed Oct 22, 2023
1 parent ebb674c commit 153bf47
Show file tree
Hide file tree
Showing 106 changed files with 10,520 additions and 9,735 deletions.
58 changes: 29 additions & 29 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
"prettier",
"plugin:prettier/recommended"
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh', "prettier"],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
"@typescript-eslint/no-unused-vars": ["warn"],
"react/no-unused-prop-types": "off",
"eslintreact/require-default-props": "off",
"react/destructuring-assignment": "off",
"react/require-default-props": "off",
"import/prefer-default-export": "off",
"prettier/prettier": ["warn", {
"endOfLine": "auto"
}]
},
}
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
"prettier",
"plugin:prettier/recommended"
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh', "prettier"],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
"@typescript-eslint/no-unused-vars": ["warn"],
"react/no-unused-prop-types": "off",
"eslintreact/require-default-props": "off",
"react/destructuring-assignment": "off",
"react/require-default-props": "off",
"import/prefer-default-export": "off",
"prettier/prettier": ["warn", {
"endOfLine": "auto"
}]
},
}
26 changes: 13 additions & 13 deletions frontend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"useTabs": false,
"endOfLine": "auto",
"printWidth": 100,
"tabWidth": 2,
"bracketSameLine": false,
"bracketSpacing": true,
"arrowParens": "always",
"jsxSingleQuote": true
}
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"useTabs": false,
"endOfLine": "auto",
"printWidth": 100,
"tabWidth": 2,
"bracketSameLine": false,
"bracketSpacing": true,
"arrowParens": "always",
"jsxSingleQuote": true
}
54 changes: 27 additions & 27 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
## Install dependencies
> yarn install
## Start local server
> yarn run dev
## Build the production ready code to the /dist folder
> yarn run build
## Build Automatically
All environment variables must be registered as a secret on GitHub ```ENV_VARIABLES``` for correct automatic building of the project.

## Build Locally
1. Create file ```.env``` in the root of the project and set all environment variables in it.
2. The ```yarn run build``` command will build the project into the ```dist``` folder.
4. The ```yarn run dev``` command will run the project on the local server in development mode.

## ESlint check
> yarn lint
## ESlint fix
> yarn lint:fix
## Formatting check
> yarn format
## Formatting fix
## Install dependencies
> yarn install
## Start local server
> yarn run dev
## Build the production ready code to the /dist folder
> yarn run build
## Build Automatically
All environment variables must be registered as a secret on GitHub ```ENV_VARIABLES``` for correct automatic building of the project.

## Build Locally
1. Create file ```.env``` in the root of the project and set all environment variables in it.
2. The ```yarn run build``` command will build the project into the ```dist``` folder.
4. The ```yarn run dev``` command will run the project on the local server in development mode.

## ESlint check
> yarn lint
## ESlint fix
> yarn lint:fix
## Formatting check
> yarn format
## Formatting fix
> yarn format:fix
Binary file added frontend/frontend.zip
Binary file not shown.
32 changes: 16 additions & 16 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600&family=Roboto&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ProfitPals</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600&family=Roboto&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ProfitPals</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
110 changes: 55 additions & 55 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
{
"name": "profit-pals",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint --fix ./src",
"preview": "vite preview",
"format:fix": "prettier --write ./src",
"format": "npx prettier src --check"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"dependencies": {
"@rainbow-me/rainbowkit": "^1.1.1",
"@vitejs/plugin-react-refresh": "^1.3.6",
"axios": "^1.5.1",
"classnames": "^2.3.2",
"localforage": "^1.10.0",
"match-sorter": "^6.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.16.0",
"react-transition-group": "^4.4.5",
"sort-by": "^1.2.0",
"viem": "^1.15.4",
"wagmi": "^1.4.3"
},
"devDependencies": {
"@types/babel__core": "^7.20.2",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/react-transition-group": "^4.4.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"eslint": "^8.45.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-eslint": "^15.0.1",
"sass": "^1.69.1",
"typescript": "^5.0.2",
"vite": "^4.4.5"
}
}
{
"name": "profit-pals",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint --fix ./src",
"preview": "vite preview",
"format:fix": "prettier --write ./src",
"format": "npx prettier src --check"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"dependencies": {
"@rainbow-me/rainbowkit": "^1.1.1",
"@vitejs/plugin-react-refresh": "^1.3.6",
"axios": "^1.5.1",
"classnames": "^2.3.2",
"localforage": "^1.10.0",
"match-sorter": "^6.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.16.0",
"react-transition-group": "^4.4.5",
"sort-by": "^1.2.0",
"viem": "^1.15.4",
"wagmi": "^1.4.3"
},
"devDependencies": {
"@types/babel__core": "^7.20.2",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/react-transition-group": "^4.4.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"eslint": "^8.45.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-eslint": "^15.0.1",
"sass": "^1.69.1",
"typescript": "^5.0.2",
"vite": "^4.4.5"
}
}
2 changes: 1 addition & 1 deletion frontend/public/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* /index.html 200
/* /index.html 200
20 changes: 10 additions & 10 deletions frontend/public/assets/img/arrow_back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions frontend/public/assets/img/tokens/Ethereum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions frontend/public/assets/img/tokens/aave.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions frontend/public/assets/img/tokens/bay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions frontend/public/assets/img/tokens/bnb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 153bf47

Please sign in to comment.