Skip to content

Commit

Permalink
feat: initialize hubble-stats with app file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vutuanlinh2k2 committed Jun 22, 2023
1 parent 278bfb0 commit 32c6e9d
Show file tree
Hide file tree
Showing 20 changed files with 683 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ apps/stats-dapp/graphql.schema.json
.direnv

# Generated by json files
/**/generated/**/*.json
/**/generated/**/*.json
34 changes: 34 additions & 0 deletions apps/hubble-stats/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": [
"plugin:@nx/react-typescript",
"next",
"next/core-web-vitals",
"../../.eslintrc.json"
],
"ignorePatterns": ["!**/*", ".next/**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@next/next/no-html-link-for-pages": [
"error",
"apps/hubble-stats/pages"
]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
],
"rules": {
"@next/next/no-html-link-for-pages": "off"
},
"env": {
"jest": true
}
}
4 changes: 4 additions & 0 deletions apps/hubble-stats/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"typescript.tsdk": "../../node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
3 changes: 3 additions & 0 deletions apps/hubble-stats/app/api/hello/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export async function GET(request: Request) {
return new Response('Hello, from API!');
}
Loading

0 comments on commit 32c6e9d

Please sign in to comment.