Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
a84b062
feat: build routing system, create provider with RTK, encapsulatione …
aelf-lxy Aug 1, 2023
a248e65
feat: modify doc structure, update config
aelf-lxy Aug 2, 2023
2902605
feat: upgrade fetch, add Search, confg tailwind
aelf-lxy Aug 4, 2023
aae70de
feat: :sparkles: Search component add keyEvent
aelf-lxy Aug 10, 2023
5109ce2
Merge pull request #223 from AElfProject/feature/refactor-2.0.0-commo…
AbigailDeng Aug 10, 2023
71d993e
feat: header
Aug 10, 2023
42d3255
feat: merge
Aug 10, 2023
d76fc29
feat: footer
Aug 11, 2023
d8ca74a
feat: style
Aug 14, 2023
6fedfb7
feat: revert port
Aug 14, 2023
5d48013
feat: delete scripts
Aug 14, 2023
f614f81
Merge pull request #225 from AElfProject/refactor/nextjs-13-header
aelf-lxy Aug 14, 2023
eb3ad91
feat: home websocket
Aug 15, 2023
f4329cf
perf: :zap: extract smaller granular components
aelf-lxy Aug 16, 2023
579e137
Merge pull request #226 from AElfProject/feature/refactor-2.0.0-commo…
AbigailDeng Aug 16, 2023
826e76b
feat: HeaderTitle Component
Peterbjx Aug 9, 2023
a509065
feat: change text color
Peterbjx Aug 9, 2023
8a16886
perf: :zap: extract smaller granular components
aelf-lxy Aug 16, 2023
6cd9862
chore: update iconfont url
Peterbjx Aug 16, 2023
ab060b1
Merge pull request #221 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Aug 16, 2023
eb7fded
feat: home component
Aug 17, 2023
bb32fd8
feat: fix conflict
Aug 17, 2023
742affe
Merge pull request #227 from AElfProject/refactor/nextjs-13-home
aelf-lxy Aug 17, 2023
a472fd4
feat: .env.example
Aug 17, 2023
d191547
feat: chinese
Aug 17, 2023
6389d1f
Merge pull request #228 from AElfProject/refactor/nextjs-13-home
aelf-lxy Aug 17, 2023
25fdf32
feat: dir & lint rule
Aug 18, 2023
285eda8
feat: editor
Aug 18, 2023
507e41e
feat: add blocks overview
Peterbjx Aug 18, 2023
6804721
feat: microApp
Aug 18, 2023
577e48c
Merge pull request #230 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Aug 18, 2023
03242a2
feat: optimized styles and add NFT component
aelf-lxy Aug 21, 2023
f1ed734
Merge pull request #231 from AElfProject/feature/refactor-2.0.0-commo…
AbigailDeng Aug 21, 2023
4dc24b2
feat: fix conflict
Aug 22, 2023
16b59a5
feat: example env
Aug 22, 2023
9a81087
Merge pull request #229 from AElfProject/refactor/nextjs-13-home
aelf-lxy Aug 22, 2023
43ee6f2
feat: add infoList types
Peterbjx Aug 18, 2023
0b89c2d
Merge pull request #232 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Aug 22, 2023
d08962e
style: provide dark mode and light mode for Search
aelf-lxy Aug 23, 2023
13c601a
Merge branch 'refactor/nextjs-13' of explorer.github.com:AElfProject/…
aelf-lxy Aug 23, 2023
24a76fa
Merge pull request #233 from AElfProject/feature/refactor-2.0.0-commo…
AbigailDeng Aug 23, 2023
22c8c17
feat: feat: add search rules and release-it
aelf-lxy Aug 24, 2023
8fd0808
feat: micro-app governance
Aug 25, 2023
34d9e0f
feat: micro app show
Aug 28, 2023
e86c1d6
feat: pre-commit
Aug 28, 2023
0d911a3
feat: redirects
Aug 28, 2023
ee431e0
Merge pull request #235 from AElfProject/refactor/nextjs-13-microApp
aelf-lxy Aug 28, 2023
ed8550e
Merge branch 'refactor/nextjs-13' of explorer.github.com:AElfProject/…
aelf-lxy Aug 28, 2023
fe91255
style: balance layout style and toTop component
aelf-lxy Aug 30, 2023
00978f8
Merge pull request #237 from AElfProject/feature/refactor-2.0.0-commo…
Peterbjx Aug 30, 2023
ee749ae
feat: add address and EPtabs
Peterbjx Aug 23, 2023
3b3519a
feat: add token transfers
Peterbjx Aug 24, 2023
b6e3d93
feat: contract detail
Peterbjx Aug 29, 2023
610afa1
feat: add code
Peterbjx Aug 30, 2023
58dce57
feat: delete pt
Peterbjx Aug 30, 2023
6b236cd
feat: header footer menu
Aug 31, 2023
7f08710
feat: mobile css and table hooks
Peterbjx Aug 31, 2023
9516b07
Merge pull request #234 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Aug 31, 2023
5a7abbf
feat: add Tooltip components
Peterbjx Aug 31, 2023
6eae85a
Merge pull request #238 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Sep 1, 2023
9e16992
feat: layout
Sep 28, 2023
c93459c
feat: merge refactor/nextjs-13 & fix conflict
Sep 28, 2023
1f7feec
feat: cms
Oct 7, 2023
9488639
feat: middleware
Oct 9, 2023
5f7dbf2
feat: if fetch failed
Oct 9, 2023
4489998
Merge pull request #242 from AElfProject/refactor/nextjs-13-token
aelf-lxy Oct 9, 2023
1af624f
feat: recover header menu
Peterbjx Jan 29, 2024
cda9ef5
Merge pull request #275 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Jan 29, 2024
1fddaf0
chore: nft component add collapse
aelf-lxy Aug 31, 2023
2acd018
feat: nft table
aelf-lxy Sep 1, 2023
054b74f
chore: nft component add collapse
aelf-lxy Aug 31, 2023
d871414
feat: nft table
aelf-lxy Sep 1, 2023
b48e897
fix: fix eslint
aelf-lxy Jan 31, 2024
9ce2653
Merge pull request #243 from AElfProject/feature/refactor-2.0.0-commo…
aelf-lxy Jan 31, 2024
bbcd125
feat: ntf overview&activity&holder
curryZhaoAelf Feb 1, 2024
fe0901c
Merge pull request #277 from curryZhaoAelf/refactor/nextjs-13-zm-nft
aelf-lxy Feb 1, 2024
8d077da
perf: The ant tag is inserted twice to increase the size of the first…
curryZhaoAelf Feb 1, 2024
21fa7e2
feat: nft holders table
curryZhaoAelf Feb 1, 2024
660a06d
feat: 🎸 add text
HuberyD Feb 1, 2024
5319889
feat: add aelf-design provider and prefixCls
Peterbjx Feb 1, 2024
bdd3718
Merge pull request #278 from curryZhaoAelf/refactor/nextjs-13-zm-nft
aelf-lxy Feb 1, 2024
ba3a312
Merge pull request #279 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Feb 1, 2024
925cd46
feat: add StyleRegistry
Peterbjx Feb 1, 2024
73b8b83
feat: add configProvider
Peterbjx Feb 2, 2024
ffed987
Merge pull request #282 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Feb 2, 2024
41388dd
feat: 🎸 tokens list
HuberyD Feb 5, 2024
515712a
Merge branch 'aelf/nextjs-13' into refactor/nextjs-13-tokens
HuberyD Feb 5, 2024
d032a6a
feat: replace antd components with aelfd components
Peterbjx Feb 5, 2024
3643f7d
Merge pull request #283 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Feb 5, 2024
297e013
feat: change HeadTitle and add table search
Peterbjx Feb 6, 2024
ba609ec
Merge pull request #284 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Feb 6, 2024
a9dc141
feat: 🎸 token detail overview & search
HuberyD Feb 6, 2024
1261dac
Merge branch 'aelf/nextjs-13' into refactor/nextjs-13-tokens
HuberyD Feb 6, 2024
fc67a8d
Merge pull request #285 from HuberyD/refactor/nextjs-13-tokens
aelf-lxy Feb 7, 2024
10f6c5e
feat: add env and update header
aelf-lxy Feb 8, 2024
8be0d63
Merge pull request #286 from AElfProject/feature/refactor-2.0.0-commo…
Peterbjx Feb 18, 2024
951fe76
feat: nft collection overview and 3 tabs
curryZhaoAelf Feb 18, 2024
95f3b08
Merge branch 'refactor/nextjs-13' of https://github.com/AElfProject/a…
curryZhaoAelf Feb 18, 2024
79264ef
feat: menu & micoapp
Feb 19, 2024
f9fad3f
feat: merge
Feb 19, 2024
3250985
Merge pull request #289 from AElfProject/refactor/nextjs-13-home-new
aelf-lxy Feb 19, 2024
eae8aa8
feat: Style optimization
curryZhaoAelf Feb 19, 2024
5036c27
Merge pull request #290 from curryZhaoAelf/feat/collection-zm
aelf-lxy Feb 19, 2024
561456f
feat: 🎸 nfts list
HuberyD Feb 20, 2024
d859468
Merge branch 'aelf/nextjs-13' into refactor/nextjs-13-tokens
HuberyD Feb 20, 2024
3897bab
feat: useIsPath less main-container
Feb 20, 2024
7cfe677
Merge branch 'refactor/nextjs-13' of https://github.com/AElfProject/a…
Feb 20, 2024
0a03ce5
feat: menu
Feb 22, 2024
1b65156
feat: menu
Feb 23, 2024
ee3e014
feat: footer
Feb 23, 2024
f28976a
feat: fix
Feb 23, 2024
adf83b0
Merge pull request #296 from AElfProject/refactor/nextjs-13-home-new
aelf-lxy Feb 26, 2024
602daa6
feat: styledComponents
Feb 29, 2024
33189b9
Merge branch 'refactor/nextjs-13' into refactor/nextjs-13-tokens
aelf-lxy Mar 18, 2024
58fe934
Merge pull request #291 from HuberyD/refactor/nextjs-13-tokens
aelf-lxy Mar 18, 2024
9a54123
Merge pull request #297 from AElfProject/refactor/nextjs-13-home-new
aelf-lxy Mar 18, 2024
198918c
feat: table style
Peterbjx Feb 20, 2024
2325411
feat: update aelf-design
Peterbjx Mar 18, 2024
8a3f9a6
Merge pull request #302 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Mar 18, 2024
47658dd
feat: change type
Peterbjx Apr 24, 2024
995b5e7
Merge pull request #309 from AElfProject/feature/refactor-2.0.0-Block…
aelf-lxy Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file removed .DS_Store
Binary file not shown.
2 changes: 0 additions & 2 deletions .browserslistrc

