Skip to content

Commit 081bcbf

Browse files
committed
chore: start with duplicate of insights app
1 parent 3dcf09e commit 081bcbf

File tree

176 files changed

+14176
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+14176
-0
lines changed

apps/developer-hub/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env*.local

apps/developer-hub/.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.next/
2+
coverage/
3+
node_modules/
4+
*.tsbuildinfo
5+
.env*.local
6+
.env
7+
.DS_Store
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { nextjs as default } from "@cprussin/eslint-config";

apps/developer-hub/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { nextjs as default } from "@cprussin/jest-config/next";

apps/developer-hub/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/developer-hub/next.config.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
const config = {
2+
reactStrictMode: true,
3+
4+
pageExtensions: ["ts", "tsx", "mdx"],
5+
6+
experimental: {
7+
useCache: true,
8+
},
9+
10+
logging: {
11+
fetches: {
12+
fullUrl: true,
13+
},
14+
},
15+
16+
webpack(config) {
17+
config.module.rules.push({
18+
test: /\.svg$/i,
19+
use: ["@svgr/webpack"],
20+
});
21+
22+
config.resolve.extensionAlias = {
23+
".js": [".js", ".ts", ".tsx"],
24+
};
25+
26+
return config;
27+
},
28+
29+
headers: async () => [
30+
{
31+
source: "/:path*",
32+
headers: [
33+
{
34+
key: "X-XSS-Protection",
35+
value: "1; mode=block",
36+
},
37+
{
38+
key: "Referrer-Policy",
39+
value: "strict-origin-when-cross-origin",
40+
},
41+
{
42+
key: "Strict-Transport-Security",
43+
value: "max-age=2592000",
44+
},
45+
{
46+
key: "X-Content-Type-Options",
47+
value: "nosniff",
48+
},
49+
{
50+
key: "Permissions-Policy",
51+
value:
52+
"vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
53+
},
54+
],
55+
},
56+
],
57+
};
58+
export default config;

apps/developer-hub/package.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"name": "@pythnetwork/insights",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"engines": {
7+
"node": "22"
8+
},
9+
"scripts": {
10+
"build:vercel": "next build",
11+
"fix:format": "prettier --write .",
12+
"fix:lint:eslint": "eslint --fix .",
13+
"fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
14+
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_TBkf9EyQjQF37gs4Vk0sQKJj97kE vercel env pull",
15+
"start:dev": "next dev --port 3003",
16+
"start:prod": "next start --port 3003",
17+
"test:format": "prettier --check .",
18+
"test:lint:eslint": "eslint . --max-warnings 0",
19+
"test:lint:stylelint": "stylelint 'src/**/*.scss' --max-warnings 0",
20+
"test:types": "tsc"
21+
},
22+
"dependencies": {
23+
"@clickhouse/client": "catalog:",
24+
"@phosphor-icons/react": "catalog:",
25+
"@pythnetwork/client": "catalog:",
26+
"@pythnetwork/component-library": "workspace:*",
27+
"@pythnetwork/hermes-client": "workspace:*",
28+
"@pythnetwork/known-publishers": "workspace:*",
29+
"@react-hookz/web": "catalog:",
30+
"@solana/web3.js": "catalog:",
31+
"bs58": "catalog:",
32+
"clsx": "catalog:",
33+
"cryptocurrency-icons": "catalog:",
34+
"dnum": "catalog:",
35+
"lightweight-charts": "catalog:",
36+
"motion": "catalog:",
37+
"next": "catalog:",
38+
"next-themes": "catalog:",
39+
"nuqs": "catalog:",
40+
"react": "catalog:",
41+
"react-aria": "catalog:",
42+
"react-dom": "catalog:",
43+
"recharts": "catalog:",
44+
"superjson": "catalog:",
45+
"swr": "catalog:",
46+
"zod": "catalog:",
47+
"zod-validation-error": "catalog:"
48+
},
49+
"devDependencies": {
50+
"@cprussin/eslint-config": "catalog:",
51+
"@cprussin/jest-config": "catalog:",
52+
"@cprussin/prettier-config": "catalog:",
53+
"@cprussin/tsconfig": "catalog:",
54+
"@pythnetwork/staking-sdk": "workspace:*",
55+
"@svgr/webpack": "catalog:",
56+
"@types/jest": "catalog:",
57+
"@types/node": "catalog:",
58+
"@types/react": "catalog:",
59+
"@types/react-dom": "catalog:",
60+
"autoprefixer": "catalog:",
61+
"eslint": "catalog:",
62+
"jest": "catalog:",
63+
"postcss": "catalog:",
64+
"prettier": "catalog:",
65+
"sass": "catalog:",
66+
"stylelint": "catalog:",
67+
"stylelint-config-standard-scss": "catalog:",
68+
"typescript": "catalog:",
69+
"vercel": "catalog:"
70+
}
71+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { base as default } from "@cprussin/prettier-config";
3.34 KB
8.27 KB

0 commit comments

Comments
 (0)