From 35e5e8d961e1155e7266a116a4ab242dc0f7b37a Mon Sep 17 00:00:00 2001 From: Yashovardhan Agrawal Date: Fri, 7 Jul 2023 23:11:36 +0530 Subject: [PATCH] Fix URLs for slash --- docs/connect-blockchain/base.mdx | 12 +- docs/connect-blockchain/bnb.mdx | 12 +- .../connect-blockchain/connect-blockchain.mdx | 2 +- docs/connect-blockchain/cronos.mdx | 16 +- docs/connect-blockchain/klaytn.mdx | 2 +- docs/connect-blockchain/multi-chain.mdx | 8 +- docs/connect-blockchain/polygon.mdx | 2 +- docs/connect-blockchain/tezos.mdx | 2 +- docs/examples/demo.mdx | 4 +- .../social-login-users.mdx | 2 +- docs/sdk/core-kit/node/initialize.mdx | 6 +- docs/sdk/core-kit/node/usage.mdx | 2 +- docs/sdk/core-kit/sfa/initialize.mdx | 6 +- docs/sdk/sdk.mdx | 10 +- docusaurus.config.js | 44 +-- files/chains/tezos/tezosRPC.ts | 2 +- files/frameworks/angular/app.component.html | 4 +- files/frameworks/html/index.html | 303 +++++++++--------- files/frameworks/nextjs/App.tsx | 4 +- files/frameworks/react/App.tsx | 4 +- files/frameworks/vue/Home.vue | 2 +- package-lock.json | 6 +- .../sdk/pnp/web/_external-wallet-adapters.mdx | 2 +- src/common/sdk/pnp/web/_get-idtoken-info.mdx | 2 +- src/components/DiscourseComment/index.jsx | 2 +- src/components/HelpCards/index.tsx | 4 +- src/components/ResourcesCards/index.tsx | 2 +- src/components/UsecaseCards/index.tsx | 16 +- src/components/navDropdown/help.html | 4 +- src/components/navDropdown/resources.html | 6 +- src/components/navDropdown/sdk.html | 30 +- .../integration-builder/commonCode/maps.ts | 2 +- src/theme/Footer/index.tsx | 6 +- 33 files changed, 267 insertions(+), 264 deletions(-) diff --git a/docs/connect-blockchain/base.mdx b/docs/connect-blockchain/base.mdx index d84ca061b..697a76a87 100644 --- a/docs/connect-blockchain/base.mdx +++ b/docs/connect-blockchain/base.mdx @@ -83,7 +83,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Base Goerli", - blockExplorer: "https://goerli.basescan.org/", + blockExplorer: "https://goerli.basescan.org", ticker: "ETH", tickerName: "ETH", }, @@ -113,7 +113,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Base Goerli", - blockExplorer: "https://goerli.basescan.org/", + blockExplorer: "https://goerli.basescan.org", ticker: "ETH", tickerName: "ETH", }, @@ -142,7 +142,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Base Goerli", - blockExplorer: "https://goerli.basescan.org/", + blockExplorer: "https://goerli.basescan.org", ticker: "ETH", tickerName: "ETH", }, @@ -184,7 +184,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Base Goerli", - blockExplorer: "https://goerli.basescan.org/", + blockExplorer: "https://goerli.basescan.org", ticker: "ETH", tickerName: "ETH", }, @@ -214,7 +214,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Base Goerli", - blockExplorer: "https://goerli.basescan.org/", + blockExplorer: "https://goerli.basescan.org", ticker: "ETH", tickerName: "ETH", }, @@ -243,7 +243,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Base Goerli", - blockExplorer: "https://goerli.basescan.org/", + blockExplorer: "https://goerli.basescan.org", ticker: "ETH", tickerName: "ETH", }, diff --git a/docs/connect-blockchain/bnb.mdx b/docs/connect-blockchain/bnb.mdx index 0faa974c1..4f3e1ea01 100644 --- a/docs/connect-blockchain/bnb.mdx +++ b/docs/connect-blockchain/bnb.mdx @@ -83,7 +83,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Binance SmartChain Mainnet", - blockExplorer: "https://bscscan.com/", + blockExplorer: "https://bscscan.com", ticker: "BNB", tickerName: "BNB", }, @@ -113,7 +113,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Binance SmartChain Mainnet", - blockExplorer: "https://bscscan.com/", + blockExplorer: "https://bscscan.com", ticker: "BNB", tickerName: "BNB", }, @@ -142,7 +142,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Binance SmartChain Mainnet", - blockExplorer: "https://bscscan.com/", + blockExplorer: "https://bscscan.com", ticker: "BNB", tickerName: "BNB", }, @@ -184,7 +184,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Binance SmartChain Mainnet", - blockExplorer: "https://bscscan.com/", + blockExplorer: "https://bscscan.com", ticker: "BNB", tickerName: "BNB", }, @@ -214,7 +214,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Binance SmartChain Mainnet", - blockExplorer: "https://bscscan.com/", + blockExplorer: "https://bscscan.com", ticker: "BNB", tickerName: "BNB", }, @@ -243,7 +243,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Binance SmartChain Mainnet", - blockExplorer: "https://bscscan.com/", + blockExplorer: "https://bscscan.com", ticker: "BNB", tickerName: "BNB", }, diff --git a/docs/connect-blockchain/connect-blockchain.mdx b/docs/connect-blockchain/connect-blockchain.mdx index a39821bd6..682741e78 100644 --- a/docs/connect-blockchain/connect-blockchain.mdx +++ b/docs/connect-blockchain/connect-blockchain.mdx @@ -36,7 +36,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode, Alchemy, Ankr etc. displayName: "Ethereum Mainnet", // EVM chain's Name - blockExplorer: "https://etherscan.io/", // EVM chain's Blockexplorer + blockExplorer: "https://etherscan.io", // EVM chain's Blockexplorer ticker: "ETH", // EVM chain's Ticker tickerName: "Ethereum", // EVM chain's Ticker Name }, diff --git a/docs/connect-blockchain/cronos.mdx b/docs/connect-blockchain/cronos.mdx index c4f002462..2d253b242 100644 --- a/docs/connect-blockchain/cronos.mdx +++ b/docs/connect-blockchain/cronos.mdx @@ -83,7 +83,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Cronos Mainnet", - blockExplorer: "https://cronoscan.com/", + blockExplorer: "https://cronoscan.com", ticker: "CRO", tickerName: "CRO", }, @@ -113,7 +113,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Cronos Mainnet", - blockExplorer: "https://cronoscan.com/", + blockExplorer: "https://cronoscan.com", ticker: "CRO", tickerName: "CRO", }, @@ -142,7 +142,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Cronos Mainnet", - blockExplorer: "https://cronoscan.com/", + blockExplorer: "https://cronoscan.com", ticker: "CRO", tickerName: "CRO", }, @@ -184,7 +184,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Cronos Mainnet", - blockExplorer: "https://cronoscan.com/", + blockExplorer: "https://cronoscan.com", ticker: "CRO", tickerName: "CRO", }, @@ -214,7 +214,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Cronos Mainnet", - blockExplorer: "https://cronoscan.com/", + blockExplorer: "https://cronoscan.com", ticker: "CRO", tickerName: "CRO", }, @@ -243,7 +243,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Cronos Mainnet", - blockExplorer: "https://cronoscan.com/", + blockExplorer: "https://cronoscan.com", ticker: "CRO", tickerName: "CRO", }, @@ -276,11 +276,11 @@ const web3auth = new Web3Auth({ chainConfig: { chainNamespace: "eip155", chainId: "0x152", // hex of 338, cronos testnet - rpcTarget: "https://rpc-t3.cronos.org/", + rpcTarget: "https://rpc-t3.cronos.org", // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Cronos Testnet", - blockExplorer: "https://cronoscan.com/", + blockExplorer: "https://cronoscan.com", ticker: "CRO", tickerName: "CRO", }, diff --git a/docs/connect-blockchain/klaytn.mdx b/docs/connect-blockchain/klaytn.mdx index d2185ea03..3c3548813 100644 --- a/docs/connect-blockchain/klaytn.mdx +++ b/docs/connect-blockchain/klaytn.mdx @@ -280,7 +280,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Klaytn Testnet", - blockExplorer: "https://baobab.scope.klaytn.com/", + blockExplorer: "https://baobab.scope.klaytn.com", ticker: "KLAY", tickerName: "KLAY", }, diff --git a/docs/connect-blockchain/multi-chain.mdx b/docs/connect-blockchain/multi-chain.mdx index b1cf5eb5c..960211586 100644 --- a/docs/connect-blockchain/multi-chain.mdx +++ b/docs/connect-blockchain/multi-chain.mdx @@ -135,7 +135,7 @@ const polygonPrivateKeyProvider = new EthereumPrivateKeyProvider({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Polygon Mumbai", - blockExplorer: "https://mumbai.polygonscan.com/", + blockExplorer: "https://mumbai.polygonscan.com", ticker: "MATIC", tickerName: "MATIC", }, @@ -165,7 +165,7 @@ const bnbPrivateKeyProvider = new EthereumPrivateKeyProvider({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Binance SmartChain Mainnet", - blockExplorer: "https://bscscan.com/", + blockExplorer: "https://bscscan.com", ticker: "BNB", tickerName: "BNB", }, @@ -227,7 +227,7 @@ const cronosPrivateKeyProvider = new EthereumPrivateKeyProvider({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Cronos Mainnet", - blockExplorer: "https://cronoscan.com/", + blockExplorer: "https://cronoscan.com", ticker: "CRO", tickerName: "CRO", }, @@ -300,7 +300,7 @@ const solanaPrivateKeyProvider = new SolanaPrivateKeyProvider({ chainId: "0x1", rpcTarget: "https://ssc-dao.genesysgo.net", displayName: "Solana Mainnet", - blockExplorer: "https://explorer.solana.com/", + blockExplorer: "https://explorer.solana.com", ticker: "SOL", tickerName: "Solana", }, diff --git a/docs/connect-blockchain/polygon.mdx b/docs/connect-blockchain/polygon.mdx index 1d2a76417..7ec1528a9 100644 --- a/docs/connect-blockchain/polygon.mdx +++ b/docs/connect-blockchain/polygon.mdx @@ -280,7 +280,7 @@ const web3auth = new Web3Auth({ // Avoid using public rpcTarget in production. // Use services like Infura, Quicknode etc displayName: "Polygon Mumbai Testnet", - blockExplorer: "https://mumbai.polygonscan.com/", + blockExplorer: "https://mumbai.polygonscan.com", ticker: "MATIC", tickerName: "Matic", }, diff --git a/docs/connect-blockchain/tezos.mdx b/docs/connect-blockchain/tezos.mdx index fc3d63f05..c7f920f94 100644 --- a/docs/connect-blockchain/tezos.mdx +++ b/docs/connect-blockchain/tezos.mdx @@ -39,7 +39,7 @@ const web3auth = new Web3Auth({ web3AuthNetwork: "cyan", chainConfig: { chainNamespace: "other", // for all non EVM and SOLANA chains, use "other" - rpcTarget: "https://rpc.tzbeta.net/", + rpcTarget: "https://rpc.tzbeta.net", displayName: "Tezos", blockExplorer: "https://tzstats.com", ticker: "XTZ", diff --git a/docs/examples/demo.mdx b/docs/examples/demo.mdx index c7680a698..39ab71a57 100644 --- a/docs/examples/demo.mdx +++ b/docs/examples/demo.mdx @@ -89,13 +89,13 @@ export const DemoData = [ key: "demo-firebase", title: "Firebase Demo App", icon: "logo-firebase.png", - path: "https://demo-firebase.web3auth.io/", + path: "https://demo-firebase.web3auth.io", }, { key: "demo-auth0", title: "Auth0 Demo App", icon: "logo-auth0.png", - path: "https://demo-auth0.web3auth.io/", + path: "https://demo-auth0.web3auth.io", }, ], }, diff --git a/docs/pnp/features/server-side-verification/social-login-users.mdx b/docs/pnp/features/server-side-verification/social-login-users.mdx index 403ef56bd..d1232519e 100644 --- a/docs/pnp/features/server-side-verification/social-login-users.mdx +++ b/docs/pnp/features/server-side-verification/social-login-users.mdx @@ -103,7 +103,7 @@ await web3auth.authenticateUser(); { "iat": 1655835494, "aud": "BCtbnOamqh0cJFEUYA0NB5YkvBECZ3HLZsKfvSRBvew2EiiKW3UxpyQASSR0artjQkiUOCHeZ_ZeygXpYpxZjOs", - "iss": "https://api.openlogin.com/", + "iss": "https://api.openlogin.com", "email": "xyz@xyz.com", "name": "John Doe", "profileImage": "https://lh3.googleusercontent.com/a/AATXAJx3lnGmHiM4K97uLo9Rb0AxOceH-dQCBSRqGbck=s96-c", diff --git a/docs/sdk/core-kit/node/initialize.mdx b/docs/sdk/core-kit/node/initialize.mdx index 1ae50f6c4..db34d518a 100644 --- a/docs/sdk/core-kit/node/initialize.mdx +++ b/docs/sdk/core-kit/node/initialize.mdx @@ -142,7 +142,7 @@ const ethereumPrivateKeyProvider = new EthereumPrivateKeyProvider({ chainId: "0x1", rpcTarget: `https://rpc.ankr.com/eth`, displayName: "ropsten", - blockExplorer: "https://ropsten.etherscan.io/", + blockExplorer: "https://ropsten.etherscan.io", ticker: "ETH", tickerName: "Ethereum", }, @@ -168,7 +168,7 @@ const provider = new SolanaPrivateKeyProvider({ chainId: "0x1", // Please use 0x1 for Mainnet, 0x2 for Testnet, 0x3 for Devnet rpcTarget: "https://rpc.ankr.com/solana", displayName: "Solana Mainnet", - blockExplorer: "https://explorer.solana.com/", + blockExplorer: "https://explorer.solana.com", ticker: "SOL", tickerName: "Solana", }, @@ -189,7 +189,7 @@ const ethereumPrivateKeyProvider = new EthereumPrivateKeyProvider({ chainId: "0x1", rpcTarget: `https://rpc.ankr.com/eth`, displayName: "ropsten", - blockExplorer: "https://ropsten.etherscan.io/", + blockExplorer: "https://ropsten.etherscan.io", ticker: "ETH", tickerName: "Ethereum", }, diff --git a/docs/sdk/core-kit/node/usage.mdx b/docs/sdk/core-kit/node/usage.mdx index 73123c5af..a6c56c53f 100644 --- a/docs/sdk/core-kit/node/usage.mdx +++ b/docs/sdk/core-kit/node/usage.mdx @@ -167,7 +167,7 @@ const provider = new EthereumPrivateKeyProvider({ chainId: "0x1", rpcTarget: `https://rpc.ankr.com/eth`, displayName: "ropsten", - blockExplorer: "https://ropsten.etherscan.io/", + blockExplorer: "https://ropsten.etherscan.io", ticker: "ETH", tickerName: "Ethereum", }, diff --git a/docs/sdk/core-kit/sfa/initialize.mdx b/docs/sdk/core-kit/sfa/initialize.mdx index 7ab923191..13f9e5a98 100644 --- a/docs/sdk/core-kit/sfa/initialize.mdx +++ b/docs/sdk/core-kit/sfa/initialize.mdx @@ -174,7 +174,7 @@ const ethereumPrivateKeyProvider = new EthereumPrivateKeyProvider({ chainId: "0x1", rpcTarget: `https://rpc.ankr.com/eth`, displayName: "ropsten", - blockExplorer: "https://ropsten.etherscan.io/", + blockExplorer: "https://ropsten.etherscan.io", ticker: "ETH", tickerName: "Ethereum", }, @@ -200,7 +200,7 @@ const provider = new SolanaPrivateKeyProvider({ chainId: "0x1", // Please use 0x1 for Mainnet, 0x2 for Testnet, 0x3 for Devnet rpcTarget: "https://rpc.ankr.com/solana", displayName: "Solana Mainnet", - blockExplorer: "https://explorer.solana.com/", + blockExplorer: "https://explorer.solana.com", ticker: "SOL", tickerName: "Solana", }, @@ -221,7 +221,7 @@ const ethereumPrivateKeyProvider = new EthereumPrivateKeyProvider({ chainId: "0x1", rpcTarget: `https://rpc.ankr.com/eth`, displayName: "ropsten", - blockExplorer: "https://ropsten.etherscan.io/", + blockExplorer: "https://ropsten.etherscan.io", ticker: "ETH", tickerName: "Ethereum", }, diff --git a/docs/sdk/sdk.mdx b/docs/sdk/sdk.mdx index 049b6c1f5..f7d7ec030 100644 --- a/docs/sdk/sdk.mdx +++ b/docs/sdk/sdk.mdx @@ -120,19 +120,19 @@ export const HelperSDKGroupData = [ key: "provider-evm", title: "EVM Chain Provider SDK", icon: "logo-js.png", - path: "/sdk/helper-sdks/providers/evm/", + path: "/sdk/helper-sdks/providers/evm", }, { key: "provider-solana", title: "Solana Provider SDK", icon: "logo-js.png", - path: "/sdk/helper-sdks/providers/solana/", + path: "/sdk/helper-sdks/providers/solana", }, { key: "provider-xrpl", title: "XRPL Provider SDK", icon: "logo-js.png", - path: "/sdk/helper-sdks/providers/xrpl/", + path: "/sdk/helper-sdks/providers/xrpl", }, { key: "provider-common", @@ -144,13 +144,13 @@ export const HelperSDKGroupData = [ key: "plugin-evm", title: "EVM Wallet UI Plugin", icon: "logo-js.png", - path: "/sdk/helper-sdks/plugins/evm-wallet/", + path: "/sdk/helper-sdks/plugins/evm-wallet", }, { key: "plugin-solana", title: "Solana Wallet UI Plugin", icon: "logo-js.png", - path: "/sdk/helper-sdks/plugins/solana-wallet/", + path: "/sdk/helper-sdks/plugins/solana-wallet", }, ], }, diff --git a/docusaurus.config.js b/docusaurus.config.js index d8846c3d0..345ea447f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -122,7 +122,7 @@ const config = { type: "html", position: "right", value: - 'Login to Dashboard', + 'Login to Dashboard', }, { type: "html", @@ -218,7 +218,7 @@ const config = { to: "/quick-start", }, { - from: "/developing-with-web3auth/", + from: "/developing-with-web3auth", to: "/quick-start", }, { @@ -238,24 +238,24 @@ const config = { to: "/quick-start", }, { - from: "/sdk/web/choosesdk/", - to: "/sdk/pnp/web/", + from: "/sdk/web/choosesdk", + to: "/sdk/pnp/web", }, { from: "/sdk/android/setting-up", - to: "/sdk/pnp/android/", + to: "/sdk/pnp/android", }, { from: "/sdk/ios/setting-up", - to: "/sdk/pnp/ios/", + to: "/sdk/pnp/ios", }, { from: "/sdk/flutter/setting-up", - to: "/sdk/pnp/flutter/", + to: "/sdk/pnp/flutter", }, { from: "/sdk/react-native/choose-workflows", - to: "/sdk/pnp/react-native/", + to: "/sdk/pnp/react-native", }, { from: "/sdk/web/customauth", @@ -286,12 +286,12 @@ const config = { to: "/product-fit/user-flow", }, { - from: "/overview/key-management/", + from: "/overview/key-management", to: "/infrastructure/key-management", }, { - from: "/overview/key-management/technical-architecture/", - to: "/infrastructure/technical-architecture/", + from: "/overview/key-management/technical-architecture", + to: "/infrastructure/technical-architecture", }, { from: "/overview/key-management/audits", @@ -299,11 +299,11 @@ const config = { }, { from: "/whitelabeling", - to: "/pnp/features/whitelabel/", + to: "/pnp/features/whitelabel", }, { - from: "/whitelabel/", - to: "/pnp/features/whitelabel/", + from: "/whitelabel", + to: "/pnp/features/whitelabel", }, { from: "/interoperability", @@ -314,16 +314,16 @@ const config = { to: "/pnp/features/dapp-share", }, { - from: "/authenticating-users/", - to: "/pnp/features/server-side-verification/", + from: "/authenticating-users", + to: "/pnp/features/server-side-verification", }, { from: "/authenticating-users/overview", - to: "/pnp/features/server-side-verification/", + to: "/pnp/features/server-side-verification", }, { - from: "/server-side-verification/", - to: "/pnp/features/server-side-verification/", + from: "/server-side-verification", + to: "/pnp/features/server-side-verification", }, { from: "/server-side-verification/social-login-users", @@ -342,8 +342,8 @@ const config = { to: "/pnp/features/connect-external-wallets", }, { - from: "/developer-dashboard/", - to: "/dashboard-setup/", + from: "/developer-dashboard", + to: "/dashboard-setup", }, { from: "/developer-dashboard/get-client-id", @@ -363,7 +363,7 @@ const config = { }, { from: "/customauth", - to: "/auth-provider-setup/", + to: "/auth-provider-setup", }, { from: "/customauth/verifiers", diff --git a/files/chains/tezos/tezosRPC.ts b/files/chains/tezos/tezosRPC.ts index 2a71f038d..df1c471b1 100644 --- a/files/chains/tezos/tezosRPC.ts +++ b/files/chains/tezos/tezosRPC.ts @@ -10,7 +10,7 @@ import { InMemorySigner } from "@taquito/signer"; // HIGHLIGHTEND-installationTezos // HIGHLIGHTSTART-tezosRPCFunctions -const tezos = new TezosToolkit("https://rpc.tzbeta.net/"); +const tezos = new TezosToolkit("https://rpc.tzbeta.net"); // HIGHLIGHTEND-tezosRPCFunctions export default class TezosRpc { diff --git a/files/frameworks/angular/app.component.html b/files/frameworks/angular/app.component.html index d189f873c..038fb126d 100644 --- a/files/frameworks/angular/app.component.html +++ b/files/frameworks/angular/app.component.html @@ -1,6 +1,6 @@

