ikonrad / gatsby-source-directus Goto Github PK
View Code? Open in Web Editor NEWSource plugin for pulling data into GatsbyJS from Directus CMS (https://getdirectus.com)
Source plugin for pulling data into GatsbyJS from Directus CMS (https://getdirectus.com)
Hello,
first of all, thanks for writing this plugin!
But I have an issue:
Queried Items remain in cache.
When fetching data, the plugin shows the correct amount of items, but the ones that i deleted after last query remain in the results.
The only way I was able to delete those entries is deleting the .cache folder in the root
Any ideas?
After installing and adding the plugin to my gatsby-config.js I get the following error:
error UNHANDLED EXCEPTION
ReferenceError: regeneratorRuntime is not defined
- fetch.js:39
/[gatsby-source-directus]/fetch.js:39:56
- fetch.js:111
/[gatsby-source-directus]/fetch.js:111:10
- fetch.js:145 Object.<anonymous>
/[gatsby-source-directus]/fetch.js:145:2
- v8-compile-cache.js:178 Module._compile
/[v8-compile-cache]/v8-compile-cache.js:178:3 0
- v8-compile-cache.js:159 require
/[v8-compile-cache]/v8-compile-cache.js:159:2 0
- gatsby-node.js:3 Object.<anonymous>
/[gatsby-source-directus]/gatsby-node.js:3:14
- v8-compile-cache.js:178 Module._compile
/[v8-compile-cache]/v8-compile-cache.js:178:3 0
The plugin downloads all images to the Gatsby .cache
folder, but all references to images from other database rows are broken. So if I have a "users" table that has a profile image for each row, I can't get a reference to that image to display on the user's profile.
I posted a question on Stackoverflow looking for help on the same thing. I'm also digging around this plugin's source code trying to solve the issue, but if anyone has any advice let me know.
Are you planning to update the plugin to Directus 7? I'm not a great developer and I'm learning React and Directus though from what I understand the new version of Directus doesn't use API keys anymore?
I have a Directus database with some Markdown fields. I want to take this Directus Markdown data and display it in Gatsby as HTML.
All Gatsby Markdown blogs/tutorials I've seen talks about using gatsby-transformer-remark for compiling Markdown, but it assumes the Markdown is stored as .md
files in the Gatsby folder structure.
Has anyone had success using GraphQL to compile Markdown data coming from Directus (or any other data source besides the file system)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.