Skip to content

Commit

Permalink
Fix broken links of Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shahbaz17 committed Oct 27, 2023
1 parent 7f1936d commit 4f5dc11
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 607 deletions.
100 changes: 50 additions & 50 deletions src/components/Examples/coreKitExamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export const CKTkey = [
key: "tkey-react-redirect-example",
title: "tKey in Redirect Flow",
icon: "logo-react.png",
path: `${baseURL}tkey/tkey-react-redirect-example`,
path: `${baseURL}tkey-web/intrinsic-flow-examples/tkey-redirect-flow-example`,
},
{
key: "tkey-react-popup-example",
title: "tKey in Popup Flow",
icon: "logo-react.png",
path: `${baseURL}tkey/tkey-react-popup-example`,
path: `${baseURL}tkey-web/intrinsic-flow-examples/tkey-popup-flow-example`,
},
],
},
Expand All @@ -30,19 +30,19 @@ export const MPCCK = [
key: "mpc-core-kit-react-popup-example",
title: "MPC Core Kit Popup Flow",
icon: "logo-react.png",
path: `${baseURL}mpc-core-kit/mpc-core-kit-react-popup-example`,
path: `${baseURL}mpc-core-kit-web/intrinsic-flow-examples/mpc-core-kit-popup-flow-example`,
},
{
key: "mpc-core-kit-react-redirect-example",
title: "MPC Core Kit Redirect Flow",
icon: "logo-react.png",
path: `${baseURL}mpc-core-kit/mpc-core-kit-react-redirect-example`,
path: `${baseURL}mpc-core-kit-web/intrinsic-flow-examples/mpc-core-kit-redirect-flow-example`,
},
{
key: "tkey-mpc-beta-react-popup-example",
title: "tKey MPC Popup Flow",
key: "mpc-core-kit-aggregate-verifier-example",
title: "MPC Core Kit Aggregate Example",
icon: "logo-react.png",
path: `${baseURL}mpc-core-kit/tkey-mpc-react-popup-example`,
path: `${baseURL}mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example`,
},
],
},
Expand All @@ -54,22 +54,34 @@ export const CKSFA = [
description: "",
tiles: [
{
key: "react-evm-sfa-example",
title: "Single Factor Auth Basic Example",
key: "sfa-web-google-example",
title: "SFA Web Google Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/react-evm-sfa-example`,
path: `${baseURL}single-factor-auth-web/sfa-web-google-example`,
},
{
key: "sfa-react-example",
title: "Single Factor Auth React Example",
key: "sfa-web-auth0-example",
title: "SFA Web Auth0 Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/sfa-react-example`,
path: `${baseURL}single-factor-auth-web/sfa-web-auth0-example`,
},
{
key: "sfa-react-vite-example",
title: "Single Factor Auth React (Vite) Example",
key: "sfa-web-custom-jwt-example",
title: "SFA Web Custom JWT Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/sfa-react-vite-example`,
path: `${baseURL}single-factor-auth-web/sfa-web-custom-jwt-example`,
},
{
key: "sfa-web-passwordless-example",
title: "SFA Web Passwordless Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/sfa-web-passwordless-example`,
},
{
key: "sfa-web-aggregate-verifier-example",
title: "SFA Web Aggregate Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/sfa-web-aggregate-verifier-example`,
},
],
},
Expand All @@ -82,9 +94,9 @@ export const CKSFAAndroid = [
tiles: [
{
key: "android-sfa-example",
title: "Single Factor Auth Android Example",
title: "SFA Android Example",
icon: "logo-android.png",
path: `${baseURL}single-factor-auth-android/android-sfa-firebase-example`,
path: `${baseURL}single-factor-auth-android/sfa-android-quick-start`,
},
],
},
Expand All @@ -97,9 +109,9 @@ export const CKSFAiOS = [
tiles: [
{
key: "ios-sfa-example",
title: "Single Factor Auth iOS Example",
title: "SFA iOS Example",
icon: "logo-apple.png",
path: `${baseURL}single-factor-auth-ios/ios-sfa-firebase-example`,
path: `${baseURL}single-factor-auth-ios/sfa-ios-quick-start`,
},
],
},
Expand All @@ -112,9 +124,9 @@ export const CKSFARN = [
tiles: [
{
key: "sfa-react-native-firebase-example",
title: "SFA React Native with Firebase",
title: "SFA React Native QuickStart",
icon: "logo-firebase.png",
path: `${baseURL}single-factor-auth-react-native/sfa-react-native-firebase-example`,
path: `${baseURL}single-factor-auth-react-native/sfa-rn-bare-quick-start`,
},
{
key: "sfa-rn-expo-auth0-example",
Expand All @@ -133,7 +145,7 @@ export const CKSFAFlutter = [
tiles: [
{
key: "flutter-sfa-example",
title: "Single Factor Auth Flutter Example",
title: "SFA Flutter Example",
icon: "logo-flutter.png",
path: "https://github.com/Web3Auth/single-factor-auth-flutter/tree/master/example",
},
Expand All @@ -148,27 +160,27 @@ export const CKTkeyiOS = [
tiles: [
{
key: "tkey-ios-example",
title: "CoreKit tKey iOS Example",
title: "tKey iOS Example",
icon: "logo-google.png",
path: `${baseURL}tkey-ios/tkey-ios-google-example`,
path: `${baseURL}tkey-ios/tkey-ios-quick-start`,
},
{
key: "tkey-ios-aggregate-example",
title: "CoreKit tKey iOS Aggregate Example",
title: "tKey iOS Aggregate Example",
icon: "logo-apple.png",
path: `${baseURL}tkey-ios/tkey-ios-google-example`,
path: `${baseURL}tkey-ios/tkey-ios-aggregate-verifier-example`,
},
{
key: "tkey-ios-auth0-example",
title: "CoreKit tKey iOS Auth0 Example",
title: "tKey iOS Auth0 Example",
icon: "logo-auth0.png",
path: `${baseURL}tkey-ios/tkey-ios-google-example`,
path: `${baseURL}tkey-ios/tkey-ios-auth0-example`,
},
{
key: "tkey-ios-firebase-example",
title: "CoreKit tKey iOS Firebase Example",
title: "tKey iOS Firebase Example",
icon: "logo-firebase.png",
path: `${baseURL}tkey-ios/tkey-ios-google-example`,
path: `${baseURL}tkey-ios/tkey-ios-firebase-example`,
},
],
},
Expand All @@ -181,27 +193,15 @@ export const CKTkeyAndroid = [
tiles: [
{
key: "tkey-android-example",
title: "CoreKit tKey Android Example",
title: "tKey Android Example",
icon: "logo-google.png",
path: `${baseURL}tkey-android/tkey-android-google-example`,
path: `${baseURL}tkey-android/tkey-android-auth0-example`,
},
{
key: "tkey-android-aggregate-example",
title: "CoreKit tKey Android Aggregate Example",
title: "tKey Android QuickStart Example",
icon: "logo-android.png",
path: `${baseURL}tkey-android/tkey-android-google-example`,
},
{
key: "tkey-android-auth0-example",
title: "CoreKit tKey Android Auth0 Example",
icon: "logo-auth0.png",
path: `${baseURL}tkey-android/tkey-android-google-example`,
},
{
key: "tkey-android-firebase-example",
title: "CoreKit tKey Android Firebase Example",
icon: "logo-firebase.png",
path: `${baseURL}tkey-android/tkey-android-google-example`,
path: `${baseURL}tkey-android/tkey-android-quick-start`,
},
],
},
Expand All @@ -213,10 +213,10 @@ export const CKNode = [
description: "",
tiles: [
{
key: "node-backend-example",
title: "Node Backend Example",
key: "sfa-node-example",
title: "SFA Node Example",
icon: "logo-nodejs.png",
path: `${baseURL}node-sdk/node-backend-example`,
path: `${baseURL}single-factor-auth-node/sfa-node-quick-start`,
},
],
},
Expand Down
48 changes: 6 additions & 42 deletions src/components/Examples/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,8 @@ import {
import { CKNode, CKSFA, CKSFAAndroid, CKSFAFlutter, CKSFAiOS, CKSFARN, CKTkey, CKTkeyAndroid, CKTkeyiOS, MPCCK } from "./coreKitExamples";
import { PNPUnity, PNPUnreal } from "./pnpGamingExamples";
import { PNPAndroid, PNPFlutter, PNPIos, PNPRN } from "./pnpMobileExamples";
import {
PNPModalAdditional,
PNPModalEVM,
PNPModalOther,
PNPModalSolana,
PNPModalStarkEx,
PNPModalStarkNet,
PNPModalTezos,
PNPModalWagmi,
} from "./pnpModalExamples";
import {
PNPNoModalAdditional,
PNPNoModalCustomAuth,
PNPNoModalCustomAuthAggregate,
PNPNoModalEVM,
PNPNoModalOther,
PNPNoModalSolana,
PNPNoModalWagmi,
} from "./pnpNoModalExamples";
import { PNPModalWebExample } from "./pnpModalExamples";
import { PNPNoModalWebExample } from "./pnpNoModalExamples";
import styles from "./styles.module.css";

export default function QuickNavigation() {
Expand Down Expand Up @@ -161,33 +144,14 @@ export default function QuickNavigation() {
<h1>Sample Apps using Web3Auth {sdk}</h1>
{sdk === pnpwebmodal ? (
<>
<h2>EVM Chain Examples</h2>
<Tiles tileGroups={PNPModalEVM} />
<h2>Solana Blockchain Examples</h2>
<Tiles tileGroups={PNPModalSolana} />
<h2>Other Chain Examples</h2>
<Tiles tileGroups={PNPModalStarkEx} />
<Tiles tileGroups={PNPModalStarkNet} />
<Tiles tileGroups={PNPModalTezos} />
<Tiles tileGroups={PNPModalOther} />
<h2>Additional Examples</h2>
<Tiles tileGroups={PNPModalAdditional} />
<h2>Wagmi Connector Examples</h2>
<Tiles tileGroups={PNPModalWagmi} />
<h2>Blockchain React Examples</h2>
<Tiles tileGroups={PNPModalWebExample} />
</>
) : null}
{sdk === pnpwebnomodal ? (
<>
<h2>Blockchain Examples</h2>
<Tiles tileGroups={PNPNoModalEVM} />
<Tiles tileGroups={PNPNoModalSolana} />
<Tiles tileGroups={PNPNoModalOther} />
<h2>Custom Authentication Examples</h2>
<Tiles tileGroups={PNPNoModalAdditional} />
<Tiles tileGroups={PNPNoModalCustomAuth} />
<Tiles tileGroups={PNPNoModalCustomAuthAggregate} />
<h2>Wagmi Connector Examples</h2>
<Tiles tileGroups={PNPNoModalWagmi} />
<h2>Blockchain React Examples</h2>
<Tiles tileGroups={PNPNoModalWebExample} />
</>
) : null}
{sdk === pnpandroid ? <Tiles tileGroups={PNPAndroid} /> : null}
Expand Down
10 changes: 5 additions & 5 deletions src/components/Examples/pnpGamingExamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const PNPUnity = [
description: "",
tiles: [
{
key: "unity-example",
title: "Unity Basic Example",
key: "unity-quick-start",
title: "Unity QuickStart Example",
icon: "logo-unity.png",
path: `${baseURL}unity/unity-example`,
path: `${baseURL}unity/unity-quick-start`,
},
{
key: "unity-auth0-example",
Expand All @@ -18,10 +18,10 @@ export const PNPUnity = [
path: `${baseURL}unity/unity-auth0-example`,
},
{
key: "unity-google-emailpasswordless-example",
key: "unity-aggregate-verifier-example",
title: "Unity + Aggregate Verifier",
icon: "logo-google.png",
path: `${baseURL}unity/unity-google-emailpasswordless-example`,
path: `${baseURL}unity/unity-aggregate-verifier-example`,
},
],
},
Expand Down
Loading

0 comments on commit 4f5dc11

Please sign in to comment.