Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '22.x'
- run: yarn install
- run: yarn build
- run: yarn check-types
- run: yarn lint
- name: Install pnpm
uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm build
- run: pnpm check-types
- run: pnpm lint
17 changes: 6 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
# Simple workflow for deploying static content to GitHub Pages
# Mostly copied from https://github.com/actions/starter-workflows/blob/main/pages/static.yml
name: Deploy to GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches: [$default-branch]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
Expand All @@ -32,11 +25,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '22.x'
- run: yarn
- run: yarn build
- name: Install pnpm
uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
Expand All @@ -45,4 +40,4 @@ jobs:
path: 'dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
36 changes: 4 additions & 32 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@chainsafe/biomejs-config", "@chainsafe/biomejs-config/recommended", "@chainsafe/biomejs-config/esm"],
"vcs": {
"defaultBranch": "unstable"
"defaultBranch": "master"
},
"files": {
"include": ["src/**/*.tsx", "webpack.config.js"]
"include": ["src/**/*.tsx", "src/**/*.ts", "vite.config.ts"]
},
"formatter": {
"ignore": [
"**/dist",
"**/.nyc_output",
"./packages/*/spec-tests",
"**/node_modules",
"./packages/*/node_modules/**"
]
"ignore": ["**/dist", "**/node_modules"]
},
"javascript": {
"globals": ["JSX"]
Expand All @@ -41,27 +35,5 @@
}
}
}
},
"overrides": [
{
"include": ["webpack.config.js"],
"linter": {
"rules": {
"nursery": {
"noCommonJs": "off"
}
}
}
},
{
"include": ["src/components/ENRDecode.tsx"],
"linter": {
"rules": {
"suspicious": {
"noConsoleLog": "off"
}
}
}
}
]
}
}
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ENR Viewer | Chainsafe Systems</title>
<meta name="description" content="Decode and inspect Ethereum Node Records (ENR) — EIP-778" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
50 changes: 20 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,37 @@
{
"private": true,
"name": "enr-app",
"version": "0.1.0",
"version": "1.0.0",
"type": "module",
"repository": "https://github.com/chainsafe/enr-app",
"author": "Chainsafe Systems",
"license": "MIT",
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build",
"preview": "vite preview",
"check-types": "tsc --noEmit",
"dev": "cross-env NODE_ENV=development webpack serve --color --progress",
"build": "cross-env NODE_ENV=production webpack --color --progress",
"start": "serve dist",
"lint": "biome check",
"lint:fix": "biome check --write"
},
"dependencies": {
"@chainsafe/enr": "^6.0.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-router-dom": "^7.8.0",
"sonner": "^2.0.2",
"uint8arrays": "^5.1.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@chainsafe/biomejs-config": "^0.1.1",
"@chainsafe/enr": "^5.0.1",
"@types/node": "^22.15.13",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.0",
"bulma": "^1.0.4",
"cross-env": "^7.0.3",
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^7.0.0",
"html-webpack-plugin": "^5.6.0",
"mini-css-extract-plugin": "^2.9.0",
"null-loader": "^4.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hot-toast": "^2.5.2",
"react-router-dom": "^7.8.0",
"sass": "^1.79.4",
"sass-loader": "^16.0.2",
"serve": "^14.2.4",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "^5.3.10",
"ts-loader": "^9.5.2",
"@tailwindcss/vite": "^4.1.4",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@vitejs/plugin-react": "^4.4.1",
"tailwindcss": "^4.1.4",
"typescript": "^5.8.3",
"uint8arrays": "^5.1.0",
"webpack": "^5.99.7",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.1.0"
"vite": "^6.3.2"
},
"packageManager": "yarn@1.22.22+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
"packageManager": "pnpm@10.11.0"
}
Loading
Loading