Skip to content

Commit

Permalink
Updated docs and replaced outdated speed-racer (#4903)
Browse files Browse the repository at this point in the history
## Problem solved

* Updated Unreal Engine docs
* Replaced speed-racer references with tappyfowl
* Fixed all references of `unreal`  to `unreal-engine`

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on renaming the `unreal` module to `unreal-engine`, updating related paths, icons, and metadata throughout the codebase. It also introduces new wallet functionalities and modifies some documentation for clarity.

### Detailed summary
- Renamed `unreal` to `unreal-engine` across various files.
- Updated paths and references in `Header.tsx`, `layout.tsx`, and `sidebar.tsx`.
- Changed icon references from `UnrealIcon` to `UnrealEngineIcon`.
- Modified metadata functions to use `createUnrealEngineMetadata`.
- Added new wallet functionalities in `in-app-wallet` and `wallet-handles`.
- Updated documentation in multiple `.mdx` files to reflect changes.
- Deleted obsolete assets and files related to the old `unreal` structure.

> The following files were skipped due to too many changes: `pnpm-lock.yaml`, `apps/portal/src/app/unreal-engine/blueprints/utilities/nodes.ts`, `apps/portal/src/app/unreal-engine/blueprints/in-app-wallet/nodes.ts`, `apps/portal/src/app/unreal/blueprints/smart-wallet/nodes.ts`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
  • Loading branch information
dirtycajunrice committed Oct 4, 2024
1 parent 0f6b881 commit b6bf3b9
Show file tree
Hide file tree
Showing 51 changed files with 1,561 additions and 1,241 deletions.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/shared/ConnectSDKCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export function ConnectSDKCard({
label="Unity SDK"
/>
<DocLink
link="https://portal.thirdweb.com/unreal/getting-started"
link="https://portal.thirdweb.com/unreal-engine/getting-started"
icon={UnrealIcon}
label="Unreal SDK"
label="Unreal Engine SDK"
/>
<DocLink
link="https://portal.thirdweb.com/dotnet/getting-started"
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/pages/sdk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ const Web3SDK: ThirdwebNextPage = () => {
href="/ui-components"
/>
<ProductLearnMoreCard
title="Game Engine SDK"
title="Game Engine SDKs"
category={TRACKING_CATEGORY}
description="Unity SDK includes all supported platforms: Native (Windows, Mac, Linux), Mobile (iOS, Android), Console (PS, Xbox), Browser (WebGL). Unreal SDK coming soon."
description="Unity and Unreal Engine SDKs include all supported platforms: Native (Windows, Mac, Linux), Mobile (iOS, Android), Console (PS, Xbox), Browser (WebGL)."
icon={require("../../public/assets/product-pages/dashboard/hero-icon-3.png")}
href="https://portal.thirdweb.com/unity"
/>
Expand Down
18 changes: 9 additions & 9 deletions apps/dashboard/src/pages/solutions/gaming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const SolutionsGaming: ThirdwebNextPage = () => {
TRACKING_CATEGORY={TRACKING_CATEGORY}
href="https://portal.thirdweb.com/solutions/gaming/unreal-engine/quickstart"
linkTitle="Read the Unreal Engine docs"
label="unreal"
label="unreal-engine"
/>
<ImageCard
title="Mobile"
Expand Down Expand Up @@ -303,16 +303,16 @@ const SolutionsGaming: ThirdwebNextPage = () => {
</ImageCard>

<ImageCard
title="Play Speed Racer"
image={require("../../../public/assets/solutions-pages/gaming/gaming-speed-racer.png")}
title="Play TappyFowl"
image={require("../../../public/assets/solutions-pages/gaming/gaming-tappyfowl.png")}
TRACKING_CATEGORY={TRACKING_CATEGORY}
href="https://engine-express.thirdweb-preview.com/"
href="https://tappyfowl.thirdweb.com/"
category="Unreal Engine"
linkTitle="Play Speed Racer"
label="speed-racer"
linkTitle="Play TappyFowl"
label="tappyfowl"
>
An Onchain Survival Game. Escape the dungeon by battling
terrifying bosses.
Guide your fowl through a fantastical landscape that requires
quick reflexes and precise timing.
</ImageCard>
</SimpleGrid>
</Flex>
Expand All @@ -339,7 +339,7 @@ const SolutionsGaming: ThirdwebNextPage = () => {
>
<SolutionsGamingCard
p={8}
label="unreal"
label="unreal-engine"
href="https://portal.thirdweb.com/gaming"
>
<LandingIconSectionItem
Expand Down
13 changes: 7 additions & 6 deletions apps/dashboard/src/pages/templates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,13 @@ export const templates: TemplateCardProps[] = [
authorIcon: "/assets/templates/thirdweb-eth.png",
},
{
id: "unreal_demo",
title: "Speed Racers",
homepage: "https://engine-express.thirdweb-preview.com/",
repo: "https://github.com/thirdweb-example/unreal_demo",
description: "Racing demo game using Unreal and thirdweb Engine.",
img: "/assets/templates/speed-racer.png",
id: "unreal_engine_demo",
title: "TappyFowl",
homepage: "https://tappyfowl.thirdweb.com/",
repo: "https://github.com/thirdweb-example/TappyFowl",
description:
"Flappy Bird inspired demo game using Unreal Engine and thirdweb Engine.",
img: "/assets/templates/tappyfowl.png",
hoverBorderColor: "hsl(248deg 89% 79% / 15%)",
tags: ["Unreal", "Engine", "Gaming"],
authorENS: "thirdweb.eth",
Expand Down
2 changes: 1 addition & 1 deletion apps/portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"postextract-search-data": "next-sitemap"
},
"dependencies": {
"@dirtycajunrice/klee": "^1.0.0",
"@dirtycajunrice/klee": "^1.0.1",
"@mdx-js/loader": "^2.3.0",
"@mdx-js/react": "^2.3.0",
"@next/mdx": "^13.5.6",
Expand Down
3 changes: 3 additions & 0 deletions apps/portal/redirects.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// @ts-check

import { unrealEngineRedirects } from "./src/app/unreal-engine/redirects.mjs";

const reactRedirects = {
"/react": "/react/v4",
"/react/connecting-wallets": "/react/v4/connecting-wallets",
Expand Down Expand Up @@ -941,6 +943,7 @@ export const redirects = async () => {
...createRedirects(contractRedirects),
...createRedirects(otherRedirects),
...createRedirects(v5RestructuredRedirects),
...createRedirects(unrealEngineRedirects),
// references docs
latestReference("react", "v4"),
latestReference("react-native", "v0"),
Expand Down
4 changes: 2 additions & 2 deletions apps/portal/src/app/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export const connectLinks = [
},
{
name: "Unreal Engine",
href: "/unreal",
icon: "/icons/navbar/nav-icon-unreal.svg",
href: "/unreal-engine",
icon: "/icons/navbar/nav-icon-unreal-engine.svg",
},
] as const;

Expand Down
8 changes: 4 additions & 4 deletions apps/portal/src/app/connect/blockchain-api/page.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Stack, ArticleIconCard } from "@doc";
import { TypeScriptIcon, ReactIcon, UnityIcon, UnrealIcon, DotNetIcon } from "@/icons";
import { TypeScriptIcon, ReactIcon, UnityIcon, UnrealEngineIcon, DotNetIcon } from "@/icons";

# Blockchain API

Expand Down Expand Up @@ -42,9 +42,9 @@ Perfomant, reliable and type safe API to read write to any contract on any EVM c
/>

<ArticleIconCard
title="Unreal"
icon={UnrealIcon}
href="/unreal"
title="Unreal Engine"
icon={UnrealEngineIcon}
href="/unreal-engine"
description="Unral blueprints and C++ API"
/>

Expand Down
14 changes: 7 additions & 7 deletions apps/portal/src/app/connect/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
WalletsSmartIcon,
} from "@/icons";
import { CodeIcon, ExternalLink, ZapIcon } from "lucide-react";
import { UnrealIcon } from "../../icons/sdks/UnrealIcon";
import { UnrealEngineIcon } from "../../icons/sdks/UnrealEngineIcon";

const connectSlug = "/connect/sign-in";
const inAppSlug = "/connect/in-app-wallet";
Expand Down Expand Up @@ -79,9 +79,9 @@ export const sidebar: SideBar = {
icon: <UnityIcon />,
},
{
name: "Unreal",
href: "/unreal",
icon: <UnrealIcon />,
name: "Unreal Engine",
href: "/unreal-engine",
icon: <UnrealEngineIcon />,
},
],
},
Expand Down Expand Up @@ -558,9 +558,9 @@ export const sidebar: SideBar = {
icon: <UnityIcon />,
},
{
name: "Unreal",
href: "/unreal",
icon: <UnrealIcon />,
name: "Unreal Engine",
href: "/unreal-engine",
icon: <UnrealEngineIcon />,
},
],
},
Expand Down
8 changes: 4 additions & 4 deletions apps/portal/src/app/infrastructure/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ All the infrastructure to scale and build production grade applications.
/>

<GithubTemplateCard
title="Speed Racer"
href="https://github.com/thirdweb-example/engine-express"
title="TappyFowl"
href="https://github.com/thirdweb-example/TappyFowl"
/>

<GithubTemplateCard
Expand All @@ -71,7 +71,7 @@ All the infrastructure to scale and build production grade applications.
/>

<GithubTemplateCard
title="Unreal Demo"
href="https://github.com/thirdweb-example/unreal_demo"
title="Unreal Engine Demo"
href="https://github.com/thirdweb-example/TappyFowl"
/>
</Grid>
15 changes: 13 additions & 2 deletions apps/portal/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Link from "next/link";
import DocsHero from "./_images/docs-hero.svg";

import {
ConnectOverviewIcon,
ContractDeployIcon,
ContractExploreIcon,
ContractInteractIcon,
Expand Down Expand Up @@ -33,7 +34,7 @@ import {
// User,
// } from "lucide-react";
import { CodeIcon } from "lucide-react";
import { UnrealIcon } from "../icons/sdks/UnrealIcon";
import { UnrealEngineIcon } from "../icons/sdks/UnrealEngineIcon";
// import { LandingPageCTAs } from "./landing-page/CTAs";

export default function Page() {
Expand Down Expand Up @@ -239,11 +240,21 @@ function WalletsSection() {
/>
<SDKCardIndex href="/dotnet" title=".NET" icon={DotNetIcon} />
<SDKCardIndex href="/unity" title="Unity" icon={UnityIcon} />
<SDKCardIndex href="/unreal" title="Unreal Engine" icon={UnrealIcon} />
<SDKCardIndex
href="/unreal-engine"
title="Unreal Engine"
icon={UnrealEngineIcon}
/>
</Grid>
<SectionTitle id="connect-learn" title="Learn" level={5} />

<Grid>
<ArticleCardIndex
href="/connect"
title="Overview"
description="Everything you need to know about thirdweb Connect"
icon={ConnectOverviewIcon}
/>
<ArticleCardIndex
href="/connect/sign-in/overview"
title="Sign-In"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b6bf3b9

Please sign in to comment.