-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: finished initial app structure (WIP payloads explorer)
- Loading branch information
Showing
71 changed files
with
380 additions
and
434 deletions.
There are no files selected for viewing
This file contains 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 contains 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
File renamed without changes.
12 changes: 0 additions & 12 deletions
12
src/app/payloads-explorer/[payloadController]/page.appPage.tsx
This file contains 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 contains 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,31 @@ | ||
import { Metadata } from 'next'; | ||
import { ReactNode } from 'react'; | ||
|
||
import { ModalForExecute } from '../../components/PayloadsExplorer/ModalForExecute'; | ||
import { metaTexts } from '../../helpers/texts/metaTexts'; | ||
|
||
export const metadata: Metadata = { | ||
title: metaTexts.ipfsTitle, | ||
description: metaTexts.ipfsDescription, | ||
openGraph: { | ||
images: ['/metaLogo.jpg'], | ||
title: metaTexts.ipfsTitle, | ||
description: metaTexts.ipfsDescription, | ||
}, | ||
}; | ||
|
||
export default function Layout({ | ||
children, | ||
payloadsModal, | ||
}: { | ||
children: ReactNode; | ||
payloadsModal: ReactNode; | ||
}) { | ||
return ( | ||
<> | ||
{children} | ||
{payloadsModal} | ||
<ModalForExecute /> | ||
</> | ||
); | ||
} |
This file contains 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 contains 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 contains 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 contains 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 contains 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 contains 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 contains 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,57 @@ | ||
'use client'; | ||
|
||
import { Box, useTheme } from '@mui/system'; | ||
import { useRouter } from 'nextjs-toploader/app'; | ||
import React from 'react'; | ||
|
||
import { PayloadWithHashes } from '../../types'; | ||
import { BackButton3D } from '../BackButton3D'; | ||
import { BoxWith3D } from '../BoxWith3D'; | ||
import { Container } from '../primitives/Container'; | ||
import { TopPanelContainer } from '../TopPanelContainer'; | ||
import { PayloadDetailsContent } from './PayloadDetailsContent'; | ||
|
||
export function PayloadDetails({ payload }: { payload: PayloadWithHashes }) { | ||
const router = useRouter(); | ||
const theme = useTheme(); | ||
|
||
return ( | ||
<Container> | ||
<TopPanelContainer withoutContainer> | ||
<BackButton3D onClick={router.back} /> | ||
</TopPanelContainer> | ||
|
||
<Box | ||
sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}}> | ||
<BoxWith3D | ||
contentColor="$mainLight" | ||
wrapperCss={{ | ||
'> div, .BoxWith3D__content': { | ||
height: '100%', | ||
maxWidth: 450, | ||
}, | ||
}} | ||
css={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
p: '12px 8px', | ||
[theme.breakpoints.up('sm')]: { | ||
flexDirection: 'column', | ||
alignItems: 'flex-start', | ||
justifyContent: 'space-between', | ||
p: '18px 24px', | ||
}, | ||
[theme.breakpoints.up('lg')]: { | ||
p: '14px 12px', | ||
}, | ||
}}> | ||
<PayloadDetailsContent payload={payload} withExecute /> | ||
</BoxWith3D> | ||
</Box> | ||
</Container> | ||
); | ||
} |
This file contains 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 contains 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 contains 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 contains 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 contains 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 contains 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 contains 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 contains 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 contains 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
Oops, something went wrong.
a30575d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit was deployed on ipfs