Skip to content

Commit 0ce6061

Browse files
authored
Merge pull request #2663 from pyth-network/cprussin/add-entropy-explorer
feat(entropy-explorer): add initial build of entropy explorer
2 parents fb15906 + ce86bce commit 0ce6061

File tree

93 files changed

+2158
-233
lines changed

Some content is hidden

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

93 files changed

+2158
-233
lines changed

apps/entropy-explorer/.gitignore

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

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

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

apps/entropy-explorer/package.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "@pythnetwork/entropy-explorer",
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 3006",
16+
"start:prod": "next start --port 3006",
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+
"@phosphor-icons/react": "catalog:",
24+
"@pythnetwork/component-library": "workspace:*",
25+
"clsx": "catalog:",
26+
"connectkit": "catalog:",
27+
"next": "catalog:",
28+
"nuqs": "catalog:",
29+
"react": "catalog:",
30+
"react-aria": "catalog:",
31+
"react-dom": "catalog:",
32+
"viem": "catalog:",
33+
"wagmi": "catalog:",
34+
"zod": "catalog:"
35+
},
36+
"devDependencies": {
37+
"@cprussin/eslint-config": "catalog:",
38+
"@cprussin/jest-config": "catalog:",
39+
"@cprussin/prettier-config": "catalog:",
40+
"@cprussin/tsconfig": "catalog:",
41+
"@svgr/webpack": "catalog:",
42+
"@types/jest": "catalog:",
43+
"@types/node": "catalog:",
44+
"@types/react": "catalog:",
45+
"@types/react-dom": "catalog:",
46+
"autoprefixer": "catalog:",
47+
"eslint": "catalog:",
48+
"jest": "catalog:",
49+
"postcss": "catalog:",
50+
"prettier": "catalog:",
51+
"sass": "catalog:",
52+
"stylelint": "catalog:",
53+
"stylelint-config-standard-scss": "catalog:",
54+
"typescript": "catalog:",
55+
"vercel": "catalog:"
56+
}
57+
}
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
Loading
8.27 KB
Loading

0 commit comments

Comments
 (0)