This file was deleted.

6 changes: 6 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NEXT_PUBLIC_NETWORK_TYPE = 'TESTNET'
NEXT_PUBLIC_CHAIN_ID = 'AELF'
NEXT_PUBLIC_SYMBOL = 'ELF'
NEXT_PUBLIC_API_URL=http://localhost:4000
NEXT_PUBLIC_REMOTE_URL=http://localhost:3001
NEXT_PUBLIC_CMS_URL=http://192.168.66.62:3200
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEXT_PUBLIC_NETWORK_TYPE = 'TESTNET'
NEXT_PUBLIC_SYMBOL = 'ELF'
NEXT_PUBLIC_API_URL=http://localhost:4000
NEXT_PUBLIC_REMOTE_URL=http://localhost:3001
3 changes: 3 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NEXT_PUBLIC_NETWORK_TYPE = 'MINTNET'
NEXT_PUBLIC_SYMBOL = 'ELF'

6 changes: 6 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NEXT_PUBLIC_NETWORK_TYPE = 'TESTNET'
NEXT_PUBLIC_CHAIN_ID = 'AELF'
NEXT_PUBLIC_SYMBOL = 'ELF'
NEXT_PUBLIC_API_URL = http://localhost:4000
NEXT_PUBLIC_REMOTE_URL = http://localhost:3001
NEXT_PUBLIC_CMS_URL = http://192.168.66.62:3200
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

