Skip to content
Draft
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: 12 additions & 0 deletions apps/ensadmin/.cta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"projectName": "ensadmin-vite",
"mode": "file-router",
"typescript": true,
"tailwind": true,
"packageManager": "pnpm",
"addOnOptions": {},
"git": true,
"version": 1,
"framework": "react-cra",
"chosenAddOns": ["biome"]
}
50 changes: 9 additions & 41 deletions apps/ensadmin/.gitignore
Original file line number Diff line number Diff line change
@@ -1,42 +1,10 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
node_modules
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*
!.env*.example

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
dist
dist-ssr
*.local
count.txt
.env
.nitro
.tanstack
.wrangler
2 changes: 1 addition & 1 deletion apps/ensadmin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN pnpm --filter ensadmin build
FROM nginx:alpine AS runner

# Copy the static export output
COPY --from=builder /app/apps/ensadmin/out /usr/share/nginx/html
COPY --from=builder /app/apps/ensadmin/dist /usr/share/nginx/html

# Replace default nginx configuration with our own
RUN rm -f /etc/nginx/conf.d/default.conf.default
Expand Down
38 changes: 37 additions & 1 deletion apps/ensadmin/biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
"extends": "//",
"css": {
"parser": {
Expand All @@ -15,3 +15,39 @@
}
}
}

// {
// "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
// "vcs": {
// "enabled": false,
// "clientKind": "git",
// "useIgnoreFile": false
// },
// "files": {
// "ignoreUnknown": false,
// "includes": [
// "**/src/**/*",
// "**/.vscode/**/*",
// "**/index.html",
// "**/vite.config.js",
// "!**/src/routeTree.gen.ts",
// "!**/src/styles.css"
// ]
// },
// "formatter": {
// "enabled": true,
// "indentStyle": "tab"
// },
// "assist": { "actions": { "source": { "organizeImports": "on" } } },
// "linter": {
// "enabled": true,
// "rules": {
// "recommended": true
// }
// },
// "javascript": {
// "formatter": {
// "quoteStyle": "double"
// }
// }
// }
9 changes: 5 additions & 4 deletions apps/ensadmin/components.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"config": "",
"css": "src/styles.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
"registries": {}
}
50 changes: 50 additions & 0 deletions apps/ensadmin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/favicon.ico" />
<meta name="theme-color" content="#000000" />

<!-- Primary Meta Tags -->
<title>ENSAdmin</title>
<meta name="title" content="ENSAdmin" />
<meta
name="description"
content="Explore the ENS Protocol like never before"
/>

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="/" />
<meta property="og:title" content="ENSAdmin" />
<meta
property="og:description"
content="Explore the ENS Protocol like never before"
/>
<meta property="og:image" content="/opengraph-image.png" />
<meta property="og:site_name" content="ENSAdmin" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="/" />
<meta property="twitter:title" content="ENSAdmin" />
<meta
property="twitter:description"
content="Explore the ENS Protocol like never before"
/>
<meta property="twitter:image" content="/twitter-image.png" />
<meta property="twitter:site" content="@NamehashLabs" />
<meta property="twitter:creator" content="@NamehashLabs" />

<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />

<!-- Load runtime-config.js before the app initializes -->
<script src="/runtime-config.js"></script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
10 changes: 0 additions & 10 deletions apps/ensadmin/next.config.ts

This file was deleted.

13 changes: 0 additions & 13 deletions apps/ensadmin/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@ server {
root /usr/share/nginx/html;
index index.html;

# Backward compatibility redirects from ENSNode services
location = /about {
return 301 /;
}

location = /gql/subgraph-compat {
return 301 /api/subgraph;
}

location = /gql/ponder {
return 301 /;
}

# Try to serve the requested URI, then with .html extension, then as directory, or 404
location / {
try_files $uri $uri.html $uri/ =404;
Expand Down
51 changes: 32 additions & 19 deletions apps/ensadmin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"homepage": "https://github.com/namehash/ensnode/tree/main/apps/ensadmin",
"scripts": {
"dev": "next dev -p 4173",
"build": "next build",
"start": "serve out -l 4173",
"dev": "vite --port 4173",
"build": "vite build && tsc",
"start": "serve dist -l 4173",
"lint": "biome check --write .",
"lint:ci": "biome ci",
"typecheck": "tsc --noEmit",
Expand All @@ -27,6 +27,7 @@
"@ensnode/ensnode-schema": "workspace:*",
"@ensnode/ensnode-sdk": "workspace:*",
"@ensnode/ponder-metadata": "workspace:*",
"@fontsource-variable/inter": "^5.2.8",
"@formkit/auto-animate": "^0.9.0",
"@graphiql/plugin-explorer": "5.1.1",
"@graphiql/react": "0.37.1",
Expand All @@ -42,10 +43,16 @@
"@radix-ui/react-label": "^2.1.2",
"@radix-ui/react-select": "^2.1.6",
"@radix-ui/react-separator": "^1.1.2",
"@radix-ui/react-slot": "^1.1.2",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.1.8",
"@tanstack/react-query": "^5.66.9",
"@tailwindcss/vite": "^4.1.16",
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-router": "^1.132.0",
"@tanstack/react-router-devtools": "^1.132.0",
"@tanstack/router-plugin": "^1.132.0",
"@xyflow/react": "^12.4.4",
"boring-avatars": "^1.11.2",
"class-variance-authority": "^0.7.1",
Expand All @@ -54,25 +61,31 @@
"date-fns": "catalog:",
"graphiql": "5.2.0",
"graphql": "^16.10.0",
"lucide-react": "^0.548.0",
"next": "16.0.1",
"next-themes": "^0.4.6",
"react": "^19",
"react-dom": "^19",
"lucide-react": "^0.545.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"rooks": "^8.4.0",
"serve": "^14.2.5",
"sonner": "^2.0.3",
"tailwind-merge": "^3.0.2",
"tailwind-merge": "^3.3.1",
"tailwindcss": "^4.1.5",
"tailwindcss-animate": "^1.0.7",
"viem": "catalog:"
"viem": "catalog:",
"vite-plugin-monaco-editor": "^1.1.0"
},
"devDependencies": {
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
"postcss": "^8",
"tailwindcss": "^3.4.17",
"typescript": "^5",
"vitest": "catalog:"
"@biomejs/biome": "2.2.4",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.2.0",
"@types/node": "^22.18.13",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^5.0.4",
"jsdom": "^27.0.0",
"tw-animate-css": "^1.4.0",
"typescript": "^5.7.2",
"vite": "^7.1.7",
"vitest": "catalog:",
"web-vitals": "^5.1.0"
}
}
8 changes: 0 additions & 8 deletions apps/ensadmin/postcss.config.mjs

This file was deleted.

21 changes: 0 additions & 21 deletions apps/ensadmin/src/app/@actions/api/subgraph/page.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/ensadmin/src/app/@actions/connection/page.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/ensadmin/src/app/@actions/default.tsx

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions apps/ensadmin/src/app/@actions/inspect/records/page.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/ensadmin/src/app/@actions/layout.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/ensadmin/src/app/@actions/loading.tsx

This file was deleted.

Loading