Skip to content

Commit

Permalink
chore: updates for new cove api (#7)
Browse files Browse the repository at this point in the history
* chore: remove unneeded page and update metadata

* chore: remove header links

* chore: cleanup and update stuff and scaffold new verify form

* feat(wip): updated verify form

* Add ability to add and remove chains

* style: colors

* Migrate to react-hook-form (#9)

* Migrate to react-hook-form

* Use heroicons

* Update form message css

* Remove turnary

* Change types in TxFormValues

* Remove getValues

* Remove console.log

* Remove asterisks

* Move required string to a constant

* Check commit is valid hex

* Change address validation msg

* Update validation

* Add hex check

* Fix build

* Change chainId to a string

* build: switch to pnpm

* style: add favicon

* style: improvements and tweaks

* fix: key error, slower validation

* ci: fix ci

* fix: validations

* build: update dependencies

* wip: integrate api

* feat: verification works

* feat: show verification response

* trigger Build

* fix: default form data uses goerli

* fix: chain names map

* style: scroll to success data

* chore: remove unused file and unnecessary console.log

* style: add info to home page, move form to /verify page

* chore: copy tweaks

* style: add 'alpha' text to logo

* chore: add alpha copy to verify page

* chore: add ENS donation address

* fix: optimism and gnosis chains

* style: better multifile sort order

* chore: tweak button copy

* fix: small fixes

---------

Co-authored-by: Keating <[email protected]>
  • Loading branch information
mds1 and alexkeating authored Aug 2, 2023
1 parent 637b859 commit c56c083
Show file tree
Hide file tree
Showing 40 changed files with 4,617 additions and 5,787 deletions.
2 changes: 2 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# If testing against a local version of the API, you can override this.
NEXT_PUBLIC_COVE_API_URL=https://api.covecontracts.com
53 changes: 29 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,48 @@ on:
pull_request:
push:
branches:
- 'main'
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.12.1
cache: 'yarn'
node-version: 18.x
cache: 'pnpm'

- run: yarn install
- run: yarn build
- name: Install dependencies
run: pnpm install

# This runs `next lint` before building.
- name: Build
run: pnpm build

fmt:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: 18.12.1
cache: 'yarn'
- name: Install Yarn
run: corepack enable |
corepack prepare [email protected] --activate
- run: yarn install
- run: yarn fmt:check

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
version: latest

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.12.1
cache: 'yarn'
node-version: 18.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- run: yarn install
- run: yarn lint
- name: Check formatting
run: pnpm fmt:check
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ yarn-error.log*
.pnpm-debug.log*

# local env files

.env\*.local
.env
.env.local

# vercel

Expand Down
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.next
.pnp.cjs
.pnp.loader.mjs
.pnp.loader.mjs
pnpm-lock.yaml
public/prism-dark.css
public/prism-light.css
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ The backend can be found in the [ScopeLift/cove-backend](https://github.com/Scop
To run the server locally:

```shell
yarn install
yarn next build
yarn dev
pnpm install
pnpm dev
```

To use your own API endpoint, run `cp .env.template .env.local` and update the `NEXT_PUBLIC_COVE_API_URL`.
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'icons.llamao.fi',
},
],
},
};
40 changes: 19 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,32 @@
"fmt:check": "prettier --check . "
},
"dependencies": {
"@headlessui/react": "^1.7.7",
"@heroicons/react": "^2.0.13",
"babel-plugin-prismjs": "^2.1.0",
"next": "^13.0.0",
"@headlessui/react": "^1.7.15",
"@heroicons/react": "^2.0.18",
"next": "^13.4.5",
"next-themes": "^0.2.1",
"prismjs": "^1.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"swr": "^2.0.1",
"viem": "^0.1.15",
"wagmi": "~0.12.1"
"react-hook-form": "^7.44.3",
"sharp": "^0.32.1",
"viem": "^1.3.0"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@types/node": "^18.15.2",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"autoprefixer": "^10.4.13",
"eslint": "^8.15.0",
"eslint-config-next": "^13.2.4",
"postcss": "^8.4.20",
"prettier": "^2.8.3",
"prettier-plugin-tailwindcss": "^0.2.1",
"prismjs": "^1.29.0",
"tailwindcss": "^3.2.4",
"typescript": "^4.6.4"
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"autoprefixer": "^10.4.14",
"eslint": "^8.42.0",
"eslint-config-next": "^13.4.5",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
"tailwindcss": "^3.3.2",
"typescript": "^5.1.3"
},
"volta": {
"node": "18.15.0",
"yarn": "1.22.19"
"node": "18.16.0"
}
}
Loading

0 comments on commit c56c083

Please sign in to comment.