Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit a6b4d97

Browse files
authored
fix: entry js path & nextjs example & add remix example (#25)
1 parent 71234a2 commit a6b4d97

File tree

74 files changed

+7051
-1434
lines changed

Some content is hidden

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

74 files changed

+7051
-1434
lines changed

.changeset/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"uploadkit-with-nextjs-walletkit",
1212
"uploadkit-with-nextjs-rainbowkit",
1313
"uploadkit-with-vite-walletkit",
14+
"uploadkit-with-remix-rainbowkit",
1415
"docs"
1516
]
1617
}

.changeset/small-poems-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@node-real/greenfield-uploadkit": patch
3+
---
4+
5+
fix: entry js path & nextjs example & add remix example

docs/src/pages/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ npm i wagmi viem @bnb-chain/greenfield-js-sdk @bnb-chain/greenfield-cosmos-types
1414

1515
## Examples
1616

17+
- [uploadkit-with-vite-walletkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-vite-walletkit)
1718
- [uploadkit-with-nextjs-walletkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-nextjs-walletkit)
1819
- [uploadkit-with-nextjs-rainbowkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-nextjs-rainbowkit)
19-
- [uploadkit-with-vite-walletkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-vite-walletkit)
20+
- [uploadkit-with-remix-walletkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-vite-walletkit)
2021

2122
## Playground
2223

examples/uploadkit-with-nextjs-rainbowkit/.gitignore

Lines changed: 0 additions & 36 deletions
This file was deleted.

examples/uploadkit-with-nextjs-rainbowkit/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ bun dev
1616

1717
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1818

19-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
20-
21-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
22-
23-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
2420

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

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/basic-features/typescript for more information.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {
3-
reactStrictMode: true,
4-
};
2+
const nextConfig = {};
53

64
module.exports = nextConfig;
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "uploadkit-with-nextjs-rainbowkit",
3-
"version": "0.0.1",
4-
"author": "node-real",
5-
"private": "true",
3+
"version": "0.1.0",
4+
"private": true,
65
"scripts": {
76
"dev": "next dev",
87
"build": "next build",
@@ -13,19 +12,22 @@
1312
"@bnb-chain/greenfield-cosmos-types": "latest",
1413
"@bnb-chain/greenfield-js-sdk": "latest",
1514
"@bnb-chain/reed-solomon": "latest",
16-
"@node-real/greenfield-uploadkit": "latest",
15+
"@node-real/greenfield-uploadkit": "0.0.5-alpha.0",
1716
"@rainbow-me/rainbowkit": "^1.3.3",
1817
"axios": "^1.6.3",
19-
"next": "^13.5.6",
20-
"react": "^18.2.0",
21-
"react-dom": "^18.2.0",
18+
"next": "14.0.4",
19+
"react": "^18",
20+
"react-dom": "^18",
2221
"viem": "^1.19.9",
2322
"wagmi": "^1.4.7"
2423
},
2524
"devDependencies": {
26-
"@types/node": "^20.10.0",
27-
"@types/react": "^18.2.39",
28-
"@types/react-dom": "^18.2.17",
29-
"typescript": "^5.3.2"
25+
"@types/node": "^20",
26+
"@types/react": "^18",
27+
"@types/react-dom": "^18",
28+
"eslint": "^8",
29+
"eslint-config-next": "14.0.4",
30+
"pino-pretty": "^10.3.1",
31+
"typescript": "^5"
3032
}
3133
}

examples/uploadkit-with-nextjs-rainbowkit/pages/_app.tsx

Lines changed: 0 additions & 68 deletions
This file was deleted.

examples/uploadkit-with-nextjs-rainbowkit/pages/_document.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)