- Web3Auth & AngularJS + Web3Auth & AngularJS Example

@@ -25,7 +25,7 @@

diff --git a/files/frameworks/html/index.html b/files/frameworks/html/index.html index 3eda63c5a..5b23775d3 100644 --- a/files/frameworks/html/index.html +++ b/files/frameworks/html/index.html @@ -1,165 +1,168 @@ - - // HIGHLIGHTSTART-buildingApp - Web3Auth Getting Started - // HIGHLIGHTEND-buildingApp - - - - - -
-

Web3Auth & JS Integration Example

- -
- - - - - - - - - -
-

-
-
- -
- + + // HIGHLIGHTSTART-buildingApp + Web3Auth Getting Started + // HIGHLIGHTEND-buildingApp + + + + + +
+

Web3Auth & JS Integration Example

+ +
+ + + + + + + + + +
+

-
- - - // REPLACE-getScriptImport- + +
+ +
+ +
- + + // REPLACE-getScriptImport- - (async function init() { - $(".btn-logged-in").hide(); - $("#sign-tx").hide(); + - + } else { + $(".btn-logged-out").show(); + $(".btn-logged-in").hide(); + } + })(); + + // HIGHLIGHTSTART-login + $("#login").click(async function (event) { + try { + // REPLACE-getLoginCode- + $(".btn-logged-out").hide(); + $(".btn-logged-in").show(); + } catch (error) { + console.error(error.message); + } + }); + // HIGHLIGHTEND-login + + // HIGHLIGHTSTART-getUserInfo + $("#get-user-info").click(async function (event) { + try { + const user = await web3auth.getUserInfo(); + console.log(user); + } catch (error) { + console.error(error.message); + } + }); + // HIGHLIGHTEND-getUserInfo + + // HIGHLIGHTSTART-logout + $("#logout").click(async function (event) { + try { + await web3auth.logout(); + $(".btn-logged-in").hide(); + $(".btn-logged-out").show(); + } catch (error) { + console.error(error.message); + } + }); + // HIGHLIGHTEND-logout + + $("#get-accounts").click(async function (event) { + try { + const accounts = await rpc.getAccounts(web3auth.provider); + console.log(accounts); + } catch (error) { + console.error(error.message); + } + }); + + $("#get-balance").click(async function (event) { + try { + const balance = await rpc.getBalance(web3auth.provider); + console.log(balance); + } catch (error) { + console.error(error.message); + } + }); + + $("#send-transaction").click(async function (event) { + try { + const receipt = await rpc.sendTransaction(web3auth.provider); + console.log(receipt); + } catch (error) { + console.error(error.message); + } + }); + + $("#sign-transaction").click(async function (event) { + try { + const receipt = await rpc.signTransaction(web3auth.provider); + console.log(receipt); + } catch (error) { + console.error(error.message); + } + }); + + $("#sign-message").click(async function (event) { + try { + const signedMsg = await rpc.signMessage(web3auth.provider); + console.log(signedMsg); + } catch (error) { + console.error(error.message); + } + }); + + $("#get-private-key").click(async function (event) { + try { + const privateKey = await rpc.getPrivateKey(web3auth.provider); + console.log(privateKey); + } catch (error) { + console.error(error.message); + } + }); + + + diff --git a/files/frameworks/nextjs/App.tsx b/files/frameworks/nextjs/App.tsx index feba8cbfb..78523b0fa 100644 --- a/files/frameworks/nextjs/App.tsx +++ b/files/frameworks/nextjs/App.tsx @@ -121,7 +121,7 @@ function App() { return (

- + Web3Auth & NextJS Example @@ -130,7 +130,7 @@ function App() {
{provider ? loggedInView : unloggedInView}
diff --git a/files/frameworks/react/App.tsx b/files/frameworks/react/App.tsx index bf4d28759..a78e47a9d 100644 --- a/files/frameworks/react/App.tsx +++ b/files/frameworks/react/App.tsx @@ -129,7 +129,7 @@ function App() { return (

- + Web3Auth & ReactJS Example @@ -138,7 +138,7 @@ function App() {
{provider ? loggedInView : unloggedInView}
diff --git a/files/frameworks/vue/Home.vue b/files/frameworks/vue/Home.vue index dfa9d2da4..3ddbd99ae 100644 --- a/files/frameworks/vue/Home.vue +++ b/files/frameworks/vue/Home.vue @@ -1,7 +1,7 @@