Skip to content

Commit a9b6b69

Browse files
authored
feat(entropy-debug) Add Entropy debug app (#2274)
* Fix entropy debug app config (#2271) * fix * name change
1 parent add1428 commit a9b6b69

32 files changed

+4216
-1530
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ patches/
2020
apps/api-reference
2121
apps/staking
2222
apps/insights
23+
apps/entropy-debug
2324
governance/pyth_staking_sdk
2425
packages/*

apps/entropy-debugger/.gitignore

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

apps/entropy-debugger/.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

apps/entropy-debugger/README.md

Whitespace-only changes.

apps/entropy-debugger/components.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide"
14+
}
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/entropy-debugger/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";

apps/entropy-debugger/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/entropy-debugger/next.config.js

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

apps/entropy-debugger/package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "@pythnetwork/entropy-debugger",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"engines": {
7+
"node": "22"
8+
},
9+
"scripts": {
10+
"build": "next build",
11+
"fix:format": "prettier --write .",
12+
"fix:lint": "eslint --fix .",
13+
"start:dev": "next dev --port 3005",
14+
"start:prod": "next start --port 3005",
15+
"test:format": "prettier --check .",
16+
"test:lint": "eslint .",
17+
"test:types": "tsc"
18+
},
19+
"dependencies": {
20+
"@radix-ui/react-select": "^2.1.2",
21+
"@radix-ui/react-slot": "^1.1.0",
22+
"@radix-ui/react-switch": "^1.1.1",
23+
"class-variance-authority": "^0.7.1",
24+
"clsx": "catalog:",
25+
"highlight.js": "^11.10.0",
26+
"lucide-react": "^0.465.0",
27+
"next": "catalog:",
28+
"react": "catalog:",
29+
"react-dom": "catalog:",
30+
"tailwind-merge": "^2.5.5",
31+
"tailwindcss-animate": "^1.0.7",
32+
"viem": "^2.21.53",
33+
"zod": "catalog:"
34+
},
35+
"devDependencies": {
36+
"@cprussin/eslint-config": "catalog:",
37+
"@cprussin/jest-config": "catalog:",
38+
"@cprussin/prettier-config": "catalog:",
39+
"@cprussin/tsconfig": "catalog:",
40+
"@types/jest": "catalog:",
41+
"@types/node": "catalog:",
42+
"@types/react": "catalog:",
43+
"@types/react-dom": "catalog:",
44+
"eslint": "catalog:",
45+
"jest": "catalog:",
46+
"postcss": "catalog:",
47+
"prettier": "catalog:",
48+
"tailwindcss": "catalog:",
49+
"typescript": "catalog:",
50+
"vercel": "catalog:"
51+
}
52+
}

0 commit comments

Comments
 (0)