Skip to content

Commit

Permalink
feat(Frontend): Transfers FE improvements (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanenrisley authored Sep 3, 2024
1 parent ed879d4 commit e7cd6b1
Show file tree
Hide file tree
Showing 55 changed files with 8,648 additions and 4,321 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Frontend
on:
pull_request:
paths:
- .github/workflows/frontend.yml
- apps/transfers/frontend/**
defaults:
run:
working-directory: apps/transfers/frontend
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
check-latest: true
- run: npm ci
- run: npm run lint
6 changes: 2 additions & 4 deletions apps/transfers/frontend/.env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
NEXT_PUBLIC_CHAIN_ID=testing
NEXT_PUBLIC_CHAIN_RPC_URL=http://0.0.0.0:26657
NEXT_PUBLIC_CHAIN_REST_URL=http://0.0.0.0:1317
NEXT_PUBLIC_ENCLAVE_PUBLIC_KEY=02ef4f843722d9badf8f5571d8f20cd1a21022fe52b9257d3a235c85dfc0ce11c0
NEXT_PUBLIC_TARGET_CHAIN=localWasm
NEXT_PUBLIC_ENCLAVE_PUBLIC_KEY=02360955ff74750f6ea0b539f41cce89451f591e4c835d0a5406e6effa96dd169d
NEXT_PUBLIC_TRANSFERS_CONTRACT_ADDRESS=wasm1jfgr0vgunezkhfmdy7krrupu6yjhx224nxtjptll2ylkkqhyzeshrspu9

# E2E Testing
Expand Down
10 changes: 5 additions & 5 deletions apps/transfers/frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "next/core-web-vitals",
"plugins": ["react-compiler"],
"rules": {
"react-compiler/react-compiler": "error"
}
"extends": [
"next",
"plugin:tailwindcss/recommended",
"plugin:prettier/recommended"
]
}
4 changes: 1 addition & 3 deletions apps/transfers/frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"quoteProps": "consistent",
"singleQuote": true,
"semi": false,
"singleAttributePerLine": true,
"tailwindFunctions": ["tw", "twJoin", "twMerge"],
"tailwindPreserveWhitespace": true,
"tailwindFunctions": ["twJoin", "twMerge"],
"tabWidth": 2,
"trailingComma": "all"
}
7 changes: 7 additions & 0 deletions apps/transfers/frontend/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace NodeJS {
interface ProcessEnv {
NEXT_PUBLIC_ENCLAVE_PUBLIC_KEY: string
NEXT_PUBLIC_TARGET_CHAIN: string
NEXT_PUBLIC_TRANSFERS_CONTRACT_ADDRESS: string
}
}
2 changes: 1 addition & 1 deletion apps/transfers/frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
reactCompiler: true,
instrumentationHook: true
},
}

Expand Down
Loading

0 comments on commit e7cd6b1

Please sign in to comment.