Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions content/04/001-cosmic/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Gatsby Source for Cosmic


843 downloads July 31.
https://www.gatsbyjs.com/plugins/gatsby-source-cosmicjs/

https://github.com/cosmicjs/gatsby-source-cosmicjs


issue by _ _ _
4 changes: 4 additions & 0 deletions content/04/001-craft/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1.7 down aug 9


https://github.com/craftcms/gatsby-source-craft/issues/55
4 changes: 4 additions & 0 deletions content/04/002-builder.io/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

2-k- down 29.04

https://github.com/BuilderIO/builder/issues
3 changes: 3 additions & 0 deletions content/04/002-google-spreadsheets/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2- k down 29 april

and 2 plugins
6 changes: 6 additions & 0 deletions content/04/005-graphcms/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


5 k downloads april 29.
3.5 k down aug 9.

https://github.com/GraphCMS/gatsby-source-graphcms/issues
5 changes: 5 additions & 0 deletions content/04/007-contentstack/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

7 k downloads april 29.
10.4 k dowloads august 9.

https://github.com/contentstack/gatsby-source-contentstack/issues/127
1 change: 1 addition & 0 deletions content/04/008-k-youtube/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://queenraaecodesmain-doneforyouimagecdnupgradeofyou.gtsb.io/done-for-you-image-cdn-upgrade-of-your-gatsby-source-plugin/
35 changes: 35 additions & 0 deletions content/04/009-ghost/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Gatsby Source Ghost

9 k downloads april 29.
6.8 k downloads august 8.


https://github.com/TryGhost/gatsby-source-ghost

issue by dustin
[feat]: add Gatsby Cloud functionality and "hot reloading" #15

https://github.com/TryGhost/gatsby-source-ghost/issues/15

Aileen
aileen@ghost.org
https://twitter.com/aileen_bkr


@aileen_bkr
Always learning at
@ghost
. Currently freezing in Europe 🥶
Follow my path here 👉 http://nomadlist.com/@aileencgn

not a dev-rel?
https://github.com/aileen?tab=repositories

Ghost is an open source, professional publishing platform built on a modern Node.js technology stack — designed for teams who need power, flexibility and performance.

Hannah Wolfe
ErisDS
CTO @TryGhost 😁 👻 😁 💃

https://twitter.com/ErisDS
Ghost CTO & co-founder, former MOO Crew, polyglot developer, lover of JavaScript & Open Source
10 changes: 10 additions & 0 deletions content/04/013-k-storyblok/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
gatsby-source-storyblok

13 k downloads april 1.

commented out, means new code in this PR

```js


```
104 changes: 104 additions & 0 deletions content/04/021-k-drupal/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
gatsby-source-drupal


21 k downloads april 1.

