/** @jsx jsx */ import { Fragment } from "react" import { jsx, Flex } from "strict-ui" import { Spinner } from "theme-ui" import { useQuery } from "urql" import { Link } from "gatsby" import { Card, Heading, HeadingProps, Text, Badge, Spacer, } from "gatsby-interface" import skaterIllustration from "../skaterboi.svg" import boltIcon from "../bolt.svg" import sparklesIcon from "../sparkles.svg" import PluginSearchBar from "../components/plugin-search" function InstalledPluginListItem({ plugin, }: { plugin: { name: string; description?: string; options?: Record } }): JSX.Element { return ( {plugin.name} Manage{` `} -> ) } function Subheading(props: HeadingProps): JSX.Element { return } function Index(): JSX.Element { const [{ data, fetching, error }] = useQuery({ query: ` { allGatsbyPlugin { nodes { options name id } } } `, }) let errMsg: string | false = false if (error) { errMsg = (error.networkError && error.networkError.message) || (Array.isArray(error.graphQLErrors) && error.graphQLErrors.map(e => e.message).join(` | `)) } return ( {error && (
`1px solid ${t.colors.red[`80`]}`, borderRadius: 2, }} > Error: {errMsg}
)} Skater illustration with a Gatsby flag
Welcome to
Gatsby Admin alpha
Gatsby Admin is your user interface for managing and extending your Gatsby site. Manage your installed plugins, themes, site metadata and more without touching your code editor.
Installed plugins{` `} {data?.allGatsbyPlugin?.nodes && ( ({data.allGatsbyPlugin.nodes.length}) )} {data?.allGatsbyPlugin?.nodes ? ( {data.allGatsbyPlugin.nodes.map(plugin => ( ))} ) : ( )}
Search all plugins One of the best ways to add functionality to a Gatsby site is through our plugin ecosystem. With 2000+ plugins, there’s probably one that does what you need— from SEO to image optimization to data sourcing and much more. Recommended plugins Coming soon!
) } export default Index