-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Majorfi
committed
Oct 4, 2023
1 parent
5b9acb7
commit ba8e0bb
Showing
238 changed files
with
17,790 additions
and
7,846 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
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,21 +1,30 @@ | ||
module.exports = { | ||
'extends': ['./node_modules/@yearn-finance/web-lib/.eslintrc.cjs'], | ||
'parser': '@typescript-eslint/parser', | ||
'parserOptions': { | ||
'ecmaFeatures': { | ||
'jsx': true | ||
extends: ['./node_modules/@yearn-finance/web-lib/.eslintrc.cjs', 'prettier'], | ||
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', | ||
'@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/jsx-max-props-per-line': 'off' | ||
} | ||
}; |
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,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_ |
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,4 @@ | ||
{ | ||
"*.ts|*.tsx": ["yarn prettier-format", "eslint"], | ||
"*.scss|*.css": "yarn prettier-format" | ||
} |
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,10 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true, | ||
"useTabs": true, | ||
"tabWidth": 4, | ||
"trailingComma": "none", | ||
"bracketSpacing": false, | ||
"arrowParens": "avoid", | ||
"bracketSameLine": true | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,72 +1,77 @@ | ||
# yearn.fi | ||
|
||
![](./public/og.png) | ||
|
||
Why? | ||
Why? | ||
|
||
### Initial Setup | ||
|
||
- Fork the [original repo](https://github.com/yearn/yearn.fi) into your GitHub account | ||
- Clone the forked repo from your GitHub account to your local machine | ||
- Fork the [original repo](https://github.com/yearn/yearn.fi) into your GitHub account | ||
- Clone the forked repo from your GitHub account to your local machine | ||
|
||
``` | ||
git clone https://github.com/<your-gh>/yearn.fi.git | ||
``` | ||
``` | ||
git clone https://github.com/<your-gh>/yearn.fi.git | ||
``` | ||
- Set origin to your fork. This is where you push your changes to. This is done automatically by the step above. | ||
- Set origin to your fork. This is where you push your changes to. This is done automatically by the step above. | ||
``` | ||
git remote add origin https://github.com/<your-gh>/yearn.fi | ||
``` | ||
``` | ||
git remote add origin https://github.com/<your-gh>/yearn.fi | ||
``` | ||
- Set upstream to original repo. | ||
- Set upstream to original repo. | ||
``` | ||
git remote add upstream https://github.com/yearn/yearn.fi.git | ||
``` | ||
``` | ||
git remote add upstream https://github.com/yearn/yearn.fi.git | ||
``` | ||
- Optional: Create `.env` file in root directory of repo then copy contents of `.env.example` to `.env` and replace values with your own keys. If you do not do this the default values from `next.config.js` will be used. | ||
- Optional: Create `.env` file in root directory of repo then copy contents of `.env.example` to `.env` and replace values with your own keys. If you do not do this the default values from `next.config.js` will be used. | ||
``` | ||
cp .env.example .env | ||
``` | ||
cp .env.example .env | ||
``` | ||
### Install and run | ||
1. Run `yarn` | ||
2. Run `yarn run dev` | ||
3. Open the browser and navigate to `http://localhost:3000` | ||
### Run with Docker | ||
This project can be run with Docker. | ||
1. Build the image: `docker build -t [name-of-your-container] .` | ||
2. Run the container: `docker run -p 3000:3000 [name-of-your-container]` | ||
3. Open the browser and navigate to `http://localhost:3000` | ||
### Making Changes | ||
- Create a new local branch from upstream/main for each PR that you will submit | ||
``` | ||
git fetch | ||
git checkout -b <your branch name> upstream/main | ||
``` | ||
- Commit your changes as you work | ||
``` | ||
git add . | ||
git commit -S -m "message" | ||
``` | ||
- [info about verified commits](https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification) | ||
- Create a new local branch from upstream/main for each PR that you will submit | ||
``` | ||
git fetch | ||
git checkout -b <your branch name> upstream/main | ||
``` | ||
- Commit your changes as you work | ||
``` | ||
git add . | ||
git commit -S -m "message" | ||
``` | ||
- [info about verified commits](https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification) | ||
### Pushing Changes to your Repo | ||
- Commits are squashed when PR is merged so rebasing is optional | ||
- When ready to push | ||
``` | ||
git fetch | ||
git merge upstream/main | ||
git push origin <branch-name> | ||
``` | ||
- Commits are squashed when PR is merged so rebasing is optional | ||
- When ready to push | ||
``` | ||
git fetch | ||
git merge upstream/main | ||
git push origin <branch-name> | ||
``` | ||
### Submitting Pull Request | ||
- Go to your GitHub and navigate to your forked repo | ||
- Click on `Pull requests` and then click on `New pull request` | ||
- Click on `compare across forks` | ||
- Click on `compare:` and select branch that you want to create a pull request for then click on `create pull request` | ||
- Go to your GitHub and navigate to your forked repo | ||
- Click on `Pull requests` and then click on `New pull request` | ||
- Click on `compare across forks` | ||
- Click on `compare:` and select branch that you want to create a pull request for then click on `create pull request` |
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.