Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@gatsbyjs/gatsby-theme-website
Advanced tools
/** @jsx jsx */
import { jsx } from "theme-ui" import { graphql } from "gatsby" import { GoMarkGithub as GithubIcon } from "react-icons/go" import { FaUsers as CommunityIcon } from "react-icons/fa"
import PageMetadata from "../components/page-metadata" import Link from "../components/localized-link" import Container from "../components/container" import PageWithPluginSearchBar from "../components/page-with-plugin-searchbar" import FooterLinks from "../components/shared/footer-links" import GatsbyIcon from "../components/gatsby-monogram"
const GatsbyPluginBadge = ({ isOfficial }) => {
const Icon = isOfficial ? GatsbyIcon : CommunityIcon
const title = isOfficial
? Official Gatsby Plugin
: Community Gatsby Plugin
const text = isOfficial ? Official Plugin
: Community Plugin
return (
<div
sx={{
variant: links.muted
,
mr: 8,
"&&": {
border: 0,
color: textMuted
,
display: flex
,
fontWeight: body
,
},
"&&:hover": {
color: textMuted
,
},
}}
>
<span
sx={{
display: inline-block
,
mr: 2,
}}
title={title}
>
{text}
)
}
export default function PackageReadmeTemplate({ location, data: { npmPackage }, }) { const readmePage = npmPackage.readme.childMarkdownRemark const isOfficial = npmPackage.fields.official const packageName = npmPackage.name
const excerpt = readmePage.excerpt ?? Plugin information for ${packageName}
const githubUrl = isOfficial
? https://github.com/gatsbyjs/gatsby/tree/master/packages/${packageName}
: npmPackage.repository?.url ??
https://github.com/search?q=${npmPackage.name}
return (
<div
sx={{
display: flex
,
flexWrap: wrap
,
justifyContent: space-between
,
pb: 6,
"&&:hover": {
color: inherit
,
},
}}
>
<div
css={{
display: flex
,
justifyContent: space-between
,
}}
>
<a
sx={{ variant: links.muted
}}
href={githubUrl}
aria-labelledby="github-link-label"
>
<GithubIcon focusable="false" sx={{ mr: 2 }} />
View plugin on GitHub
{githubUrl && (
<Link
to={/starters?d=${packageName}
}
sx={{ variant: links.muted
}}
>
See starters using this
)}
<div
css={{ position: relative
}}
dangerouslySetInnerHTML={{ __html: readmePage.html }}
/>
)
}
export const pageQuery = graphql query($slug: String!) { npmPackage(slug: { eq: $slug }) { name keywords fields { official } repository { url } readme { childMarkdownRemark { html excerpt timeToRead } } } }
FAQs
Theme for Gatsby's Website
We found that @gatsbyjs/gatsby-theme-website demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.