Skip to content

Commit dc88650

Browse files
fmtabbarawindy-uxyanok87mmsinclair
authored
Explorer V2 (#5548)
* remove pnpm lock file (should only be using yarn) * Add lefthook configuration for pre-commit checks * Add explorer-v2 to package.json dependencies * add explorer v2 * update explorer v2 package name * + basepath + redirect to basepath + blog icons refactor + icons refactor * Add Getting Started instructions to README * fix noise graph bug and line graph UI * Delete unused translations, clean up console logs * / test image url * update yarn.lock --------- Co-authored-by: RadekSabacky <[email protected]> Co-authored-by: windy-ux <[email protected]> Co-authored-by: Yana <[email protected]> Co-authored-by: Mark Sinclair <[email protected]>
1 parent 79ce611 commit dc88650

File tree

219 files changed

+62770
-5369
lines changed

Some content is hidden

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

219 files changed

+62770
-5369
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,13 @@ As a general approach, licensing is as follows this pattern:
6767
- documentation is Apache 2.0 or CC0-1.0
6868

6969
Nym Node Operators and Validators Terms and Conditions can be found [here](https://nym.com/operators-validators-terms).
70+
71+
## Getting Started
72+
73+
```bash
74+
yarn install
75+
```
76+
77+
```bash
78+
yarn build
79+
```

explorer-v2/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["next/core-web-vitals", "next/typescript"]
3+
}

explorer-v2/.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
32+
# env files (can opt-in for committing if needed)
33+
.env*
34+
35+
# vercel
36+
.vercel
37+
38+
# typescript
39+
*.tsbuildinfo
40+
next-env.d.ts

explorer-v2/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

explorer-v2/biome.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"ignore": ["node_modules", ".next", "public"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space"
15+
},
16+
"organizeImports": {
17+
"enabled": true
18+
},
19+
"linter": {
20+
"enabled": true,
21+
"rules": {
22+
"recommended": true,
23+
"suspicious": {
24+
"noExplicitAny": "warn"
25+
}
26+
}
27+
},
28+
"javascript": {
29+
"formatter": {
30+
"quoteStyle": "double"
31+
}
32+
}
33+
}

explorer-v2/next.config.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
reactStrictMode: true,
5+
6+
basePath: "/explorer",
7+
assetPrefix: "/explorer",
8+
trailingSlash: false,
9+
10+
async redirects() {
11+
return [
12+
// Change the basePath to /explorer
13+
{
14+
source: "/",
15+
destination: "/explorer",
16+
basePath: false,
17+
permanent: true,
18+
},
19+
]
20+
}
21+
};
22+
23+
export default nextConfig;

explorer-v2/package.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"name": "@nymproject/explorer-v2",
3+
"version": "0.1.0",
4+
"scripts": {
5+
"dev": "next dev",
6+
"build": "next build",
7+
"build:prod": "yarn --cwd .. build && next build",
8+
"start": "next start",
9+
"lint": "biome check --fix"
10+
},
11+
"engines": {
12+
"node": ">=20.0.0"
13+
},
14+
"dependencies": {
15+
"@chain-registry/types": "^0.50.36",
16+
"@cosmos-kit/keplr-extension": "^2.14.0",
17+
"@cosmos-kit/react": "^2.20.1",
18+
"@emotion/cache": "^11.13.5",
19+
"@emotion/react": "^11.13.5",
20+
"@emotion/styled": "^11.13.5",
21+
"@interchain-ui/react": "^1.26.1",
22+
"@mui/icons-material": "^5.16.11",
23+
"@mui/material": "^6.1.10",
24+
"@mui/material-nextjs": "^6.1.9",
25+
"@mui/x-date-pickers": "^7.23.2",
26+
"@nivo/line": "^0.88.0",
27+
"@nymproject/contract-clients": "^1.4.1",
28+
"@nymproject/react": "1.0.0",
29+
"@tanstack/react-query": "^5.64.2",
30+
"@tanstack/react-query-devtools": "^5.64.2",
31+
"@tanstack/react-query-next-experimental": "^5.66.0",
32+
"@tanstack/react-table": "^8.20.6",
33+
"@types/qs": "^6.9.18",
34+
"@uidotdev/usehooks": "^2.4.1",
35+
"chain-registry": "^1.69.64",
36+
"cldr-compact-number": "^0.4.0",
37+
"date-fns": "^4.1.0",
38+
"i18next": "^24.2.2",
39+
"i18next-resources-to-backend": "^1.2.1",
40+
"isomorphic-dompurify": "^2.21.0",
41+
"material-react-table": "^3.0.3",
42+
"next": "^15.2.0",
43+
"openapi-fetch": "^0.13.4",
44+
"qrcode.react": "^4.1.0",
45+
"qs": "^6.14.0",
46+
"react": "^18.0.0",
47+
"react-dom": "^18.0.0",
48+
"react-i18next": "^15.4.0",
49+
"react-markdown": "^9.0.3",
50+
"react-random-avatars": "^1.3.1",
51+
"react-world-flags": "^1.6.0",
52+
"zod": "^3.24.1"
53+
},
54+
"devDependencies": {
55+
"@biomejs/biome": "1.9.4",
56+
"@types/node": "^20",
57+
"@types/react": "^18",
58+
"@types/react-dom": "^18",
59+
"eslint": "^8",
60+
"eslint-config-next": "15.0.3",
61+
"lefthook": "^1.8.5",
62+
"typescript": "^5"
63+
}
64+
}

explorer-v2/public/file.svg

Lines changed: 1 addition & 0 deletions
Loading

explorer-v2/public/globe.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 61 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)