Skip to content

Commit

Permalink
fix: entry js path & nextjs example & add remix example (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinxl authored Jan 16, 2024
1 parent 71234a2 commit a6b4d97
Show file tree
Hide file tree
Showing 74 changed files with 7,051 additions and 1,434 deletions.
1 change: 1 addition & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"uploadkit-with-nextjs-walletkit",
"uploadkit-with-nextjs-rainbowkit",
"uploadkit-with-vite-walletkit",
"uploadkit-with-remix-rainbowkit",
"docs"
]
}
5 changes: 5 additions & 0 deletions .changeset/small-poems-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@node-real/greenfield-uploadkit": patch
---

fix: entry js path & nextjs example & add remix example
3 changes: 2 additions & 1 deletion docs/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ npm i wagmi viem @bnb-chain/greenfield-js-sdk @bnb-chain/greenfield-cosmos-types

## Examples

- [uploadkit-with-vite-walletkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-vite-walletkit)
- [uploadkit-with-nextjs-walletkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-nextjs-walletkit)
- [uploadkit-with-nextjs-rainbowkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-nextjs-rainbowkit)
- [uploadkit-with-vite-walletkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-vite-walletkit)
- [uploadkit-with-remix-walletkit](https://github.com/node-real/greenfield-toolkit/examples/uploadkit-with-vite-walletkit)

## Playground

Expand Down
36 changes: 0 additions & 36 deletions examples/uploadkit-with-nextjs-rainbowkit/.gitignore

This file was deleted.

6 changes: 1 addition & 5 deletions examples/uploadkit-with-nextjs-rainbowkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ bun dev

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

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

[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`.

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.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

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

Expand Down
5 changes: 5 additions & 0 deletions examples/uploadkit-with-nextjs-rainbowkit/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
4 changes: 1 addition & 3 deletions examples/uploadkit-with-nextjs-rainbowkit/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};
const nextConfig = {};

module.exports = nextConfig;
24 changes: 13 additions & 11 deletions examples/uploadkit-with-nextjs-rainbowkit/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "uploadkit-with-nextjs-rainbowkit",
"version": "0.0.1",
"author": "node-real",
"private": "true",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
Expand All @@ -13,19 +12,22 @@
"@bnb-chain/greenfield-cosmos-types": "latest",
"@bnb-chain/greenfield-js-sdk": "latest",
"@bnb-chain/reed-solomon": "latest",
"@node-real/greenfield-uploadkit": "latest",
"@node-real/greenfield-uploadkit": "0.0.5-alpha.0",
"@rainbow-me/rainbowkit": "^1.3.3",
"axios": "^1.6.3",
"next": "^13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"next": "14.0.4",
"react": "^18",
"react-dom": "^18",
"viem": "^1.19.9",
"wagmi": "^1.4.7"
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"typescript": "^5.3.2"
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.0.4",
"pino-pretty": "^10.3.1",
"typescript": "^5"
}
}
68 changes: 0 additions & 68 deletions examples/uploadkit-with-nextjs-rainbowkit/pages/_app.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions examples/uploadkit-with-nextjs-rainbowkit/pages/_document.tsx

This file was deleted.

66 changes: 0 additions & 66 deletions examples/uploadkit-with-nextjs-rainbowkit/pages/chains.ts

This file was deleted.

3 changes: 0 additions & 3 deletions examples/uploadkit-with-nextjs-rainbowkit/pages/index.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions examples/uploadkit-with-nextjs-rainbowkit/pages/offchainauth.ts

This file was deleted.

40 changes: 0 additions & 40 deletions examples/uploadkit-with-nextjs-rainbowkit/pages/sp.ts

This file was deleted.

1 change: 1 addition & 0 deletions examples/uploadkit-with-nextjs-rainbowkit/public/next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a6b4d97

Please sign in to comment.