Skip to content

Add static source data fetching to projects widget

PR resolves #299 (closed)

I created a separate function getProjectsDataFromStaticSource to interact with the static data source. Even though it would sort of work with the current getProjectsData function, I still made them separate in case if the shape of the data ever changes from either of the sources. Different API should have a different function.

And I mean sort of because originally the project static data from did not have a releases field and it would throw an error.


View the widgets here (make sure to disable CORS in browser): /docs/projects-static-source /docs/projects

You also need to have the static data api running. I created one for You can clone this branch and run it in localhost.

Edited by Olivier Goulet

Merge request reports