-
Notifications
You must be signed in to change notification settings - Fork 619
Move deploy multiple and publish multiple pages to app router + migrate to shadcn/tailwind #5381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
graphite-app
merged 1 commit into
main
from
11-12-move_deploy_multiple_and_publish_multiple_pages_to_app_router_migrate_to_shadcn_tailwind
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
apps/dashboard/src/app/(dashboard)/contracts/deploy/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| import { GenericLoadingPage } from "@/components/blocks/skeletons/GenericLoadingPage"; | ||
| import { DeployableContractTable } from "components/contract-components/contract-table"; | ||
| import Link from "next/link"; | ||
| import { notFound } from "next/navigation"; | ||
| import { Suspense } from "react"; | ||
|
|
||
| export default async function DeployMultipleContractsPage(props: { | ||
| searchParams?: Promise<{ | ||
| ipfs?: string[] | string; | ||
| }>; | ||
| }) { | ||
| const searchParams = await props.searchParams; | ||
| const ipfsHashes = searchParams?.ipfs; | ||
|
|
||
| if (!ipfsHashes || !Array.isArray(ipfsHashes) || ipfsHashes.length === 0) { | ||
| notFound(); | ||
| } | ||
|
|
||
| return ( | ||
| <div className="container flex grow flex-col py-10"> | ||
| <h1 className="mb-1 font-semibold text-2xl tracking-tight"> | ||
| Deploy Contracts | ||
| </h1> | ||
| <p className="text-muted-foreground"> | ||
| Welcome to the thirdweb contract deployment flow.{" "} | ||
| <Link | ||
| className="text-link-foreground hover:text-foreground" | ||
| target="_blank" | ||
| href="https://portal.thirdweb.com/contracts/deploy/overview" | ||
| > | ||
| Learn more about deploying your contracts. | ||
| </Link> | ||
| </p> | ||
|
|
||
| <div className="h-6" /> | ||
|
|
||
| <Suspense fallback={<GenericLoadingPage />}> | ||
| <DeployableContractTable contractIds={ipfsHashes} context="deploy" /> | ||
| </Suspense> | ||
| </div> | ||
| ); | ||
| } | ||
42 changes: 42 additions & 0 deletions
42
apps/dashboard/src/app/(dashboard)/contracts/publish/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| import { GenericLoadingPage } from "@/components/blocks/skeletons/GenericLoadingPage"; | ||
| import { DeployableContractTable } from "components/contract-components/contract-table"; | ||
| import Link from "next/link"; | ||
| import { notFound } from "next/navigation"; | ||
| import { Suspense } from "react"; | ||
|
|
||
| export default async function PublishMultipleContractsPage(props: { | ||
| searchParams?: Promise<{ | ||
| ipfs?: string[] | string; | ||
| }>; | ||
| }) { | ||
| const searchParams = await props.searchParams; | ||
| const ipfsHashes = searchParams?.ipfs; | ||
|
|
||
| if (!ipfsHashes || !Array.isArray(ipfsHashes) || ipfsHashes.length === 0) { | ||
| notFound(); | ||
| } | ||
|
|
||
| return ( | ||
| <div className="container flex grow flex-col py-10"> | ||
| <h1 className="mb-1 font-semibold text-2xl tracking-tight"> | ||
| Publish Contracts | ||
| </h1> | ||
| <p className="text-muted-foreground"> | ||
| Welcome to the thirdweb contract publish flow.{" "} | ||
| <Link | ||
| className="text-link-foreground hover:text-foreground" | ||
| target="_blank" | ||
| href="https://portal.thirdweb.com/contracts/publish/overview" | ||
| > | ||
| Learn more about publishing your contracts. | ||
| </Link> | ||
| </p> | ||
|
|
||
| <div className="h-6" /> | ||
|
|
||
| <Suspense fallback={<GenericLoadingPage />}> | ||
| <DeployableContractTable contractIds={ipfsHashes} context="publish" /> | ||
| </Suspense> | ||
| </div> | ||
| ); | ||
| } |
57 changes: 0 additions & 57 deletions
57
apps/dashboard/src/app/account/components/account-header.client.tsx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
apps/dashboard/src/components/contract-components/contract-table/cells/description.tsx
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
apps/dashboard/src/components/contract-components/contract-table/cells/image.tsx
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
apps/dashboard/src/components/contract-components/contract-table/cells/name.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.