Skip to content

Commit 9eeb2eb

Browse files
Merge pull request #1 from iExecBlockchainComputing/feature/add-home-page
feat: add home page
2 parents 58eb95a + 10f420a commit 9eeb2eb

40 files changed

+24834
-1736
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_POCO_SUBGRAPH_URL="https://thegraph.iex.ec/subgraphs/name/bellecour/poco-v5"

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ dist
1212
dist-ssr
1313
*.local
1414

15+
# misc
16+
.DS_Store
17+
.env
18+
1519
# Editor directories and files
1620
.vscode/*
1721
!.vscode/extensions.json

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src/graphql
2+
schema.graphql
3+
routeTree.gen.ts

codegenPoco.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { CodegenConfig } from '@graphql-codegen/cli'
2+
import * as dotenv from 'dotenv';
3+
4+
dotenv.config();
5+
6+
const config: CodegenConfig = {
7+
schema: process.env.VITE_POCO_SUBGRAPH_URL,
8+
documents: ['src/**/*.tsx', "src/**/*.ts"],
9+
ignoreNoDocuments: true,
10+
generates: {
11+
'./src/graphql/': {
12+
preset: 'client',
13+
config: {
14+
documentMode: 'string'
15+
}
16+
},
17+
'./schema.graphql': {
18+
plugins: ['schema-ast'],
19+
config: {
20+
includeDirectives: true
21+
}
22+
}
23+
}
24+
}
25+
26+
export default config

0 commit comments

Comments
 (0)