Skip to content

Commit 0088bbe

Browse files
committed
Playground: Update product grouping
1 parent 8723697 commit 0088bbe

File tree

32 files changed

+227
-732
lines changed

32 files changed

+227
-732
lines changed

apps/playground-web/next.config.mjs

Lines changed: 10 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -58,108 +58,28 @@ const nextConfig = {
5858
async redirects() {
5959
return [
6060
{
61-
source: "/connect/pay",
62-
destination: "/payments/ui-components",
63-
permanent: false,
64-
},
65-
{
66-
source: "/connect/pay/:path*",
67-
destination: "/payments/:path*",
68-
permanent: false,
69-
},
70-
{
71-
source: "/connect/ui",
72-
destination: "/wallets/headless/account-components",
73-
permanent: false,
74-
},
75-
{
76-
source: "/connect/ui/nft",
77-
destination: "/wallets/headless/nft-components",
78-
permanent: false,
79-
},
80-
{
81-
source: "/connect/ui/token",
82-
destination: "/wallets/headless/token-components",
83-
permanent: false,
84-
},
85-
{
86-
source: "/connect/ui/chain",
87-
destination: "/wallets/headless/chain-components",
88-
permanent: false,
89-
},
90-
{
91-
source: "/connect/ui/wallet",
92-
destination: "/wallets/headless/wallet-components",
93-
permanent: false,
94-
},
95-
{
96-
source: "/connect/:path*",
97-
destination: "/wallets/:path*",
98-
permanent: false,
99-
},
100-
{
101-
source: "/engine/airdrop",
102-
destination: "/transactions/airdrop-tokens",
103-
permanent: false,
104-
},
105-
{
106-
source: "/engine/minting",
107-
destination: "/transactions/mint-tokens",
108-
permanent: false,
109-
},
110-
{
111-
source: "/engine/webhooks",
112-
destination: "/transactions/webhooks",
113-
permanent: false,
114-
},
115-
{
116-
source: "/wallets/account-abstraction/sponsor",
117-
destination: "/account-abstraction/eip-4337",
118-
permanent: false,
119-
},
120-
{
121-
source: "/wallets/account-abstraction/7702",
122-
destination: "/account-abstraction/eip-7702",
123-
permanent: false,
124-
},
125-
{
126-
source: "/wallets/account-abstraction/5792",
127-
destination: "/account-abstraction/eip-5792",
128-
permanent: false,
129-
},
130-
{
131-
source: "/wallets/account-abstraction/native-aa",
132-
destination: "/account-abstraction/native-aa",
133-
permanent: false,
134-
},
135-
{
136-
source: "/wallets/headless/token-components",
137-
destination: "/tokens/token-components",
138-
permanent: false,
139-
},
140-
{
141-
source: "/wallets/headless/nft-components",
142-
destination: "/tokens/nft-components",
61+
source: "/insight/:path*",
62+
destination: "https://insight.thirdweb.com/reference",
14363
permanent: false,
14464
},
14565
{
146-
source: "/wallets/in-app-wallet/ecosystem",
147-
destination: "/wallets/ecosystem-wallet",
66+
source: "/payments/x402",
67+
destination: "/x402",
14868
permanent: false,
14969
},
15070
{
151-
source: "/insight/:path*",
152-
destination: "https://insight.thirdweb.com/reference",
71+
source: "/payments/fund-wallet",
72+
destination: "/bridge/buy-widget",
15373
permanent: false,
15474
},
15575
{
156-
source: "/payments/backend/:path*",
157-
destination: "/reference#tag/payments",
76+
source: "/payments/commerce",
77+
destination: "/bridge/checkout-widget",
15878
permanent: false,
15979
},
16080
{
161-
source: "/payments/ui-components",
162-
destination: "/payments",
81+
source: "/payments/transactions",
82+
destination: "/bridge/transaction-widget",
16383
permanent: false,
16484
},
16585
];

apps/playground-web/src/app/api/paywall/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { type NextRequest, NextResponse } from "next/server";
22
import { createThirdwebClient, defineChain } from "thirdweb";
33
import { toUnits } from "thirdweb/utils";
44
import { facilitator, settlePayment } from "thirdweb/x402";
5-
import { token } from "../../payments/x402/components/constants";
5+
import { token } from "../../x402/components/constants";
66

77
// Allow streaming responses up to 5 minutes
88
export const maxDuration = 300;

apps/playground-web/src/app/payments/fund-wallet/page.tsx renamed to apps/playground-web/src/app/bridge/buy-widget/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ThirdwebProvider from "@/components/thirdweb-provider";
44
import { createMetadata } from "@/lib/metadata";
55
import { BuyPlayground } from "./BuyPlayground";
66

7-
const title = "Buy Crypto Component";
7+
const title = "Buy Widget";
88
const description =
99
"Embeddable component for users to purchase any cryptocurrency for top-ups and more with fiat or crypto-to-crypto swaps";
1010
const ogDescription =

apps/playground-web/src/app/payments/commerce/page.tsx renamed to apps/playground-web/src/app/bridge/checkout-widget/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ThirdwebProvider from "@/components/thirdweb-provider";
44
import { createMetadata } from "@/lib/metadata";
55
import { CheckoutPlayground } from "./CheckoutPlayground";
66

7-
const title = "Checkout Component";
7+
const title = "Checkout Widget";
88
const description =
99
"Enable purchase of any service or goods with fiat or cryptocurrency and setup notifications on every sale to ship goods, activate services, and more";
1010
const ogDescription =

apps/playground-web/src/app/payments/components/RightSection.tsx renamed to apps/playground-web/src/app/bridge/components/RightSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import {
1515
import { Button } from "../../../components/ui/button";
1616
import { THIRDWEB_CLIENT } from "../../../lib/client";
1717
import { cn } from "../../../lib/utils";
18-
import { CodeGen } from "../components/CodeGen";
19-
import type { BridgeComponentsPlaygroundOptions } from "../components/types";
18+
import { CodeGen } from "./CodeGen";
19+
import type { BridgeComponentsPlaygroundOptions } from "./types";
2020

2121
const nftContract = getContract({
2222
address: "0xf0d0CBf84005Dd4eC81364D1f5D7d896Bd53D1B8",

0 commit comments

Comments
 (0)