-
-
Notifications
You must be signed in to change notification settings - Fork 28
Pagination, Eslint & Context refactor #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
RyRy79261
wants to merge
30
commits into
main
Choose a base branch
from
pagination
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
733af07
Refactoring to context
RyRy79261 d761425
Working pagination
RyRy79261 1cc289f
Environment vars working
RyRy79261 df68fb7
Broke out components
RyRy79261 21a989e
Manually styling
RyRy79261 408a347
Updated readme
RyRy79261 c76a652
Unoptimised fetching complete
RyRy79261 0e34f5b
Viewing & router done
RyRy79261 1d2a3f3
Inspect functional
RyRy79261 64d4acf
card
RyRy79261 31bbfbe
Update .env.template
RyRy79261 5129655
Update components/Address.tsx
RyRy79261 e7c54c1
Update components/Address.tsx
RyRy79261 c5f4488
Update components/bundles/Subbundle.tsx
RyRy79261 0676a8c
Update package.json
RyRy79261 de336b1
Update pages/index.tsx
RyRy79261 0101622
Update components/bundles/css/BundleOverview.module.css
RyRy79261 8aad749
Apply suggestions from code review
RyRy79261 1a96599
Update context/BundleData/BundleDataProvider.tsx
RyRy79261 c0f443b
Added comment
RyRy79261 3fcf9f0
Convert to rem
RyRy79261 4da55fb
Apply suggestions from code review
RyRy79261 338cbd0
Static generation happens regardless of consumtion, home removed
RyRy79261 bbeeb9b
Added lint changes
RyRy79261 2dd32f0
Merged & updated errors
RyRy79261 a85fc2c
Fixing deploy
RyRy79261 e6da4c2
Build different to dev
RyRy79261 8fe8a76
Intermittant issue not present
RyRy79261 fc4f8a7
Lines removed
RyRy79261 e89b41f
Consistent buttons
RyRy79261 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,2 @@ | ||
| NEXT_PUBLIC_INFURA_ID= | ||
| FLASHBOTS_API_URL=https://blocks.flashbots.net/v1/blocks |
This file contains hidden or 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,84 @@ | ||
| { | ||
| "parser": "@typescript-eslint/parser", | ||
| "parserOptions": { | ||
| "ecmaVersion": 2020, | ||
| "sourceType": "module", | ||
| "ecmaFeatures": { | ||
| "jsx": true | ||
| } | ||
| }, | ||
| "plugins": ["@typescript-eslint", "ternary"], | ||
| "extends": [ | ||
| "eslint:recommended", | ||
| "plugin:@typescript-eslint/eslint-recommended", | ||
| "plugin:@typescript-eslint/recommended", | ||
| "plugin:react/recommended", | ||
| "plugin:react-hooks/recommended", | ||
| "plugin:ternary/recommended" | ||
| ], | ||
| "settings": { | ||
| "react": { | ||
| "version": "detect" | ||
| } | ||
| }, | ||
| "rules": { | ||
| "comma-spacing": ["error", { "before": false, "after": true }], | ||
| "indent": ["error", 2], | ||
| "linebreak-style": ["error", "unix"], | ||
| "eol-last": ["error", "always"], | ||
| "quotes": ["error", "double"], | ||
| "semi": ["error", "always"], | ||
| "max-len": [ | ||
| "error", | ||
| { | ||
| "code": 300 | ||
| } | ||
| ], | ||
| "react-hooks/rules-of-hooks": "error", | ||
| "react-hooks/exhaustive-deps": "warn", | ||
| "react/prop-types": 0, | ||
| "react/jsx-max-props-per-line": [2, { | ||
| "maximum": 1, | ||
| "when": "always" | ||
| }], | ||
| "react/jsx-fragments": "error", | ||
| "arrow-spacing": "error", | ||
| "space-infix-ops": "error", | ||
| "no-trailing-spaces": ["error", { "ignoreComments": true }], | ||
| "comma-dangle": ["error", "never"], | ||
| "object-curly-spacing": ["error", "always"], | ||
| "space-in-parens": ["error", "never"], | ||
| "ternary/no-unreachable": "off", | ||
| "ternary/nesting": "off", | ||
| "@typescript-eslint/no-var-requires": "off", | ||
| "@typescript-eslint/no-unused-vars": "error", | ||
RyRy79261 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "@typescript-eslint/no-use-before-define": "off", | ||
| "@typescript-eslint/explicit-function-return-type": "off", | ||
| "@typescript-eslint/no-explicit-any": "off", | ||
| "@typescript-eslint/camelcase": "off", | ||
| "@typescript-eslint/interface-name-prefix": "off", | ||
| "@typescript-eslint/explicit-module-boundary-types": "off", | ||
| "@typescript-eslint/member-delimiter-style" : ["warn", { | ||
| "multiline": { | ||
| "delimiter": "none", | ||
| "requireLast": true | ||
| }, | ||
| "singleline": { | ||
| "delimiter": "semi", | ||
| "requireLast": false | ||
| } | ||
| }] | ||
| }, | ||
| "ignorePatterns": [ | ||
| ".github/**", | ||
| ".vscode/**", | ||
| ".yarn/**", | ||
| "**/dist/*", | ||
| "**/node_modules/*" | ||
| ], | ||
| "env": { | ||
| "browser": true, | ||
| "amd": true, | ||
| "node": true | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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,12 @@ | ||
| import React from "react"; | ||
|
|
||
| export const Address = ({ address } : { address: string }) => { | ||
| const size = 6; | ||
| const shorten = (address: string): string => address.slice(0, size) + "..." + address.slice(-size); | ||
| return <a className="flex text-sm justify-center hover:underline" | ||
| target="_blank" | ||
| rel="noreferrer" | ||
| href={`https://etherscan.io/address/${ address }`}> | ||
| <div className="text-sm text-gray-900">{ shorten(address) } </div> | ||
| </a>; | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.