Skip to content

Commit 6f9d1f8

Browse files
Copilot0xrinegade
andcommitted
Restore all tutorial imports and routes removed during TypeScript fixes
Co-authored-by: 0xrinegade <[email protected]>
1 parent 1365623 commit 6f9d1f8

File tree

1 file changed

+130
-3
lines changed

1 file changed

+130
-3
lines changed

website/src/pages/DocsPage.tsx

Lines changed: 130 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,55 @@ import {
1414
Shield
1515
} from 'lucide-react'
1616
import { useState } from 'react'
17+
import {
18+
GamingTutorials,
19+
DeFiTutorials,
20+
SaaSTutorials,
21+
SocialTutorials
22+
} from '../components/TutorialSections'
23+
import {
24+
EnterpriseTutorials,
25+
CrossChainTutorials,
26+
MobileTutorials
27+
} from '../components/AdvancedTutorialSections'
1728
import { AssemblyBPFTutorials } from '../components/AssemblyBPFTutorials'
1829

1930
// Import individual tutorial components
31+
import {
32+
OnlineStoreIntegrationTutorial,
33+
MarketplaceEscrowTutorial,
34+
SubscriptionBoxTutorial,
35+
DigitalProductStoreTutorial,
36+
FlashSaleManagementTutorial
37+
} from './tutorials/EcommerceTutorials'
38+
import {
39+
InGameCurrencyTutorial,
40+
NFTMarketplaceTutorial,
41+
TournamentPrizeDistributionTutorial,
42+
PlayToEarnRewardsTutorial,
43+
GameAssetRentalTutorial
44+
} from './tutorials/GamingTutorials'
45+
import {
46+
SaaSSubscriptionBillingTutorial,
47+
FreelancePaymentEscrowTutorial,
48+
ConsultingTimeTrackingTutorial,
49+
APIUsageBillingTutorial,
50+
SoftwareLicenseManagementTutorial,
51+
N8nIntegrationTutorial
52+
} from './tutorials/SaaSTutorials'
53+
import {
54+
YieldFarmingRewardsTutorial,
55+
CrossChainArbitrageBotTutorial,
56+
LendingProtocolIntegrationTutorial,
57+
DEXTradingFeeDistributionTutorial,
58+
AutomatedMarketMakerTutorial
59+
} from './tutorials/DeFiTutorials'
60+
import {
61+
CreatorTippingSystemTutorial,
62+
ContentCreatorSubscriptionsTutorial,
63+
NFTDropPlatformTutorial,
64+
CommunityRewardSystemTutorial
65+
} from './tutorials/SocialTutorials'
2066
import {
2167
MultiChainArbitrageTutorial,
2268
CrossChainLiquidityPoolTutorial,
@@ -79,16 +125,62 @@ const apiSections = [
79125
]
80126
},
81127
{
82-
title: 'WalletConnect',
128+
title: 'E-commerce Tutorials',
129+
items: [
130+
{ name: 'Online Store Integration', href: '/docs/tutorials/ecommerce/online-store', icon: Book },
131+
{ name: 'Marketplace Escrow', href: '/docs/tutorials/ecommerce/marketplace-escrow', icon: Book },
132+
{ name: 'Subscription Box', href: '/docs/tutorials/ecommerce/subscription-box', icon: Book },
133+
{ name: 'Digital Product Store', href: '/docs/tutorials/ecommerce/digital-products', icon: Book },
134+
{ name: 'Flash Sale Management', href: '/docs/tutorials/ecommerce/flash-sales', icon: Book },
135+
]
136+
},
137+
{
138+
title: 'Gaming Tutorials',
139+
items: [
140+
{ name: 'In-Game Currency', href: '/docs/tutorials/gaming/in-game-currency', icon: Book },
141+
{ name: 'NFT Marketplace', href: '/docs/tutorials/gaming/nft-marketplace', icon: Book },
142+
{ name: 'Tournament Prize Distribution', href: '/docs/tutorials/gaming/tournament-prizes', icon: Book },
143+
{ name: 'Play-to-Earn Rewards', href: '/docs/tutorials/gaming/play-to-earn', icon: Book },
144+
{ name: 'Game Asset Rental', href: '/docs/tutorials/gaming/asset-rental', icon: Book },
145+
]
146+
},
147+
{
148+
title: 'SaaS Tutorials',
149+
items: [
150+
{ name: 'Subscription Billing', href: '/docs/tutorials/saas/subscription-billing', icon: Book },
151+
{ name: 'Freelance Payment Escrow', href: '/docs/tutorials/saas/freelance-escrow', icon: Book },
152+
{ name: 'Consulting Time Tracking', href: '/docs/tutorials/saas/time-tracking', icon: Book },
153+
{ name: 'API Usage Billing', href: '/docs/tutorials/saas/api-billing', icon: Book },
154+
{ name: 'Software License Management', href: '/docs/tutorials/saas/license-management', icon: Book },
155+
{ name: 'N8n Integration', href: '/docs/tutorials/saas/n8n-integration', icon: Book },
156+
]
157+
},
158+
{
159+
title: 'DeFi Tutorials',
160+
items: [
161+
{ name: 'Yield Farming Rewards', href: '/docs/tutorials/defi/yield-farming', icon: Book },
162+
{ name: 'Cross-Chain Arbitrage Bot', href: '/docs/tutorials/defi/arbitrage-bot', icon: Book },
163+
{ name: 'Lending Protocol Integration', href: '/docs/tutorials/defi/lending-protocol', icon: Book },
164+
{ name: 'DEX Trading Fee Distribution', href: '/docs/tutorials/defi/dex-fees', icon: Book },
165+
{ name: 'Automated Market Maker', href: '/docs/tutorials/defi/amm', icon: Book },
166+
]
167+
},
168+
{
169+
title: 'Social Tutorials',
83170
items: [
84171
{ name: 'Creator Tipping System', href: '/docs/tutorials/social/creator-tipping', icon: Book },
85172
{ name: 'Content Creator Subscriptions', href: '/docs/tutorials/social/creator-subscriptions', icon: Book },
86173
{ name: 'NFT Drop Platform', href: '/docs/tutorials/social/nft-drops', icon: Book },
87-
{ name: 'Social Media Monetization', href: '/docs/tutorials/social/social-monetization', icon: Book },
88-
{ name: 'Live Streaming Donations', href: '/docs/tutorials/social/live-streaming', icon: Book },
89174
{ name: 'Community Reward System', href: '/docs/tutorials/social/community-rewards', icon: Book },
90175
]
91176
},
177+
{
178+
title: 'WalletConnect',
179+
items: [
180+
{ name: 'WalletConnect Integration', href: '/docs/walletconnect/integration', icon: Code },
181+
{ name: 'Connection Manager', href: '/docs/walletconnect/manager', icon: Code },
182+
]
183+
},
92184
{
93185
title: 'Enterprise Tutorials',
94186
items: [
@@ -334,6 +426,41 @@ export function DocsPage() {
334426
<Route path="/cli/solana" element={<CLISolanaDoc />} />
335427
<Route path="/cli/history" element={<CLIHistoryDoc />} />
336428

429+
{/* E-commerce Tutorial Routes */}
430+
<Route path="/tutorials/ecommerce/online-store" element={<OnlineStoreIntegrationTutorial />} />
431+
<Route path="/tutorials/ecommerce/marketplace-escrow" element={<MarketplaceEscrowTutorial />} />
432+
<Route path="/tutorials/ecommerce/subscription-box" element={<SubscriptionBoxTutorial />} />
433+
<Route path="/tutorials/ecommerce/digital-products" element={<DigitalProductStoreTutorial />} />
434+
<Route path="/tutorials/ecommerce/flash-sales" element={<FlashSaleManagementTutorial />} />
435+
436+
{/* Gaming Tutorial Routes */}
437+
<Route path="/tutorials/gaming/in-game-currency" element={<InGameCurrencyTutorial />} />
438+
<Route path="/tutorials/gaming/nft-marketplace" element={<NFTMarketplaceTutorial />} />
439+
<Route path="/tutorials/gaming/tournament-prizes" element={<TournamentPrizeDistributionTutorial />} />
440+
<Route path="/tutorials/gaming/play-to-earn" element={<PlayToEarnRewardsTutorial />} />
441+
<Route path="/tutorials/gaming/asset-rental" element={<GameAssetRentalTutorial />} />
442+
443+
{/* SaaS Tutorial Routes */}
444+
<Route path="/tutorials/saas/subscription-billing" element={<SaaSSubscriptionBillingTutorial />} />
445+
<Route path="/tutorials/saas/freelance-escrow" element={<FreelancePaymentEscrowTutorial />} />
446+
<Route path="/tutorials/saas/time-tracking" element={<ConsultingTimeTrackingTutorial />} />
447+
<Route path="/tutorials/saas/api-billing" element={<APIUsageBillingTutorial />} />
448+
<Route path="/tutorials/saas/license-management" element={<SoftwareLicenseManagementTutorial />} />
449+
<Route path="/tutorials/saas/n8n-integration" element={<N8nIntegrationTutorial />} />
450+
451+
{/* DeFi Tutorial Routes */}
452+
<Route path="/tutorials/defi/yield-farming" element={<YieldFarmingRewardsTutorial />} />
453+
<Route path="/tutorials/defi/arbitrage-bot" element={<CrossChainArbitrageBotTutorial />} />
454+
<Route path="/tutorials/defi/lending-protocol" element={<LendingProtocolIntegrationTutorial />} />
455+
<Route path="/tutorials/defi/dex-fees" element={<DEXTradingFeeDistributionTutorial />} />
456+
<Route path="/tutorials/defi/amm" element={<AutomatedMarketMakerTutorial />} />
457+
458+
{/* Social Tutorial Routes */}
459+
<Route path="/tutorials/social/creator-tipping" element={<CreatorTippingSystemTutorial />} />
460+
<Route path="/tutorials/social/creator-subscriptions" element={<ContentCreatorSubscriptionsTutorial />} />
461+
<Route path="/tutorials/social/nft-drops" element={<NFTDropPlatformTutorial />} />
462+
<Route path="/tutorials/social/community-rewards" element={<CommunityRewardSystemTutorial />} />
463+
337464
{/* Cross-Chain Advanced Tutorial Routes */}
338465
<Route path="/tutorials/cross-chain/arbitrage" element={<MultiChainArbitrageTutorial />} />
339466
<Route path="/tutorials/cross-chain/liquidity-pools" element={<CrossChainLiquidityPoolTutorial />} />

0 commit comments

Comments
 (0)