Skip to content

Commit 2b69629

Browse files
committed
update modal examples
1 parent a146d8f commit 2b69629

File tree

185 files changed

+51638
-21564
lines changed

Some content is hidden

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

185 files changed

+51638
-21564
lines changed
Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# production
12-
/build
13-
14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
20-
1+
# Logs
2+
logs
3+
*.log
214
npm-debug.log*
225
yarn-debug.log*
236
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
yarn.lock
10+
11+
node_modules
12+
dist
13+
dist-ssr
14+
*.local
15+
16+
# Editor directories and files
17+
.vscode/*
18+
!.vscode/extensions.json
19+
.idea
20+
.DS_Store
21+
*.suo
22+
*.ntvs*
23+
*.njsproj
24+
*.sln
25+
*.sw?

web-modal-sdk/custom-authentication-modal-example/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Web3Auth (`@web3auth/modal`) x EVM x React - Custom Authentication
1+
# Web3Auth (`@web3auth/modal`) x EVM x React
22

33
[![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/pnp/web/modal)
44
[![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io)
@@ -11,25 +11,24 @@ This example demonstrates how to use Web3Auth with EVM in React.
1111

1212
### One-Click Deploy to Vercel
1313

14-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FWeb3Auth%2Fweb3auth-pnp-examples%2Ftree%2Fmain%2Fweb-modal-sdk%2Fcustom-authentication-modal-example&project-name=w3a-custom-auth-modal&repository-name=w3a-custom-auth-modal)
15-
14+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FWeb3Auth%2Fweb3auth-pnp-examples%2Ftree%2Fmain%2Fweb-modal-sdk%2Fquick-starts%2Freact-vite-evm-modal-quick-start&project-name=w3a-react-vite-no-modal&repository-name=w3a-react-vite-no-modal)
1615

1716
### Download Manually
1817

1918
```bash
20-
npx degit Web3Auth/web3auth-pnp-examples/web-modal-sdk/custom-authentication-modal-example w3a-example
19+
npx degit Web3Auth/web3auth-pnp-examples/web-modal-sdk/quick-starts/react-modal-quick-start w3a-example
2120
```
2221

2322
Install & Run:
2423

2524
```bash
2625
cd w3a-example
2726
npm install
28-
npm run start
27+
npm run dev
2928
# or
3029
cd w3a-example
3130
yarn
32-
yarn start
31+
yarn dev
3332
```
3433

3534
## Important Links

web-modal-sdk/custom-authentication-modal-example/index.html

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,15 @@
55
import { Buffer } from "buffer";
66
import process from "process";
77
window.Buffer = Buffer;
8-
window.process = process;
9-
</script>
10-
<meta charset="utf-8" />
11-
<meta name="viewport" content="width=device-width, initial-scale=1" />
12-
<meta name="theme-color" content="#000000" />
13-
<meta name="description" content="Web site created using create-react-app but later moved to vite" />
14-
15-
<title>Web3auth EVM Modal Demo App</title>
8+
window.process = process;
9+
</script>
10+
<meta charset="UTF-8" />
11+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
13+
<title>Vite + React + TS</title>
1614
</head>
1715
<body>
18-
<noscript>You need to enable JavaScript to run this app.</noscript>
1916
<div id="root"></div>
20-
21-
<script type="module" src="/src/index.tsx"></script>
17+
<script type="module" src="/src/main.tsx"></script>
2218
</body>
2319
</html>

0 commit comments

Comments
 (0)