- {sortedExampleMap.map((item) => renderArticle(item))}
- {sortedExampleMap.length === 0 && (
+ {tagFilteredExampleMap.map((item) => renderArticle(item))}
+ {tagFilteredExampleMap.length === 0 && (
diff --git a/src/components/Examples/pnpGamingExamples.tsx b/src/components/Examples/pnpGamingExamples.tsx
deleted file mode 100644
index 1e63d3e70..000000000
--- a/src/components/Examples/pnpGamingExamples.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-export const baseURL = "https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/";
-
-export const PNPUnity = [
- {
- name: "",
- description: "",
- tiles: [
- {
- key: "unity-quick-start",
- title: "Unity QuickStart Example",
- icon: "logo-unity.png",
- path: `${baseURL}unity/unity-quick-start`,
- },
- {
- key: "unity-auth0-example",
- title: "Unity + Auth0",
- icon: "logo-auth0.png",
- path: `${baseURL}unity/unity-auth0-example`,
- },
- {
- key: "unity-aggregate-verifier-example",
- title: "Unity + Aggregate Verifier",
- icon: "logo-google.png",
- path: `${baseURL}unity/unity-aggregate-verifier-example`,
- },
- ],
- },
-];
-
-export const PNPUnreal = [
- {
- name: "",
- description: "",
- tiles: [
- {
- key: "unreal-example",
- title: "Unreal Basic Example",
- icon: "logo-unreal.png",
- path: "https://github.com/Web3Auth/web3auth-unreal-example/tree/master",
- },
- {
- key: "unreal-auth0-example",
- title: "Unreal + Auth0",
- icon: "logo-auth0.png",
- path: "https://github.com/Web3Auth/web3auth-unreal-example/tree/auth0-example",
- },
- {
- key: "unreal-google-example",
- title: "Unreal + Custom Google",
- icon: "logo-google.png",
- path: "https://github.com/Web3Auth/web3auth-unreal-example/tree/custom-google",
- },
- ],
- },
-];
diff --git a/src/components/Examples/pnpMobileExamples.tsx b/src/components/Examples/pnpMobileExamples.tsx
deleted file mode 100644
index 431ce3706..000000000
--- a/src/components/Examples/pnpMobileExamples.tsx
+++ /dev/null
@@ -1,139 +0,0 @@
-export const baseURL = "https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/";
-
-export const PNPAndroid = [
- {
- name: "",
- description: "",
- tiles: [
- {
- key: "android-quick-start",
- title: "Android QuickStart Example",
- icon: "logo-android.png",
- path: `${baseURL}android/android-quick-start`,
- },
- {
- key: "android-auth0-example",
- title: "Android + Auth0",
- icon: "logo-auth0.png",
- path: `${baseURL}android/android-auth0-example`,
- },
- {
- key: "android-firebase-example",
- title: "Android + Firebase",
- icon: "logo-firebase.png",
- path: `${baseURL}android/android-firebase-example`,
- },
- {
- key: "android-android-aggregate-verifier-example",
- title: "Android + Aggregate Verifier",
- icon: "logo-google.png",
- path: `${baseURL}android/android-aggregate-verifier-example`,
- },
- ],
- },
-];
-
-export const PNPIos = [
- {
- name: "",
- description: "",
- tiles: [
- {
- key: "ios-quick-start",
- title: "iOS QuickStart Example",
- icon: "logo-apple.png",
- path: `${baseURL}ios/ios-quick-start`,
- },
- {
- key: "ios-auth0-example",
- title: "iOS + Auth0",
- icon: "logo-auth0.png",
- path: `${baseURL}ios/ios-auth0-example`,
- },
- {
- key: "ios-firebase-example",
- title: "iOS + Firebase",
- icon: "logo-firebase.png",
- path: `${baseURL}ios/ios-firebase-example`,
- },
- {
- key: "ios-aggregate-verifier-example",
- title: "iOS + Aggregate Verifier",
- icon: "logo-google.png",
- path: `${baseURL}ios/ios-aggregate-verifier-example`,
- },
- ],
- },
-];
-
-export const PNPRN = [
- {
- name: "",
- description: "",
- tiles: [
- {
- key: "rn-bare-quick-start",
- title: "React Native Bare QuickStart Example",
- icon: "logo-react.png",
- path: `${baseURL}react-native/rn-bare-quick-start`,
- },
- {
- key: "rn-bare-auth0-example",
- title: "React Native Bare + Auth0",
- icon: "logo-auth0.png",
- path: `${baseURL}react-native/rn-bare-auth0-example`,
- },
- {
- key: "rn-bare-firebase-example",
- title: "React Native Bare + Firebase",
- icon: "logo-firebase.png",
- path: `${baseURL}react-native/rn-bare-firebase-example`,
- },
- {
- key: "rn-bare-aggregate-verifier-example",
- title: "React Native Bare + Aggregate Verifier",
- icon: "logo-google.png",
- path: `${baseURL}react-native/rn-bare-aggregate-verifier-example`,
- },
- {
- key: "rn-expo-example",
- title: "React Native Expo Basic Example",
- icon: "logo-react.png",
- path: `${baseURL}react-native/rn-expo-example`,
- },
- ],
- },
-];
-
-export const PNPFlutter = [
- {
- name: "",
- description: "",
- tiles: [
- {
- key: "flutter-quick-start",
- title: "Flutter QuickStart Example",
- icon: "logo-flutter.png",
- path: `${baseURL}flutter/flutter-quick-start`,
- },
- {
- key: "flutter-auth0-example",
- title: "Flutter + Auth0",
- icon: "logo-auth0.png",
- path: `${baseURL}flutter/flutter-auth0-example`,
- },
- {
- key: "flutter-firebase-example",
- title: "Flutter + Firebase",
- icon: "logo-firebase.png",
- path: `${baseURL}flutter/flutter-firebase-example`,
- },
- {
- key: "flutter-aggregate-verifier-example",
- title: "Flutter + Aggregate Verifier",
- icon: "logo-google.png",
- path: `${baseURL}flutter/flutter-aggregate-verifier-example`,
- },
- ],
- },
-];
diff --git a/src/components/Examples/pnpModalExamples.tsx b/src/components/Examples/pnpModalExamples.tsx
deleted file mode 100644
index 9cdcda107..000000000
--- a/src/components/Examples/pnpModalExamples.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-export const baseURL = "https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-modal-sdk/";
-
-export const PNPModalWebExample = [
- {
- name: "",
- description: "",
- tiles: [
- {
- key: "react-evm-modal-example",
- title: "Ethereum in React",
- icon: "logo-ethereum.png",
- path: `${baseURL}blockchain-connection-examples/evm-modal-example`,
- },
- {
- key: "react-solana-modal-example",
- title: "Solana in React",
- icon: "logo-solana.png",
- path: `${baseURL}blockchain-connection-examples/solana-modal-example`,
- },
- {
- key: "react-xrpl-modal-example",
- title: "XRPL in React",
- icon: "logo-xrpl.png",
- path: `${baseURL}blockchain-connection-examples/xrpl-modal-example`,
- },
- ],
- },
-];
diff --git a/src/components/Examples/pnpNoModalExamples.tsx b/src/components/Examples/pnpNoModalExamples.tsx
deleted file mode 100644
index a290fa336..000000000
--- a/src/components/Examples/pnpNoModalExamples.tsx
+++ /dev/null
@@ -1,88 +0,0 @@
-export const baseURL = "https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-no-modal-sdk/";
-
-export const PNPNoModalWebExample = [
- {
- name: "",
- description: "",
- tiles: [
- {
- key: "react-evm-no-modal-example",
- title: "Ethereum in React",
- icon: "logo-ethereum.png",
- path: `${baseURL}blockchain-connection-examples/evm-no-modal-example`,
- },
- {
- key: "react-solana-no-modal-example",
- title: "Solana in React",
- icon: "logo-solana.png",
- path: `${baseURL}blockchain-connection-examples/solana-no-modal-example`,
- },
- {
- key: "react-xrpl-no-modal-example",
- title: "XRPL in React",
- icon: "logo-xrpl.png",
- path: `${baseURL}blockchain-connection-examples/xrpl-no-modal-example`,
- },
- {
- key: "react-algorand-no-modal-example",
- title: "Algorand in React",
- icon: "logo-algorand.png",
- path: `${baseURL}blockchain-connection-examples/algorand-no-modal-example`,
- },
- {
- key: "react-aptos-no-modal-example",
- title: "Aptos in React",
- icon: "logo-aptos.png",
- path: `${baseURL}blockchain-connection-examples/aptos-no-modal-example`,
- },
- {
- key: "react-cosmos-no-modal-example",
- title: "Cosmos in React",
- icon: "logo-cosmos.png",
- path: `${baseURL}blockchain-connection-examples/cosmos-no-modal-example`,
- },
- {
- key: "react-immutablex-no-modal-example",
- title: "Immutablex in React",
- icon: "logo-immutablex.png",
- path: `${baseURL}blockchain-connection-examples/immutablex-no-modal-example`,
- },
- {
- key: "react-multichain-no-modal-example",
- title: "Multi Chain in React",
- icon: "logo-react.png",
- path: `${baseURL}blockchain-connection-examples/multi-chain-no-modal-example`,
- },
- {
- key: "react-polkadot-no-modal-example",
- title: "Polkadot in React",
- icon: "logo-polkadot.png",
- path: `${baseURL}blockchain-connection-examples/polkadot-no-modal-example`,
- },
- {
- key: "react-polymesh-no-modal-example",
- title: "Polymesh in React",
- icon: "logo-polymesh.png",
- path: `${baseURL}blockchain-connection-examples/polymesh-no-modal-example`,
- },
- {
- key: "react-starkex-no-modal-example",
- title: "StarkEX in React",
- icon: "logo-starkex.png",
- path: `${baseURL}blockchain-connection-examples/starkex-no-modal-example`,
- },
- {
- key: "react-starknet-no-modal-example",
- title: "StarkNet in React",
- icon: "logo-starknet.png",
- path: `${baseURL}blockchain-connection-examples/starknet-no-modal-example`,
- },
- {
- key: "react-tezos-no-modal-example",
- title: "Tezos in React",
- icon: "logo-tezos.png",
- path: `${baseURL}blockchain-connection-examples/tezos-no-modal-example`,
- },
- ],
- },
-];
diff --git a/src/pages/guides/index.tsx b/src/pages/guides/index.tsx
index 1861d7174..8d1c9ca3f 100644
--- a/src/pages/guides/index.tsx
+++ b/src/pages/guides/index.tsx
@@ -6,7 +6,7 @@
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
-import { Props, blockchainMap, platformMap, productMap } from "../../common/maps";
+import { GuidesInterface, platformMap, productMap } from "../../common/maps";
import Select, { StylesConfig } from "react-select";
// import { request } from "graphql-request";
@@ -14,7 +14,7 @@ import { useState, useEffect } from "react";
import SEO from "../../components/SEO";
import styles from "./styles.module.css";
-export default function Guides({ content }: Props) {
+export default function Guides({ content }: GuidesInterface) {
const completeGuides = Object.entries(content).map(([key, value]) => {
if (value.type === "guide") return { ...value, link: `/guides/${key}` };
return {};
diff --git a/src/pages/quick-start/builder/index.ts b/src/pages/quick-start/builder/index.ts
index 74c780f09..a996d45c8 100644
--- a/src/pages/quick-start/builder/index.ts
+++ b/src/pages/quick-start/builder/index.ts
@@ -1,6 +1,6 @@
/* eslint-disable camelcase */
import { IntegrationBuilder, IntegrationStep } from "../interfaces";
-import { quickStartHostedLinks } from "../../../common/maps";
+import { quickStartHostedLinks, quickStartSourceCode } from "../../../common/maps";
import {
LANGS_ANDROID,
LANGS_FLUTTER,
@@ -25,6 +25,7 @@ import {
SFA_FLUTTER,
SFA_NODE,
SFA_REACT_NATIVE,
+ REACT_NATIVE,
} from "./choices";
import mpc_core_kit_angular from "./core_kit/mpc_core_kit/angular";
import mpc_core_kit_nextjs from "./core_kit/mpc_core_kit/nextjs";
@@ -223,6 +224,16 @@ const builder: IntegrationBuilder = {
selectedSDK = `${finalValues.sdk}_${finalValues.framework}`;
+ let sourceCodeLink;
+
+ if (LANGS_WEB.map((it) => it.key).includes(finalValues.framework)) {
+ sourceCodeLink = quickStartSourceCode[selectedSDK];
+ } else if (finalValues.sdk === MPC_CORE_KIT && finalValues.framework === REACT_NATIVE) {
+ sourceCodeLink = quickStartSourceCode[selectedSDK];
+ } else {
+ sourceCodeLink = quickStartSourceCode[finalValues.sdk];
+ }
+
sdks[selectedSDK].build({ ...finalValues, filenames, files: newFiles, steps });
if (stepIndex >= steps.length) {
@@ -241,6 +252,7 @@ const builder: IntegrationBuilder = {
})),
stepIndex,
embedLink: quickStartHostedLinks[selectedSDK],
+ sourceCodeLink,
};
},
};
diff --git a/src/pages/quick-start/index.tsx b/src/pages/quick-start/index.tsx
index 4ca1b5206..f8a070848 100644
--- a/src/pages/quick-start/index.tsx
+++ b/src/pages/quick-start/index.tsx
@@ -351,6 +351,13 @@ export default function IntegrationBuilderPage({ files }: { files: Record
)}
+