Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@focus-reactive/graphql-content-layer
Advanced tools
[![npm version](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer.svg)](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer) # GitNation GraphQL Content Layer
package for fetching conference content from GraphCMS
it's published on NPM as
@focus-reactive/graphql-content-layer
This package is intended for:
GraphCMS connection should be configured via env variables: CMS_ENDPOINT
and CMS_TOKEN
The package exposes getContent
async function for generating content layer
Usage:
const { getContent } = require('@focus-reactive/graphql-content-layer');
const content = await getContent(conferenceSettings);
see conferenceSettings for details
to use it:
// story.js
const {
passConferenceSettings,
} = require('@focus-reactive/graphql-content-layer/dist/content.stories');
passConferenceSettings(conferenceSettings);
Pass conferenceSettings
with conference specific ("hardcoded") data
I should contain:
tagColors
- colors settings for "tech" badges, tags, labels
speakerAvatar = {
dimensions: {
avatarWidth: 500,
avatarHeight: 500,
}
}
yarn dev
to start watching and compiling the code
yarn storybook
to launch Storybook
yarn tdd
- Jest tests in watching mode
yarn start
- starts dev, storybook and tests (each in independent watch mode)
yarn update-schema
for updating GraphQL introspection schema
For publishing to NPM:
npm publish
it will transpile the code and publish the package
FAQs
[![npm version](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer.svg)](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer) # GitNation GraphQL Content Layer
We found that @focus-reactive/graphql-content-layer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.