Skip to content

Commit 34036bb

Browse files
authored
permissionless subgraph deploys GUI (#1666)
* create frontend * script to clean * deploy website * fix lint * setup shadcn * deploy website * setup router * mostly works * deploying works and some nice ui * deploy website * metadata for subgraph: * worksss * remove unused * refactor * disable button * deploy website * remove cf pages * fix lint
1 parent 0e7b6cc commit 34036bb

39 files changed

+12101
-458
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ packages/cli/tests/cli/validation
77

88
# TODO: cleanup examples and lint
99
examples
10+
11+
cf-pages/**

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ packages/cli/tests/cli/init
66
packages/cli/tests/cli/validation
77
packages/cli/tests/cli/add
88
pnpm-lock.yaml
9+
cf-pages/**

pnpm-lock.yaml

Lines changed: 7543 additions & 458 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
packages:
22
- packages/*
33
- examples/*
4+
- website

website/.eslintrc.cjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
],
9+
ignorePatterns: ['dist', '.eslintrc.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
14+
},
15+
};

website/.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
/src/routeTree.gen.ts

website/components.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/global.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils"
16+
}
17+
}

website/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta property="og:title" content="The Graph" />
6+
<meta
7+
property="og:image"
8+
content="https://storage.googleapis.com/graph-website/seo/graph-website.jpg"
9+
/>
10+
<link rel="icon" type="image/png" href="https://storage.googleapis.com/graph-web/favicon.png" />
11+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
12+
<title>Tooling | The Graph</title>
13+
</head>
14+
<body>
15+
<div id="root"></div>
16+
<script type="module" src="/src/main.tsx"></script>
17+
</body>
18+
</html>

website/package.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "website",
3+
"version": "0.0.0",
4+
"type": "module",
5+
"private": true,
6+
"scripts": {
7+
"build": "tsc && vite build",
8+
"clean": "rimraf ./dist",
9+
"dev": "vite",
10+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
11+
"preview": "vite preview"
12+
},
13+
"dependencies": {
14+
"@hookform/resolvers": "^3.4.2",
15+
"@monaco-editor/react": "^4.6.0",
16+
"@radix-ui/react-icons": "^1.3.0",
17+
"@radix-ui/react-label": "^2.0.2",
18+
"@radix-ui/react-select": "^2.0.0",
19+
"@radix-ui/react-slot": "^1.0.2",
20+
"@radix-ui/react-toast": "^1.1.5",
21+
"@tanstack/react-query": "^5.37.1",
22+
"@tanstack/react-router": "^1.33.4",
23+
"base-x": "^4.0.0",
24+
"class-variance-authority": "^0.7.0",
25+
"clsx": "^2.1.1",
26+
"connectkit": "^1.7.3",
27+
"kubo-rpc-client": "^4.1.1",
28+
"react": "^18.2.0",
29+
"react-dom": "^18.2.0",
30+
"react-hook-form": "^7.51.5",
31+
"tailwind-merge": "^2.3.0",
32+
"tailwindcss-animate": "^1.0.7",
33+
"viem": "^2.11.0",
34+
"wagmi": "^2.9.2",
35+
"yaml": "1.10.2",
36+
"zod": "^3.23.8"
37+
},
38+
"devDependencies": {
39+
"@tanstack/router-vite-plugin": "^1.32.17",
40+
"@types/node": "^20.6.2",
41+
"@types/react": "^18.2.66",
42+
"@types/react-dom": "^18.2.22",
43+
"@typescript-eslint/eslint-plugin": "^7.2.0",
44+
"@typescript-eslint/parser": "^7.2.0",
45+
"@vitejs/plugin-react": "^4.2.1",
46+
"autoprefixer": "^10.4.19",
47+
"eslint": "^8.57.0",
48+
"eslint-plugin-react-hooks": "^4.6.0",
49+
"eslint-plugin-react-refresh": "^0.4.6",
50+
"postcss": "^8.4.38",
51+
"rimraf": "^5.0.7",
52+
"tailwindcss": "^3.4.3",
53+
"typescript": "^5.2.2",
54+
"vite": "^5.2.0"
55+
}
56+
}

website/postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

0 commit comments

Comments
 (0)