17 k august 9.
[feat(gatsby-source-drupal): Image CDN support
#35265](https://github.com/gatsbyjs/gatsby/pull/35265/files)
```js
// packages/gatsby-source-drupal/src/normalize.js

// const probeImageSize = require(`probe-image-size`)

....
// const nodeFromData = async (
// datum,
// createNodeId,
// entityReferenceRevisions = [],
// pluginOptions,
// fileNodesExtendedData
// ) => {
const { attributes: { id: attributeId, ...attributes } = {} } = datum
const preservedId =
typeof attributeId !== `undefined` ? { _attributes_id: attributeId } : {}
const langcode = attributes.langcode || `und`
// const type = datum.type.replace(/-|__|:|\.|\s/g, `_`)

// const isFile = isFileNode(datum, type)

// const url = isFile
// ? pluginOptions.baseUrl + getFileUrl(datum.attributes)
// : null

// const extraNodeData = fileNodesExtendedData?.get(datum.id) || null
// const imageSize = isFile ? extraNodeData || (await probeImageSize(url)) : null

// const gatsbyImageCdnFields =
// isFile &&
// imageSize &&
// imageSize.width &&
// imageSize.height &&
// url &&
// datum.attributes.filemime
// ? {
// filename: attributes?.filename,
// url,
// placeholderUrl: url,
// width: imageSize.width,
// height: imageSize.height,
// mimeType: datum.attributes.filemime,
// }
// : {}




// packages/gatsby-source-drupal/src/utils.js
/**
* This FN returns a Map with additional file node information that Drupal doesn't return on actual file nodes (namely the width/height of images)
*/
exports.getExtendedFileNodeData = allData => {
const fileNodesExtendedData = new Map()

for (const contentType of allData) {
if (!contentType) {
continue
}

contentType.data.forEach(node => {
if (!node) {
return
}

const { relationships } = node

if (relationships) {
for (const relationship of Object.values(relationships)) {
const relationshipNodes = Array.isArray(relationship.data)
? relationship.data
: [relationship.data]

relationshipNodes.forEach(relationshipNode => {
if (!relationshipNode) {
return
}

if (
relationshipNode.type === `file--file` &&
relationshipNode.meta
) {
fileNodesExtendedData.set(
relationshipNode.id,
relationshipNode.meta
)
}
})
}
}
})
}

return fileNodesExtendedData
}
```
4 changes: 4 additions & 0 deletions content/04/022-datoCMS/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

22 k downloads april 29.

https://github.com/datocms/gatsby-source-datocms/issues
11 changes: 11 additions & 0 deletions content/04/031-k-shopify/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
gatsby-source-shopify

31 k downloads april 1.
26.2 k downloads april 29.

No PR or issue

commented out, means new code in this PR

```js
```
12 changes: 12 additions & 0 deletions content/04/033-k-strapi/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
gatsby-source-strapi

33.8 k downloads april 1.
38.9 k downloads april 29.
33 k downloads aug 9.

No PR or issue

commented out, means new code in this PR

```js
```
5 changes: 5 additions & 0 deletions content/04/040-prismic/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


40 k downloads april 29.

https://github.com/prismicio/prismic-gatsby/issues/486
67 changes: 67 additions & 0 deletions content/04/056-k-sanity/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
gatsby-source-sanity@^7.4.0
56.8 k downloads april 1.
61.7 k downloads april 29.
54 k downloads aug 9.


https://gatsby.dev/img

```js
// package.json
"gatsby-plugin-utils": "^3.5.0-next.0",
```

// src/gatsby-node.ts

[feat: Add Gatsby Image CDN support
#148](https://github.com/sanity-io/gatsby-source-sanity/pull/148/files#)

commented out, means new code in this PR

```js
// src/util/normalize.ts

// Transform a Sanity document into a Gatsby node
export function toGatsbyNode(doc: SanityDocument, options: ProcessingOptions): SanityInputNode {
const {createNodeId, createContentDigest, overlayDrafts} = options
const safe = prefixConflictingKeys(doc)
const withRefs = rewriteNodeReferences(safe, options)
const type = getTypeName(doc._type)

// const gatsbyImageCdnFields = [`SanityImageAsset`, `SanityFileAsset`].includes(type)
// ? {
// filename: withRefs.originalFilename,
// width: withRefs?.metadata?.dimensions?.width,
// height: withRefs?.metadata?.dimensions?.height,
// url: withRefs?.url,
// placeholderUrl:
// type === `SanityImageAsset`
// ? urlBuilder
// .image(withRefs.url)
// .width(20)
// .height(30)
// .quality(80)
// .url()
// // this makes placeholder urls dynamic in the gatsbyImage resolver
// ?.replace(`w=20`, `w=%width%`)
// ?.replace(`h=30`, `h=%height%`)
// : null,
// }
// : {}

return {
...withRefs,
...rawAliases,
// ...gatsbyImageCdnFields,

id: safeId(overlayDrafts ? unprefixId(doc._id) : doc._id, createNodeId),
children: [],
internal: {
// type,
contentDigest: createContentDigest(JSON.stringify(withRefs)),
},
}



```
6 changes: 6 additions & 0 deletions content/04/062-netlify-cms/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
gatsby-plugin-netlify-cms

62 k downloads april 29.
56 k down aug 9

https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify-cms
61 changes: 61 additions & 0 deletions content/04/079-k-wordpress/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
gatsby-source-wordpress
79 k downloads april 1.
64 k downloads april 29.
47 k down aug 9.

[feat(gatsby-source-wordpress): enable image-cdn
#34832](https://github.com/gatsbyjs/gatsby/pull/34832/files)

commented out, means new code in this PR

```js
//packages/gatsby-source-wordpress/src/steps/source-nodes/fetch-nodes/fetch-referenced-media-items.js
import { getPlaceholderUrlFromMediaItemNode } from "../create-nodes/process-node"

....
// const placeholderUrl = getPlaceholderUrlFromMediaItemNode(
// node,
// pluginOptions
// )

// const url = node.sourceUrl || node.mediaItemUrl

// const filename =
// node?.mediaDetails?.file?.split(`/`)?.pop() ||
// path.basename(urlUtil.parse(url).pathname)

node = {
...node,
// url,
// contentType: node.contentType,
// mimeType: node.mimeType,
// filename,
// filesize: node?.mediaDetails?.fileSize,
// width: node?.mediaDetails?.width,
// height: node?.mediaDetails?.height,
// placeholderUrl:
// placeholderUrl ?? node?.mediaDetails?.sizes?.[0]?.sourceUrl ?? url,
parent: null,
internal: {
contentDigest: createContentDigest(node),
type: buildTypeName(`MediaItem`),
},
}

// if (localFileNode) {
// node.localFile = localFileNode?.id
// }

const normalizedNode = normalizeNode({ node, nodeTypeName: `MediaItem` })

await actions.createNode(normalizedNode)
@@ -394,7 +416,7 @@ export const fetchMediaItemsBySourceUrl = async ({
)

nodes.forEach((node, index) => {
// if (!node || !node?.localFile?.id) {
return


```

Loading