64 changes: 0 additions & 64 deletions .eslintrc

This file was deleted.

43 changes: 43 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"env": {
"browser": true,
"es2020": true,
"jest": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:tailwindcss/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "@typescript-eslint", "tailwindcss"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off",
"tailwindcss/classnames-order": "warn",
"tailwindcss/no-custom-classname": "warn",
"tailwindcss/no-contradicting-classname": "error"
}
}
45 changes: 37 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,40 @@
/coverage
/dist
/.history
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
.idea/
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

/.vscode/
.eslintcache

explore.conf
package-lock.json
.yarn-error.log
.DS_Store
.env
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit $1
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npx husky-check-email @aelf.io,@ienyan.com
21 changes: 21 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"jsxBracketSameLine": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"endOfLine": "lf",
"overrides": [
{
"files": "*.css",
"options": {
"parser": "css"
}
},
{
"files": "*.less",
"options": {
"parser": "less"
}
}
]
}
20 changes: 20 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"github": {
"release": true
},
"git": {
"commitMessage": "release: v${version}"
},
"npm": {
"publish": false
},
"hooks": {
"after:bump": "echo update version success"
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
}
}
}
16 changes: 16 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
"rules": {
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [
"extends",
"tailwind"
]
}],
"font-family-name-quotes": null,
"rule-empty-line-before": null,
"selector-pseudo-class-no-unknown": null,
"no-descending-specificity": null,
"selector-class-pattern": null
}
}
19 changes: 0 additions & 19 deletions .tsconfig.json

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

53 changes: 22 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,34 @@
````
# AELF Block Explorer
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Quick Start
## Getting Started

### Install node modules Dependencies
First, run the development server:

```shell script
# install dependencies
$ yarn
````
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

### Dependent projects
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

- Firstly, start up projects listed below
- [AElf Chain](https://github.com/AElfProject/AElf) or use a running AElf chain node
- [aelf-block-api](https://github.com/AElfProject/aelf-block-api)
- [aelf-web-proxy](https://github.com/AElfProject/aelf-web-proxy)
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

### Local Development
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

1. Modify the proxy config in `build/proxy.json`
- there are several proxy configs, if you have started related projects such as `aelf-block-api` in local environment, this file doesn't need any changes
2. Change the chain node URL in script such as `yarn beforeDev -- --CHAIN_ENDPOINT https://aelf-test-node.aelf.io`
3. Run the npm script `start`
```shell script
yarn dev
```
this script will start a `webpack-dev-server` and listen on port `3000`, open `http:0.0.0.0:3000` in your browser manually.
## Learn More

### Production
To learn more about Next.js, take a look at the following resources:

For production, change the chain node URL in `config/config.js` and run:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

```shell script
yarn beforeBuild -- --CHAIN_ENDPOINT https://aelf-test-node.aelf.io
yarn build
```
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

## api rules
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.

- `/api/*` => `scan server`; [aelf-block-api](https://github.com/AElfProject/aelf-block-api)
- `/chain/*` => `aelf chain` [AElf Chain](https://github.com/AElfProject/AElf)
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Loading