Skip to content

Commit

Permalink
Add pluagin source for page (#26104)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
  • Loading branch information
LB and Laurie Barth authored Jul 29, 2020
1 parent f11b9a8 commit 0b67a69
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/gatsby-admin/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ const Index: React.FC<{}> = () => {
allGatsbyPage {
nodes {
path
pluginCreator {
name
}
}
}
allGatsbyPlugin {
Expand Down Expand Up @@ -127,7 +130,20 @@ const Index: React.FC<{}> = () => {
.sort((a, b) => a.path.localeCompare(b.path))
.map(page => (
<li key={page.path} sx={{ p: 0 }}>
{page.path}
<Flex
flexDirection="column"
gap={3}
sx={{
backgroundColor: `ui.background`,
padding: 5,
borderRadius: 2,
}}
>
<Heading as="h3">{page.path}</Heading>
<Text sx={{ color: `text.secondary` }}>
Source: {page.pluginCreator.name}
</Text>
</Flex>
</li>
))}
</ul>
Expand Down

0 comments on commit 0b67a69

Please sign in to comment.