Coder Social home page Coder Social logo

gatsby-source-directus's People

Contributors

heho avatar ikonrad avatar jkjustjoshing avatar pgegenfurtner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gatsby-source-directus's Issues

Deleted data from directus remains in cache

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?

Convert markdown stored in Directus to HTML

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)?

ReferenceError: regeneratorRuntime is not defined

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

Updating to Directus 7?

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?

Recent fixes aren't reflected in latest release

@iKonrad PR #4 was merged to fix issue #3, but there is no release that includes the fix to this.

Can you create a release so I can reference it in my package.json? (my project has a restriction that doesn't allow us to directly target commit hashes, otherwise I'd just target c7c97e0).

Can't get reference to image

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.