Skip to content

Commit

Permalink
Preapy (#389)
Browse files Browse the repository at this point in the history
* feat: adjust prettier

* chore: Deps

* refactor: Hide network selector

* chore: Bump @yearn-finance/web-lib

* feat: Add new column

* feat(MultiSelectDropdown): Start implementing the multi select dropdown

* fix: Combobox logic to handle unselecting an option

* feat: Add Select All option

* feat: Add chain icons

* fix: Options container style

* feat: Set width of chain icon

* Ofix: Vite vulnerability

* fix: JSX elements cannot have multiple attributes with the same name

* refactor: Use chain icons from web-lib

* refactor: Use chain icon

* feat: Support yDaemon url without chain

* feat: Get all vaults from multiple chains

* refactor: Remove safeChainID

* feat: Remove safeChainID, use selected chains

* fix: dep

* fix: dep

* fix: dep

* feat: add prettier

* feat: add husky

* feat: add husky

* fix: line length

* fix: single attribute per line

* feat: push vscode config

* fix: color

* fix: color + hover effect

* feat: refactor

* fix: prices

* fix: all selected

* fix: issues with selectors

* fix: animation and zod

* fix: deposited includes all chains

* fix: earned

* wip: apy

* fix: On Optimism it shows New on the list but 0 inside

* WIP

* fix: uri

* fix: boost

* rebase

* feat: bump lib

* feat: APR setup

* fix: missing icon

* fix: invalid name

* fix: endpoint

* fix: rebase

* fix: dependencies

* fix: zod retired

* feat: working on APY

* feat: rebase

* fix: invalid schema

* fix: ordering

* fix: update dependencies

* fix: minor UI adjustments

* feat: by default all selected chains

* fix: can unselect stuff

* fix: can unselect stuff

* fix: truncate

* fix: maybe fix invalid balance display

* fix: no zap possible & ui freeze

* fix: responsiveness issue

* fix: overflow

* fix: filters

* fix: blockchain order

* fix: underline

* fix: lint

* fix: split all

* fix: display historical when no forward

* feat: remove safeChainID usage

* fix: more chain fixes

* fix: some elements

* fix: add missing chains

* fix: forknet balances

* fix: forknet balances

* fix: search all

* fix: use forknet

* wip: debt ratio checks

* feat: some useAsyncEffect

* fix: useless multiple re-render

* fix: hide tooltip when 0 apr

* fix: invalid hooks

* feat: use search query for vault list

* fix: missing arg and rename func

* fix: use staking rewards too

* fix: 0.00 tooltip

* fix: remove chain check on boosted vaults

* feat: use query args

* fix: search

* fix: remove log

* fix: order

* fix: order and APR display

* fix: add condition to hide when staking rewards is 0 or boost is 0

* fix: hide balancer category

* fix: upd yarnlock

* fix: lint

* fix: merge conflicts

* fix: allowance

* fix: enabling display of compact values

* fix: set to 2 decimals

* fix: replicate changes from main

* fix: error message when searching no result

* feat: use smol for chain image

* fix: balance non-active

* fix: rebase

* fix: double return

---------

Co-authored-by: Majorfi <[email protected]>
Co-authored-by: Karelian Pie <[email protected]>
  • Loading branch information
3 people authored Oct 20, 2023
1 parent 98f9f1c commit 61dcd7b
Show file tree
Hide file tree
Showing 257 changed files with 20,999 additions and 8,071 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ trim_trailing_whitespace = true
insert_final_newline = true
indent_style = tab
indent_size = 4
max_line_length = 180
46 changes: 30 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
module.exports = {
'extends': ['./node_modules/@yearn-finance/web-lib/.eslintrc.cjs', 'plugin:react-hooks/recommended'],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaFeatures': {
'jsx': true
extends: [
'./node_modules/@yearn-finance/web-lib/.eslintrc.cjs',
'plugin:@next/next/recommended',
'prettier',
'plugin:react-hooks/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
'tsconfigRootDir': __dirname,
'ecmaVersion': 2022,
'sourceType': 'module',
'project': ['./tsconfig.json']
tsconfigRootDir: __dirname,
ecmaVersion: 2022,
sourceType: 'module',
project: ['./tsconfig.json']
},
'rules': {
rules: {
'@typescript-eslint/prefer-optional-chain': 'error',
'indent': 'off',
'@typescript-eslint/indent': ['error', 'tab'],
indent: 'off',
'no-multi-spaces': ['error', {ignoreEOLComments: false}],
'no-mixed-spaces-and-tabs': 'error',
'react/jsx-max-props-per-line': 'off',
'@typescript-eslint/indent': 0,
'no-mixed-spaces-and-tabs': ['warn', 'smart-tabs'],
'object-curly-newline': [
'error',
{
ObjectExpression: {multiline: true, consistent: true},
ObjectPattern: {multiline: true, consistent: true},
ImportDeclaration: {multiline: true, consistent: true},
ExportDeclaration: {multiline: true, minProperties: 3}
}
],
'react-hooks/exhaustive-deps': [
'warn', {
'additionalHooks': '(^useAsyncTrigger$|^useDeepCompareMemo$)'
'warn',
{
additionalHooks: '(^useAsyncTrigger$|^useDeepCompareMemo$)'
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ name: Bug report
about: Create a report to help us improve the dapp
title: 'Bug: '
labels: bug, blog

---

### What happened 🆘

**A clear and concise description of what the bug is.**

### To Reproduce 🔂

Steps to reproduce the behavior:

### More 🔎
- Browser :

- Browser :
7 changes: 5 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
---
name: Feature Request Proposal
about: Ask for a new feature for this website
title: 'FRP: '
title: 'FRP: '
---

### What is your proposal 🚀

**A clear and concise description of what you are asking for.**

### What does this solve ? 🛠

**A clear and concise description about why this is a nice to have.**

### More 🔎
*N/A*

_N/A_
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.ts|*.tsx": ["yarn prettier-format", "eslint"],
"*.scss|*.css": "yarn prettier-format"
}
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"singleQuote": true,
"semi": true,
"useTabs": true,
"tabWidth": 4,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"bracketSameLine": true,
"singleAttributePerLine": true,
"printWidth": 120
}
37 changes: 37 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"files.trimTrailingWhitespace": true,
"search.exclude": {
"**/node_modules": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.wordWrap": "off",
"editor.autoIndent": "keep",
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.quickSuggestions": {
"strings": true
},
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[postcss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
243 changes: 134 additions & 109 deletions CHANGELOG.md

Large diffs are not rendered by default.

Loading

1 comment on commit 61dcd7b

@vercel
Copy link

@vercel vercel bot commented on 61dcd7b Oct 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.